I have recently studied OpenStack and want to keep a record of the problems I have encountered, and can have a reference when other friends encounter the same problem.
The problem is that after OpenStack is set up, dashboard itself can be used, but after a certain day, suddenly found to open dashboard after the internal Server error. So on the Internet to find the answer but no, then you solve it yourself.
First open the Dashboard log file, mine is: ~/log/horizon.log.
Find the following error message:
--Geneva- - on: the:55.380169Traceback (most recent): --Geneva- - on: the:55.380313File"/opt/stack/horizon/openstack_dashboard/wsgi/django.wsgi", line -, in <Module> --Geneva- - on: the:55.380466Application =get_wsgi_application () --Geneva- - on: the:55.380557File"/usr/local/lib/python2.7/dist-packages/django/core/wsgi.py", line -, in Get_wsgi_application --Geneva- - on: the:55.380659Django.setup () --Geneva- - on: the:55.380740File"/usr/local/lib/python2.7/dist-packages/django/__init__.py", line -, in Setup --Geneva- - on: the:55.380837configure_logging (settings. Logging_config, settings. LOGGING) --Geneva- - on: the:55.380939File"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line $, in __getattr__ --Geneva- - on: the:55.381056self._setup (name) --Geneva- - on: the:55.381140File"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line the, in _setup --Geneva- - on: the:55.381250self._wrapped =Settings (settings_module) --Geneva- - on: the:55.381337File"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line94, in __init__ --Geneva- - on: the:55.381435MoD =Importlib.import_module (self. Settings_module) --Geneva- - on: the:55.381518File"/usr/lib/python2.7/importlib/__init__.py", linePanax Notoginseng, in Import_module --Geneva- - on: the:55.381665__import__ (name) --Geneva- - on: the:55.381751File"/opt/stack/horizon/openstack_dashboard/wsgi/. /.. /openstack_dashboard/settings.py", line263, in <Module> --Geneva- - on: the:55.381886From local.local_settings Import *# Noqa --Geneva- - on: the:55.381977File"/opt/stack/horizon/openstack_dashboard/wsgi/. /.. /openstack_dashboard/local/local_settings.py", line117, in <Module> --Geneva- - on: the:55.382078Os.path.Join(Local_path,'. Secret_key_store')) --Geneva- - on: the:55.382174File"/opt/stack/horizon/openstack_dashboard/wsgi/. /.. /horizon/utils/secret_key.py", line the, in Generate_or_read_from_file --Geneva- - on: the:55.382377Raise Filepermissionerror ("Insecure key File permissions!") --Geneva- - on: the:55.382494Filepermissionerror:insecure key File permissions!
The initial judgment is the file permissions issue, according to Os.path.join (Local_path, '. Secret_key_store ') to find/opt/stack/horizon/openstack_dashboard/local/. Secret_key_store, and found all the permissions on this file, it's strange why there's a permission problem
Landed on another machine that dashboard normal work.
Then decided to delete the two files, refresh the dashboard URL again, it is amazing work, but also found that the directory of the new generation of these two files, and the same permissions.
This problem is a mistake to solve, but in the operation of OpenStack process found that OpenStack is very unstable, some of the function is good, after a day or two is not used, or a thing can not be installed, and then multiple loading several times good, or do not understand the reasons, but to learn more, Explore More! ^_^
Open OpenStack Dashboard internal Server error appears