On 23/04/2015 19:32, Arash Kaffamanesh wrote:
With external IP, I mean the floating IP address which is assigned to the Kilo VM on OpenStack.

I use an OpenVPN VM on OpenStack to connect to the internal IP 10.0.0.16 of the kilo-vm:

[root@kilo-rc1 ~]# openstack-status 

== Nova services ==

openstack-nova-api:                     active

......

== Horizon service ==

openstack-dashboard:                    500

... 

neutron-lbaas-agent:                    inactive  (disabled on boot)

(alle other services are active)


and in the log file I see:

[root@kilo-rc1 ~]# tail -f /var/log/httpd/horizon_error.log 

...

[Thu Apr 23 18:16:14.264150 2015] [:error] [pid 1489] [remote ::1:200]   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 132, in __init__

[Thu Apr 23 18:16:14.264160 2015] [:error] [pid 1489] [remote ::1:200]     % (self.SETTINGS_MODULE, e)

[Thu Apr 23 18:16:14.264175 2015] [:error] [pid 1489] [remote ::1:200] ImportError: Could not import settings 'openstack_dashboard.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named angular_cookies

...

[Thu Apr 23 18:21:15.819875 2015] [:error] [pid 1489] [remote 10.0.0.15:200]     self._wrapped = Settings(settings_module)

[Thu Apr 23 18:21:15.819881 2015] [:error] [pid 1489] [remote 10.0.0.15:200]   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 132, in __init__

[Thu Apr 23 18:21:15.819891 2015] [:error] [pid 1489] [remote 10.0.0.15:200]     % (self.SETTINGS_MODULE, e)

[Thu Apr 23 18:21:15.819906 2015] [:error] [pid 1489] [remote 10.0.0.15:200] ImportError: Could not import settings 'openstack_dashboard.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named angular_cookies


No module named angular_cookies ????


Hi Arash,

I was getting a similar issue, and I changed the SECRET_KEY in /etc/openstack-dashboard/local_settings to some random letters, as in SECRET_KEY = '1245g789sdfgr697jg8asdn5' , and my dashboard started to work. For reference, my error was as below, not sure if it is anything similar to yours

[Thu Apr 23 19:04:47.408743 2015] [:error] [pid 9052] [remote 192.168.10.76:12] mod_wsgi (pid=9052): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/open
[Thu Apr 23 19:04:47.408851 2015] [:error] [pid 9052] [remote 192.168.10.76:12] Traceback (most recent call last):
[Thu Apr 23 19:04:47.408889 2015] [:error] [pid 9052] [remote 192.168.10.76:12]   File "/usr/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 187, in __call__
[Thu Apr 23 19:04:47.409042 2015] [:error] [pid 9052] [remote 192.168.10.76:12]     self.load_middleware()
[Thu Apr 23 19:04:47.409061 2015] [:error] [pid 9052] [remote 192.168.10.76:12]   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 44, in load_middleware
[Thu Apr 23 19:04:47.409214 2015] [:error] [pid 9052] [remote 192.168.10.76:12]     for middleware_path in settings.MIDDLEWARE_CLASSES:
[Thu Apr 23 19:04:47.409232 2015] [:error] [pid 9052] [remote 192.168.10.76:12]   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 54, in __getattr__
[Thu Apr 23 19:04:47.409348 2015] [:error] [pid 9052] [remote 192.168.10.76:12]     self._setup(name)
[Thu Apr 23 19:04:47.409365 2015] [:error] [pid 9052] [remote 192.168.10.76:12]   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 49, in _setup
[Thu Apr 23 19:04:47.409389 2015] [:error] [pid 9052] [remote 192.168.10.76:12]     self._wrapped = Settings(settings_module)
[Thu Apr 23 19:04:47.409404 2015] [:error] [pid 9052] [remote 192.168.10.76:12]   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 128, in __init__
[Thu Apr 23 19:04:47.409426 2015] [:error] [pid 9052] [remote 192.168.10.76:12]     mod = importlib.import_module(self.SETTINGS_MODULE)
[Thu Apr 23 19:04:47.409442 2015] [:error] [pid 9052] [remote 192.168.10.76:12]   File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module
[Thu Apr 23 19:04:47.409501 2015] [:error] [pid 9052] [remote 192.168.10.76:12]     __import__(name)
[Thu Apr 23 19:04:47.409517 2015] [:error] [pid 9052] [remote 192.168.10.76:12]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.
[Thu Apr 23 19:04:47.409658 2015] [:error] [pid 9052] [remote 192.168.10.76:12]     from local.local_settings import *  # noqa
[Thu Apr 23 19:04:47.409719 2015] [:error] [pid 9052] [remote 192.168.10.76:12]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/loc
[Thu Apr 23 19:04:47.409976 2015] [:error] [pid 9052] [remote 192.168.10.76:12]     os.path.join(LOCAL_PATH, '.secret_key_store'))
[Thu Apr 23 19:04:47.409994 2015] [:error] [pid 9052] [remote 192.168.10.76:12]   File "/usr/lib/python2.7/site-packages/horizon/utils/secret_key.py", line 54, in generate_or_read
[Thu Apr 23 19:04:47.410062 2015] [:error] [pid 9052] [remote 192.168.10.76:12]     with lock:
[Thu Apr 23 19:04:47.410077 2015] [:error] [pid 9052] [remote 192.168.10.76:12]   File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 217, in __enter__
[Thu Apr 23 19:04:47.410312 2015] [:error] [pid 9052] [remote 192.168.10.76:12]     self.acquire()
[Thu Apr 23 19:04:47.410328 2015] [:error] [pid 9052] [remote 192.168.10.76:12]   File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 200, in acquire
[Thu Apr 23 19:04:47.410351 2015] [:error] [pid 9052] [remote 192.168.10.76:12]     self.lockfile = open(self.fname, 'a')
[Thu Apr 23 19:04:47.410386 2015] [:error] [pid 9052] [remote 192.168.10.76:12] IOError: [Errno 13] Permission denied: '/tmp/_tmp_.secret_key_store.lock'

I hope that this helpful

On Thu, Apr 23, 2015 at 7:23 PM, Alan Pevec <apevec@gmail.com> wrote:
> But I can't access the dashboard, over the external IP, I'm getting:

Which external IP do you mean? Please explain your network setup.

> Internal Server Error

Please try service httpd restart then check for clues in
/var/log/httpd/horizon_error.log.
openstack-dashboard-2015.1-dev2.el7 worked for me but in a small VM
with 2G RAM and 1G swap I've seen oom-killer in action and httpd was
the first victim, ps_mem shows httpd using >300MB after short browsing
openstack-dashboard pages...