when trying to logout from Discourse 500 server error
Created by: radumalica
All good, configured SSO on Discourse side (latest version of Discourse), enable sso = on, secret and API details inserted into local.py, i checked everything twice, admin username, keys/secrets.
I login to AAuth with random Eve character, go to Services, go to forums. I get authenticated to Discourse properly with my ticker and char name as it should
When i click logout of discourse, nothing happens, it just refreshes the page fast and i am still logged in.
I go back to AAuth, login as admin, go to forums, still the other user appears as logged in. When i click logout, i get 500 Internal Server Error:
Traceback (most recent call last):
File "/home/allianceserver/venv/auth/lib/python3.5/site-packages/django/core/handlers/exception.py", line 35, in inner
response = get_response(request)
File "/home/allianceserver/venv/auth/lib/python3.5/site-packages/django/core/handlers/base.py", line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/allianceserver/venv/auth/lib/python3.5/site-packages/django/core/handlers/base.py", line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/allianceserver/venv/auth/lib/python3.5/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/home/allianceserver/venv/auth/lib/python3.5/site-packages/allianceauth/authentication/decorators.py", line 33, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/home/allianceserver/venv/auth/lib/python3.5/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/home/allianceserver/venv/auth/lib/python3.5/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/home/allianceserver/venv/auth/lib/python3.5/site-packages/allianceauth/services/modules/market/views.py", line 25, in activate_market
character.character_name)
File "/home/allianceserver/venv/auth/lib/python3.5/site-packages/allianceauth/services/modules/market/manager.py", line 83, in add_user
if not cls.check_username(username):
File "/home/allianceserver/venv/auth/lib/python3.5/site-packages/allianceauth/services/modules/market/manager.py", line 55, in check_username
cursor = connections['market'].cursor()
File "/home/allianceserver/venv/auth/lib/python3.5/site-packages/django/db/utils.py", line 199, in __getitem__
self.ensure_defaults(alias)
File "/home/allianceserver/venv/auth/lib/python3.5/site-packages/django/db/utils.py", line 169, in ensure_defaults
raise ConnectionDoesNotExist("The connection %s doesn't exist" % alias)
django.db.utils.ConnectionDoesNotExist: The connection market doesn't exist
[30/Apr/2018 19:46:05] ERROR [django.request:118] Internal Server Error: /discourse/sso
Traceback (most recent call last):
File "/home/allianceserver/venv/auth/lib/python3.5/site-packages/celery/utils/collections.py", line 130, in __getattr__
return self[k]
File "/home/allianceserver/venv/auth/lib/python3.5/site-packages/celery/utils/collections.py", line 436, in __getitem__
return self.__missing__(key)
File "/home/allianceserver/venv/auth/lib/python3.5/site-packages/celery/utils/collections.py", line 269, in __missing__
raise KeyError(key)
KeyError: 'ONCE'