Issues with Code Road extension, collated posts

Like many others, I’ve been struggling with the local Docker setup for freeCodeCamp’s Relational Database course. After 3 days of troubleshooting, I finally found a reliable solution that works consistently.

My Setup:

  • Mac M1
  • Docker Desktop
  • No technical background (so I might be overdoing some steps, but this works for me!)

The Solution (11 Steps)

  1. Delete your user token from freeCodeCamp profile settings
  2. Comment out the token line in Dockerfile:

dockerfile

# ENV CODEROAD_WEBHOOK_TOKEN=your-token-here

Remember to save the file

  1. Run cache cleanup commands (see below)
  2. Quit Docker Desktop completely
  3. Restart Docker Desktop
  4. Build the container following freeCodeCamp instructions but skip token generation
  • Stop at step 3 (before CodeRoad setup)
  1. Run cache cleanup commands again
  2. Quit Docker Desktop
  3. Generate a new token in freeCodeCamp, add it to Dockerfile, and save
  4. Build the container again
  5. Complete the remaining freeCodeCamp setup steps

Cache Cleanup Commands

Run these in your terminal one by one:

bash

docker system prune -a --volumes
docker builder prune -a
rm -rf ~/.vscode/extensions/coderoad*
rm -rf ~/Library/Application\ Support/Code/User/workspaceStorage/

Success Indicators

:white_check_mark: When setup works correctly:

  • VS Code changes from black to ocean blue theme (not sure why this happens!)
  • Terminal prompt shows: camper: /project$

:cross_mark: When setup failed:

  • Terminal prompt shows: camper@097163d61364:/workspace/project$

Important Notes

  • I use my computer’s terminal, not VS Code’s integrated terminal (might be relevant)
  • Progress can be lost: I left the “Build a Kitty Ipsum Translator” tutorial half-finished overnight, and it stopped working the next morning. Had to repeat all steps and lost my progress.
  • This seems excessive but it’s the most reliable method I’ve found
  • I just ended the “Build a Kitty Ipsum Translator” tutorial and progress in my freeCodeCamp was correctly recorded and saved.

This solution has worked consistently for me. Hope it helps others facing similar Docker/CodeRoad issues!

4 Likes