Hi,
I have an issue after enabling the ecommerce plugin.
After I enabled the plugin, saved the config and do tutor local launch, I got “Server Error” while trying to access the webpage at: https://ecommerce.mylms…
Below is what I got when after running: tutor local logs --tail=100 ecommerce
Thanks
~$ tutor local logs --tail=100 ecommerce
docker compose -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.yml -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.prod.yml -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.override.yml --project-name tutor_local logs --tail 100 ecommerce
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_local-ecommerce-1 | return func(*args, **kwargs)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 259, in cursor
tutor_local-ecommerce-1 | return self._cursor()
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 235, in _cursor
tutor_local-ecommerce-1 | self.ensure_connection()
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_local-ecommerce-1 | return func(*args, **kwargs)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
tutor_local-ecommerce-1 | self.connect()
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
tutor_local-ecommerce-1 | raise dj_exc_value.with_traceback(traceback) from exc_value
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
tutor_local-ecommerce-1 | self.connect()
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_local-ecommerce-1 | return func(*args, **kwargs)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 200, in connect
tutor_local-ecommerce-1 | self.connection = self.get_new_connection(conn_params)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_local-ecommerce-1 | return func(*args, **kwargs)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 234, in get_new_connection
tutor_local-ecommerce-1 | connection = Database.connect(**conn_params)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/MySQLdb/__init__.py", line 84, in Connect
tutor_local-ecommerce-1 | return Connection(*args, **kwargs)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/MySQLdb/connections.py", line 179, in __init__
tutor_local-ecommerce-1 | super(Connection, self).__init__(*args, **kwargs2)
tutor_local-ecommerce-1 | django.db.utils.OperationalError: (1045, "Access denied for user 'ecommerce'@'172.18.0.14' (using password: YES)")
tutor_local-ecommerce-1 | 2023-07-05 17:20:22,580 ERROR 11 [django.request] /openedx/venv/lib/python3.8/site-packages/django/utils/log.py:224 - Internal Server Error: /favicon.ico
tutor_local-ecommerce-1 | Traceback (most recent call last):
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
tutor_local-ecommerce-1 | self.connect()
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_local-ecommerce-1 | return func(*args, **kwargs)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 200, in connect
tutor_local-ecommerce-1 | self.connection = self.get_new_connection(conn_params)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_local-ecommerce-1 | return func(*args, **kwargs)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 234, in get_new_connection
tutor_local-ecommerce-1 | connection = Database.connect(**conn_params)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/MySQLdb/__init__.py", line 84, in Connect
tutor_local-ecommerce-1 | return Connection(*args, **kwargs)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/MySQLdb/connections.py", line 179, in __init__
tutor_local-ecommerce-1 | super(Connection, self).__init__(*args, **kwargs2)
tutor_local-ecommerce-1 | MySQLdb._exceptions.OperationalError: (1045, "Access denied for user 'ecommerce'@'172.18.0.14' (using password: YES)")
tutor_local-ecommerce-1 |
tutor_local-ecommerce-1 | The above exception was the direct cause of the following exception:
tutor_local-ecommerce-1 |
tutor_local-ecommerce-1 | Traceback (most recent call last):
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
tutor_local-ecommerce-1 | response = get_response(request)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/utils/deprecation.py", line 116, in __call__
tutor_local-ecommerce-1 | response = self.process_request(request)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/contrib/sites/middleware.py", line 12, in process_request
tutor_local-ecommerce-1 | request.site = get_current_site(request)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/contrib/sites/shortcuts.py", line 13, in get_current_site
tutor_local-ecommerce-1 | return Site.objects.get_current(request)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django_sites_extensions/models.py", line 43, in patched_get_current
tutor_local-ecommerce-1 | return self._get_site_by_request(request) # pylint: disable=protected-access
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django_sites_extensions/models.py", line 95, in patched_get_site_by_request
tutor_local-ecommerce-1 | site = self.get(domain__iexact=host)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/models/manager.py", line 85, in manager_method
tutor_local-ecommerce-1 | return getattr(self.get_queryset(), name)(*args, **kwargs)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/models/query.py", line 431, in get
tutor_local-ecommerce-1 | num = len(clone)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/models/query.py", line 262, in __len__
tutor_local-ecommerce-1 | self._fetch_all()
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/models/query.py", line 1324, in _fetch_all
tutor_local-ecommerce-1 | self._result_cache = list(self._iterable_class(self))
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/models/query.py", line 51, in __iter__
tutor_local-ecommerce-1 | results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1173, in execute_sql
tutor_local-ecommerce-1 | cursor = self.connection.cursor()
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_local-ecommerce-1 | return func(*args, **kwargs)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 259, in cursor
tutor_local-ecommerce-1 | return self._cursor()
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 235, in _cursor
tutor_local-ecommerce-1 | self.ensure_connection()
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_local-ecommerce-1 | return func(*args, **kwargs)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
tutor_local-ecommerce-1 | self.connect()
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
tutor_local-ecommerce-1 | raise dj_exc_value.with_traceback(traceback) from exc_value
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
tutor_local-ecommerce-1 | self.connect()
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_local-ecommerce-1 | return func(*args, **kwargs)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 200, in connect
tutor_local-ecommerce-1 | self.connection = self.get_new_connection(conn_params)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_local-ecommerce-1 | return func(*args, **kwargs)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 234, in get_new_connection
tutor_local-ecommerce-1 | connection = Database.connect(**conn_params)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/MySQLdb/__init__.py", line 84, in Connect
tutor_local-ecommerce-1 | return Connection(*args, **kwargs)
tutor_local-ecommerce-1 | File "/openedx/venv/lib/python3.8/site-packages/MySQLdb/connections.py", line 179, in __init__
tutor_local-ecommerce-1 | super(Connection, self).__init__(*args, **kwargs2)
tutor_local-ecommerce-1 | django.db.utils.OperationalError: (1045, "Access denied for user 'ecommerce'@'172.18.0.14' (using password: YES)")
tutor_local-ecommerce-1 | [pid: 11|app: 0|req: 25/63] 172.18.0.4 () {58 vars in 2986 bytes} [Wed Jul 5 17:20:22 2023] GET /favicon.ico => generated 1924 bytes in 20 msecs (HTTP/1.1 500) 4 headers in 153 bytes (1 switches on core 0)