Skip to content
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

New Autoupload feature kills battery #780

Closed
maybeageek opened this issue Mar 26, 2017 · 59 comments
Closed

New Autoupload feature kills battery #780

maybeageek opened this issue Mar 26, 2017 · 59 comments
Assignees
Labels
bug feature: auto upload needs info Waiting for info from user(s). Issues with this label will auto-stale. stale

Comments

@maybeageek
Copy link

Actual behaviour

-After the rewrite of the autoupload feature, autoupload stopped working. Configuring it new, working as expected. However, it kills the battery in a matter of hours. 100% to 1% in 3-5h.
This didn't happen in the previous version

Expected behaviour

-Tell us what should happen
Battery should last longer

Steps to reproduce

Environment data

Android version:
6.0.1 (Samsung A3 2017, Stock)
7.1.1 (Galaxy S4 - LineageOS)
Device model:

Stock or customized system:

Nextcloud app version:
newest.
Nextcloud server version:
11.0.2

Logs

Web server error log

Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Insert your Nextcloud log here
@DigitalElement99
Copy link

Same issue

@SigLinJo
Copy link

Hi. I'm experiencing similar symptoms on my Cat S60 running Android 6.0.1. Ever since I upgraded to the latest version of the Nextcloud Android app (1.4.2) the highest battery consumer each day has been nextcloud. I have multiple folders selected for auto upload, maybe that can influence it?

@DigitalElement99
Copy link

I personally experienced that problem with just one folder selected, the main camera folder.

@tobiasKaminsky
Copy link
Member

Do you have enabled nextcloud sync on android system settings -> accounts -> nextcloud?

@maybeageek
Copy link
Author

maybeageek commented Apr 3, 2017

Do you have enabled nextcloud sync on android system settings -> accounts -> nextcloud?

no, this setting is disabled for me.

@SigLinJo
Copy link

SigLinJo commented Apr 3, 2017

It was disabled for me too. I just activated it now and will report back if there is any change in a day or two. Thanks for looking in to this! Love what you are doing with the app! To be able to upload from more folders is amazing!

@snicke
Copy link

snicke commented May 14, 2017

Same issue. Samsung Galaxy S7 Edge with Android 7.0. The samsung system is identifying Nextcloud every day as the only app draining the battery and ask me if I want to put it in sleep mode.

@CroneKorkN
Copy link

Autoupload drains my battery, too. Stock 7.0 on Galaxy S6.

@Doloros
Copy link

Doloros commented Jun 26, 2017

Hi,
Same issue here : Nextcloud draining battery on Galaxy s7 android 7.0. The samsung system is identifying Nextcloud every day as the only app draining the battery and ask me if I want to put it in sleep mode.

@mario
Copy link
Contributor

mario commented Jul 26, 2017

Dear users,

thank you for your patience. After lots of work, we’re super excited to be able to give you a test version with new auto upload implementation. Keep in mind we will only accept bugs related to Auto Upload in this APK, as other things might be broken.

https://cloud.nextcloud.com/s/ftZraTruRQjTe0R

This is a dev APK so it will not overwrite your existing play store/f-droid APK unless you’re already running dev version. Also, you might need to remove your existing dev version before installing this one.

Explanation of the current functionality:

  • added support for custom folders
  • separated image and video folders
  • checks for new files happens every 15-20 minutes
  • automatic retry every 15-20 minutes or when you force close/open the app
  • automatic pause once network is changed (untested!)
  • significantly less battery usage

All and any testing is more than appreciated, especially with large and ever-going files like Videos. (like, try to record a 30 min video).

Let me know if you’ve got any questions.

Cheers,
Mario

@aPollO2k
Copy link

I installed this dev app. But now my auto upload has stopped working. I enabled The sync in the android account settings. Not working.
I taken some photos and videos. Switched off the phone and waited a bit. But it does not upload anything :(

@tobiasKaminsky
Copy link
Member

@aPollO2k which version have you installed?
There is now a release candidate for the upcoming version available at beta channel on google play store:
https://play.google.com/apps/testing/com.nextcloud.client

Please try this one as this includes the latest fixes.

@shanness
Copy link

I'm having the same issue, and am running 2.0.0 (seems beta and production versions are the same, I wasn't upgraded after joining the testing program).

I'm getting constant warnings it's draining over 1% of my battery per hour. And the only thing I want the android app for is auto uploading my pics.. Any update on a fix for this?

@olenz
Copy link

olenz commented Feb 27, 2018

I also must confirm, since 3.0.1, upload seems to drain battery. Problem with android 8.1 on Nexus 6p.

@mario
Copy link
Contributor

mario commented Feb 27, 2018

Upload or the notification that's persistently there?

@zdichev
Copy link

zdichev commented Mar 27, 2018

@olenz same on Samsung s8

@msundin
Copy link

msundin commented Apr 12, 2018

Still draining the battery on Galaxy S7 Edge. Taking 10% of the battery usage in the current use cycle for instance according to battery usage stats. No other app even close. Screen and Android System only processes using more battery (16 and 13% respectively).

screenshot_20180412-163024

screenshot_20180412-162647

@gubagu
Copy link

gubagu commented Apr 12, 2018

Same here

@msundin
Copy link

