【发布时间】:2014-03-05 12:12:36
【问题描述】:
我有一个使用 Tomcat 7 和 MySQL 5.5 的不可扩展 OpenShift 应用程序,而该应用程序上只运行了一个小型 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 并重新添加它,因为如果我不找出根本原因,这个问题将来可能会再次发生。
提前致谢。
【问题讨论】:
标签: java mysql tomcat7 openshift