I
Immich2y ago
Zordak

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
Alex Tran
Alex Tran2y ago
Please make sure your mount disk is accessible in the vm and the container
Zordak
ZordakOP2y ago
some photos do get backed up and i can see them in the upload location
Alex Tran
Alex Tran2y ago
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
Zordak
ZordakOP2y ago
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?
Alex Tran
Alex Tran2y ago
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
Zordak
ZordakOP2y ago
just to be sure that i deleted everything, is there a docker compose command to check that?
Alex Tran
Alex Tran2y ago
Docker volume ls to list all the volumes on the system
Zordak
ZordakOP2y ago
the phone is uploading with the same behaviour described before
Zordak
ZordakOP2y ago
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
Alex Tran
Alex Tran2y ago
If you download some random pictures from the internet and upload then from the web interface, are all pictures shown up?
Zordak
ZordakOP2y ago
yes
Alex Tran
Alex Tran2y ago
so it appears to be problem with the phone only hmm
Zordak
ZordakOP2y ago
could it be possible for the photos to be marked as deleted on the phone side?
Alex Tran
Alex Tran2y ago
connecting over local IP also having the same symptom?
Zordak
ZordakOP2y ago
yes
Alex Tran
Alex Tran2y ago
what do you mean?
Zordak
ZordakOP2y ago
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"
Alex Tran
Alex Tran2y ago
reinstall the app should clear that cache storage did you happen to remove then reinstall the app?
Zordak
ZordakOP2y ago
i thought so, but even when deleting data and reinstalling this happened no wait wrong message this
Alex Tran
Alex Tran2y ago
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
Zordak
ZordakOP2y ago
ok, just a sec i just uninstalled and reinstalled and again the server endpoint is alredy filled in
Alex Tran
Alex Tran2y ago
hmm
Zordak
ZordakOP2y ago
but email and password are not
Alex Tran
Alex Tran2y ago
what is your phone model?
Zordak
ZordakOP2y ago
Oneplus 9 pro
Alex Tran
Alex Tran2y ago
yeah this still indicate that the app data doesn't get deleted Can you clear the app cache?
Zordak
ZordakOP2y ago
before uninstalling? i mean, yes
Alex Tran
Alex Tran2y ago
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
Zordak
ZordakOP2y ago
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
Alex Tran
Alex Tran2y ago
You are deleting the app data in setting > app name > clear data I assume?
Zordak
ZordakOP2y ago
yes
Alex Tran
Alex Tran2y ago
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
Zordak
ZordakOP2y ago
No description
Zordak
ZordakOP2y ago
my app is in italian, looking to change language
Alex Tran
Alex Tran2y ago
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
Zordak
ZordakOP2y ago
just to be sure, pressing start backup on the bottom of this page is fine?
Alex Tran
Alex Tran2y ago
yes
Zordak
ZordakOP2y ago
without pressing activate backup? in any case, now it is sending images, but all 3 numbers stay still
Alex Tran
Alex Tran2y ago
Just to confirm this is over local IP?
Zordak
ZordakOP2y ago
it should be i inputted the domain on the app but on my router, that specific domain should point to the local ip
Zordak
ZordakOP2y ago
Zordak
ZordakOP2y ago
but i dont know how to ping from android to check
Alex Tran
Alex Tran2y ago
Can you use local IP directly, I am thinking that your proxy might cause some issue
Zordak
ZordakOP2y ago
you are right thank you
Alex Tran
Alex Tran2y ago
make sure that your proxy allow all size to go through
Zordak
ZordakOP2y ago
could there be a lower end cap, or just for bigger files?
Alex Tran
Alex Tran2y ago
I am not sure, depends on your proxy engine, what are you using?
Zordak
ZordakOP2y ago
nginx
Alex Tran
Alex Tran2y ago
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.
Alex Tran
Alex Tran2y ago
client_max_body_size 50000M; is important you can set it to 0 to allow any file size
Zordak
ZordakOP2y ago
ah, i remeber following that part, but itseems that i skipped that thanks a lot
Alex Tran
Alex Tran2y ago
No problem 🙂 I am glad we figure out the issue

Did you find this page helpful?