重启Openshift MySQL盒式磁带时出错

时间:2014-03-05 12:12:37

标签: java mysql tomcat7 openshift

我有一个不可扩展的OpenShift应用程序,其中包含 Tomcat 7 MySQL 5.5 ,并且该应用程序上只运行了一个小型Java应用程序。这个应用程序运行良好几个月,但自上周以来它停止工作。当我尝试使用OpenShift仪表板重新启动应用程序时,出现以下错误消息:

Starting MySQL 5.5 cartridge
MySQL server failed to start:
140305 07:01:47 mysqld_safe Logging to '/var/lib/openshift/53104e375973cad496000022/mysql//log/mysql_error.log'.
140305 07:01:48 mysqld_safe Starting mysqld daemon with databases from /var/lib/openshift/53104e375973cad496000022/mysql/data/
140305 07:01:52 mysqld_safe mysqld from pid file /var/lib/openshift/53104e375973cad496000022/mysql/pid/mysql.pid ended
140305 07:01:48 mysqld_safe Starting mysqld daemon with databases from /var/lib/openshift/53104e375973cad496000022/mysql/data/
140305  7:01:49 [Note] Plugin 'FEDERATED' is disabled.
140305  7:01:49 InnoDB: The InnoDB memory heap is disabled
140305  7:01:49 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140305  7:01:49 InnoDB: Compressed tables use zlib 1.2.3
140305  7:01:49 InnoDB: Using Linux native AIO
140305  7:01:49  InnoDB: Warning: io_setup() failed with EAGAIN. Will make 5 attempts before giving up.
InnoDB: Warning: io_setup() attempt 1 failed.
InnoDB: Warning: io_setup() attempt 2 failed.
InnoDB: Warning: io_setup() attempt 3 failed.
InnoDB: Warning: io_setup() attempt 4 failed.
InnoDB: Warning: io_setup() attempt 5 failed.
140305  7:01:52  InnoDB: Error: io_setup() failed with EAGAIN after 5 attempts.
InnoDB: You can disable Linux Native AIO by setting innodb_use_native_aio = 0 in my.cnf
140305  7:01:52 InnoDB: Fatal error: cannot initialize AIO sub-system
140305  7:01:52 [ERROR] Plugin 'InnoDB' init function returned error.
140305  7:01:52 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140305  7:01:52 [ERROR] Unknown/unsupported storage engine: InnoDB
140305  7:01:52 [ERROR] Aborting

140305  7:01:52 [Note] /opt/rh/mysql55/root/usr/libexec/mysqld: Shutdown complete

140305 07:01:52 mysqld_safe mysqld from pid file /var/lib/openshift/53104e375973cad496000022/mysql/pid/mysql.pid ended
Failed to execute: 'control restart' for /var/lib/openshift/53104e375973cad496000022/mysql

显然MySQL盒式磁带无法以某种方式重启,但我没有更改Java应用程序或齿轮配置中的任何内容。

有人知道为什么会这样吗?我不想简单地删除MySQL并再次添加它,因为如果我没有确定根本原因,将来可能再次发生此问题。

提前致谢。

2 个答案:

答案 0 :(得分:1)

我建议您检查一下配额,看看是否达到了限额。尝试ssh'ing到你的装备并运行以下quota -s。如果您已达到配额,则可以使用本地计算机上的rhc tidy命令清理设备。

修改

经过一番研究后,我会说你受到了这个错误https://bugzilla.redhat.com/show_bug.cgi?id=1061926的影响。在过去的几天里,我们经历了一些停电时间,并留下了一些残余影响。请放心,我们正在积极努力让这一点得到充分解决

答案 1 :(得分:0)

http://fundraiser-aapk.rhcloud.com/重启mysql时遇到类似问题 我是否需要在某处提交错误/支持请求?

BTW我的配额输出如下。

 Filesystem  blocks   quota   limit   grace   files   quota   limit   grace

的/ dev /映射器/ EBSStore01-user_home01

               500M       0   1024M           38899       0   80000