OpenStack Web訪問頁面報以下錯誤:
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
查看日志:
[root@controller httpd]# tail -f /var/log/httpd/error_log [Tue Oct 15 15:53:02.394760 2019] [:error] [pid 22423] [remote 192.168.8.250:48] '.secret_key_store')) [Tue Oct 15 15:53:02.394791 2019] [:error] [pid 22423] [remote 192.168.8.250:48] File "/usr/lib/python2.7/site-packages/horizon/utils/secret_key.py", line 76, in generate_or_read_from_file [Tue Oct 15 15:53:02.394819 2019] [:error] [pid 22423] [remote 192.168.8.250:48] with lock: [Tue Oct 15 15:53:02.394831 2019] [:error] [pid 22423] [remote 192.168.8.250:48] File "/usr/lib/python2.7/site-packages/fasteners/process_lock.py", line 174, in __enter__ [Tue Oct 15 15:53:02.394850 2019] [:error] [pid 22423] [remote 192.168.8.250:48] self.acquire() [Tue Oct 15 15:53:02.394861 2019] [:error] [pid 22423] [remote 192.168.8.250:48] File "/usr/lib/python2.7/site-packages/fasteners/process_lock.py", line 151, in acquire [Tue Oct 15 15:53:02.394879 2019] [:error] [pid 22423] [remote 192.168.8.250:48] self._do_open() [Tue Oct 15 15:53:02.394890 2019] [:error] [pid 22423] [remote 192.168.8.250:48] File "/usr/lib/python2.7/site-packages/fasteners/process_lock.py", line 123, in _do_open [Tue Oct 15 15:53:02.394907 2019] [:error] [pid 22423] [remote 192.168.8.250:48] self.lockfile = open(self.path, 'a') [Tue Oct 15 15:53:02.394937 2019] [:error] [pid 22423] [remote 192.168.8.250:48] IOError: [Errno 13] Permission denied: '/usr/share/openstack-dashboard/openstack_dashboard/local/_usr_share_openstack-dashboard_openstack_dashboard_local_.secret_key_store.lock'
權限錯誤:IOError: [Errno 13] Permission denied: '/usr/share/openstack-dashboard/.../secret_key_store.lock
查看配置文件權限:ll /etc/openstack-dashboard

查看local_settings 文件權限是否為 root:apache權限,
修改命令:chown root:apache local_settings
頁面訪問,成功