# Tutor E-Commerce: Server error

**URL:** <https://discuss.openedx.org/t/tutor-e-commerce-server-error/10608>\
**Category:** Tutor Help\
**Tags:** tutor, tutor-plugin\
**Created:** [July 5, 2023, 7:02pm UTC](https://discuss.openedx.org/t/tutor-e-commerce-server-error/10608 "2023-07-05T19:02:12Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Ievgenii\_Vasiuk](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/ievgenii_vasiuk/32/7020_2.png) [@Ievgenii\_Vasiuk](https://discuss.openedx.org/u/Ievgenii_Vasiuk)\
**Post date:** [July 11, 2024, 1:52am UTC](https://discuss.openedx.org/t/tutor-e-commerce-server-error/10608/4 "2024-07-11T01:52:10Z")

</div>

> [@hinakhadim](#):
>
> run `tutor local do init --limit=ecommerce`. It will run all jobs/tasks necessary to run e-commerce smoothly.

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

```auto
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 ✅ enabled 18.0.0  
credentials installed 18.0.0  
discovery ✅ enabled 18.0.0  
ecommerce ✅ enabled 18.0.0  
forum ✅ enabled 18.0.0  
indigo ✅ enabled 18.0.0  
jupyter installed 18.0.0  
mfe ✅ enabled 18.0.0  
minio ✅ enabled 18.0.0  
myecommerce ✅ enabled /home/openedx/.local/share/tutor-plugins/myecommerce.py  
notes ✅ enabled 18.0.0  
webui ✅ 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…](https://my.host.name/complete/edx-oauth2/?redirect_state=OCrC%E2%80%A6)  
see also [[10443](https://discuss.openedx.org/t/how-to-config-stripe-payment-in-palm/10443/18)]

---

_[View the full topic](https://discuss.openedx.org/t/tutor-e-commerce-server-error/10608)._
