自上次重启以来,我的 gitlab 安装无法启动。
mysqld.pid 文件也不在那里。
131111 18:20:57 mysqld_safe Logging to '/opt/bitnami/mysql/data/mysqld.log'.
131111 18:20:57 mysqld_safe Starting mysqld.bin daemon with databases from /opt/bitnami/mysql/data
131111 18:20:58 mysqld_safe mysqld from pid file /opt/bitnami/mysql/data/mysqld.pid ended
我查看了 mysqld.log
tail -f mysql/data/mysqld.log
131111 18:30:24 InnoDB: Using Linux native AIO
131111 18:30:24 InnoDB: Initializing buffer pool, size = 128.0M
131111 18:30:24 InnoDB: Completed initialization of buffer pool
131111 18:30:24 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ib_logfile0
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
131111 18:30:24 mysqld_safe mysqld from pid file /opt/bitnami/mysql/data/mysqld.pid ended
这是否意味着,mysqld 用户没有访问/opt/bitnami/mysql/data 的权限
我现在也看到了这个错误
tail -f mysql/data/mysqld.log
InnoDB: Error: log file ./ib_logfile1 is of different size 0 327680 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes!
131111 18:34:57 [ERROR] Plugin 'InnoDB' init function returned error.
131111 18:34:57 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
131111 18:34:57 [ERROR] Unknown/unsupported storage engine: InnoDB
131111 18:34:57 [ERROR] Aborting
131111 18:34:57 [Note] /opt/bitnami/mysql/bin/mysqld.bin: Shutdown complete
131111 18:34:57 mysqld_safe mysqld from pid file /opt/bitnami/mysql/data/mysqld.pid ended
最佳答案
我自己修的
- 删除了所有 ib_logfiles 0 和 1
- 在 my.cnf 中输入日志文件大小为 innodb_log_file_size=125M
并使用 sh ctlscript.sh start 重新启动服务器,它启动得非常顺利。
关于mysql - mysqld pid文件错误后gitlab无法启动,以及innodb文件大小问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19906168/