Photos uploading but not being stored
Android app version: 1.72.1
Server version: 1.72.1
This happened with some less recent versions too
I use portainer to manage docker, if it matters.
I also put immich proxy behind a reverse proxy (with nginx).
The problem started when i thought that there were some problems with the date of some photos, wich led me to delete all photos from the web interface. After that i tried reuploading everything from the phone app. I dont remember if at this time the problem was alredy presenting itself or the photos were just marked as deleted from the server, preventing the upload, but in any case i decided to delete everything regarding immich from the server and reinstalling, hoping in a quick fix. So i deleted images, containers, volumes and the storage location, but after reinstalling the phone now uploads the photos, i see the network traffic incoming on the server, the backup page on the app shows every file bein uploaded in the current file being uploaded section, but only about 40 photos of the 3000 total are being backed up. Also every time i reinstall, the uploaded photos are always the same ones. My inexperienced guess is something along the lines of i didnt deleted the "deleted" references to the files, but i cannot find that, if it is like so. With the log level set on info on the app it ouputs things like syncing completed. Changes: false and very rarely an error like this: "Concurrent modification during iteration: _Set len: 12.
I also enable memory overcommit, as stated in the immich_redis container logs, but that didnt sovle the issue.
In the immich_machine_learning container log, there is sometimes this error "Could not find image processor class in the image processor config or the model config. Loading based on pattern matching with the model's feature extractor configuration."
Thanks in advance
52 Replies
Please make sure your mount disk is accessible in the vm and the container
some photos do get backed up and i can see them in the upload location
Ok, lets start from scratch. Perform docker-compose down -v to remove all containers and associated volumes. Then remove all file in the UPLOAD_LOCATION. Reinstall your app. Then try to backup again and monitor the logs in the immich_server container
Try to access your instace from local ip instead of proxy as well
Let’s make sure that Immich runs fine on your system first
im a little unfamiliar with docker compose as i manage everything trough portainer, i presume that docker-compose down -v deletes everything, not just immich?
I am not sure how to do that in Portainer
You can manually delete the immich stack from Portainer then delete any volume with immich reference
just to be sure that i deleted everything, is there a docker compose command to check that?
Docker volume ls to list all the volumes on the system
the phone is uploading with the same behaviour described before
i noticed another peculiar thing while reinstalling the app on the phone
the steps i did are the following: deleted app data, deleted the app, installed the latest released app, and when i opened i found that the server endpoint was alredy filled in
so i deleted the data once again and it was not filled anymore
3 items got backed up some seconds ago, no new entry in the logs and the photos are the same ones that got backed up before
If you download some random pictures from the internet and upload then from the web interface, are all pictures shown up?
yes
so it appears to be problem with the phone only
hmm
could it be possible for the photos to be marked as deleted on the phone side?
connecting over local IP also having the same symptom?
yes
what do you mean?
i think that the photos that do get backed up are those that were also removed as duplciates at the time of the first upload, when it did work
and when i deleted everything from the web app those were not "marked"
reinstall the app should clear that cache storage
did you happen to remove then reinstall the app?
i thought so, but even when deleting data and reinstalling this happened
no wait wrong message
this
if an asset is duplicated, the server should log it
🤔
Ok let's do this step by step
and you remove the app from your phone, then reinstall it. Make sure that when you first launch the app, there is no prefilled infomation
ok, just a sec
i just uninstalled and reinstalled and again the server endpoint is alredy filled in
hmm
but email and password are not
what is your phone model?
Oneplus 9 pro
yeah this still indicate that the app data doesn't get deleted
Can you clear the app cache?
before uninstalling?
i mean, yes
let's try that again, clear app data, then reinstall the app
I find it strange that the app data persisted even though you delete the app
yeah, pretty weird to me too
by doing stop app, delete data, uninstalling, reinstalling, still i find the server endpoint
if i delete data after reinstalling togheter with the rest from the last message, the endpoint gets deleted
You are deleting the app data in setting > app name > clear data I assume?
yes
Android ... :icebearehwhat:
Now, select the album you want to upload
and capture the screenshot of the reported remainder and such
don't upload anything just yet

my app is in italian, looking to change language
Noi problem I can navigate
ok everything looks fine
and now I assume if you press backuip, the remainder number will decrease but the backup number not increaseing
just to be sure, pressing start backup on the bottom of this page is fine?
yes
without pressing activate backup?
in any case, now it is sending images, but all 3 numbers stay still
Just to confirm this is over local IP?
it should be
i inputted the domain on the app but
on my router, that specific domain should point to the local ip
but i dont know how to ping from android to check
Can you use local IP directly, I am thinking that your proxy might cause some issue
you are right
thank you
make sure that your proxy allow all size to go through
could there be a lower end cap, or just for bigger files?
I am not sure, depends on your proxy engine, what are you using?
nginx
Reverse Proxy | Immich
When deploying Immich it is important to understand that a reverse proxy is required in front of the server and web container. The reverse proxy acts as an intermediary between the user and container, forwarding requests to the correct container based on the URL path.
client_max_body_size 50000M;
is important
you can set it to 0 to allow any file sizeah, i remeber following that part, but itseems that i skipped that
thanks a lot
No problem 🙂 I am glad we figure out the issue