[Bug]: Mac OS VFS: Exclamation mark on sync status but no easy way to tell what's wrong
⚠️ Before submitting, please verify the following: ⚠️
- [X] This is a bug, not a question or a configuration issue.
- [X] This issue is not already reported on Github (I've searched it).
- [X] Nextcloud Server and Desktop Client are up to date. See Server Maintenance and Release Schedule and Desktop Releases for supported versions.
- [X] I agree to follow Nextcloud's Code of Conduct
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
- Have the client running for at least some hours.
- The client shows an exclamation mark on the status bar, complaining the last sync had an issue.
- 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
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)
Last but not least: if possible, it would be great to add timestamps at the beginning of each line in the debug log file.
This issue might be related to #7240 and hopefully closed by it as well.
@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,
I've opened #7326 for the Finder slowdown problem, adding more info.
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.
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.
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 secsThere 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
Same problem with 4.0.1 with VFS macOS 12.7.6
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
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 to clean up the FileProvider state I usually do as follows (it has always worked for me):
- Open the client settings and disable Virtual Files (for all the accounts your client is registered to);
- Quit the Nextcloud app (i.e hit cmd-Q);
- 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/*); - 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 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.
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.
@marcotrevisan I followed your steps but still can see exclamation mark on the icon :(
Same, got the exclamation mark on the icon but everything else works as expected.