Skip to content

Automatic Upload is prepared #12596

Closed
Closed

Description

@LunaticTazz

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.

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

Activity

  1. davidcrds commented on Feb 24, 2024

    @davidcrds

    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.

  2. kadrim commented on Feb 25, 2024

    @kadrim

    I have the same issue. It appeared a few days ago, most probably due to an update of the android app

    • samsung note 9
    • android 10
    • nextcloud server 28.0.2
  3. steel-moose commented on Feb 25, 2024

    @steel-moose

    Same issue here.

    • android 9
    • nokia 8 (HMD TA-1004)
    • version 3.28.0
    • nextcloud snap 27.1.6

    Seems to be draining the battery much faster.

  4. regs01 commented on Feb 25, 2024

    @regs01

    Also stuck for almost a day now.
    firefox_2024-02-25_19-36-18

    The problem with permanent scanning draining the battery has been there for very long. They just made a visible notification, so now those having the problem can see there is a problem.

  5. davidcrds commented on Feb 26, 2024

    @davidcrds

    Also stuck for almost a day now.
    firefox_2024-02-25_19-36-18

    The problem with permanent scanning draining the battery has been there for very long. They just made a visible notification, so now those having the problem can see there is a problem.

    Removing bigger folders from Auto Upload shortens the notification considerably. So you are probably right.

  6. regs01 commented on Feb 26, 2024

    @regs01

    And past the 17 hours it's still there in same position.

  7. kadrim commented on Feb 26, 2024

    @kadrim

    Also stuck for almost a day now. firefox_2024-02-25_19-36-18

    The problem with permanent scanning draining the battery has been there for very long. They just made a visible notification, so now those having the problem can see there is a problem.

    you are right, that there are/were problems with this all along, but for me this was considerable better with the previous app-versions. this is not just about an indicator, but also the battery consumption is much worse right now.

  8. JustACasual commented on Feb 26, 2024

    @JustACasual

    I am also having this exact behaviour "Automatisches Hochladen wird vorbereitet" which appears from time to time.
    App Version 3.28.0 from F-Droid
    Android 13
    Pixel 4a

  9. LunaticTazz commented on Feb 26, 2024

    @LunaticTazz
    Author

    Also stuck for almost a day now.
    firefox_2024-02-25_19-36-18
    The problem with permanent scanning draining the battery has been there for very long. They just made a visible notification, so now those having the problem can see there is a problem.

    Removing bigger folders from Auto Upload shortens the notification considerably. So you are probably right.

    I have removed all folders from auto upload, I have disabled background data for the app, it's still scanning. Maybe it's something I have downloaded or synced with my nextcloud.
    I haven't noticed it permanently scanning with big issues with battery life in the past, and I didn't notice the mobile data usage either, until my provider told me this month, that 80% of my quota is used, which is when I looked into it.
    My feeling is, sorry for this poor proof, that it came with the latest update.

    It's also present on my wife's phone, moto g30 on Android 12.

  10. regs01 commented on Feb 26, 2024

    @regs01

    I have removed all folders from auto upload, I have disabled background data for the app, it's still scanning.

    It stuck in some loop. Reboot the phone to have it restarted.

  11. 33 remaining items

  12. ghaberek commented on Apr 25, 2024

    @ghaberek

    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.

  13. ezelbanaan commented on Apr 25, 2024

    @ezelbanaan

    I saw the message not once in 3 weeks and now it's back with 3.29.0

    Same here

  14. markthebro commented on Apr 29, 2024

    @markthebro

    Couple of days ago I did an update to V3.29.0.
    My friends and family as well.
    Before we were using V3.28.2 - no issues at all.

    Since V3.29.0 every ~ 30min a notification appears that an auto-upload is in preparation even though there is nothing to upload.
    Issue is on several different phones.

    • Samsung Galaxy S23 (Android 14)
    • Samsung Galaxy A51 (Android 14)
    • OnePlus Nord (Android 11)

    I think no more details need to be added - if so, please do not hesitate to ask for more infos, like logfiles, configuration etc.

  15. JonasMayerDev commented on Apr 30, 2024

    @JonasMayerDev
    Collaborator

    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.

  16. paulchen commented on May 1, 2024

    @paulchen

    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?

  17. reox commented on May 1, 2024

    @reox

    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.

  18. vabene1111 commented on May 2, 2024

    @vabene1111

    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.

  19. JonasMayerDev commented on May 2, 2024

    @JonasMayerDev
    Collaborator

    @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 :)

  20. billie80 commented on May 5, 2024

    @billie80

    @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.

  21. JonasMayerDev commented on May 22, 2024

    @JonasMayerDev
    Collaborator

    @billie80 it should with this fix also not do anything if no auto upload folder is enabled.

  22. JonasMayerDev commented on Jun 3, 2024

    @JonasMayerDev
    Collaborator

    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.

  23. moved this from 📄 To do (max 2 entries / member) to ☑️ Done in 🤖 🍏 Mobile clients teamon Jun 3, 2024
  24. billie80 commented on Jul 2, 2024

    @billie80

    Still happens with 3.29.1!
    Edit: I see the fix it targeted for 3.30.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions