Closed hlstwizard closed 11 months ago
After disable machine-learning and typesense
still get the same error
immich-microservices-67b658995c-nbc75 0/1 CrashLoopBackOff 6 (2m18s ago) 19m
Can you somehow set the environment for the microservices with the value NODE_OPTIONS=--max-old-space-size=8192
to increase the RAM limit of the container?
I had a similar issue on SCALE (the truechart chart for immich) I was not able to set the environment variable because of what I think is a bug. But in the community chart you might be able to do this. I also noticed that when I upgraded the server and the mobile app this issue went away for me. I think the mobile app was trying to sync the entire library and this was causing the node instance to crash.
Thanks for the reply and @alextran1502, immich is a great piece!
After some triage, I would suspect that the problem is probably migrating from a docke-compose deployment to a truenas scale (k3s) deployment. Because every time I restore the postgre database which is dumped from the docker-compose, this happens.
So I tried another way, I just start a fresh truenas instance and bulk upload a library using cli command. It somehow works, but immich would need to regenerate the thumbs and encoded video. That's somehow fine, too.
Out of memory exceptions are quite often caused by the library we used for reverse geocoding. In the next release we have completely reworked how reverse geocoding will function. We are replacing the old library with our own implementation that uses postgres for doing the reverse geocoding. This should result in much lower memory usage overall, and also should eliminate the microservices container running out of memory. We believe this was happening due to some issue with the logic in the old geocoding implementation which was not written by us. If you still continue to experience these issues after the next release (1.89.0) please open a new issue describing the problem. Cheers!
The bug
Micro service container keep crashing
The OS that Immich Server is running on
Truenas Scale
Version of Immich Server
v1.85.0
Version of Immich Mobile App
v.1.82.0
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
Error logs