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

Sync upload hangs randomly when "auto" limit is set (okay if set to "no limit" or a specific limit) #6180

Open
4 of 8 tasks
ferdiga opened this issue Oct 29, 2023 · 6 comments

Comments

@ferdiga
Copy link

ferdiga commented Oct 29, 2023

⚠️ Before submitting, please verify the following: ⚠️

Bug description

MacOS 14.0
NC Desktop 3.10.1
NC 27.0.2

Sync stops randomly - nevertheless I could sync very large folders with many GB and many files without problems for a while
suddenly stops syncing 5 4MB image files - and uses 100% CPU
look at the negative (!) number .... which was frozen.
I didn't find any error logs.
Image 28 10 23 at 18 11

Steps to reproduce

  1. After update of MacOS to 14.0 on "old" chip and update of NC Desktop
  2. move files to synced directory
  3. NC Desktop stalls sometimes with 100% CPU
    I tried the last 3 releases of NC Desktop - same problem
    I tried to move 1-6 jpeg files to the synced directory, this works sometimes, sometimes not.
    the sync directory is a group folder
    ...

Expected behavior

sync should (as before) sync all newly detected files.
...

Which files are affected by this bug

jpeg

Operating system

Mac OS

Which version of the operating system you are running.

14.0.1

Package

Appimage

Nextcloud Server version

27.0.2

Nextcloud Desktop Client version

3.10, 3.10.1, 3.9.4

Is this bug present after an update or on a fresh install?

Updated from a minor version (ex. 3.4.2 to 3.4.4)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

  • Default internal user-backend
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Nextcloud Server logs

no errors

Additional info

No response

@KayDiederichs
Copy link

same problem here, on Ventura (13.6.1) with latest NC 3.10.1 .
Workaround: kill NC (which runs at 100% CPU), switch off WLAN, start NC and set to "pause sync", switch on WLAN, in "settings" of NC remove synchronization for the latest directory (which appears to cause the problem), then un-pause synchronization. At least then I can work with remaining directories.

@maltefiala
Copy link

maltefiala commented Nov 13, 2023

This is also happening on M1 with MacOS 14.1.1 (23B81) and 3.10.x installed. According to the logs, the automatic config migration is the culprit:
/Applications/nextcloud.app/Contents/MacOS/nextcloud --logwindow output:

nextcloud.gui.application: Migrating old config from "/Users/redacted/Library/Application Support/Nextcloud" to "/Users/redacted/Library/Preferences/Nextcloud"
nextcloud.gui.application: Failed to move the old config directory to its new location ( "/Users/redacted/Library/Application Support/Nextcloud" to "/Users/redacted/Library/Preferences/Nextcloud" )
nextcloud.gui.application: Will move the individual files ("redacted_sync.log", "Nextcloud_sync.log")
nextcloud.gui.application: Fallback move of  "redacted_sync.log" also failed
nextcloud.gui.application: Fallback move of  "Nextcloud_sync.log" also failed

@CvR42
Copy link

CvR42 commented Nov 14, 2023

Same problem here on a 2,3 GHz Dual-Core Intel Core i5 MacBook Pro. Sometimes the byte count jumps down to 0, or to a very large positive number (not rounded to MB or something). I've seen all three.

A workaround seems to be to limit up- & download bandwidth, rather than 'Auto' limiting as I had before.

@maltefiala
Copy link

Can confirm, "Limit automatically" is the culprit. Great find @CvR42 !

@ferdiga
Copy link
Author

ferdiga commented Nov 22, 2023

i just copied 17GB to a synced group directory - no problems with upload after setting "No limit"

@joshtrichards joshtrichards changed the title Sync upload hangs randomly Sync upload hangs randomly when "auto" limit is set (okay if set to "no limit" or a specific limit) Jan 30, 2024
@JirmoK
Copy link

JirmoK commented Nov 30, 2024

Holy cow. I had the same issue for months now and was just starting to accept that nextcloud just does not work for my large number of files. Never had I believed that such a seemingly unrelated setting might fix this. But it did.

MacOS 15.1.1
NC Client 3.15.0

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

No branches or pull requests

6 participants