[BUG] Immich Stops Working when using CLI #4771
Replies: 15 comments
-
Can you please post the logs of the server when the issue happens? How do you install and run Immich? |
Beta Was this translation helpful? Give feedback.
-
What is the resource do you allocate for Immich? |
Beta Was this translation helpful? Give feedback.
-
Win 11 pro( running inside a VM - sorry to mention before) |
Beta Was this translation helpful? Give feedback.
-
I found that the microservices (postgres,typesense,redist) stopped when I do these things. The service initially started but stops when uploading and and inside it shows error logs ( I reinstalled so logs got erased some). I installed docker in another drive and it fixed the issue. |
Beta Was this translation helpful? Give feedback.
-
This issue started happening again. This time I have the log reports.
|
Beta Was this translation helpful? Give feedback.
-
Is the server stopped working again, or your just cannot upload those files? Can you still access the web? |
Beta Was this translation helpful? Give feedback.
-
I can access the web interface. From that point nothing is uploading. |
Beta Was this translation helpful? Give feedback.
-
Everytime this occurs. 504 Gateway Time-out\r\n' +' nginx/1.25.0\r\n' + '\r\n' + '\r\n' }, isAxiosError: true, toJSON: [Function: toJSON] }, response: '\r\n' + '<title>504 Gateway Time-out</title>\r\n' + '\r\n' + ' 504 Gateway Time-out\r\n' +' nginx/1.25.0\r\n' + '\r\n' + '\r\n' } |
Beta Was this translation helpful? Give feedback.
-
Does this also happen when you upload a file through the web interface? Did it always crash on the first file or only when you upload multiple? Can you change the docker compose file t remove the restart: always lines and let the container stay off if it crashes, then verify which one crashed. |
Beta Was this translation helpful? Give feedback.
-
It crashes in the middle. I was uploading 10k+ media. |
Beta Was this translation helpful? Give feedback.
-
I got same issue with using cli upload tool. With docker compose setup.
|
Beta Was this translation helpful? Give feedback.
-
Happens for me as well (docker compose setup, running on a Windows desktop). I've found I can avoid the issue if I pause all jobs on the web interface and upload only a couple hundred assets at a time. I'm guessing the various jobs use up all the available connections on my network card, causing everything else to time out and spiral into an infinite loop. When this happens, Docker is unable to kill the immich_microservices and/or immich_server containers. I have to restart the machine to bring the server back up. In the error state, I get a 500 error from the webpage and this log repeats constantly in the immich_server container logs:
I also typically see errors indicating that one of the containers can't resolve |
Beta Was this translation helpful? Give feedback.
-
Update: Just saw this happen while I was not uploading any assets (none of the CLI/web upload/mobile app were running). The only jobs running were:
|
Beta Was this translation helpful? Give feedback.
-
I'M experiencing the same. I wanted to upload ~25k images and videos, and after a while, my VM gets unreliable. On the same VM, I have Uptime-Kuma running, and I get error messages from it like the following: "Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?" This happend never before. The VM is running on Proxmox on an Intel(R) Xeon(R) CPU E5-2680 v3 with 8 cores and 32GB RAM assigned to it. Here are some relevant logs from the docker stack:
Logs from the immich cli:
|
Beta Was this translation helpful? Give feedback.
-
I'm having this issue on windows without using the cli, just uploading images from mobile app. When It happens, the web interface starts throwing error 500 and I cannot stop the immich_server. The immich_server is full of repeated logs. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The bug
I recently discovered an issue that immich stops working almost completely (Functionality is broken).
When Using CLI (uploading), I have just go to the administration tab in immich server. Then suddenly the upload shows error 500 undefined. and my server suddenly went offline. I tried refreshing the page but it didnt work. complete reinstallation of immich is the only solution i have found. I tried this several time to check this can be replicated. You can replicate every time you do this.
The OS that Immich Server is running on
Windows 11 Pro
Version of Immich Server
1.63.2
Version of Immich Mobile App
Not applicable
Platform with the issue
Your docker-compose.yml content
Not Applicable.
Your .env content
Reproduction steps
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions