Closed Torstein-Eide closed 6 months ago
Have you tried allocating more RAM? It seems that the system is unable to render the page as required because there is not enough RAM
JavaScript heap out of memory
It was running unlimited.
currenly it looks like this, with 100MB in use:
$docker compose stats
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
af665bd080b4 immich_microservices 2.10% 250.7MiB / 2GiB 12.24% 540MB / 2.57GB 0B / 0B 24
ecfa9c5d2b9f immich_machine_learning 50.54% 200.8MiB / 2GiB 9.80% 8.43GB / 138MB 0B / 0B 7
da70fd4cb0b6 immich_server 0.17% 117.7MiB / 2GiB 5.75% 54.9MB / 240MB 0B / 0B 12
9725ad84f7cf immich_postgres 0.01% 424MiB / 2GiB 20.71% 3.15GB / 2.05GB 0B / 0B 20
75f96f41e1ad immich_redis 0.28% 45MiB / 2GiB 2.20% 584MB / 188MB 0B / 0B 5
It was running unlimited.
currently it looks like this, with 100MB in use:
$docker compose stats CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS af665bd080b4 immich_microservices 2.10% 250.7MiB / 2GiB 12.24% 540MB / 2.57GB 0B / 0B 24 ecfa9c5d2b9f immich_machine_learning 50.54% 200.8MiB / 2GiB 9.80% 8.43GB / 138MB 0B / 0B 7 da70fd4cb0b6 immich_server 0.17% 117.7MiB / 2GiB 5.75% 54.9MB / 240MB 0B / 0B 12 9725ad84f7cf immich_postgres 0.01% 424MiB / 2GiB 20.71% 3.15GB / 2.05GB 0B / 0B 20 75f96f41e1ad immich_redis 0.28% 45MiB / 2GiB 2.20% 584MB / 188MB 0B / 0B 5
Try to check the compose stats when you try enter to the repair page
I have a Javascript Heap OoM as well, but for a different problem: immich won't update the new Library files as the file count is already very big.
Currently, I found this Sof issue: https://stackoverflow.com/questions/38558989/node-js-heap-out-of-memory
where they suggest the use of the following:
NODE_OPTIONS="--max-old-space-size=4096"
I'm not sure I can just paste it right away in the docker-compose
file, but I'll try. If you have better suggestion to use that env variable, let me know.
Of course, in your case, having 2G as your upper limit may be the problem...
Also, I'm wondering if we could play with 'shm_size'. It was in my docker-compose.yml file when I had tried photoview
, but I'm not sure whether it's related to the tech stack choices or if this applies to any docker container that needs more memory...
The bug
The server crashes after admins try to open
../admin/repair
.Docker log:
The OS that Immich Server is running on
Docker, Ubuntu 20.04
Version of Immich Server
1.9.3
Version of Immich Mobile App
1.9.3
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
No response