机器重启后,dashboard无法显示。查看后台发现httpd无法启动。
检查httpd日志,如下提示:
=========
[root@controller ~]# systemctl status -l httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/httpd.service.d
└─openstack-dashboard.conf
Active: failed (Result: exit-code) since Mon 2016-05-16 10:27:41 CST; 6s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 27815 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 27813 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Process: 27790 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py compress --force (code=exited, status=0/SUCCESS)
Process: 27769 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear (code=exited, status=0/SUCCESS)
Main PID: 27813 (code=exited, status=1/FAILURE)
May 16 10:27:41 controller python[27790]: Compressing... done
May 16 10:27:41 controller python[27790]: Compressed 4 block(s) from 3 template(s).
May 16 10:27:41 controller httpd[27813]: AH00526: Syntax error on line 18 of /etc/httpd/conf.d/ssl.conf:
May 16 10:27:41 controller httpd[27813]: Invalid command 'SSLPassPhraseDialog', perhaps misspelled or defined by a module not included in the server configuration
May 16 10:27:41 controller systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
May 16 10:27:41 controller kill[27815]: kill: cannot find process ""
May 16 10:27:41 controller systemd[1]: httpd.service: control process exited, code=exited status=1
May 16 10:27:41 controller systemd[1]: Failed to start The Apache HTTP Server.
May 16 10:27:41 controller systemd[1]: Unit httpd.service entered failed state.
May 16 10:27:41 controller systemd[1]: httpd.service failed.
=========
google后查到一个workaround
Have you lost the line in /etc/httpd/conf/httpd.conf that does Include conf.modules.d/*.conf |
(原文链接:https://bugs.centos.org/view.php?id=8092)
试了一下,搞定。
google还是靠谱。
不说了,肚子饿了:百度定个外卖。