• Members 2 posts
    July 31, 2020, 5:58 a.m.

    Hi.
    Can anyone help me with this?

    ConnectionError at /sso/client/
    HTTPConnectionPool(host='127.0.0.1', port=8000): Max retries exceeded with url: /server/request-token/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f48120a7f90>: Failed to establish a new connection: [Errno 111] Connection refused'))
    
    Traceback:
    
    File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py" in _new_conn
      160.                 (self._dns_host, self.port), self.timeout, **extra_kw
    
    File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py" in create_connection
      84.         raise err
    
    File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py" in create_connection
      74.             sock.connect(sa)
    
    During handling of the above exception ([Errno 111] Connection refused), another exception occurred:
    
    File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py" in urlopen
      677.                 chunked=chunked,
    
    File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py" in _make_request
      392.             conn.request(method, url, **httplib_request_kw)
    
    File "/usr/local/lib/python3.7/http/client.py" in request
      1262.         self._send_request(method, url, body, headers, encode_chunked)
    
    File "/usr/local/lib/python3.7/http/client.py" in _send_request
      1308.         self.endheaders(body, encode_chunked=encode_chunked)
    
    File "/usr/local/lib/python3.7/http/client.py" in endheaders
      1257.         self._send_output(message_body, encode_chunked=encode_chunked)
    
    File "/usr/local/lib/python3.7/http/client.py" in _send_output
      1028.         self.send(msg)
    
    File "/usr/local/lib/python3.7/http/client.py" in send
      968.                 self.connect()
    
    File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py" in connect
      187.         conn = self._new_conn()
    
    File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py" in _new_conn
      172.                 self, "Failed to establish a new connection: %s" % e
    
    During handling of the above exception (<urllib3.connection.HTTPConnection object at 0x7f48120a7f90>: Failed to establish a new connection: [Errno 111] Connection refused), another exception occurred:
    
    File "/usr/local/lib/python3.7/site-packages/requests/adapters.py" in send
      449.                     timeout=timeout
    
    File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py" in urlopen
      725.                 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
    
    File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py" in increment
      439.             raise MaxRetryError(_pool, url, error or ResponseError(cause))
    
    During handling of the above exception (HTTPConnectionPool(host='127.0.0.1', port=8000): Max retries exceeded with url: /server/request-token/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f48120a7f90>: Failed to establish a new connection: [Errno 111] Connection refused'))), another exception occurred:
    
    File "/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
      34.             response = get_response(request)
    
    File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
      115.                 response = self.process_exception_by_middleware(e, request)
    
    File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
      113.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)
    
    File "/usr/local/lib/python3.7/site-packages/django/views/generic/base.py" in view
      71.             return self.dispatch(request, *args, **kwargs)
    
    File "/usr/local/lib/python3.7/site-packages/django/views/generic/base.py" in dispatch
      97.         return handler(request, *args, **kwargs)
    
    File "/srv/misago/misago/sso/client.py" in get
      31.         return super().get(request)
    
    File "/usr/local/lib/python3.7/site-packages/simple_sso/sso_client/client.py" in get
      31.         request_token = self.client.get_request_token(redirect_to)
    
    File "/usr/local/lib/python3.7/site-packages/simple_sso/sso_client/client.py" in get_request_token
      98.         return self.consumer.consume(url, {'redirect_to': redirect_to})['request_token']
    
    File "/usr/local/lib/python3.7/site-packages/webservices/models.py" in consume
      55.         body = self.send_request(url, data=signed_data, headers=headers)
    
    File "/usr/local/lib/python3.7/site-packages/webservices/sync.py" in send_request
      12.         response = self.session.post(url, data=data, headers=headers)
    
    File "/usr/local/lib/python3.7/site-packages/requests/sessions.py" in post
      578.         return self.request('POST', url, data=data, json=json, **kwargs)
    
    File "/usr/local/lib/python3.7/site-packages/requests/sessions.py" in request
      530.         resp = self.send(prep, **send_kwargs)
    
    File "/usr/local/lib/python3.7/site-packages/requests/sessions.py" in send
      643.         r = adapter.send(request, **kwargs)
    
    File "/usr/local/lib/python3.7/site-packages/requests/adapters.py" in send
      516.             raise ConnectionError(e, request=request)
    
    Exception Type: ConnectionError at /sso/client/
    Exception Value: HTTPConnectionPool(host='127.0.0.1', port=8000): Max retries exceeded with url: /server/request-token/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f48120a7f90>: Failed to establish a new connection: [Errno 111] Connection refused'))
  • Aug. 3, 2020, 7:06 p.m.

    Your misago instance can't connect to authentication server. Misago is trying to connect to http://127.0.0.1:8000/server for authentication but "connection refused". Do you know how to configure your server authentication for Single Sign On (SSO)?