I
Immich•3y ago
adamaze

upload issue after refresh install and cli upload

I originally installed with the experimental one liner to test, and uploaded everything from my phone. I then wanted to do it for real, so I used the recommended install, then used the Immich CLI to upload all the pictures from the old server to the new one so that I would have to wait forever for my phone to do it again, but now my phone seems to be in an endless loop trying to upload pictures that are already there. What can I do? My log is full of these repeating messages, and while it seems sometimes the number of files left to backup goes down, it always jumps back up again later Server: 1.40.0 App: 1.39.0 build.62
No description
22 Replies
Alex Tran
Alex Tran•3y ago
Please download the latest version of the app I am not sure what is an "endless loop" mean? The deduplication method works from the server standpoint, so if the file is uploaded and have the same hash (content) it will ignore that file. However, the upload process still need to happen so that the server can calculate the content of the file. When you mentioned "forever", does it mean the uploading is slow on your phone? Have you tried to use the local IP Address to access the server?
adamaze
adamazeOP•3y ago
F-droid only has 1.39 do I need to uninstall that version and then install directly from GitHub? I'm currently away from my house/server visiting family, so I was trying to not upload 30GB of photos/videos over a remote connection...but if Immich will technically need to upload everything in order to see if it needs to be uploaded, I guess I still have to upload it all
Alex Tran
Alex Tran•3y ago
F-droid will takes a few days for the version to be updated. I think you can use the APK file in the release note as well.
adamaze
adamazeOP•3y ago
ok, got the 1.40.0 version from f-droid, and i'm still experiencing issues uploading. i have the phone sitting beside me with the app open to the backup screen and i watch the "remainder" and "total" counts go down for a few minutes, and i just watched them jump back up by a few hundred. pictures take a few seconds to upload, and videos a bit longer
Alex Tran
Alex Tran•3y ago
Can you send the server log?
adamaze
adamazeOP•3y ago
are there certain logs you want? would i be getting them with "docker logs"?
Alex Tran
Alex Tran•3y ago
docker logs <container-name> Can you help me get the server and microservice container logs?
Alex Tran
Alex Tran•3y ago
Besides some unsupported files for exif extraction I don't see anything abnormal So some the assets were uploaded and some were not?
adamaze
adamazeOP•3y ago
when i take new pictures, they upload just fine but it is trying to upload the back catalog that i uploaded from the CLI so, all the files are on the server, but the client on the phone doesnt know that
Alex Tran
Alex Tran•3y ago
Correct, the file need to be uploaded to the server before the deduplication mechanism can detect if it is the duplicate file
adamaze
adamazeOP•3y ago
any way to do that on the client side in the future? 😉 md5sum on both sides or something? (sorry, im sure it is much more complex than that)
Alex Tran
Alex Tran•3y ago
yeah content based hashing the trade off is that it will drain battery faster
adamaze
adamazeOP•3y ago
it is more power to do a hash than to upload the whole file? so, im almost at the point of wiping the immich install totally and just starting from scratch without doing a CLI upload. the android client has been trying to upload everything for the past many days and never makes any real progress. do you have anything I should try before i do that?
Alex Tran
Alex Tran•3y ago
perhaps, we haven't benchedmark that yet. But hashing + uploading will for sure increase battery usage - which is application for most users No, that should be fine, that is why there is a recommended approach vs the evaluation approach
adamaze
adamazeOP•3y ago
ok thanks. I'll start over
Alex Tran
Alex Tran•3y ago
No problem, let me know if you run into any other problem
adamaze
adamazeOP•3y ago
So things look fine from the web interface, but the android app shows images being duplicated
No description
adamaze
adamazeOP•3y ago
Each picture in this screenshot it showing up four times It looks odd because there are no gaps between these pictures If I scroll down to non-uploaded pictures, they look fine Then I was watching them get duplicated as they were uploaded
Alex Tran
Alex Tran•3y ago
if you close and reopen the app, it would show correctly, correct?
adamaze
adamazeOP•3y ago
it didnt seem to do that the first few times i tried, but it looks like it is back to normal now. - 757 assets backed up so far
Alex Tran
Alex Tran•3y ago
Ok, I am aware of this issue, somehow the websocket doesn't release/close properly before opening a new one, so that when you upload an asset, it receive multiple "uploaded" event, there for render multiple asset. Did you perhaps restarting the server a few times?

Did you find this page helpful?