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

Missbehaviour on syncing big folders #2559

Closed
gleichda opened this issue May 7, 2018 · 11 comments
Closed

Missbehaviour on syncing big folders #2559

gleichda opened this issue May 7, 2018 · 11 comments
Labels

Comments

@gleichda
Copy link

gleichda commented May 7, 2018

Actual behaviour

I have all my music synchronized to Nextcloud. This is quite a big folder having 43GB Containing 8835 Files in 776 subfolders (strucutred by artist/album/filename.mp3 if that is important)
Now when i want to Sync that folder to my Phone. I get the message Nextcloud not responding from Android. While I still see incoming requests from the app to Apache on the access.log and also notifications that files are downloaded.

Expected behaviour

Nextcloud should sync in Background

Steps to reproduce

  1. create a folder containing many subfolders and files below it
  2. sync the whole folder to Android

Environment data

Android version: Android 8.1 Security Level 1st April 18

Device model: Nokia 5 TA-1053

Stock or customized system: Stock rom not rooted

Nextcloud app version: 3.1.0 (from F-Droid)

Nextcloud server version: 13.0.2

Logs

Web server error log

Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Insert your Nextcloud log here

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

@tobiasKaminsky
Copy link
Member

Seems that somehow the sync process is blocking UI and therefore android is showing the "not response" warning.

@mario
Copy link
Contributor

mario commented May 9, 2018

I think it's just that the upload/download services are really bad and just try to do everything at once.

@BinkaDroid
Copy link

BinkaDroid commented May 14, 2018

Android P will crash not responding apps instead of showing the not-responding-warning ...

As the actual syncing isn't an issue here right now, it could get problematic if Android P decides to crash the app ...

@gleichda
Copy link
Author

I had a deeper look into it now. It seems that Android O is already terminating non responding apps, when the screen is dark or the app is not running in foreground. Therefore it is working as long as the screen is on and you are not doing something else on the phone.
Probably a permanent notification while syncing could solve the issue?

@tobiasKaminsky
Copy link
Member

tobiasKaminsky commented May 16, 2018

As @mario said, we need to change the up/download service to a job based system, which then can be correctly used & triggered by android's doze system.

@FunctionalHacker
Copy link

This is pretty bad, and IMO should be fixed ASAP. Syncing files is one of the core features of any cloud service, and as of now, it's completely unusable.

@rcdailey
Copy link

Where are we 6 months later on this issue?

@stale
Copy link

stale bot commented May 9, 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 9, 2019
@stale stale bot closed this as completed May 24, 2019
@DragonQ
Copy link

DragonQ commented Jan 8, 2020

This is still an issue. I click a folder and choose Sync, then Android claims the Nextcloud app has crashed. I can click "wait" and it'll carry on syncing for a bit but after maybe 30-60 seconds the sync just stops and I have to start again.

Telling Android to stop optimising battery for the Nextcloud app doesn't help, it still stops syncing at some point. I've also received a crash error log on two occasions when the syncing stops:

************ CAUSE OF ERROR ************

android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{976160b u0 com.nextcloud.client/com.owncloud.android.services.OperationsService}
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1745)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6718)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

************ APP INFORMATION ************
ID: com.nextcloud.client
Version: 30090290
Build flavor: gplay

************ DEVICE INFORMATION ************
Brand: samsung
Device: klte
Model: SM-G900F
Id: PQ3A.190801.002
Product: lineage_klte

************ FIRMWARE ************
SDK: 28
Release: 9
Incremental: 4f512a60ca

@stale stale bot removed the stale label Jan 8, 2020
@AndyScherzinger
Copy link
Member

this is a duplicate of #2010

@DagNygren
Copy link

This is still happening. Any clues on what could be done?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants