desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Bug]: Mac OS VFS: Exclamation mark on sync status but no easy way to tell what's wrong

Open marcotrevisan opened this issue 1 year ago • 14 comments

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

Bug description

On the 3.14-macOS-vfs clients that we are using, we often see the exclamation mark icon on the status bar. Hovering on it, it says the vfs sync had an issue. However, opening the settings panel and clicking on "Create debug archive" freezes the UI and the Nextcloud process becomes unresponsive. This seems to be related (kind of a side effect) to the sync issue itself, because when the sync status is OK, it's possible to generate the debug archive without freezes.

The problem is, I have no clue on what the problem is and therefore haven't found a way to prevent/work around it. ...

Steps to reproduce

  1. Have the client running for at least some hours.
  2. The client shows an exclamation mark on the status bar, complaining the last sync had an issue.
  3. Open the settings panel and click on "Create debug archive" ...

Expected behavior

The debug archive should be created. Observed behaviour: the panel hangs and the process becomes unresponsive, I have to kill it. Seems similar to what happened a few versions back, on opening the settings panel, where the process froze and needed to be killed. ...

Which files are affected by this bug

Operating system

macOS

Which version of the operating system you are running.

Sonoma 14.6.1

Package

Official macOS 12+ universal pkg

Nextcloud Server version

29.0.6

Nextcloud Desktop Client version

3.14.0-vfs

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 response

Additional info

No response

marcotrevisan avatar Sep 18 '24 08:09 marcotrevisan

By reopening the client (i.e. quitting and relaunching the app) brings back the sync status to OK. The debug archive contains some errors, in the current case:

Very frequently: Nil deleted metadatas received in change read at https://.../remote.php/dav/files/user for user: user https://...

