Auto upload has stopped working
⚠️ Before posting ⚠️
- [x] This is a bug, not a question or an enhancement.
- [x] I've searched for similar issues and didn't find a duplicate.
- [x] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- [x] I agree to follow Nextcloud's Code of Conduct.
Steps to reproduce
- After the update, auto uploading was disabled
- Enable auto uploading
- Constant pop-ups "Same file already exists, no conflict detected"
Expected behaviour
Auto uploading should not have been disabled, and should not provoke constant error pop-ups.
Actual behaviour
Constant pop-ups "Same file already exists, no conflict detected"
Android version
15
Device brand and model
Google Pixel 8a
Stock or custom OS?
Stock
Nextcloud android app version
3.31.3
Nextcloud server version
31.0.2
Using a reverse proxy?
I don't know
Android logs
I'm probably missing something but I can't find that file.
Server error logs
There's nothing in the server log since 27 May, although other apps are working.
Additional information
As far as I can tell, the Nextcloud app has permission to access all files. Auto upload was working up until the app updated on 28 May.
Also not working on a Pixel 6, but silently without all the pop-ups.
Exact same issue on Pixel 7 Pro. I tried revoking and re-enabling all permissions. No help. Deleting the app and reinstalling/resetting up. No help. Manual upload works though.
Same here. It worked again with the previous version. After the update to 3.31.3 all autoupload jobs were deleted in the app. I set them up again and one upload happend afterwards but now it's not working...
Hello
Thank you for the report.
There are two issues present in this case:
- Incorrect handling of local file behavior (e.g., file conflicts, showing multiple toast messages).
- After a version upgrade, previously marked folders are no longer set for Auto Upload.
The first issue has been addressed in this PR: #14410, and the fix is not included in v3.31.3.
I was able to reproduce the second issue. Based on my review so far, I haven't identified any specific changes in the recent updates that would directly affect the logic for setting or reading Auto Upload folders. I am continuing to investigate this and will discuss it further with the team.
#14931 for the second issue.
I'm also having issues with the Auto Upload to my instance. I'm on a S24 Plus device. I've reconfigured it like I've done in the past where the process worked great. Since the update, still will not work. I'm currently on the beta testing group, is this issue only occuring on the beta version and not stable? Please advise.
Hello everyone
Unfortunately, due to a missing AutoMigration configuration in this release, updating to version 3.31.3 may result in the loss of folder configurations for auto-upload, two-way sync, and previously stored offline operations. This occurred because the Room database, without proper migration handling, was cleared during the upgrade process.
We deeply regret this issue and understand how disruptive it can be. In response, we've released version 3.31.4, which includes a fix to prevent this from happening in the future. We’ve also implemented additional safeguards to ensure that similar issues are avoided going forward.
3.31.4 is now available on GitHub
F-Droid and Google Play Store updates are currently under review.
If you are currently using version 3.31.3, please review and reconfigure your folder settings as needed. In the meantime, we have released version 3.31.4 to ensure that users upgrading from 3.31.2 do not encounter the same issue.
Thank you for your understanding and continued support. We truly appreciate the feedback and patience from the community as we work to improve the app.
Now that sounds like a professional answer! Thanks! 👍
Thanks @alperozturk96 for such a fast and helpful reply! I shall wait (im)patiently for the Google Play Store release 😄
@alperozturk96 do you have any recommendation on how to fix the already broken setups? I mean - if I enable the sync now, it will upload all 1000+ pictures that I have on my phone, duplicating data on my nextcloud instance.
I think a feature of "Set the current folder contents as already uploaded" would be a life saviour for this issue (as well as future issues of this kind and the moment we migrate e.g. from another auto-upload app).
@shalak the option "What to do if the file already exists?" should help you.
@shalak the option "What to do if the file already exists?" should help you.
Unfortunately, that doesn't solve the problem. Because once the files are uploaded to Nextcloud, I move most of them to proper albums. So they are uploaded, but they do not exist in the target folder.
Hello all, just an update. I revieced the beta version of the Nextcloud app 3.31 4 from the Play Store and it still didn't resolve the auto sync issue. I really hope this issue gets resolved. I rely on this app to save all of my data automatically. Thank you.
@Goldfiners
Hello
As I understand it, you've installed the update and reconfigured your folder for auto upload. While the folders are correctly marked for auto upload, the upload process itself did not initiate, right?
To help us better understand and reproduce the issue you're encountering, could you please provide the following details:
- File types, sizes, and total number of files in the local folder (the folder on your phone's internal storage set for auto upload).
- Number of files currently present in the corresponding remote folder (the one created in the Files app for auto upload).
- Android version your device is running.
- Your Android device model
- Auto upload configuration (only upload on unmetered wi-fi, only upload when charging, etc ... )
Thank you, and we look forward to your response.
Thank you for your response. I have configured the auto-sync settings in the Nextcloud app in the same manner as I have for the past two plus years. My synchronization is limited to photos and videos captured on my Samsung S24 Plus device, which is currently running Android 15. This process is consistent with the functionality of other photo cloud platforms, focusing solely on file types such as JPG/JPEG and MP4. Additionally, I have set up an external device for data storage using the Nextcloud External Storage support feature.
Despite attempts to sync directly to the Nextcloud data folder or to sync without altering any settings, the synchronization process remains unsuccessful, which was not the case previously. I am uncertain whether this issue arose after updating my server instance to version 31.0.5 or following the recent update of my device to Android 15. However, I have observed that the problem began with the release of Nextcloud app version 3.31.3 and persists in version 3.31.4 (Beta). Fortunately, since my instance operates on a virtual machine, I reverted to server version 31.0.4, but the issue remains unresolved. I am unsure if this issue may be related to the Android 15 update.
@shalak the option "What to do if the file already exists?" should help you.
@tobiasKaminsky That's not going to help, at least not in my situation, as I have my uploads in subfolders, so they are not at the place the app would them expect to be in its default settings. This brings us to another issue:
~~Why isn't it possible to configure the auto-upload settings before enabling auto-upload?~~
~~If I re-enable auto-upload, it immediately starts scanning and queuing all the existing photos in the respective folder before I have the chance to uncheck the option "upload existing files". By the time I have disabled it, it’s already too late: the upload queue is full and it has already started uploading existing files again.~~
Ok turns out I was wrong, and it is actually possible to change the settings before enabling auto-upload: https://github.com/nextcloud/android/issues/8418
Not very intuitve though ;-)
@obrb Hello! I noticed you're having issues with Auto Sync, and I'm facing the same problem. It looks like it's syncing for you, but with a different issue, is that right? I'm not seeing any activity on my end at all. Are you using an Android or iOS device? Also, which version are you on? I'm just curious if this is something that's only affecting me. Thanks!
@Goldfiners As far as I know, this specific issue only affects the Android version.
Same problems occurred to me:
- no auto auto upload.
- no two-way-sync since 3.31.3
For 1: Some autoupload prefes disappeared, some were deactivated. After reactivation and setting new filesare still not auto uploaded.
- two-way-sync: no folder can be activated for two-way-sync.
This remembers me the similar bug some months ago, when all data were synced consuming all my data volume. No we've got the other way: no syncing. Please enforce testing before providing a new stable update. This bugs are so obviously that they should be discovered before. Nevertheless usually you are doing a great job for the community.
Same here with 3.31.4 Autoupload is only working when you clean all the cache and data files, but it does not upload under the year/month folder. Once you disable the sync and re-enable it it just stops completely.
same with 3.3.14 Autouploud doesn't work. I cleaned cache but nothing changed. Autoapload ist not working at all. New fotos are not uploaded. Bug seems still there.
In my case, auto upload works for new pictures, but not for the ones already there. Those simply won't get uploaded unless I select an empty folder (on the Nextcloud server), even with the option to upload already-existing files enabled.
Is there any possibility of a touchless workaround or fix? Like many instances I have multiple remote users and not all of them are tech-savvy enough to go through the whole configuration independently. It would also mean spending dedicated time with each of them to address the issue.
If manual reconfiguration is necessary, this issue would be the most disruptive I have encountered since migrating to Nextcloud from Owncloud many years ago.
@Slater91 Are you using an Android device? It seems like you're experiencing some activity, which is good! Unfortunately, I'm not seeing any activity on my Samsung device. I've tried uninstalling and reinstalling the app, as well as reconfiguring it multiple times, but no cigar. I've granted all necessary permissions on both the server and app sides, yet there's still no activity. After reinstalling, I did notice that the app notifies me about folders I can set to auto-sync, but when I try to do that, nothing happens. I'm all out of options at this point.
Yes, I am using an Android device - I didn't feel the need to specify this in the nextcloud/android repository. I have a Pixel 7 Pro.
Try the f-droid version? Maybe you will need to uninstall the google play one via adb. Fyi
@lesu1 Yes, I already tried F-droid as well. Still the same situation. Thank you for your response.
I noticed too that it stopped syncing I'd say about June 4th (?), most probably since the latest update. My settings for the upload directories were gone and set to the default server directory. And finally now that I fixed the settings the client seems to upload all files into the default directory and does not care that I made a change and cancelled the upload of those ~4000 files of old photos. Reminds of the crap we ran into last year.
[EDIT] It's not uploading my photos but all screenshots I ever made with my phone. 🤪
My app keeps crashing when opening the uploads view or oltrying to open the conflict resolver from the notifications.
I too noticed that some app update days or even two weeks ago seems to have DELETED ALL AUTO-UPLOAD (F-Droid version), I had to manually reconfigure auto-upload for all folders.
(It wasn't just disabled, but deleted the values for target path, group by sub-folder and duplicate file action...)
I did not get any messages though (using "Skip existing files" for all auto-upload). After uploading hundreds of photos, the upload queue is now stuck on "Waiting to upload", I AM CONNECTED TO WIFI ...
Edit: This is an open issue for like 6 years now https://github.com/nextcloud/ios/issues/1018 ... wtf
This feature is just not production ready, there have been numerous bugs for years now.