I'm trying to install immich for the first time on Windows 10 via Docker. When I start the containers up, everything shows green for a few seconds then the immich_server container goes orange and restarts. In the Log I see Error: Cannot find module '@nestjs/core'. I've tried deleting everything, redownloading the docker-compose.yml and .env files, and building it all again from Docker with the same results. If I run just docker compose up from terminal I see the same error as I do in the Docker logs. Note I've followed these instructions and changed nothing in the yml or env files - https://immich.app/docs/install/docker-compose/
#New Install Throwing @nestjs/core Error
1 messages · Page 1 of 1 (latest)
:wave: Hey @neon fjord,
Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich
.
References
- Container Logs:
docker compose logsdocs - Container Status:
docker compose psdocs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy
Checklist
- :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time).
- :ballot_box_with_check: I have read applicable release notes.
- :ballot_box_with_check: I have reviewed the FAQs for known issues.
- :ballot_box_with_check: I have reviewed Github for known issues.
- :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy).
- :ballot_box_with_check: I have uploaded the relevant logs, docker compose, and .env files, making sure to use code formatting.
- :ballot_box_with_check: I have tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable
(an item can be marked as "complete" by reacting with the appropriate number)
If this ticket can be closed you can use the /close command, and re-open it later if needed.
Can you try docker compose pull again?
Any ideas? Anything else I can provide to help triage? Thank you!
WSL2 backend? Or HyperV?
Try also putting the DB volume in a docker volume
@finite magnet WSL2, and I confirmed WSL2 is successfully installed and I can run Ubuntu. Do you have an example docker compose yml for running Immich database in a Docker Volume? Reading up on it but this is my first time using Docker so any Immich specific info would be awesome. Thanks!
Sure
Default is:
database:
...
volumes:
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
...
volumes:
model-cache:
But using a docker volume is:
database:
...
volumes:
- pgdata:/var/lib/postgresql/data
...
volumes:
model-cache:
pgdata:
You could also keep the DB_DATA_LOCATION var and set it to pgdata (notice no ./ in this version)
Note that should you ever perform docker compose down -v this will DELETE your database FOR GOOD
@finite magnet Thanks for the example that was great! I tried that out (yml attached) and still have the same issue 😦
Hi @neon fjord if you're still having issues, you could try wiping the local images first docker compose down -v --rmi all and then docker compose up -d again.
This will wipe everything except the yml file and the env. file.
I’ll give that a shot and report back! Thank you
Did the full docker compose down and up and no dice. Decided to start again from scratch so I deleted all of the Immich containers, fully uninstalled Docker Desktop, and gave it another shot with everything default. I seem to now have a stable instance of immich_server! Thanks for the help here, wish I could report back more info to help others but also just happy its working now 🙂