nextcloud / desktop

💻 Desktop sync client for Nextcloud
https://nextcloud.com/install/#install-clients
GNU General Public License v2.0
3.06k stars 804 forks source link

[Bug]: Low disk space deadlock / loop-of-death #6040

Open raoulbhatia opened 1 year ago

raoulbhatia commented 1 year ago

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

Bug description

In low disk space situations, Nextcloud Desktop on MacOS displays an Error when trying to sync files.

To remmediate this situation, I unchecked a few folders to regain disk space.

However, it seems that PRIOR to removing the folders, some checks happen / it wants to sync the pending files.

I am thus ending in a deadlock, where I cannot clean up my Nextcloud Sync folder.

Steps to reproduce

  1. Have very little disk space left, i.e. 200MiB
  2. Have files pending to download, i.e. Fotos from mobile phone
  3. Get an error, see picture
  4. Uncheck folders you don't want to sync
  5. Observe that the folders are NOT removed, sync error prevails.
Screenshot 2023-09-08 at 16 51 28

Expected behavior

Unsync folders prior to syncing new files. This might give more free disk space.

Which files are affected by this bug

any file

Operating system

Mac OS

Which version of the operating system you are running.

MacOS 12

Package

Appimage

Nextcloud Server version

26.0.5

Nextcloud Desktop Client version

Version 3.9.3 (macOS)

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

Fresh desktop client install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

Nextcloud Server logs

No response

Additional info

No response

marcotrevisan commented 1 year ago

I'd try with the following workaround:

This should get you out of that loop.

marcotrevisan commented 1 year ago

By the way, I'd suggest you set a meaningful title to this issue ;-)

raoulbhatia commented 1 year ago

Thanks. I was able to get out of that loop already.

Also, perhaps the extensive configuration options of rsync can serve as a template to an improved behaviour.