0

我在 openshift 上部署应用程序时遇到问题。它以前可以工作,但是当我推送一些更新时,Mysql 突然变得不稳定。下面是错误的屏幕截图。

在此处输入图像描述

R

emote: Preparing build for deployment
remote: Deployment id is 27960fb5
remote: Activating deployment
remote: Starting MySQL 5.5 cartridge
remote: MySQL server failed to start:
remote: 151109 05:19:51 mysqld_safe Logging to '/var/lib/openshift/563c24947628e1f167000124/mysql//stdout.err'.
remote: 151109 05:19:51 mysqld_safe Starting mysqld daemon with databases from /var/lib/openshift/563c24947628e1f167000124/mysql/data/
remote: 151109 05:19:51 mysqld_safe Starting mysqld daemon with databases from /var/lib/openshift/563c24947628e1f167000124/mysql/data/
remote: 151109  5:19:51 [Note] /opt/rh/mysql55/root/usr/libexec/mysqld (mysqld 5.5.45) starting as process 105921 ...
remote: 151109  5:19:51 [Note] Plugin 'FEDERATED' is disabled.
remote: 151109  5:19:51 InnoDB: The InnoDB memory heap is disabled
remote: 151109  5:19:51 InnoDB: Mutexes and rw_locks use GCC atomic builtins
remote: 151109  5:19:51 InnoDB: Compressed tables use zlib 1.2.3
remote: 151109  5:19:51 InnoDB: Using Linux native AIO
remote: 151109  5:19:51  InnoDB: Warning: io_setup() failed with EAGAIN. Will make 5 attempts before giving up.
remote: InnoDB: Warning: io_setup() attempt 1 failed.
remote: InnoDB: Warning: io_setup() attempt 2 failed.
remote: InnoDB: Warning: io_setup() attempt 3 failed.
remote: InnoDB: Warning: io_setup() attempt 4 failed.
remote: InnoDB: Warning: io_setup() attempt 5 failed.
remote: 151109  5:19:54  InnoDB: Error: io_setup() failed with EAGAIN after 5 attempts.
remote: InnoDB: You can disable Linux Native AIO by setting innodb_use_native_aio = 0 in my.cnf
remote: 151109  5:19:54 InnoDB: Fatal error: cannot initialize AIO sub-system
remote: 151109  5:19:54 [ERROR] Plugin 'InnoDB' init function returned error.
remote: 151109  5:19:54 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
remote: 151109  5:19:54 [ERROR] Unknown/unsupported storage engine: InnoDB
remote: 151109  5:19:54 [ERROR] Aborting
remote: 151109  5:19:54 [Note] /opt/rh/mysql55/root/usr/libexec/mysqld: Shutdown complete
remote: chown: changing ownership of `/var/lib/openshift/563c24947628e1f167000124/mysql//stdout.err': Operation not permitted
remote: 151109 05:19:54 mysqld_safe mysqld from pid file /var/lib/openshift/563c24947628e1f167000124/mysql/pid/mysql.pid ended
remote: 151109 05:19:54 mysqld_safe mysqld from pid file /var/lib/openshift/563c24947628e1f167000124/mysql/pid/mysql.pid ended
4

1 回答 1

4

看起来这是 OpenShift Online 的一个错误,请尝试按照此错误报告 ( https://bugzilla.redhat.com/show_bug.cgi?id=1085282 ) 中的建议寻求解决方法。

1. Set the OPENSHIFT_MYSQL_AIO=0 for mysql cart
rhc env-set OPENSHIFT_MYSQL_AIO=0 -a <appname>

2. Restart the mysql-5.5
rhc cartridge restart mysql-5 -a <appname>

3. SSH into this app
rhc ssh <appname>
mysql

mysql> show variables where Variable_name = 'innodb_use_native_aio';
+-----------------------+-------+
| Variable_name         | Value |
+-----------------------+-------+
| innodb_use_native_aio | OFF   |
+-----------------------+-------+
1 row in set (0.00 sec)
于 2015-11-09T18:37:24.083 回答