Dashboard login fails with " OperationalError: unable to open database file" after installation of openstack-murano-ui
The environment is Centos 7, with current versions of openstack-stein packages.
I was following the murano installation guide, trying my best to make aproppriate changes for my environment (the guide is only for ubuntu): https://docs.openstack.org/murano/stein/install/install-dashboard.html (https://docs.openstack.org/murano/ste...)
After installing openstack-murano-ui the and restarting Apache, the login failes with below output.
Does anyone have any idea?
==> /var/log/httpd/error_log <==
[Wed Jun 05 14:39:28.120724 2019] [:error] [pid 6241] INFO openstack_auth.forms Login successful for user "myuser" using domain "default", remote address 212.223.4.41.
[Wed Jun 05 14:39:28.123796 2019] [:error] [pid 6241] ERROR django.request Internal Server Error: /dashboard/auth/login/
[Wed Jun 05 14:39:28.123817 2019] [:error] [pid 6241] Traceback (most recent call last):
[Wed Jun 05 14:39:28.123823 2019] [:error] [pid 6241] File "/usr/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner
[Wed Jun 05 14:39:28.123828 2019] [:error] [pid 6241] response = get_response(request)
[Wed Jun 05 14:39:28.123832 2019] [:error] [pid 6241] File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
[Wed Jun 05 14:39:28.123837 2019] [:error] [pid 6241] response = self.process_exception_by_middleware(e, request)
[Wed Jun 05 14:39:28.123842 2019] [:error] [pid 6241] File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
[Wed Jun 05 14:39:28.123853 2019] [:error] [pid 6241] response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Wed Jun 05 14:39:28.123888 2019] [:error] [pid 6241] File "/usr/lib/python2.7/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
[Wed Jun 05 14:39:28.123899 2019] [:error] [pid 6241] return view(request, *args, **kwargs)
[Wed Jun 05 14:39:28.123907 2019] [:error] [pid 6241] File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 149, in _wrapped_view
[Wed Jun 05 14:39:28.123921 2019] [:error] [pid 6241] response = view_func(request, *args, **kwargs)
[Wed Jun 05 14:39:28.123942 2019] [:error] [pid 6241] File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
[Wed Jun 05 14:39:28.123950 2019] [:error] [pid 6241] response = view_func(request, *args, **kwargs)
[Wed Jun 05 14:39:28.123963 2019] [:error] [pid 6241] File "/usr/lib/python2.7/site-packages/openstack_auth/views.py", line 124, in login
[Wed Jun 05 14:39:28.123971 2019] [:error] [pid 6241] **kwargs)
[Wed Jun 05 14:39:28.124000 2019] [:error] [pid 6241] File "/usr/lib/python2.7/site-packages/django/contrib/auth/views.py", line 54, in inner
[Wed Jun 05 14:39:28.124010 2019] [:error] [pid 6241] return func(*args, **kwargs)
[Wed Jun 05 14:39:28.124018 2019] [:error] [pid 6241] File "/usr/lib/python2.7/site-packages/django/contrib/auth/views.py", line 150, in login
[Wed Jun 05 14:39:28.124027 2019] [:error] [pid 6241] )(request)
[Wed ...
I have no experience with Murano, but check the DB setup, step 3 in the install guide. What confuses me: Django documentation says that NAME should be the database file name. The NAME in the install guide doesn't look like a file name.
The question is therefore: If NAME is not an absolute path name, where is the database file located? I am sure you will find out that Django looks for it in a directory that doesn't exist. Where that directory is defined, I can't tell though.
Thank you! That helped, kind of. I just wish I knew enough about openstack to do decide if this needs to be reported as a bug or not.
I encourage you to raise a bug. It seems that the description is not clear at best. Even if it turns out not to be a bug, your misunderstanding the instructions could be a signal that they need improvement.