-
-
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 not triggered #9320
Comments
My upload queue has been empty for 3 weeks now. Neither photos nor videos are getting picked up. If I create a new custom folder, these files will be uploaded eventually, but the camera photo/video folder seems to be ignored. It used to work flawlessly until 3 weeks ago. Things I tried:
Here some (maybe) interesting logs:
So, for me it seems like it looks at the right place but doesn't find any new photos or videos despite there being like 40 or 50. |
I'm facing the same issue with Nextcloud client 3.18 for Android an a OnePlus Nord. I'm not sure however if the phone's make and model is of any importance here... |
For me, the last uploaded file was from November 14, no photos taken later than that have been uploaded. |
Hello. |
@martinmoreira Could you elaborate? How did you do this? |
Of course. |
I can't believe that actually worked! Thanks @martinmoreira |
For me, this workaround did work. So far I am not affected anymore. |
It does not work for me as there is no "Storage" permission to alter between deny and allow. The only permission Nextcloud requested was Calender, Camera and Contact. |
Looks like auto upload also stopped working on my android phone right after the 3.18 release (the date of the last uploaded picture coincides with the release of the version). My other android phone still running 3.15 continues to work fine. I will try to remove / reinstall / reconfigure 3.18 and see if it works again. |
This is not possible on Android 11, OneUI 4.0, Samsung S21 Ultra. Does anybody have any idea what is causing this? |
I do not own a Samsung S21 Ultra but after a quick google search you should find it in Settings -> Privacy -> Permission Manager -> Storage |
Ok, so appareantly I took a picture with my phone and it triggered the upload sequence for every upload folder. Maybe the problem lies in it not being triggered by anything? |
Nextcloud is not there... To be more precise it seems like there is no normal storage permission for it. However it is in Settings > Apps > Special access > All files access. Still, there must be some deep rooted problem with the autosync engine because it is not working on mobile internet connection, is only triggered by new items, etc. |
Is it possible this is somehow "feature" of android instead of Nextcloud problem? It looks to me as if OS decided that I haven't opened the nextcloud client for a long time, so the permission was removed, even though it's shown as allowed. |
@sanchosk in newer Android OSes there is a feature where app permissions, if not used, are disabled. That is a good feature actually, but I am not talking about that. Nextcloud should set these options ON by default during first launch or should periodically check against them. |
I can confirm this. As @martinmoreira suggests, disable storage permission for nextcloud app and re-allowing it immediately make uploads start immediately |
On my Fairphone 2 running /e/ OS 1.0 (which is Android 10 on my phone) this workaround also worked but I had to
This is still just a workaround not a bug fix. I am still curious to get why this permission seems no more effective (does it come from Android or from Nextcloud). |
I manually upload some newly taken picture files and that might trigger the whole auto upload process. Video files works but the auto upload process takes a bit longer to begin (~10mins). Maybe because phone still processing? |
I'm always having troubles with background activities of different apps when they are not using Google Play Services. Looks like everything not going through Google is a third class citizen in Android. |
Removing storage permission and then granting it again, also fixed an auto upload issue on a Huawei Mate 20 Pro with up to date system. Also removing and regranting those permissions led to Nextcloud discovering lots of new folders for auto upload. |
@www-flomei-de this also worked for me on my Xiaomi Poco F1! Thanks a lot! |
Thanks for the workaround of reallowing the storage permission, I was going mad. I can confirm, that with very large folders, the autouploading does not start instantly but after some minutes is did. |
This still solution still doesn't work for me guys. I'm on Samsung s22 ultra. It was working on my old server that went kaputz. So I've rebuilt it, for my laptop sync'd again successfully, but Android still says no. Any ideas? Thanks |
2 things I did and it works now, I don't know for how long it will work though:
|
Seems like an issue with the more fine-grained file permissions on latest Androids. Giving the Nextcloud app an All files access (Settings -> Apps -> Special app access) seems to fix the issue. Android 13, Moto G73, NC 3.25.0 via GPlay. |
Probably not limited just to this. Because on older Androids (Android 9) there are no fine-grained permissions and it also does not work there. Older version 3.19.1 works fine for me though. |
I tried the workarounds posted here (remove and give storage permission to the Nextcloud app, activate the "sync files" in settings - account - nextcloud, create a custom folder, take a pic, rename the remote folder). App is unusable as it also consumes a lot of battery (God knows what it is doing in the background, rather than just stay in idle waiting for the charge to be connected, as it is set in the Auto Upload settings). Any help or suggestion is appreciated. P.s.: I tried to set up a tmp folder with few pics and those got detected and auto uploaded correctly. Could it be that the App gives up when there are too many pics in a folder? |
Same Problem here. Upload works in 1 of 100 cases. Do the devs even care? This Problem is around for Months, or even Years? |
I already switched to FolderSync which works totally fine with syncing data to Nextcloud. The only thing that does not work is to automatically create a folder structure (year/month) from the modified/created data extracted from the pictures' and videos' EXIF data which is a bummer, because I really like that functionality and seemingly only the Nextcloud app itself has that feature. |
I'm done with this app definitely. I have tried 2 weeks to find a fix for it to make it work. Dear developers, go to McDonald's! |
Did you try older version as suggested in my previous post? 3.19.1 works fine on both old Android 9 and on newest Android. It's syncing photos just fine... |
Downgrades are not supported by Google Play. |
Uh. Just uninstall your current version, manually download apk of the 3.19.1 release here https://github.com/nextcloud/android/releases/tag/stable-3.19.1 and install it. |
On a Samsung S21 Ultra running version 3.25.0, i fixed the auto upload problem by re-adding the folder for auto upload. |
Recently I ran into the same problem, the automatic uploading of files to the server stopped working. For me, the problem was solved successfully. In the phone settings, set "Does not save battery power" |
I noticed that Nextcloud is the biggest consumer of battery it is top on the list. It drains the battery very fast. |
I'm going to close this issue for the following reasons:
If auto-uploads are not being triggered for you, please open a dedicated issue with the complete info about your situation.Also, please check your Uploads tab to see the status of uploads. Ones queued but blocked for power reasons will show up there, for example. If your media files aren't even showing up in the queue at all that's also of interest, but an entirely different root cause most likely. Again, dedicated issues and let's work through thing one-by-one. In addition, if you want to be even more helpful:
Thank you all for your feedback. I know dealing with and reporting bugs takes time and energy- often just as much as tracking down the cause and fixing them does. |
Thanks for commenting on this issue. I think a couple of reasons for this thread to be so silent is because some people have switched to using other apps (FolderSync) or because have stopped using Nextcloud App (like myself). Furthermore, only 2 versions have been released in 1 year, hence I am still waiting for the next one to be released before commenting again saying if it has sorted or not the AutoUpload. The AutoUpload is an essential feature for this App, not optional (like the image cropping for example). It should always work. In my specific case: I have 4 Nextcloud users. The AutoUpload feature works well on 2 phones, it doesn't work on the other 2. Settings are the same. I haven't seen many comments from the developers on this thread asking for debug help or general info to tackle the problem. I am sure they have been working on it, but until now we (the users on this thread) haven't been involved much. We are all happy to contribute to solve it. You suggested, for those still affected from this problem, to open a dedicated issue about the AutoUpload. Mine was opened months ago and still hasn't seen an answer from the devs. Here it is #11741. I personally don't think that this proliferation of tickets will help to sort the problem. But if this is the way to gather the attention of the devs to tacke and solve it, then I'll open one more. Thanks, |
As I see now, the major problem is that Nextcloud for Android is the biggest consumer of battery. I get constantly message that Nextcloud use a battery and it is on the top of battery drainers. And then it kills nextcloud service. |
I uninstalled and reinstalled the app as I could not longer live with annoying #11903 and was hoping the reinstall might fix it, however after reinstall and setting up autoupload folders it no longer detected pics nor autoupload anything. I've check all battery optimization was disabled, all permissions were granted, tried removing/adding storage permission, looked at all special permissions (no "all storage" there for my android 10), adding and removing folders from autoupload, trying all settings on them, rebooting... But no luck -- even after adding folder for autosync and taking picture nothing was queued in I was just about to give up for good when I stumbled on this reddit thread -- and indeed, under Anyway I've turned it Android 10 / EMUI 12. Update: It worked! I let the nextcloud account sync spinner spin overnight and sure enough in the morning it has syncing spinner has stopped and indicated all is synced. I then tried previous hints (remove and re-add folder for autoupload), added a picture, and it has started queuing and syncing again! |
Hello @meldarionqeusse I'm using an micro sd card, what did you do? |
As I explained I tried auto upload with a new SD card and it worked. I suspect cause the new SD card had few photos on it only. Then I re inserted my old SD card which has 3 years of photos on it configured folders again on nextcloud and after while it started syncing. I think if you have lots of photos it might take a an hour. Also make sure you don't have battery saving modes enabled. I noticed that my phone was not syncing as soon as I take a photo but would start syncing a few minutes after I plug it in at night to charge cause stamina mode gets disabled. |
NC 28 and years later the bug still exists on all my family members phones, what a shame, i always admired nextcloud but having this bug present for years is just shameful |
Also just adding on to this as the issue is still present for me after implementing every fix I could find online and in this thread. This really is the single feature I still need from NextCloud to allow me to get off Google. |
@MarizanneVis (and everyone else adding _"me too"_s) it would be much more helpful if you listed exactly what you tried (if accompanied with screenshots or screencasts, even better!), and exactly was the result was for each of the things you tried. Also, which versions of NC, on server and client, as well as Android version (and manufacturer/model - because of manufacturer specific issues) would be extremely helpful. Ideally by filing new bug template and adding link to this similar issue (instead of adding comment to closed issue). Saying "I tried all fixes I could find" and "They didn't work" is a school example of how not to report bugs. Please note that I'm not saying that to be mean to you ❤️ (nor do I target you specifically here - it applies to everyone, including myself!), but to improve chances of bug actually being determined and solved (or workaround provided). Without good quality bug reports full of specific data (which do take some time and effort to write, I know!) there is probably no chance of the bug ever being successfully reproduced, much less fixed. And only users with this elusive problem can provide such bug reports. (Note that even with good bug reports there is guarantee that the bug will be fixed, but it is a prerequisite for a chance of it being fixed - and probably required several different good bug reports to isolate unrelated variables). |
Just for reference this happened to me and since turning on off various settings didn't work I had to delete archive and cache of the application. Logging in again apparently worked (for now) |
Exact same situation. Phone: Oppo Reno 5A; latest version of the android app 3.30.6. Nextcloud Hub 8 29.0.7. I suspect the most recent update to the app broke the Auto-uploads' previous settings as there was some sort of a permission change from Android side: we no longer have the option to remove files on the phone after upload, so Nextcloud devs had to disable that option... and potentially previous settings became invalid/corrupted? Anyway, clearing out the App Settings --> re-logging in (and then setting up the autouploads from a clean state) worked for me as well. |
Yes I can confirm the most recent update of the android app broke auto upload. Disabling auto uoload for the folders by Clicking on the cloud icon and re-enabling it made things work again for new. However old photos did not automatically sync I had to upload them manually. This is an issue because the upload happened in the background and I did not realize the feature stopped working. The timing also was very unfortunate since it holiday season lots of photos taken and changing to new phone so I was going to lose a bunch of photos. I really wish people stop pushing updates during the holiday season and breaking things unless it a security update |
Auto upload barely works still, why is this closed. Edit: looks to be a known recent issue: https://github.com/nextcloud/android/issues/14135 |
I also can confirm that version 29 stopped to upload my phone pictures on nextcloud. After I update it to 30 than it start to work again. |
Steps to reproduce
DCIM
folder as suggested by default)Expected behaviour
After some time (in the range of 5-10 min) the app should at least register an upload in the uploads section. Depending on the settings (only via WiFi for example), the upload will take place immediately, be queued, or be stalled.
Actual behaviour
The upload is never queued. It should have created anything in the list (be it stalled, queued, in progress, or done in the meantime). In fact, there is nothing logged at all.
I suspect that the detection of new files somehow fails.
Can you reproduce this problem on https://try.nextcloud.com?
As no upload is triggered, no network is involved. => Not tested
Environment data
Android version: 10
Device model: Dogee S96 Pro
Stock or customized system: Stock
Nextcloud app version: 3.18.0 RC6
Nextcloud server version: 22.2.3
Reverse proxy: Apache
Logs
Web server error log
Not network related
Nextcloud log (data/nextcloud.log)
Not network related
App logs
When making a photo and looking at the logs within the app, there is no line logged within a few minutes after the photo.
Unfortunately, the logs only go back until today morning, so older logs seem to have been rolled out. I cannot compare with a time where things were working.
NOTE: Be super sure to remove sensitive data like passwords, note that everybody can look here! You can use the Issue Template application to prefill some of the required information: https://apps.nextcloud.com/apps/issuetemplate
Additional information
This seems to be a regression, as it used to work until recently. I was on holiday and during part of it the auto uploads were still working as intended. Sometime around Nov 06th it suddenly stopped working. I am not sure about the exact point in time as my network connection was a bit hairy and I was not always able to use the NC server accordingly. So there was build a big list of outstanding uploads over these days. At some point, this list just did not get any longer.
The text was updated successfully, but these errors were encountered: