Errors encountered while setting up dev environments
Mac Error
@Mena Hassan & @Cindy Nguyen put your errors here!
When navigating to http://localhost:18000/ and encountering OSError
Potential Fix:
Making sure docker state is completely fresh
make dev.stop
make dev.remove-containers
docker system prune -a
picked Ydocker images -a
(to see if they're all gone)docker ps -a
(to see if all containers are gone)docker volume rm $(docker volume ls)
(to remove all volumes)docker volume ls
(to see if all volumes are gone)
At this point docker should be in a completely fresh state!
When running
make requirements
This error occurs
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
make: * [requirements] Error 1
To fix:
Pull up the workspace in your code editor and search for PyYAML. From there, change the version to 5.3.1 and save all files.
When navigating to http://localhost:18000/
WebpackLoaderTimeoutError
and OSError
Request Method: GET
Request URL: http://localhost:18000/
Django Version: 3.2.20
Exception Type: WebpackLoaderTimeoutError
Exception Value:
Timed Out. Bundle `commons` took more than 5 seconds to compile.
Exception Location: /edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/webpack_loader/loader.py, line 74, in get_bundle
Python Executable: /edx/app/edxapp/venvs/edxapp/bin/python
Python Version: 3.8.10
Python Path:
['/edx/app/edxapp/edx-platform',
'/edx/app/edxapp/edx-platform',
'/usr/lib/python38.zip',
'/usr/lib/python3.8',
'/usr/lib/python3.8/lib-dynload',
'/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages',
'/edx/app/edxapp/edx-platform']
Potential fix:
Rerun all of the following commands
make requirements
SHALLOW_CLONE=1 make dev.clone.https
make dev.pull.large-and-slow
make dev.provision
makedev.up.large-and-slow
Error when navigating to the login or registration pages:
registration: http://localhost:18000/register?next=%2F
We believe an old JavaScript file was being stored/pulled from and that causes this error
Fix:
While on the login page, do a hard refresh (cmd + shift + r)
This clears cache