← Back: Documentation Overview
If running the project in Docker, many issues are solved by running a docker system prune along with docker compose build. This will help i.e. when new dependencies need to be installed on the project.
If you find something that is not listed, please add it to this document!
If you are having problems with seeding the database there is usually one single reason; your current local database is out of date. You can solve it by deleting the current database, then seeding again.
Delete volumes:
docker compose down --volumesBuild, migrate and seed:
docker compose up -d --build
docker compose exec backend bash
migrate
seedexec /app/entrypoint.sh: no such file or directory
Make sure /backend/entrypoint.sh has End of Line sequence set to LF (Happens when running on windows).
Sometimes VScode will lie, so you can double check by running the command below, and checking if any of the lines end in "^M". If they do, the file still has CRLF as the line ending.
cat -v <filename>To fix this, you can force change the line ending to ´LF´:
dos2unix <filename>
## Docker daemon not running
### Error message:
Cannot connect to the Docker daemon at ../../.../default/docker.sock. Is the docker daemon running?
### Fix:
Make sure docker desktop is running (Windows) or run `colima start` (or start Docker Desktop) on Mac.