-
-
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
Automatic Upload is prepared #12596
Comments
I have the same issue on Android 14 (S22+). Auto Upload still works fine, but it keeps trying to do something which drains battery. Running Nextcloud AIO currently on Version 27.1.5 on the Server. |
I have the same issue. It appeared a few days ago, most probably due to an update of the android app
|
Same issue here.
Seems to be draining the battery much faster. |
And past the 17 hours it's still there in same position. |
I am also having this exact behaviour "Automatisches Hochladen wird vorbereitet" which appears from time to time. |
It stuck in some loop. Reboot the phone to have it restarted. |
Since 3.28.0 I also see the "Prepare automatic update" notification several times a day, although I don't have any folders configured for automatic upload. |
I have cancelled all my Auto uploads, I have restarted the phone, the notification still pops up. |
I have the same issue
The problem stopped when reverting the Nextcloud app version back to 3.27.0 (using |
In the app under Settings -> More subsection -> Auto Upload is all the directories with images. They are all toggled off but I guess the app does a check and hence the 'preparing' notifications (I think). However, on my Android 8 and 9 ROMs I do no get these notifications. Only on A11. Don't have A12+ but assume this is an A11+ thing maybe. My A10 ROM doesn't have Nextcloud so haven't checked yet. EDIT: Oh wait, someone said it happens on their Android 9. Hmm. Haven't noticed on my Havoc OS Pie. Will monitor. |
same issue here, Galaxy A53, Android 14, Nextcloud AIO 27.1.5 |
Same here, the notification started popping up a few days ago. Possibly when I updated the nextcloud app to the newest version but I cannot confidently confirm that. Samsung S22FE |
Same issue here, on Android, with Nextcloud 3.28.0 from F-droid. Most important is that no folders are chosen for autoupload in the settings; yet I see this recurring message. Uninstalling Nextcloud app until this problem is fixed. |
Same issue on android 14 one plus 10. Also, something is wrong with power consumption, 1 hour off the cable, 10% battery used and 6% went to nextcloud without any sync that could even happen. |
Same issue on: |
I don't know if it's related, but on my Tab "On the device" ("Auf dem Gerät") there are no files shown. Like a fresh install with nothing downloaded. I know for a fact that I have downloaded (or even chosen synchronize) to download a bunch of files and folders, which are still there. It even shows the green round bubble icon when I browse my Nextcloud under "All files". |
I'm able to get rid of the "Preparing auto upload" notification temporarily if I disable Battery Saver and force kill the app. I recall I'm supposed to leave the Nextcloud app battery usage set to "Unrestricted" but I noticed it draining my battery a few weeks ago so for now it is "Restricted". Hmm, perhaps using anything other than "Unrestricted" actually causes the app to use more battery? |
Hi all, thanks for the report. AnalysisYes, this behavior of showing a notification when ever sync work is done (so also checking if files need to be uploaded) was introduced in #12337. The idea behind it was to make the autoupload more reliable and a lot faster because there were cases where the background worker was killed by android and the sync didn't work because of this. In theory, as some already said, the notification should only visualize what was already happening in the versions before. I would say there are 3 issues with this implementation currently:
QuestionIt would help if you could answer some questions to confirm / fix those issues more quickly:
|
N/A
23 GB; 5000 files
I never had any issues with it. It seemed to upload fine most times I checked it
N/A Info I did notice a significant increase in battery usage though. It uses about 10% of my battery a day now, while it didn't use nearly as much before. |
For me also auto upload is doing fine, I just find the notification every few minutes annoying. Not so bad though. |
Hi, do you all use custom folders (create new custom folder from the 3 dot menu) for auto upload or did you just activate auto upload for the automatically detected media folders? In general, do you just backup images and videos or do you also auto upload other file types like documents? |
S22+ Android 14
Due to way too many media folders, I created 2 crustom folders:
I'm also uploading backups from whatsapp/signal and other documents As I had some bugs with it a while ago(duplicated files spam, not sure if it's fixed by now), therefore I've the following settings:
|
I can't remember having it activated in the past... nevertheless I just deinstalled the app and did a fresh installation. The notification didn't show up in the last minutes, so this seems to "fix" the issue. |
I just use the default folders, but I did change the remote folder. |
I still get the notifications on a fresh app install. Disabling 'File Sync' notifications fixes it though. |
And there it is again... So no, notification also on a fresh installation without autoupload activated even once. |
I also see this issue on A Samsung Galaxy S10+ (Android 12) |
Same issue here with Xiaomi 14, HyperOS 1.0.31.0, Android 14 |
I have not seen the message yet with 3.28.1 (I had it like every hour or so before and it would not go away on a Pixel 7 / Android 14) but instead some photos are upload much later than before. They are not even scheduled to upload right away. So far, it looks like all of them were uploaded eventually, thus no photo is lost, but it takes much longer than before. |
I saw the message not once in 3 weeks and now it's back with 3.29.0 |
Can confirm this issue was gone while on 3.28.1 and has since returned with 3.29.0. I am on Android 12 on OnePlus Nord N20. |
Same here |
Couple of days ago I did an update to V3.29.0. Since V3.29.0 every ~ 30min a notification appears that an auto-upload is in preparation even though there is nothing to upload.
I think no more details need to be added - if so, please do not hesitate to ask for more infos, like logfiles, configuration etc. |
Hi, yes, we are aware of this. The "fix" in V3.28.2 was a bug that reduced reliability (to the point it was before 3.28), because it removed the foreground worker (basically a prioritized worker that needs to show a notification to run). We are trying to get rid of the foreground worker (#12954) but it is not that easy while maintaining and guaranteeing reliability. Just FYI the notification has nothing to do with upload, it shows when the file system is scanned for changes. Maybe the text was not well-chosen. |
But why does the app scan the file system at all if "Auto Upload" is disabled? Or has that behaviour already been changed? |
At least I noticed that with the new version, the notifications are visible much less often and typically also disappear on their own. Before 3.28.1 they would be persistent for me. |
Not sure if its relevant but on 3.29.0 even tough the phone is not charging and I have automatic upload set to run only when charging the notifcation is popping up every few hours. Its also still the case that nextcloud is responsible for the majority (1/4 of total usage, usually highest app consumption) of my battery usage (no change between automatic upload with or without charging). I have two folders synced, one with just a few hundred, one with several thousand images. |
@reox That's wonderful to hear. We did a lot of optimization for auto upload to make the issue less annoying, and it's nice to hear that it at least helped a little bit. @vabene1111 @paulchen good point, I included fixes for that in this PR: #12372 With it, it should only scan the file system if charging when "only when charging" is activated :) |
If I did not get this wrong this fixes would only apply if (custom) auto upload folders are defined. If no folders are defined it should not scan at all I guess? Under "More - Auto upload" I did not define any folders and "Show media scan notifications" is disabled so media folders aren't scanned and thus also not shown as auto upload folders. Still with this settings from time to time the "Prepare automatic update" notification appears. This is with the Nextcloud App Version 3.29.0. |
@billie80 it should with this fix also not do anything if no auto upload folder is enabled. |
With #13015 we removed the foreground worker and with it the notification "Preparing auto upload" 🥳 There is the risk that with the change the auto upload is a little bit more unreliable since android background restrictions could act harder on our background jobs. As they did before introducing background worker and the according notification -> So if it was without that notification reliable then it still should be. I would consider this issue closed since the notification is gone in the next releases. Thanks for reporting this. If there should be other issues with auto upload and / or significant reduction in reliability, please open another issue about it and feel free to connect it to this issue or the PR. |
Still happens with 3.29.1! |
Steps to reproduce
Set up Automatic Upload for in total four folders.
From time to time a notification is present on Android, that the automatic upload is prepared (German version "Automatisches Hochladen wird vorbereitet"). A progress bar is at min, the message disappears after a while and is retriggered from time to time. According to Android it pops up about 80 times a day.
Mobile background data is allowed, but uploads are only allowed on a WiFi network.
In addition to this, mobile data is consumed, but no files seem to be uploading. There's no files in the upload queue, there is nothing arriving on the server.
It is unknown to me, which files caused this behavior, but it's also present with only the photo folder being on automated upload (the other three have been deactivated).
Expected behaviour
Wait for WiFi to upload the files and be quiet if there is nothing to upload. No usage of mobile data.
Actual behaviour
Constant notifications, decreased battery life and mobile data consumption.
Android version
Android 11
Device brand and model
moto G 5G
Stock or custom OS?
Stock
Nextcloud android app version
3.28.0
Nextcloud server version
26.0.10
Using a reverse proxy?
No
Android logs
No response
Server error logs
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: