<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">On 23/04/2015 19:32, Arash Kaffamanesh
wrote:<br>
</div>
<blockquote
cite="mid:CA+LqMcEbPbt8noDfKvWhMLbD8LZnj8PVau1ACRU+k-a0SC=JuA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div style="font-family:arial"><span style="color:rgb(0,0,0)">With
external IP, I mean the floating IP address which is
assigned to the Kilo VM on OpenStack.</span>
<p><span style="color:rgb(11,83,148)"></span></p>
</div>
<div style="font-family:arial">I use an OpenVPN VM on OpenStack
to connect to the internal IP 10.0.0.16 of the kilo-vm:</div>
<div style="font-family:arial">
<p class=""><span class="">[root@kilo-rc1 ~]#
openstack-status </span></p>
<p class=""><span class="">== Nova services ==</span></p>
<p class=""><span class="">openstack-nova-api:
active</span></p>
<p class="">......</p>
<p class=""><span class="">== Horizon service ==</span></p>
<p class=""><span class="">openstack-dashboard:
500</span></p>
<p class="">... </p>
<p class="">
</p>
<p class=""><span class="">neutron-lbaas-agent:
inactive (disabled on boot)</span></p>
<p class="">(alle other services are active)</p>
</div>
<div style="font-family:arial"><span style="color:rgb(0,0,0)"><br>
</span></div>
<div style="font-family:arial"><span style="color:rgb(0,0,0)">and
in the log file I see:</span></div>
<div style="font-family:arial"><span style="color:rgb(0,0,0)"><br>
</span></div>
<div style="font-family:arial">
<p class=""><span class="">[root@kilo-rc1 ~]# tail -f
/var/log/httpd/horizon_error.log </span></p>
</div>
<div style="font-family:arial"><span style="color:rgb(0,0,0)"><b>...</b></span></div>
<div style="font-family:arial">
<p class=""><span class="">[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__</span></p>
<p class=""><span class="">[Thu Apr 23 18:16:14.264160 2015]
[:error] [pid 1489] [remote ::1:200] %
(self.SETTINGS_MODULE, e)</span></p>
<p class=""><span class="">[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</span></p>
<p class="">...</p>
<p class=""><span class="">[Thu Apr 23 18:21:15.819875 2015]
[:error] [pid 1489] [remote <a moz-do-not-send="true"
href="http://10.0.0.15:200">10.0.0.15:200</a>]
self._wrapped = Settings(settings_module)</span></p>
<p class=""><span class="">[Thu Apr 23 18:21:15.819881 2015]
[:error] [pid 1489] [remote <a moz-do-not-send="true"
href="http://10.0.0.15:200">10.0.0.15:200</a>] File
"/usr/lib/python2.7/site-packages/django/conf/__init__.py",
line 132, in __init__</span></p>
<p class=""><span class="">[Thu Apr 23 18:21:15.819891 2015]
[:error] [pid 1489] [remote <a moz-do-not-send="true"
href="http://10.0.0.15:200">10.0.0.15:200</a>] %
(self.SETTINGS_MODULE, e)</span></p>
<p class="">
</p>
<p class=""><span class="">[Thu Apr 23 18:21:15.819906 2015]
[:error] [pid 1489] [remote <a moz-do-not-send="true"
href="http://10.0.0.15:200">10.0.0.15:200</a>]
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</span></p>
<p class=""><br>
</p>
<p class="">No module named angular_cookies ????<br>
</p>
<p class=""><br>
</p>
</div>
</div>
</blockquote>
Hi Arash,<br>
<br>
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<br>
<br>
[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<br>
[Thu Apr 23 19:04:47.408851 2015] [:error] [pid 9052] [remote
192.168.10.76:12] Traceback (most recent call last):<br>
[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__<br>
[Thu Apr 23 19:04:47.409042 2015] [:error] [pid 9052] [remote
192.168.10.76:12] self.load_middleware()<br>
[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<br>
[Thu Apr 23 19:04:47.409214 2015] [:error] [pid 9052] [remote
192.168.10.76:12] for middleware_path in
settings.MIDDLEWARE_CLASSES:<br>
[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__<br>
[Thu Apr 23 19:04:47.409348 2015] [:error] [pid 9052] [remote
192.168.10.76:12] self._setup(name)<br>
[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<br>
[Thu Apr 23 19:04:47.409389 2015] [:error] [pid 9052] [remote
192.168.10.76:12] self._wrapped = Settings(settings_module)<br>
[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__<br>
[Thu Apr 23 19:04:47.409426 2015] [:error] [pid 9052] [remote
192.168.10.76:12] mod =
importlib.import_module(self.SETTINGS_MODULE)<br>
[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<br>
[Thu Apr 23 19:04:47.409501 2015] [:error] [pid 9052] [remote
192.168.10.76:12] __import__(name)<br>
[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.<br>
[Thu Apr 23 19:04:47.409658 2015] [:error] [pid 9052] [remote
192.168.10.76:12] from local.local_settings import * # noqa<br>
[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<br>
[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'))<br>
[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<br>
[Thu Apr 23 19:04:47.410062 2015] [:error] [pid 9052] [remote
192.168.10.76:12] with lock:<br>
[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__<br>
[Thu Apr 23 19:04:47.410312 2015] [:error] [pid 9052] [remote
192.168.10.76:12] self.acquire()<br>
[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<br>
[Thu Apr 23 19:04:47.410351 2015] [:error] [pid 9052] [remote
192.168.10.76:12] self.lockfile = open(self.fname, 'a')<br>
[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'<br>
<br>
I hope that this helpful<br>
<br>
<blockquote
cite="mid:CA+LqMcEbPbt8noDfKvWhMLbD8LZnj8PVau1ACRU+k-a0SC=JuA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Thu, Apr 23, 2015 at 7:23 PM, Alan
Pevec <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:apevec@gmail.com" target="_blank">apevec@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span
class="">> But I can't access the dashboard, over the
external IP, I'm getting:<br>
<br>
</span>Which external IP do you mean? Please explain your
network setup.<br>
<br>
> Internal Server Error<br>
<br>
Please try service httpd restart then check for clues in<br>
/var/log/httpd/horizon_error.log.<br>
openstack-dashboard-2015.1-dev2.el7 worked for me but in a
small VM<br>
with 2G RAM and 1G swap I've seen oom-killer in action and
httpd was<br>
the first victim, ps_mem shows httpd using >300MB after
short browsing<br>
openstack-dashboard pages...<br>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>