msundin commented May 26, 2018

Any progress on this? Unfortunately I need to uninstall and stop using the app. Draining my battery very fast. The same with my partners phone.

@stale
Copy link

stale bot commented May 10, 2019

This request did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@stale stale bot added the stale label May 10, 2019
@stale stale bot closed this as completed May 24, 2019
@r2p2
Copy link

r2p2 commented Jul 4, 2019

Nextcloud is draining my battery too.

@Rayn0r
Copy link

Rayn0r commented Jul 8, 2019

Same problem here...
I am using Wakelock Detector on a Stock ROM of a Galaxy S7 to monitor battery usage.

3h45m after turning on my phone, the Nextcloud app was active for 35m11s.
No other app is remotely close to the Nextcloud app's runtime. The second app in line ran for 36s during that time.
The battery is down to 87% while the phone was sitting idle on my desk.

edit
The phone battery was at 100% when it was turned on.

@stale stale bot removed the stale label Jul 23, 2019
@tobiasKaminsky
Copy link
Member

I am testing right now with a S5 Neo with Wakelock Detector if and how often our app requests wakelock.

@tobiasKaminsky tobiasKaminsky self-assigned this Jul 23, 2019
@panomitrius
Copy link

panomitrius commented Apr 22, 2021

I'm using a Samsung S10E with Android 11 and Nextcloud client uses around 20-40% of battery a day with auto upload on a couple of folders turned on.

@github-actions
Copy link

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@github-actions github-actions bot added the stale label May 25, 2021
@Croydon
Copy link

Croydon commented May 26, 2021

Hi! This is my generic reply for every issue which is still relevant and is on the edge of getting closed by a stale bot.

@J4gQBqqR
Copy link

J4gQBqqR commented Aug 5, 2021

IMG_20210805_184950

The number one battery drainer on my phone.
Lineage OS 18.1, Nextcloud 3.16.1
Nothing synced, nothing turned on.
All background use. Never opened it foreground.

@github-actions
Copy link

github-actions bot commented Sep 2, 2021

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@github-actions github-actions bot added the stale label Sep 2, 2021
@zyeborm
Copy link

zyeborm commented Sep 2, 2021

Hi! This is my generic reply for every issue which is still relevant and is on the edge of getting closed by a stale bot.

@github-actions github-actions bot removed the stale label Sep 3, 2021
@github-actions
Copy link

github-actions bot commented Oct 1, 2021

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@github-actions github-actions bot added the stale label Oct 1, 2021
@LSchober
Copy link

LSchober commented Oct 1, 2021

Hi! This is my generic reply for every issue which is still relevant and is on the edge of getting closed by a stale bot.

@github-actions github-actions bot removed the stale label Oct 1, 2021
@github-actions
Copy link

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@github-actions github-actions bot added the stale label Oct 29, 2021
@AlvaroBrey AlvaroBrey removed the stale label Nov 2, 2021
@github-actions
Copy link

github-actions bot commented Dec 1, 2021

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@github-actions github-actions bot added the stale label Dec 1, 2021
@AlvaroBrey AlvaroBrey added no-stale Use this to prevent staling of issues that need info but shouldn't be closed for some reason and removed stale labels Dec 1, 2021
@AlvaroBrey
Copy link
Member

I've setup the bot so that it doesn't auto-close this issue. There is a rework of the autoupload feature in the horizon although we can't give any timeframe. When that happens we'll look at this issue too.

@b-pfl
Copy link

b-pfl commented Dec 3, 2021

@AlvaroBrey this would be great.
I just remembered that I had NC-related battery issues on my phone some months ago. As a consequence, I had enabled Android battery optimization (Samsung Galaxy S9, Android 10) to put NC to sleep when not in use, which solved my problem. However, this obviously killed the auto upload feature and (as I realized today) using the NC app as a 2nd factor for authentication also does not work in that case.
Today, I re-enabled it and the problem appeared again (Android client 3.18.0). Some additional observations:

  • Despite having disabled auto-upload if neither a wifi connection nor a charger are connected, it looks like the client tries to do some batter-draining activities even while not charging.
  • There seems to be an issue with the auto upload settings screen. a) it seems to not be able to deal with larger local directories (my phone has more than 10000 photos) as the screen freezes for quite a few seconds. b) using the latest version, instead of only seeing a few pictures per folder (with a +XYZ photos placeholder), the placeholder seems to repeat multiple in the upload folder view.

@fvlaicu
Copy link

fvlaicu commented Dec 8, 2021

I think I may have found a fix for the drain issue: Uncheck "Also upload existing files". I have about 10k items that sync and before the only way for my phone to survive the night was to enable power saving mode ;).
Screenshot 2021-12-08 092937

@AlvaroBrey
Copy link
Member

I believe this should have been greatly reduced by #10448, can anyone verify?

@AlvaroBrey AlvaroBrey removed the no-stale Use this to prevent staling of issues that need info but shouldn't be closed for some reason label Aug 26, 2022
@github-actions
Copy link

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@github-actions github-actions bot added the stale label Sep 24, 2022
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug feature: auto upload needs info Waiting for info from user(s). Issues with this label will auto-stale. stale
Projects
None yet
Development

No branches or pull requests