photoprism-mobile icon indicating copy to clipboard operation
photoprism-mobile copied to clipboard

Auto upload doesn't resume, log sais album exists

Open gomme600 opened this issue 3 years ago • 13 comments

I had about 4000 photos spread over 4 albums to upload. When closing the app auto upload stopped. When resuming I get the message that the album already exists in the log and nothing happens in the GUI. I have tried deleting all the content in the upload folder in photoprism with no change. If I select a new album to upload (for example downloads) it then works until I quit the app and then the same problem occurs. Thank you for any help! Screenshot_20201207-085540

gomme600 avatar Dec 07 '20 07:12 gomme600

Ok, so clearing the apps cache seems to have solved the problem, it doesn't seem to be linked to the albums existing after all. I'm not too sure what happened!

gomme600 avatar Dec 07 '20 08:12 gomme600

Ok, so it seems that if the app closes in the background then the problem occurs, it refuses to backup until I reset it.

gomme600 avatar Dec 07 '20 08:12 gomme600

And uploading an existing album after clearing the apps storage causes the app to freeze for some reason (maybe because it tries to upload existing photos on the server again?)

gomme600 avatar Dec 07 '20 08:12 gomme600

Just tried with another album and it resumed without crashing, maybe I have a problematic photo in my camera album. I hope this information helps developpement. I can help test if needed.

gomme600 avatar Dec 07 '20 08:12 gomme600

It turned out that the file causing a problem was a 2 and a half minute video. It might have been 4K. There was no error in the log, the app just closed when it hit photo number 51. Other shorter and lower ras photos have been uploaded fine. I will report back if any more videos break things. Thanks for this excellent app by the way!

gomme600 avatar Dec 07 '20 10:12 gomme600

So the same thing happened with another mp4 video, this one was 90MB in size and 1080p. This time it crashed photoprism (I had to reboot my raspberry pi 4) aswell as the app! Something weird is happening when uploading videos it seems.

gomme600 avatar Dec 07 '20 12:12 gomme600

I tried uploading the same video from the web interface and it worked fine. So the problem must be with the app it seems.

gomme600 avatar Dec 07 '20 15:12 gomme600

I have tried with various different videos. It seems to be a size problem. A short 6 second 2.3MB video uploads fine but a larger 200MB video from the same camera doesn't. Uploading from the web interface works fine.

gomme600 avatar Dec 07 '20 18:12 gomme600

Odd... Mine also fails at photo 51.

Sometimes the app crashes when I queue a manual upload too

Poltergeisen avatar Dec 11 '20 05:12 Poltergeisen

I have about 5k photos here as well. When it crashes they dissappear from the upload queue Screenshot_20201210-231257

Poltergeisen avatar Dec 11 '20 05:12 Poltergeisen

There seems to be an issue with auto uploading the "recent items" folder. Once I removed that it started working again potentially

Poltergeisen avatar Dec 11 '20 05:12 Poltergeisen

I didn't tick the recent items folder unfortunately. It seems that any time it tries to upload a video bigger than a few MB the app crashes like you said for me. That makes it impossible to backup the camera folder because photos and videos are mixed together.

gomme600 avatar Dec 11 '20 07:12 gomme600

It seems that uploading videos manually from the app works better, a 50MB video worked but a 180MB one failed. ALso compared to uploading via webdav and then indexing the app is A LOT faster, could anyone explain why? Indexing manually completly freezes my pi 4 and uses up all RAM whereas this app works fine! I'm very confused.

gomme600 avatar Jan 06 '21 20:01 gomme600