Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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 Jun 05 14:39:28.124034 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
[Wed Jun 05 14:39:28.124042 2019] [:error] [pid 6241]     return self.dispatch(request, *args, **kwargs)
[Wed Jun 05 14:39:28.124048 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 67, in _wrapper
[Wed Jun 05 14:39:28.124055 2019] [:error] [pid 6241]     return bound_func(*args, **kwargs)
[Wed Jun 05 14:39:28.124064 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.124079 2019] [:error] [pid 6241]     return view(request, *args, **kwargs)
[Wed Jun 05 14:39:28.124091 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 63, in bound_func
[Wed Jun 05 14:39:28.124103 2019] [:error] [pid 6241]     return func.__get__(self, type(self))(*args2, **kwargs2)
[Wed Jun 05 14:39:28.124114 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 67, in _wrapper
[Wed Jun 05 14:39:28.124124 2019] [:error] [pid 6241]     return bound_func(*args, **kwargs)
[Wed Jun 05 14:39:28.124134 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.124144 2019] [:error] [pid 6241]     response = view_func(request, *args, **kwargs)
[Wed Jun 05 14:39:28.124156 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 63, in bound_func
[Wed Jun 05 14:39:28.124165 2019] [:error] [pid 6241]     return func.__get__(self, type(self))(*args2, **kwargs2)
[Wed Jun 05 14:39:28.124175 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 67, in _wrapper
[Wed Jun 05 14:39:28.124185 2019] [:error] [pid 6241]     return bound_func(*args, **kwargs)
[Wed Jun 05 14:39:28.124195 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.124205 2019] [:error] [pid 6241]     response = view_func(request, *args, **kwargs)
[Wed Jun 05 14:39:28.124214 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 63, in bound_func
[Wed Jun 05 14:39:28.124224 2019] [:error] [pid 6241]     return func.__get__(self, type(self))(*args2, **kwargs2)
[Wed Jun 05 14:39:28.124238 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/contrib/auth/views.py", line 90, in dispatch
[Wed Jun 05 14:39:28.124248 2019] [:error] [pid 6241]     return super(LoginView, self).dispatch(request, *args, **kwargs)
[Wed Jun 05 14:39:28.124258 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 88, in dispatch
[Wed Jun 05 14:39:28.124267 2019] [:error] [pid 6241]     return handler(request, *args, **kwargs)
[Wed Jun 05 14:39:28.124277 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/views/generic/edit.py", line 183, in post
[Wed Jun 05 14:39:28.124287 2019] [:error] [pid 6241]     return self.form_valid(form)
[Wed Jun 05 14:39:28.124296 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/contrib/auth/views.py", line 119, in form_valid
[Wed Jun 05 14:39:28.124309 2019] [:error] [pid 6241]     auth_login(self.request, form.get_user())
[Wed Jun 05 14:39:28.124318 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 140, in login
[Wed Jun 05 14:39:28.124330 2019] [:error] [pid 6241]     request.session.cycle_key()
[Wed Jun 05 14:39:28.124339 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/contrib/sessions/backends/base.py", line 311, in cycle_key
[Wed Jun 05 14:39:28.124349 2019] [:error] [pid 6241]     self.create()
[Wed Jun 05 14:39:28.124359 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/contrib/sessions/backends/db.py", line 50, in create
[Wed Jun 05 14:39:28.124368 2019] [:error] [pid 6241]     self._session_key = self._get_new_session_key()
[Wed Jun 05 14:39:28.124378 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/contrib/sessions/backends/base.py", line 164, in _get_new_session_key
[Wed Jun 05 14:39:28.124390 2019] [:error] [pid 6241]     if not self.exists(session_key):
[Wed Jun 05 14:39:28.124398 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/contrib/sessions/backends/db.py", line 46, in exists
[Wed Jun 05 14:39:28.124403 2019] [:error] [pid 6241]     return self.model.objects.filter(session_key=session_key).exists()
[Wed Jun 05 14:39:28.124410 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line 673, in exists
[Wed Jun 05 14:39:28.124708 2019] [:error] [pid 6241]     return self.query.has_results(using=self.db)
[Wed Jun 05 14:39:28.124740 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/db/models/sql/query.py", line 517, in has_results
[Wed Jun 05 14:39:28.124770 2019] [:error] [pid 6241]     return compiler.has_results()
[Wed Jun 05 14:39:28.124799 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 858, in has_results
[Wed Jun 05 14:39:28.124809 2019] [:error] [pid 6241]     return bool(self.execute_sql(SINGLE))
[Wed Jun 05 14:39:28.124814 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 887, in execute_sql
[Wed Jun 05 14:39:28.124819 2019] [:error] [pid 6241]     cursor = self.connection.cursor()
[Wed Jun 05 14:39:28.124824 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/db/backends/base/base.py", line 254, in cursor
[Wed Jun 05 14:39:28.124830 2019] [:error] [pid 6241]     return self._cursor()
[Wed Jun 05 14:39:28.124835 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/db/backends/base/base.py", line 229, in _cursor
[Wed Jun 05 14:39:28.124852 2019] [:error] [pid 6241]     self.ensure_connection()
[Wed Jun 05 14:39:28.124864 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/db/backends/base/base.py", line 213, in ensure_connection
[Wed Jun 05 14:39:28.124878 2019] [:error] [pid 6241]     self.connect()
[Wed Jun 05 14:39:28.124883 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__
[Wed Jun 05 14:39:28.124899 2019] [:error] [pid 6241]     six.reraise(dj_exc_type, dj_exc_value, traceback)
[Wed Jun 05 14:39:28.124905 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/db/backends/base/base.py", line 213, in ensure_connection
[Wed Jun 05 14:39:28.124911 2019] [:error] [pid 6241]     self.connect()
[Wed Jun 05 14:39:28.124917 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/db/backends/base/base.py", line 189, in connect
[Wed Jun 05 14:39:28.124922 2019] [:error] [pid 6241]     self.connection = self.get_new_connection(conn_params)
[Wed Jun 05 14:39:28.124935 2019] [:error] [pid 6241]   File "/usr/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 198, in get_new_connection
[Wed Jun 05 14:39:28.124940 2019] [:error] [pid 6241]     conn = Database.connect(**conn_params)
[Wed Jun 05 14:39:28.124947 2019] [:error] [pid 6241] OperationalError: unable to open database file