Hey, I am trying to run openedx with tutor for local development. I was originally able to run it locally without any issues without mounting my local open edx directory. But I mounted local directory and since then tutor dev launch returns an error. The error is as follows:
ERR! code ERR_SOCKET_TIMEOUT
npm ERR! errno ERR_SOCKET_TIMEOUT
npm ERR! network Invalid response body while trying to fetch https://registry.npmjs.org/webpack: Socket timeout
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! /openedx/.npm/_logs/2023-11-25T16_27_07_503Z-debug-0.log
Error: Command failed with status 1: docker compose -f /Users/ahmed_zubair/Library/Application Support/tutor-nightly/env/local/docker-compose.yml -f /Users/ahmed_zubair/Library/Application Support/tutor-nightly/env/dev/docker-compose.yml --project-name tutor_nightly_dev -f /Users/ahmed_zubair/Library/Application Support/tutor-nightly/env/local/docker-compose.jobs.yml -f /Users/ahmed_zubair/Library/Application Support/tutor-nightly/env/dev/docker-compose.jobs.yml run --rm lms-job sh -e -c # When a new local copy of edx-platform is bind-mounted, certain build
# artifacts from the openedx image's edx-platform directory are lost.
# We regenerate them here.
if [ -f /openedx/edx-platform/bindmount-canary ] ; then
# If this file exists, then edx-platform has not been bind-mounted,
# so no build artifacts need to be regenerated.
echo "Using edx-platform from image (not bind-mount)."
echo "No extra setup is required."
exit
fi
echo "Performing additional setup for bind-mounted edx-platform."
set -x # Echo out executed lines
# Regenerate Open_edX.egg-info
pip install -e .
# Regenerate node_modules
npm clean-install
# Regenerate static assets.
openedx-assets build --env=dev
set -x
echo "Done setting up bind-mounted edx-platform."
So far I have upgraded npm, increased fetch-retry-mintimeout and still it is giving the same error. Any leads on how this can be resolved?