Local Development Troubleshooting
This page covers common problems new contributors run into when setting up OnTrack for the first time, along with simple fixes for each one.
Ruby Version Error (doubtfire-api)
OnTrack requires Ruby 3.1.0. If you have a different version, the backend won’t start.
Run these commands to switch to the right version:
rvm install 3.1.0rvm use 3.1.0ruby -vThe last command should print ruby 3.1.0. If RVM isn’t installed yet, follow the RVM install guide first.
Database Won’t Load (doubtfire-api)
Don’t run db:migrate on a fresh clone — it will fail. Use this instead:
bundle exec rails db:schema:loadRabbitMQ Error on Startup
If the API fails to connect on startup, you probably need to export these variables. They reset every time you open a new terminal:
export RABBITMQ_USERNAME=guestexport RABBITMQ_PASSWORD=guestTo make this permanent, add them to your ~/.bashrc:
echo 'export RABBITMQ_USERNAME=guest' >> ~/.bashrcecho 'export RABBITMQ_PASSWORD=guest' >> ~/.bashrcsource ~/.bashrcPort Already in Use
If a service won’t start because a port is taken, run this to find what’s using it:
lsof -i :3000Then kill it using the PID number shown:
kill -9 <PID>Default ports:
| Service | Port |
|---|---|
| doubtfire-api | 3000 |
| doubtfire-web | 4200 |
| doubtfire-astro | 4321 |
| PostgreSQL | 5432 |
| RabbitMQ | 5672 |
Docs Page Not Showing (doubtfire-astro)
Every Markdown file needs this at the very top or it won’t appear on the site:
---title: Your Page Titledescription: A short description.---Also make sure the file is inside src/content/docs/.
npm Install Failing (doubtfire-astro)
Try clearing the cache and reinstalling:
npm cache clean --forcenpm installDocker Won’t Start (doubtfire-deploy)
Make sure Docker Desktop is running first. Then check which service is failing:
docker compose logs doubtfire-apidocker compose logs doubtfire-webMost startup failures are caused by missing RabbitMQ variables — see above.
Still Stuck?
Post in the team channel with the full error message and someone will help you out.