Much less frequently: err: Error while sending authentication request to nextcloud: Error while connecting to nextcloud: error sending request for url (https://.../index.php/apps/notify_push/uid

and also: 1 depth read of url https://.../remote.php/dav/files/user did not complete successfully, error: Impossibile trovare un server con il nome host specificato. (this looks like a DNS lookup failure)

marcotrevisan avatar Sep 18 '24 08:09 marcotrevisan

Last but not least: if possible, it would be great to add timestamps at the beginning of each line in the debug log file.

marcotrevisan avatar Sep 18 '24 08:09 marcotrevisan

This issue might be related to #7240 and hopefully closed by it as well.

marcotrevisan avatar Sep 30 '24 08:09 marcotrevisan

@claucambra I need to add more info to this issue about the client behaviour. The 3.14.0 and 3.14.1 versions (mac OS vfs) seem to bring back a performance issue that makes the client almost unusable, at least on our shares, which are fairly large. The FileProviderExt process is often consuming 100% of one core. I don't know if this is a known issue. I had to revert to 3.13.4 which doesn't seem suffer from this problem (it does suffer from other issues however, which are solved by 3.14.0).

The console log shows some error lines and among those, I saw some "watchdog" like messages about high CPU consumption by the FileProviderExt process. So I wonder wether the exclamation mark can arise because of a timeout in sync time or a stop because of too high CPU consumption?

The end result is that FInder is often (not always) very slow in opening folders that were not previously opened, and also in opening files, I guess this happens simply because the FIleProviderExt process is busy.

Let me know if you need console logs, I'll attach them. Thanks and regards,

marcotrevisan avatar Oct 08 '24 08:10 marcotrevisan

I've opened #7326 for the Finder slowdown problem, adding more info.

marcotrevisan avatar Oct 16 '24 05:10 marcotrevisan

I am on version 3.15.3 with VFS. I also have a permanent exclamation mark in the status bar. It does not go away when restarting Nextcloud.

I note that under the Virtual file sync tab in settings, Local storage use is reported as 0.00 GB, and the Evict materialised files window does not list any files, despite having downloaded and used several files in the Finder extension.

I checked the debug archive and found these errors repeat quite frequently:

2025-03-04 10:43:05:694 [ info nextcloud.gui.mac.fileprovider.settingscontroller /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-27804/src/gui/macOS/fileprovidersettingscontroller_mac.mm:257 ]:	Fetching materialised files storage usage
2025-03-04 10:43:05:792 [ warning nextcloud.gui.mac.fileprovider.settingscontroller /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-27804/src/gui/macOS/fileprovidersettingscontroller_mac.mm:261 ]:	Could not get file provider domains: The application cannot be used right now. Will try again in 2 secs

There don't appear to be any other warnings in the log or any further context to this warning.

whitestrake avatar Mar 04 '25 00:03 whitestrake

On 3.16.6 and same issue. MacOS 13.7.6 I logged out, quit and completely removed the folders from my system and restarted and re-set up the syncing. No change.

philiprenich avatar Jul 12 '25 07:07 philiprenich

I am on version 3.15.3 with VFS. I also have a permanent exclamation mark in the status bar. It does not go away when restarting Nextcloud.

I note that under the Virtual file sync tab in settings, Local storage use is reported as 0.00 GB, and the Evict materialised files window does not list any files, despite having downloaded and used several files in the Finder extension.

I checked the debug archive and found these errors repeat quite frequently:

2025-03-04 10:43:05:694 [ info nextcloud.gui.mac.fileprovider.settingscontroller /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-27804/src/gui/macOS/fileprovidersettingscontroller_mac.mm:257 ]:	Fetching materialised files storage usage
2025-03-04 10:43:05:792 [ warning nextcloud.gui.mac.fileprovider.settingscontroller /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-27804/src/gui/macOS/fileprovidersettingscontroller_mac.mm:261 ]:	Could not get file provider domains: The application cannot be used right now. Will try again in 2 secs

There don't appear to be any other warnings in the log or any further context to this warning.

i have the exact same problem. Although files do appear to transfer main group folders dont ever update and do not display on the mac

my logs show the same error message and i have several clients on windows working fine

Manners13 avatar Jul 24 '25 17:07 Manners13

Same problem with 4.0.1 with VFS macOS 12.7.6

lauhub avatar Nov 11 '25 01:11 lauhub

Have the same issue ever since the OS 26 update, each update to NextCloud has the same problem. I get the exclamation mark icon thing, nothing I do removes it.

I dont want to discount and re-sync everything again so I havent done that, everything seems to work just fine, the app just has a silly icon there constantly.

4.0.1 with VFS and MacOS 26.1

Sipheren avatar Nov 12 '25 21:11 Sipheren

For me, it's not even that the exclam won't go away, syncing doesn't even sseem to work anymore. Dragging a file to the Nextcloud sync folder on mac os doesn't upload it to the server. Just totally broken. It doesn't say what the issue is or how to resolve it :(

I tried to fully uninstall, but there must be some hidden data, because when I reinstalled it already knew my account and I was signed in. Would be good to test a fresh install, but I don't know how that can be done.

philiprenich avatar Nov 13 '25 02:11 philiprenich

@philiprenich to clean up the FileProvider state I usually do as follows (it has always worked for me):

  1. Open the client settings and disable Virtual Files (for all the accounts your client is registered to);
  2. Quit the Nextcloud app (i.e hit cmd-Q);
  3. Open Finder and remove the directory ~Library/Group Containers/com.nextcloud.desktopclient/FileProviderExt (or using terminal: rm -rf ~/Library/Group\ Containers/com.nextcloud.desktopclient/FileProviderExt/*);
  4. Reopen the Nextcloud client and re-enable virtual files for all your accounts.

Step 3 is what will clear the local sync state of your NC client. The surrounding steps are needed to make sure you do this safely enough.

I remember having read that a future version of the client will have this action added in the settings.

I tried to fully uninstall, but there must be some hidden data, because when I reinstalled it already knew my account and I was signed in. Would be good to test a fresh install, but I don't know how that can be done.

marcotrevisan avatar Nov 13 '25 05:11 marcotrevisan

@marcotrevisan Thanks for the info on where the data is kept! I've emptied that, and followed your steps, but it still isn't working. Finder still shows that I'm signed out as well.

Image Clicking the Sign In button shows an error modal that appears to come from the NC desktop app. It says "The file could not be opened because you do not have access."

Since going re-enabling VFS, all the files now show a little red negative symbol on them in Finder as well.

FileProviderExt folder is still empty even after re-enabling.

philiprenich avatar Nov 13 '25 21:11 philiprenich

@marcotrevisan I followed your steps but still can see exclamation mark on the icon :(

k-matti avatar Nov 21 '25 09:11 k-matti

Same, got the exclamation mark on the icon but everything else works as expected.

frederiknolte avatar Jan 02 '26 13:01 frederiknolte