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

Nextcloud trying to sync when no internet is available. #14293

Open
4 tasks done
cegfault opened this issue Jan 2, 2025 · 3 comments
Open
4 tasks done

Nextcloud trying to sync when no internet is available. #14293

cegfault opened this issue Jan 2, 2025 · 3 comments
Assignees
Labels

Comments

@cegfault
Copy link

cegfault commented Jan 2, 2025

⚠️ 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

  1. Have a Nextcloud with many (10s of thousands / 100s of thousands) of files
  2. Upgrade app to 3.30.6
  3. Nextcloud tries to auto-sync all files (see [NOTICE] Version 3.30.1 Causing Sync Issues / Synchronising All Files #13872)
  4. Disable both wifi and mobile data
  5. Force stop and reopen app (or reboot phone)
  6. See that Nextcloud is still trying to sync and giving 10s/100s of thousands of notification errors
  7. If the number of files on Nextcloud is large enough, the entire phone CPU will be consumed. On my phone I was unable to open the settings page; I could only uninstall and reinstall the app. This obviously will vary by phone/tablet manufacturer and the number of files/notifications Nextcloud creates.

Expected behaviour

Nextcloud should not being trying to sync when no internet is available. It may also be wise to have a "stop gap" where if X errors occur in Y seconds then the app pauses for Z seconds before restarting/continuing.

Actual behaviour

Nextcloud still trying to two-way sync without data, giving thousands of notification errors.

Android version

Android 14 (LineageOS 21)

Device brand and model

Pixel 8

Stock or custom OS?

Custom (explain in "additional information")

Nextcloud android app version

3.30.6

Nextcloud server version

30.0.4.1

Using a reverse proxy?

No

Android logs

No response

Server error logs

Not submitted for length, repitition, and privacy, but apache contains thousands of lines like this:

<<IP>> - <<user>> [02/Jan/2025:06:26:21 +0000] "PROPFIND /cloud/remote.php/dav/files/<<USER>>/<<FILENAME>> HTTP/1.1" 207 14321 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.30.6


Nextcloud.log shows no errors.

Additional information

No response

@cegfault
Copy link
Author

cegfault commented Jan 2, 2025

Also please fix issues related to #13872 -- if the app didn't randomly (on update) start trying to sync all my files then this issue would never have happened :)

That being said, this bug should still exist to (a) prevent sync without data, and (b) limit sync events with continuous, repetitive errors.

Thanks for all you guys do, Nextcloud has become essential to be precisely because it's great :)

@tobiasKaminsky
Copy link
Member

This might be because it already scheduled those tasks.
Is this still happening after some time after the upgrade?

@cegfault
Copy link
Author

cegfault commented Jan 9, 2025

@tobiasKaminsky yes, it is still happening now.

It also shouldn't matter whether the tasks were scheduled or not; there should still be checking for internet and error rates. If the tasks were scheduled that would be a bug in and of itself (NC shouldn't have an app update that automatically enables and schedules a sync for all files), but this bug report isn't about that.

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

2 participants