immich_server process errors
I keep getting these 2 errors when I run
docker logs immich_server
:
and
is this normal?48 Replies
The latter is normal, the former is not
what should I do to fix it then?
Do you have any problem with the instance usage?
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
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 issueHere 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.
that isnt the issue
limits arent an issue here
Can you elaborate why it isn't the issue?
i started bulk uploading and Im monitoring it realtime

it doesnt go up the 40% cpu and 500mib memory
but the error still appears
Can you show the server and microservices logs?

this was the error it gave before, now its running smoothly

Ah this is the database timeout
cant say the same of microservices

this is probably related to disk i/o
this is exactly now
Hmm what is your machine spec?
ubuntu 22 (latest), arm, 24gib ram 4 vCPU
but the upload is still running
tried the cli this time instead of web

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
alr thanks
one last thing
using the app it says the server is not reachable
Are you accessing over local IP or DNS?
same with the web
weird
but its uploading
hmm
is the load still OK for the CPUs?
its going up to 105% but its fine

total is 400%
Hey, the mobile app isnt loading my cloud assets @Alex. Here's the log

Is your mobile app on the latest version?
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
)hurraay! Let's fix it, what is it?
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
yeah there are some more stuff on the
main
branch that is not compatible with the current release
buildI'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
we have additional things in the payload that is not yet release
so it causes the incompatibility
(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)
is this for personal usage?
Yes, it is
okay, then you are planning to keep up with the changes from upstream I assume?
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?
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
Yep, got it
Thanks
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
yeah, sounds like a great idea
I would suggest it myself
it is technically available on the new cli tool in the main repo but not release yet
👍
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?
@Alexyou 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👍 nice