immich_server process errors

I keep getting these 2 errors when I run docker logs immich_server:
ERROR [ExceptionsHandler] Connection terminated due to connection timeout
ERROR [ExceptionsHandler] Connection terminated due to connection timeout
and
ERROR [ExpressAdapter] Premature close
ERROR [ExpressAdapter] Premature close
is this normal?
48 Replies
Alex Tran
Alex Tran2y ago
The latter is normal, the former is not
fOliveira
fOliveiraOP2y ago
what should I do to fix it then?
Alex Tran
Alex Tran2y ago
Do you have any problem with the instance usage?
fOliveira
fOliveiraOP2y ago
Sometimes when I bulk upload via the web it stops working and then I cant even kill the immich_server service It just gave me the former error again and I cant access the server anymore, Ill restart it But now I cant restart nor kill it Ill have to reboot the entire docker service
Alex Tran
Alex Tran2y ago
Ah I understand the issue when you bulk upload, the Immich server is likely hogged all resources of your server You can limit the CPU usage for the microservices and machine-learning container to avoid that issue
Alex Tran
Alex Tran2y ago
Here is the guide on how to do that https://www.baeldung.com/ops/docker-memory-limit
Baeldung on Ops
Setting Memory And CPU Limits In Docker | Baeldung on Ops
A quick and practical guide to setting memory/CPU limits in Docker.
fOliveira
fOliveiraOP2y ago
that isnt the issue limits arent an issue here
Alex Tran
Alex Tran2y ago
Can you elaborate why it isn't the issue?
fOliveira
fOliveiraOP2y ago
i started bulk uploading and Im monitoring it realtime
No description
fOliveira
fOliveiraOP2y ago
it doesnt go up the 40% cpu and 500mib memory but the error still appears
Alex Tran
Alex Tran2y ago
Can you show the server and microservices logs?
fOliveira
fOliveiraOP2y ago
No description
fOliveira
fOliveiraOP2y ago
this was the error it gave before, now its running smoothly
No description
Alex Tran
Alex Tran2y ago
Ah this is the database timeout
fOliveira
fOliveiraOP2y ago
cant say the same of microservices
No description
Alex Tran
Alex Tran2y ago
this is probably related to disk i/o
fOliveira
fOliveiraOP2y ago
this is exactly now
Alex Tran
Alex Tran2y ago
Hmm what is your machine spec?
fOliveira
fOliveiraOP2y ago
ubuntu 22 (latest), arm, 24gib ram 4 vCPU but the upload is still running
fOliveira
fOliveiraOP2y ago
tried the cli this time instead of web
No description
Alex Tran
Alex Tran2y ago
ok, let me know how it goes, as long as you don't see broken thumbnails after all the jobs have finished, you should be good
fOliveira
fOliveiraOP2y ago
alr thanks one last thing using the app it says the server is not reachable
Alex Tran
Alex Tran2y ago
Are you accessing over local IP or DNS?
fOliveira
fOliveiraOP2y ago
same with the web weird but its uploading
Alex Tran
Alex Tran2y ago
hmm is the load still OK for the CPUs?
fOliveira
fOliveiraOP2y ago
its going up to 105% but its fine
No description
fOliveira
fOliveiraOP2y ago
total is 400%
fOliveira
fOliveiraOP2y ago
Hey, the mobile app isnt loading my cloud assets @Alex. Here's the log
No description
Alex Tran
Alex Tran2y ago
Is your mobile app on the latest version?
fOliveira
fOliveiraOP2y ago
Yes, it is Hey @Alex I found the issue I was installing the latest apk (1.82.1) instead of the playstore distributed version(1.82.0)
Alex Tran
Alex Tran2y ago
hurraay! Let's fix it, what is it?
fOliveira
fOliveiraOP2y ago
I went back a few commits and built the apk of the 1.82.0 version and installed it, and it worked The issue seems to be somewhere in the new verision of the code of the app
Alex Tran
Alex Tran2y ago
yeah there are some more stuff on the main branch that is not compatible with the current release build
fOliveira
fOliveiraOP2y ago
I'm not flutter expert, my area is web, but it has something to do with the get assets service Well, it works now, so yeah all good
Alex Tran
Alex Tran2y ago
we have additional things in the payload that is not yet release so it causes the incompatibility
fOliveira
fOliveiraOP2y ago
(I'm changing the layout of the web and the app, that's why I'm using the code from the main branch and building it myself)
Alex Tran
Alex Tran2y ago
is this for personal usage?
fOliveira
fOliveiraOP2y ago
Yes, it is
Alex Tran
Alex Tran2y ago
okay, then you are planning to keep up with the changes from upstream I assume?
fOliveira
fOliveiraOP2y ago
when and if I have time to update it, yes But thats not my primary need The need was an app that could work as samsung gallery or google photos (with face recognition and search functionalities) but that I could use the files I have in my onedrive Because microsoft doesnt have any similar app That's the main reason why I am using immich And let me tell you its really well built @Alex could you answer me one more question?: when bulk uploading using the cli, does it skip the duplicates?
Alex Tran
Alex Tran2y ago
yes it does if it is uploaded from the same client ah to better answer your question, it doesn't skip duplicated if the file name is different it will upload the duplicate and the server will reject it
fOliveira
fOliveiraOP2y ago
Yep, got it Thanks
Alex Tran
Alex Tran2y ago
yeah since the client is stateless we don't have anything to keep track of duplicated upload. In the future we will use client side hashing to check for duplication before upload to save some bandwidth/time and resources
fOliveira
fOliveiraOP2y ago
yeah, sounds like a great idea I would suggest it myself
Alex Tran
Alex Tran2y ago
it is technically available on the new cli tool in the main repo but not release yet
fOliveira
fOliveiraOP2y ago
👍 Is it possible to migrate the upload paths? for instance, my current path is /home/ubuntu/mnt/onedrive/Pictures/immich. Imagine that in 3 months I reach full capacity of my onedrive cloud and I have to migrate everything to another cloud. The new path is: /home/ubuntu/mnt/onedrive2/Pictures/immich. Do I have to copy the files from the previous path? And how do I fully migrate it? @Alex
Alex Tran
Alex Tran2y ago
you can change the path in the UPLOAD_LOCATION and copy all files to the new location the files path is relative to the containers' mount point so there won't be any issue
fOliveira
fOliveiraOP2y ago
👍 nice

Did you find this page helpful?