반응형
2024.03.21. ubuntu-22.04 Bobcat에서 발생
에러 로그
- tail -f /var/log/apache2/error.log
[Thu Mar 21 23:03:27.623376 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] INFO openstack_auth.plugin.base Attempted scope to domain default failed, will attempt to scope to another domain.
[Thu Mar 21 23:03:27.762288 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] INFO openstack_auth.forms Login successful for user "admin" using domain "default", remote address 10.0.0.11.
[Thu Mar 21 23:03:29.190767 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] ERROR django.request Internal Server Error: /horizon/auth/login/
[Thu Mar 21 23:03:29.190813 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] Traceback (most recent call last):
[Thu Mar 21 23:03:29.190820 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 47, in inner
[Thu Mar 21 23:03:29.190824 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] response = get_response(request)
[Thu Mar 21 23:03:29.190827 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 181, in _get_response
[Thu Mar 21 23:03:29.190830 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Thu Mar 21 23:03:29.190834 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] File "/usr/lib/python3/dist-packages/django/views/decorators/debug.py", line 89, in sensitive_post_parameters_wrapper
[Thu Mar 21 23:03:29.190837 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] return view(request, *args, **kwargs)
[Thu Mar 21 23:03:29.190840 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] File "/usr/lib/python3/dist-packages/django/utils/decorators.py", line 130, in _wrapped_view
[Thu Mar 21 23:03:29.190843 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] response = view_func(request, *args, **kwargs)
[Thu Mar 21 23:03:29.190846 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] File "/usr/lib/python3/dist-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
[Thu Mar 21 23:03:29.190863 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] response = view_func(request, *args, **kwargs)
[Thu Mar 21 23:03:29.190867 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] File "/usr/lib/python3/dist-packages/openstack_auth/views.py", line 173, in login
[Thu Mar 21 23:03:29.190870 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] res = django_auth_views.LoginView.as_view(
[Thu Mar 21 23:03:29.190873 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] File "/usr/lib/python3/dist-packages/django/views/generic/base.py", line 70, in view
[Thu Mar 21 23:03:29.190877 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] return self.dispatch(request, *args, **kwargs)
[Thu Mar 21 23:03:29.190880 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] File "/usr/lib/python3/dist-packages/django/utils/decorators.py", line 43, in _wrapper
[Thu Mar 21 23:03:29.190883 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] return bound_method(*args, **kwargs)
[Thu Mar 21 23:03:29.190886 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] File "/usr/lib/python3/dist-packages/django/views/decorators/debug.py", line 89, in sensitive_post_parameters_wrapper
[Thu Mar 21 23:03:29.190889 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] return view(request, *args, **kwargs)
[Thu Mar 21 23:03:29.190892 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] File "/usr/lib/python3/dist-packages/django/utils/decorators.py", line 43, in _wrapper
[Thu Mar 21 23:03:29.190895 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] return bound_method(*args, **kwargs)
[Thu Mar 21 23:03:29.190898 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] File "/usr/lib/python3/dist-packages/django/utils/decorators.py", line 130, in _wrapped_view
[Thu Mar 21 23:03:29.190901 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] response = view_func(request, *args, **kwargs)
[Thu Mar 21 23:03:29.190904 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] File "/usr/lib/python3/dist-packages/django/utils/decorators.py", line 43, in _wrapper
[Thu Mar 21 23:03:29.190907 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] return bound_method(*args, **kwargs)
[Thu Mar 21 23:03:29.190910 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] File "/usr/lib/python3/dist-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
[Thu Mar 21 23:03:29.190927 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] response = view_func(request, *args, **kwargs)
[Thu Mar 21 23:03:29.190931 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] File "/usr/lib/python3/dist-packages/django/contrib/auth/views.py", line 63, in dispatch
[Thu Mar 21 23:03:29.190934 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] return super().dispatch(request, *args, **kwargs)
[Thu Mar 21 23:03:29.190937 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] File "/usr/lib/python3/dist-packages/django/views/generic/base.py", line 98, in dispatch
[Thu Mar 21 23:03:29.190940 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] return handler(request, *args, **kwargs)
[Thu Mar 21 23:03:29.190943 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] File "/usr/lib/python3/dist-packages/django/views/generic/edit.py", line 142, in post
[Thu Mar 21 23:03:29.190946 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] return self.form_valid(form)
[Thu Mar 21 23:03:29.190955 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] File "/usr/lib/python3/dist-packages/django/contrib/auth/views.py", line 92, in form_valid
[Thu Mar 21 23:03:29.190958 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] auth_login(self.request, form.get_user())
[Thu Mar 21 23:03:29.190961 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] File "/usr/lib/python3/dist-packages/django/contrib/auth/__init__.py", line 111, in login
[Thu Mar 21 23:03:29.190964 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] request.session.cycle_key()
[Thu Mar 21 23:03:29.190967 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] File "/usr/lib/python3/dist-packages/django/contrib/sessions/backends/base.py", line 344, in cycle_key
[Thu Mar 21 23:03:29.190971 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] self.create()
[Thu Mar 21 23:03:29.190974 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] File "/usr/lib/python3/dist-packages/django/contrib/sessions/backends/cache.py", line 50, in create
[Thu Mar 21 23:03:29.190977 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] raise RuntimeError(
[Thu Mar 21 23:03:29.190980 2024] [wsgi:error] [pid 136623:tid 136787092559424] [remote 10.0.0.11:59556] RuntimeError: Unable to create a new session key. It is likely that the cache is unavailable.
해결책
vi /etc/memcached.conf
#-l 127.0.0.1
-l controller
service memcached restart
반응형