-
-
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
Battery draining on android #7663
Comments
Hi, sorry, but what does it have to do with contacts? |
Moving to the android repo |
So no idea? |
what device do you have? |
Samsung s20 plus, before I had the Samsung note 10 plus, and I had the same problem. Yes I have the "auto upload" feature activated |
Can you check logs on the server to see if you get a lot of |
@ezaquarii, I do actually observe exactly the behaviour you describe with two different Android phones having two different user accounts, yes. |
@yawicz I don't know exactly - as I'm not expert on files sync component - but I can only speculate that it polls the server for changes. I'd additionally check the interval - if it's 15 minutes, that would correlate with default background task wakeup. One option is to turn on battery optimization for that app - it should stop OS from waking the app and giving it network access frivolously. Is this expected? Yes, because sync is implemented using polling. |
This comment was marked as outdated.
This comment was marked as outdated.
I hope this doesn't get closed because of inactivity, it's a real problem for android users, I'd be happy to help poke at this if there's more info that I can provide? Maybe instead of just checking every 15 minutes, we could let the user configure this setting? I would be quite happy with a nightly upload, I don't need my phone to check every 15 minutes. I also understand the desire to avoid options overload as mentioned in another Issue comment, but IMO this warrants a user configurable option of some sort. |
I'm currently seeing this battery consumption issue. Android Samsung model SM-G965W AutoUpload is enabled, but has caught up with everything needing to be uploaded. |
Do you know how many files/images you have on your device? |
I have the same problem of high battery drain. Google Pixel 4a 5G AutoUpload is enabled, but has caught up with everything needing to be uploaded. |
~15K photos and videos for me, totaling about 60GB.
Understandable, but it seems the default value perhaps doesn't work for people with large existing camera rolls, one solution here may be to just let the user configure the app to only check nightly, instead of continuously. Is there any chance such a feature could be implemented, perhaps with a simple checkbox in Settings? Also open to alternative solutions, maybe just let the user decide how often to check? Even with working from home, having the app drain battery this fast is a big obstacle for getting the rest of the family to adopt NextCloud, so I'd like to help get this fixed any way I can :) |
@jeffWelling are all files uploaded? |
I thought the problem came from a large amount of files too. I had 20k files for 185GO, but then i reduced the files to 3k and i have still the same problem.... |
In my situation, all files are eventually uploaded yes. @tobiasKaminsky That makes a lot of sense actually. |
Can i provide any additional information to solve this problem?
@jeffWelling i really like your solution with making this configurable! A crontab like config would be great :) |
I would also like to put my vote behind having a user configurable sync frequency + a sync now button. Google Pixel 4a |
This comment was marked as outdated.
This comment was marked as outdated.
this is definitely not a stale issue and is an ongoing problem for android users. Samsung Galaxy Note 8 Used to be able to leave my phone off the charger overnight and only lose 5% or so battery life. Ever since enabling auto upload, I've seen extreme battery drain from the Nextcloud app and an extremely reduced battery time for my phone. |
On which version should this fix be enabled? I tried 3.23.1 and is as bad as ever. Moreover, somehow I now cannot Nextcloud get back to normal battery usage even when disabling auto upload and enabling battery optimization. |
Seems better with |
Same problem, S21 ultra, app version and battery usage is very high, sometimes around 30%. Auto upload is enabled on wifi and on charge only. This is so bad I will have to disable the feature. |
Mine's been really good since the update. Thanks! |
Short version: Long version: Thanks for the great work :) Edit: If the app only syncs when you load, then only the wifi query should be active. This should not drain the battery so much... I will test this. |
Hi All, Unfortunately I am still experiencing this problem. I noticed that the app gets stuck with the blue wheel constantly spinning when trying to load files in a folder with a lot (~5 k) of files. This folder is also set for automatic updates when WiFi is on and phone pluged in. Thanks for the amazing job you guys do. |
For me there are two factors for the battery drain:
My question is: What does the sync adapter do, and what functionality do I lose if I disable it? I use the Nextcloud app as an Android storage provider, can it happen that storage provider and cloud storage get out of sync? Or does it only mean that changes on the cloud are not synced immidiatedly to the phone but only on access? |
I'm facing the same issue. Yesterday it used 7.1%, today even 10.6% of my battery usage. Both times it was the app with the most battery usage athough I didn't used the app at all. I also didn't took any pictures, so no instant upload happened. As you can see here, it is all background usage: I have the app connected to two Nextcloud servers (my personal one and my work instance). On the work instance a lot of stuff is happening during working ours. So I could imagine that the app checks constantly what changed because the etag of the root changes probably every few minutes. |
Suffering same issue. MOTOROLA Edge (2020) running LineageOS 20 and Next loud 3.24 from F-Droid repository. Battery usage hovers around 14% and 4000mah battery goes within a day and app is idle. Oddly enough, I was not having this issue on Android 11 when I initially started considering next cloud as my Microsoft Office 365/OneDrive replacement. Now that I'm on, essentially, Android 13 the phone goes from a 3-day battery run time to > 1-day. |
adding another bump Also having this issue with all photos uploaded and only set to on wifi + charging. Why can't the loop checking if photos need to be uploaded just be run when the wifi + charging requirements are met? Then the whole app could just be idling and not require any amount of battery charge! |
using 3.25.0 RC1 on a fresh new phone, android 13, honor magic vs => 21 min background consumed ~35% battery ... Previously (last days) I was using my oneplus 6 on the latest lineageOS, 3.25.0 also, no issue whatsoever :/ |
I have the same problem. Please don't forget about it. |
Please add a scheduled upload or only at night or something along those lines. Even if it's not a permanent fix, it's a damn good workaround and as an option shouldn't hurt anything |
Still the same problem on 3.29.0 version running on Pixel 6. Enormous battery usage. Why can't we select |
I'm having the same problem. Huge battery drain and "Preparing auto-upload" notification present every few minutes. I'm on Lineage OS 20. |
Same problem here with Nextcloud client being listed as the app that consumes most battery, as well as the frequent "Preparing auto-upload". This is on a Samsung S22, Nextcloud client v3.29.2, with 3 accounts to 3 different servers (all 29.x.x), but only one account has auto-upload enabled. #12141 is probably related/duplicate. For me this has been a problem since roughly September 2023, when I created #11983. |
Since a couple of weeks I have the same indeed. It has been good for a long time for me but now lots of "preparing auto-uploads" (even when no picture / screenshot was taken). Battery is worse that it was. |
Related: #13008 |
I've been having this issue for the last month and in my case it seems to be related to a faulty charging port. Last week the charging port stopped working, i've replaced it and the high battery drain has dissapeared. The app is the same version and other than the charging port I can't think of any change. |
I have the same problem: very excessive battery usage by the Nextcloud app. Battery used to last 2 to 3 days, now it lasts less than 1 day. The change was exactly started when I installed the Nextcloud app and set it up to auto-update my image and movie folders, as well as my contacts. Phone: Android Samsung Galaxy A14. Update: Today the Nextcloud app used 27.5% of the battery, even though I created no new documents or photos, so there was nothing to backup. |
F-Droid says it's v3.30.0 from Sept 13, so unlikely.
|
In the 15 days or so that I've had NextCloud installed, it used up 8 GB of bandwidth when not on wifi. In other words it's uploading and reuploading everything at least daily, as if it wasn't able to detect that the files haven't changed, as if the file watcher thread was misreading the timestamps or checksums or whatever it is that is used to determine if a file has changed. By the way issue #13738 is reported as done, and that the F-droid should be serving an updated version soon. Indeed the symptoms described by ZetaTom here #13872 match pretty much what I am seeing, despite F-droid claiming my installed version is v3.30.0 and not v.3.30.1. |
Battery is completely drained on android, I'd like to send a screenshot of my stats on my samsung
Steps to reproduce
Expected behaviour
Tell us what should happen
Actual behaviour
Tell us what happens instead
Server configuration
Operating system:
Web server:
Database:
PHP version:
Nextcloud version: (see Nextcloud admin page)
Contacts version: (see Nextcloud apps page)
Updated from an older Nextcloud or fresh install:
Signing status:
List of activated apps:
Nextcloud configuration:
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption: yes/no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP configuration (delete this part if not used)
Client configuration
Browser:
Operating system:
CardDAV-clients:
Logs
Web server error log
Nextcloud log (data/nextcloud.log)
Browser log
The text was updated successfully, but these errors were encountered: