Hi @FarazM,
Thanks for your answer. Yes, I had run all the comands mentioned in the readme:
tutor local run discovery ./manage.py refresh_course_metadata --partner_code=openedx
tutor local run discovery ./manage.py update_index --disable-change-limit
tutor local run lms ./manage.py lms create_catalog_integrations --enabled \
--internal_api_url="" \
--service_username=lms_catalog_service_user
After I ran:
tutor local run lms ./manage.py lms create_catalog_integrations --enabled \
--internal_api_url="" \
--service_username=lms_catalog_service_user
I got:
(base) macbookpro@macbooks-mbp-2 ~ % tutor local run lms ./manage.py lms create_catalog_integrations --enabled \
--internal_api_url="" \
--service_username=lms_catalog_service_user
docker-compose -f '/Users/macbookpro/Library/Application Support/tutor/env/local/docker-compose.yml' -f '/Users/macbookpro/Library/Application Support/tutor/env/local/docker-compose.prod.yml' -f '/Users/macbookpro/Library/Application Support/tutor/env/local/docker-compose.tmp.yml' -f '/Users/macbookpro/Library/Application Support/tutor/env/local/docker-compose.override.yml' --project-name tutor_local run --rm lms ./manage.py lms create_catalog_integrations --enabled --internal_api_url= --service_username=lms_catalog_service_user
[+] Running 10/0
✔ Container tutor_local-lms-permissions-1 Created 0.0s
✔ Container tutor_local-redis-permissions-1 Created 0.0s
✔ Container tutor_local-smtp-1 Running 0.0s
✔ Container tutor_local-mongodb-permissions-1 Created 0.0s
✔ Container tutor_local-mysql-1 Running 0.0s
✔ Container tutor_local-redis-1 Running 0.0s
✔ Container tutor_local-elasticsearch-permissions-1 Created 0.0s
✔ Container tutor_local-mongodb-1 Running 0.0s
✔ Container tutor_local-elasticsearch-1 Running 0.0s
✔ Container tutor_local-forum-1 Running 0.0s
[+] Running 4/4
✔ Container tutor_local-mongodb-permissions-1 Started 1.4s
✔ Container tutor_local-redis-permissions-1 Started 1.3s
✔ Container tutor_local-elasticsearch-permissions-1 Started 1.4s
✔ Container tutor_local-lms-permissions-1 Started 1.4s
2023-06-05 16:06:22,111 WARNING 1 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/boto/plugin.py:40: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
2023-06-05 16:06:22,250 WARNING 1 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/botocore/vendored/requests/packages/urllib3/_collections.py:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
from collections import Mapping, MutableMapping
2023-06-05 16:06:24,094 WARNING 1 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/edx-platform/openedx/core/types/admin.py:49: DeprecationWarning: Django 3.2+ available: the _admin_display method and the AdminMethodclass should be removed from openedx.core.types
warnings.warn(
System check identified some issues:
WARNINGS:
?: (2_0.W001) Your URL pattern 'edx_name_affirmation/v1/verified_name/(?P<verified_name_id>\d+)$' [name='verified_name_by_id'] has a route that contains '(?P<', begins with a '^', or ends with a '$'. This was likely an oversight when migrating to django.urls.path().
consent.DataSharingConsent.granted: (fields.W903) NullBooleanField is deprecated. Support for it (except in historical migrations) will be removed in Django 4.0.
HINT: Use BooleanField(null=True) instead.
consent.HistoricalDataSharingConsent.granted: (fields.W903) NullBooleanField is deprecated. Support for it (except in historical migrations) will be removed in Django 4.0.
HINT: Use BooleanField(null=True) instead.
Successfully created CatalogIntegration enabled=True url= service_username=lms_catalog_service_user
Then I tried to cache the programs:
(base) macbookpro@macbooks-mbp-2 ~ % tutor local run lms ./manage.py lms cache_programs
docker-compose -f '/Users/macbookpro/Library/Application Support/tutor/env/local/docker-compose.yml' -f '/Users/macbookpro/Library/Application Support/tutor/env/local/docker-compose.prod.yml' -f '/Users/macbookpro/Library/Application Support/tutor/env/local/docker-compose.tmp.yml' -f '/Users/macbookpro/Library/Application Support/tutor/env/local/docker-compose.override.yml' --project-name tutor_local run --rm lms ./manage.py lms cache_programs
[+] Running 10/0
✔ Container tutor_local-mysql-1 Running 0.0s
✔ Container tutor_local-mongodb-permissions-1 Created 0.0s
✔ Container tutor_local-elasticsearch-permissions-1 Created 0.0s
✔ Container tutor_local-redis-permissions-1 Created 0.0s
✔ Container tutor_local-smtp-1 Running 0.0s
✔ Container tutor_local-lms-permissions-1 Created 0.0s
✔ Container tutor_local-redis-1 Running 0.0s
✔ Container tutor_local-elasticsearch-1 Running 0.0s
✔ Container tutor_local-mongodb-1 Running 0.0s
✔ Container tutor_local-forum-1 Running 0.0s
[+] Running 4/4
✔ Container tutor_local-lms-permissions-1 Started 1.9s
✔ Container tutor_local-mongodb-permissions-1 Started 2.0s
✔ Container tutor_local-redis-permissions-1 Started 1.9s
✔ Container tutor_local-elasticsearch-permissions-1 Started 1.9s
2023-06-05 16:02:12,676 WARNING 1 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/boto/plugin.py:40: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
2023-06-05 16:02:12,830 WARNING 1 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/botocore/vendored/requests/packages/urllib3/_collections.py:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
from collections import Mapping, MutableMapping
2023-06-05 16:02:16,278 WARNING 1 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/edx-platform/openedx/core/types/admin.py:49: DeprecationWarning: Django 3.2+ available: the _admin_display method and the AdminMethodclass should be removed from openedx.core.types
warnings.warn(
System check identified some issues:
WARNINGS:
?: (2_0.W001) Your URL pattern 'edx_name_affirmation/v1/verified_name/(?P<verified_name_id>\d+)$' [name='verified_name_by_id'] has a route that contains '(?P<', begins with a '^', or ends with a '$'. This was likely an oversight when migrating to django.urls.path().
consent.DataSharingConsent.granted: (fields.W903) NullBooleanField is deprecated. Support for it (except in historical migrations) will be removed in Django 4.0.
HINT: Use BooleanField(null=True) instead.
consent.HistoricalDataSharingConsent.granted: (fields.W903) NullBooleanField is deprecated. Support for it (except in historical migrations) will be removed in Django 4.0.
HINT: Use BooleanField(null=True) instead.
2023-06-05 16:02:27,229 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:51 - populate-multitenant-programs switch is ON
2023-06-05 16:02:27,277 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:74 - Skipping site example.com. No configuration.
2023-06-05 16:02:27,318 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:150 - Requesting program UUIDs for local.overhang.io.
2023-06-05 16:02:27,473 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:158 - Received 1 UUIDs for site local.overhang.io
2023-06-05 16:02:27,477 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:170 - Requesting details for program b4063d9a-3da8-4163-97de-79b592997d78.
2023-06-05 16:02:28,209 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:190 - Requesting pathways for local.overhang.io.
2023-06-05 16:02:28,243 ERROR 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:201 - Failed to retrieve pathways for site: local.overhang.io.
Traceback (most recent call last):
File "/openedx/edx-platform/openedx/core/djangoapps/catalog/management/commands/cache_programs.py", line 196, in get_pathways
response.raise_for_status()
File "/openedx/venv/lib/python3.8/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: http://discovery.local.overhang.io/api/v1/pathways/?exclude_utm=1&page=1
2023-06-05 16:02:28,261 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:206 - Received 0 pathways for site local.overhang.io
2023-06-05 16:02:28,263 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:103 - Caching UUIDs for 1 programs for site local.overhang.io.
2023-06-05 16:02:28,266 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:110 - Caching ids for 0 pathways for site local.overhang.io.
2023-06-05 16:02:28,281 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:150 - Requesting program UUIDs for local.overhang.io:8000.
2023-06-05 16:02:28,287 ERROR 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:155 - Failed to retrieve program UUIDs for site: local.overhang.io:8000.
Traceback (most recent call last):
File "/openedx/venv/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/openedx/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/openedx/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/openedx/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/openedx/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/openedx/venv/lib/python3.8/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/opt/pyenv/versions/3.8.12/lib/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/opt/pyenv/versions/3.8.12/lib/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/opt/pyenv/versions/3.8.12/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/opt/pyenv/versions/3.8.12/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/opt/pyenv/versions/3.8.12/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/openedx/venv/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/openedx/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f150fde7c70>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/openedx/venv/lib/python3.8/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/openedx/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 787, in urlopen
retries = retries.increment(
File "/openedx/venv/lib/python3.8/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='discovery.local.overhang.io', port=8381): Max retries exceeded with url: /api/v1/programs/?exclude_utm=1&status=active&status=retired&uuids_only=1 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f150fde7c70>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/openedx/edx-platform/openedx/core/djangoapps/catalog/management/commands/cache_programs.py", line 151, in get_site_program_uuids
response = client.get(api_url, params=querystring)
File "/openedx/venv/lib/python3.8/site-packages/requests/sessions.py", line 600, in get
return self.request("GET", url, **kwargs)
File "/openedx/venv/lib/python3.8/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/openedx/venv/lib/python3.8/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/openedx/venv/lib/python3.8/site-packages/requests/adapters.py", line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='discovery.local.overhang.io', port=8381): Max retries exceeded with url: /api/v1/programs/?exclude_utm=1&status=active&status=retired&uuids_only=1 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f150fde7c70>: Failed to establish a new connection: [Errno 111] Connection refused'))
2023-06-05 16:02:28,303 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:158 - Received 0 UUIDs for site local.overhang.io:8000
2023-06-05 16:02:28,306 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:190 - Requesting pathways for local.overhang.io:8000.
2023-06-05 16:02:28,312 ERROR 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:201 - Failed to retrieve pathways for site: local.overhang.io:8000.
Traceback (most recent call last):
File "/openedx/venv/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/openedx/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/openedx/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/openedx/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/openedx/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/openedx/venv/lib/python3.8/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/opt/pyenv/versions/3.8.12/lib/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/opt/pyenv/versions/3.8.12/lib/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/opt/pyenv/versions/3.8.12/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/opt/pyenv/versions/3.8.12/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/opt/pyenv/versions/3.8.12/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/openedx/venv/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/openedx/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f15101b6430>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/openedx/venv/lib/python3.8/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/openedx/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 787, in urlopen
retries = retries.increment(
File "/openedx/venv/lib/python3.8/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='discovery.local.overhang.io', port=8381): Max retries exceeded with url: /api/v1/pathways/?exclude_utm=1&page=1 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f15101b6430>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/openedx/edx-platform/openedx/core/djangoapps/catalog/management/commands/cache_programs.py", line 195, in get_pathways
response = client.get(api_url, params=dict(exclude_utm=1, page=next_page))
File "/openedx/venv/lib/python3.8/site-packages/requests/sessions.py", line 600, in get
return self.request("GET", url, **kwargs)
File "/openedx/venv/lib/python3.8/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/openedx/venv/lib/python3.8/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/openedx/venv/lib/python3.8/site-packages/requests/adapters.py", line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='discovery.local.overhang.io', port=8381): Max retries exceeded with url: /api/v1/pathways/?exclude_utm=1&page=1 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f15101b6430>: Failed to establish a new connection: [Errno 111] Connection refused'))
2023-06-05 16:02:28,318 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:206 - Received 0 pathways for site local.overhang.io:8000
2023-06-05 16:02:28,321 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:103 - Caching UUIDs for 0 programs for site local.overhang.io:8000.
2023-06-05 16:02:28,326 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:110 - Caching ids for 0 pathways for site local.overhang.io:8000.
2023-06-05 16:02:28,333 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:116 - Caching details for 1 programs.
2023-06-05 16:02:28,342 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:119 - Caching details for 0 pathways.
2023-06-05 16:02:28,347 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:122 - Caching programs uuids for 0 courses.
2023-06-05 16:02:28,350 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:125 - Caching programs uuids for 1 catalog courses.
2023-06-05 16:02:28,357 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:128 - Caching program UUIDs by 1 program types.
2023-06-05 16:02:28,363 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:131 - Caching program UUIDs by 1 program type slugs.
2023-06-05 16:02:28,368 INFO 1 [openedx.core.djangoapps.catalog.management.commands.cache_programs] [user None] [ip None] cache_programs.py:134 - Caching programs uuids for 0 organizations
Error: Command failed with status 1: docker-compose -f /Users/macbookpro/Library/Application Support/tutor/env/local/docker-compose.yml -f /Users/macbookpro/Library/Application Support/tutor/env/local/docker-compose.prod.yml -f /Users/macbookpro/Library/Application Support/tutor/env/local/docker-compose.tmp.yml -f /Users/macbookpro/Library/Application Support/tutor/env/local/docker-compose.override.yml --project-name tutor_local run --rm lms ./manage.py lms cache_programs
And nothing appeared in http://local.overhang.io