-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto upload queue continuously starting from the beginning again #10572
Comments
This does not only happen when it crashes. My impression is that there is a "retry timer" for failed uploads, e.g. because they cause a conflict. So if one has 1000 pictures to upload which cause a conflict each picture is tried, causes an error and is thus put into the "failed uploads section". If the 1000 pictures are not finished before the "retry timer" kicks in, they are queued again for upload. This causes an endless loop. Expected behaviour: do not retry anything while there is still something in the upload queue. Start the "retry timer" only after the active queue is empty. |
Another observation: This also seems to happen when the android app loses connection to the server. I have a nightly cron job that restarts all docker containers, and sometimes the android app then gets stuck in an endless file check loop (HTTP 204). It's not reproducible, and the retrying stops after like 1-2 hours. Also the app itself is mostly frozen when this happens. Nextcloud server version: 25.0.0 |
In the last month i also have the feeling this problems happens more and more. |
still have this issue with: |
Same issue here, Android app 3.24.2, server running the latest docker image. Look like the upload thread (or thread pool) keeps crashing and then every time the upload counter jumps up to 5000+. I'm a new user, no historical experience but syncing 5000 images from a phone should be easy to handle. Any workarounds? |
Also, I'm trying to get out of the endless loop by turning autouploads off directory by directory but even if I do so, the already scheduled upload operations remain in the queue and the apps tries to upload them anyway. Then they fails and everything starts again. |
One thing i do when the error appears. |
This steps helped me:
so far no upload loop |
As am trying to move my family to use nextcloud and this bug is causing them to reject it. I have a 4000+ photos folder that have to be copied (not moved!) to the nextcloud server. They had the "always ask if file already exist in server" option enabled in case that the file already exists. After a lot of uploaded files, the app is now asking what to do for each already uploaded file! I though the upload client does a checksum check of something, but looks like it just checks namefiles? I have no idea what to do now. |
This cancels the loop, but how can we sure that all the existing files were correctly uploaded before? |
Steps to reproduce
Install latest version of Nextcloud Android (3.20.3)
Enable auto upload with existing files
Expected behaviour
Auto upload finishes. In the event of a crash auto upload resumes from last file rather than restarting from scratch.
Actual behaviour
As described by others, the app crashes prior to finishing auto upload. The behaviour that does not seem to be described by others is that every time Nextcloud reattempts auto upload it restarts the entire queue and checks each file one by one, so the upload pending list keeps resetting. Already uploaded files are not reuploaded as far as I can tell but constantly getting rechecked over and over against the server version instead of just keeping a local log of successful uploads.
If this constant restarting behaviour was fixed then the crashing wouldn't be a big deal as Nextcloud would eventually finish uploading and would then become reasonably stable.
Android version
12
Device brand and model
Samsung Note 20 Ultra
Stock or custom OS?
Stock
Nextcloud android app version
3.20.3
Nextcloud server version
24.0.1.1
Using a reverse proxy?
Yes
Android logs
No response
Server error logs
No response
Additional information
Don't have adb set up or available
The text was updated successfully, but these errors were encountered: