Tutor E-Commerce: Server error

Thanks for response. Even after running the above, still getting error in log:

docker compose -f /home/openedx/.local/share/tutor/env/local/docker-compose.yml -f /home/openedx/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local logs --follow --tail 0 ecommerce
ecommerce-1  | 2024-07-11 01:58:40,188 ERROR 7 [django.request] /openedx/venv/lib/python3.12/site-packages/django/utils/log.py:224 - Internal Server Error: /complete/edx-oauth2/
ecommerce-1  | Traceback (most recent call last):
ecommerce-1  |   File "/openedx/venv/lib/python3.12/site-packages/urllib3/connection.py", line 174, in _new_conn
ecommerce-1  |     conn = connection.create_connection(
ecommerce-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ecommerce-1  |   File "/openedx/venv/lib/python3.12/site-packages/urllib3/util/connection.py", line 95, in create_connection
ecommerce-1  |     raise err
ecommerce-1  |   File "/openedx/venv/lib/python3.12/site-packages/urllib3/util/connection.py", line 85, in create_connection
ecommerce-1  |     sock.connect(sa)
ecommerce-1  | ConnectionRefusedError: [Errno 111] Connection refused
ecommerce-1  |
ecommerce-1  | During handling of the above exception, another exception occurred:
ecommerce-1  |
ecommerce-1  | Traceback (most recent call last):
ecommerce-1  |   File "/openedx/venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 715, in urlopen
ecommerce-1  |     httplib_response = self._make_request(
ecommerce-1  |                        ^^^^^^^^^^^^^^^^^^^
ecommerce-1  |   File "/openedx/venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 404, in _make_request
ecommerce-1  |     self._validate_conn(conn)
ecommerce-1  |   File "/openedx/venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 1058, in _validate_conn
ecommerce-1  |     conn.connect()
ecommerce-1  |   File "/openedx/venv/lib/python3.12/site-packages/urllib3/connection.py", line 363, in connect
ecommerce-1  |     self.sock = conn = self._new_conn()
ecommerce-1  |                        ^^^^^^^^^^^^^^^^
ecommerce-1  |   File "/openedx/venv/lib/python3.12/site-packages/urllib3/connection.py", line 186, in _new_conn
ecommerce-1  |     raise NewConnectionError(
ecommerce-1  | urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x788c0b0c2240>: Failed to establish a new connection: [Errno 111] Connection refused
ecommerce-1  |
ecommerce-1  | During handling of the above exception, another exception occurred:
ecommerce-1  |
ecommerce-1  | Traceback (most recent call last):
ecommerce-1  |   File "/openedx/venv/lib/python3.12/site-packages/requests/adapters.py", line 486, in send
ecommerce-1  |     resp = conn.urlopen(
ecommerce-1  |            ^^^^^^^^^^^^^
ecommerce-1  |   File "/openedx/venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 799, in urlopen
ecommerce-1  |     retries = retries.increment(
ecommerce-1  |               ^^^^^^^^^^^^^^^^^^
ecommerce-1  |   File "/openedx/venv/lib/python3.12/site-packages/urllib3/util/retry.py", line 592, in increment
ecommerce-1  |     raise MaxRetryError(_pool, url, error or ResponseError(cause))
ecommerce-1  | urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='my.host.name', port=443): Max retries exceeded with url: /oauth2/access_token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x788c0b0c2240>: Failed to establish a new connection: [Errno 111] Connection refused'))
ecommerce-1  |
ecommerce-1  | During handling of the above exception, another exception occurred:
ecommerce-1  |
ecommerce-1  | Traceback (most recent call last):
ecommerce-1  |   File "/openedx/venv/lib/python3.12/site-packages/social_core/backends/base.py", line 243, in request
ecommerce-1  |     response = request(method, url, *args, **kwargs)
ecommerce-1  |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ecommerce-1  |   File "/openedx/venv/lib/python3.12/site-packages/requests/api.py", line 59, in request
ecommerce-1  |     return session.request(method=method, url=url, **kwargs)
ecommerce-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ecommerce-1  |   File "/openedx/venv/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
ecommerce-1  |     resp = self.send(prep, **send_kwargs)
ecommerce-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ecommerce-1  |   File "/openedx/venv/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
ecommerce-1  |     r = adapter.send(request, **kwargs)
ecommerce-1  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ecommerce-1  |   File "/openedx/venv/lib/python3.12/site-packages/requests/adapters.py", line 519, in send
ecommerce-1  |     raise ConnectionError(e, request=request)

tutor version 18.1.1

tutor plugins list
NAME STATUS VERSION
android installed 18.0.0
cairn :white_check_mark: enabled 18.0.0
credentials installed 18.0.0
discovery :white_check_mark: enabled 18.0.0
ecommerce :white_check_mark: enabled 18.0.0
forum :white_check_mark: enabled 18.0.0
indigo :white_check_mark: enabled 18.0.0
jupyter installed 18.0.0
mfe :white_check_mark: enabled 18.0.0
minio :white_check_mark: enabled 18.0.0
myecommerce :white_check_mark: enabled /home/openedx/.local/share/tutor-plugins/myecommerce.py
notes :white_check_mark: enabled 18.0.0
webui :white_check_mark: enabled 18.0.0
xqueue installed 18.0.0

I’ve noticed the URL is getting this redirect at the end: https://my.host.name/complete/edx-oauth2/?redirect_state=OCrC…
see also [10443]