desktop icon indicating copy to clipboard operation
desktop copied to clipboard

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

Open ferdiga opened this issue 2 years ago • 5 comments

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

ferdiga avatar Oct 29 '23 09:10 ferdiga

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.

KayDiederichs avatar Nov 01 '23 08:11 KayDiederichs

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

maltefiala avatar Nov 13 '23 21:11 maltefiala

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.

CvR42 avatar Nov 14 '23 23:11 CvR42

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

maltefiala avatar Nov 21 '23 23:11 maltefiala

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

ferdiga avatar Nov 22 '23 21:11 ferdiga