desktop icon indicating copy to clipboard operation
desktop copied to clipboard

New items from other devices do not appear

Open udoschmitz opened this issue 6 months ago β€’ 16 comments

Summary

When a file is uploaded to the Nextcloud server from another device (confirmed visible in the web interface), it does not appear as a Virtual File placeholder on a second macOS device. The Desktop client reports "Everything is synced" with no errors. The only working fix is to disable and re-enable Virtual Files entirely, which forces a full re-enumeration from the server.

Environment

  • Nextcloud Desktop Client: 3.3.0.5
  • macOS: 15.7.6 (Sequoia)
  • Hardware: MacBook Air M2 (Apple Silicon)
  • Virtual Files mode: Enabled (macOS File Provider Extension)
  • Nextcloud Server: self-hosted

Steps to Reproduce

  1. Device A (old Mac, classic sync): Copy a new file into the Nextcloud sync folder
  2. Wait for the file to upload β€” confirm it is visible in the Nextcloud web interface
  3. On Device B (MacBook Air, Virtual Files enabled): Open the same folder in Finder or Terminal
  4. The file does not appear as a Virtual File placeholder

Expected Behavior

The new file should appear as a placeholder (Virtual File) on Device B within a reasonable time after the upload to the server is complete.

Actual Behavior

  • The file is missing. Running ls in Terminal on the affected folder returns results without the new file.
  • The Desktop client shows no errors and reports "Everything is synced."
  • No activity for the specific file is shown in the client's activity log.
  • The file is clearly present on the server (visible in web interface).

Workaround

Disabling Virtual Files in the Desktop client and immediately re-enabling it triggers a complete re-enumeration from the server, after which the file appears correctly.

This workaround is disruptive: all local placeholders are removed and must be re-fetched, which takes considerable time depending on the number of files.

What Does NOT Help

  • Restarting the Nextcloud Desktop client
  • Running killall -9 fileproviderd (the daemon restarts but continues to return stale/incomplete listings)
  • Waiting β€” the file never appears on its own without the disable/re-enable cycle

Additional Context

This appears to be a recurring issue with the macOS File Provider integration. Related reports:

  • #7979 β€” Virtual Files fail to sync / appear on macOS
  • #8599 β€” Finder shows "Nextcloud is signed out" while client reports OK
  • https://help.nextcloud.com/t/macos-virtual-files-not-being-synced/231796
  • https://help.nextcloud.com/t/ongoing-problems-with-macos-virtual-file-sync/232910

The root cause seems to be that fileproviderd caches the folder enumeration and does not reliably poll the server for changes, while the Desktop client considers its own upload queue empty and reports "synced" β€” creating a false sense of consistency. A targeted re-enumeration of specific remote folders (without requiring a full Virtual Files reset) would solve this.

udoschmitz avatar May 21 '26 06:05 udoschmitz

This appears to be a duplicate of #9688. πŸ€” In general, I cannot reproduce this problem. In simple setups this works fine and reliably. Hence the devil must be in the detail(s).

The new file should appear as a placeholder (Virtual File) on Device B within a reasonable time after the upload to the server is complete.

@udoschmitz Because you have not provided any information on your server configuration, what is "reasonable" to you? If you do not have push notifications configured, the macOS desktop client polling usually takes up to 30 seconds to discover remote changes.

The links in "Additional Context" section are completely unrelated to the problem described here and outdated. Is this issue opened with the help of AI? πŸ˜…

The assumptions made about fileproviderd are also false. That is the central macOS service and host for all file provider extensions regardless of vendor. It manages the macOS side of the synchronization state as intended and documented in the official API documentation. Killing it does not influence the synchronization process of our file provider extension or the user interface of the independently running main app.

Since I fixed the push notification listening and polling earlier this year by leaving that to the main app (because it used to do that already reliably and a file provider extension is the wrong place to do that due to its in continuous lifecycle), the verdict is that there still might be a bug in the synchronization business logic of the extension which does not recognize and report changes correctly to macOS' file provider framework.

i2h3 avatar May 22 '26 08:05 i2h3

This appears to be a duplicate of #9688.

Looks like it, although it’s not only with web created files. In my summary I explicitly mention that the file originated on my old Mac with Classic Sync.

Because you have not provided any information on your server configuration, what is "reasonable" to you? If you do not have push notifications configured, the macOS desktop client polling usually takes up to 30 seconds to discover remote changes.

Notify Push is configured. I would prefer faster, but thirty seconds would be absolutely reasonable πŸ˜„

I run NextCloud in a Docker container with Caddy on a Hetzner VPS:

NAMES IMAGE
nextcloud-notify_push-1 nextcloud-ghostscript:latest
nextcloud-app-1 nextcloud-ghostscript:latest
nextcloud-db-1 mariadb:10.11
nextcloud-redis-1 redis:alpine
umami-app-1 ghcr.io/umami-software/umami:postgresql-latest
umami-db-1 postgres:15-alpine
caddy-caddy-1 caddy:latest

Nextcloud Hub 26 Winter (33.0.3)

(Please ask if you want to know more about my configuration.)

The links in "Additional Context" section are completely unrelated to the problem described here and outdated. Is this issue opened with the help of AI? πŸ˜…

Yes, of course it is. But I think I found those issues with my own research. πŸ™ƒ

The assumptions made about fileproviderd are also false. That is the central macOS service and host for all file provider extensions regardless of vendor. It manages the macOS side of the synchronization state as intended and documented in the official API documentation. Killing it does not influence the synchronization process of our file provider extension or the user interface of the independently running main app.

Well, as the client is showing that I synced the file

Image

and it shows up on Web

Image

but not on Device B (MacBook Air, Virtual Files enabled)

Image

I assumed that the problem was with the connection to the Finder.

Since I fixed the push notification listening and polling earlier this year by leaving that to the main app (because it used to do that already reliably and a file provider extension is the wrong place to do that due to its in continuous lifecycle), the verdict is that there still might be a bug in the synchronization business logic of the extension which does not recognize and report changes correctly to macOS' file provider framework.

@i2h3 Please tell me what I need to provide to help you.

(This comment was written without any help by AI)

udoschmitz avatar May 23 '26 06:05 udoschmitz

Hello, exactly same behaviour here.

For me, original folders/files were created from webdav OR linux classic client

Mac Client version 33.0.5 Server 33.0.3

Workaround works great as described : just uncheck,check the VF option in client settings rebuild the VF structure and missing folders appears.

altintorr avatar Jun 01 '26 08:06 altintorr

I can confirm similar issues here. We are a small office with 8 machines, mostly MacOS X, but 2 MS Windows. Currently Client version 33.0.5 (both on MacOS and MS Windows) and server version (on a local server) 31.0.6 with push_notify active.

Latest case from today: a colleague working on MS Windows created files and saved them on his machine in a synched folder in the last two days. A colleague on MacOS X (using VFS) could not see those files in his Mac OSX Finder today. He had to stop VFS and relaunch it for the files to appear (with the annoying side effect of losing all his favorites linked to the Nextcloud sync in his Finder).

mlennert avatar Jun 03 '26 09:06 mlennert

As a follow-up precision: there have been desktop app updates in the last weeks, so this might have also be linked to #10065 .

mlennert avatar Jun 03 '26 10:06 mlennert

I am having an issue where nothing from the web (server 32.0.11) or app is synced through my desktop client (33.0.5) on Windows. I may log an issue when I have time or wait for 33.0.6 to be sure, but is anyone experiencing this severe sync issue? Disabling VFS and re-enabling it did not work.

Edit: Rolling back to 4.0.10 solves the issue for me, which is in line with the forced Enterprise update channel for clients connecting to our server. This reveals a challenge in regard to providing the latest Enterprise version to different internal and external user groups that use our server (managed by SURF).

koenbokern avatar Jun 14 '26 11:06 koenbokern

@koenbokern Please note that this issue is about the macOS file provider which technically is a different implementation than the Windows VFS or the classic sync engine.

i2h3 avatar Jun 16 '26 12:06 i2h3

I did some testing on this on macOS 26.6.1 using the Nextcloud client 34.0.1. I've configured two accounts from different servers. Both are on Nextcloud 34.0.2. However, the difference is that one server has push notifications enabled, the other one doesn't. I uploaded a file via the web interface and from the server without push_notify, it takes about 30 seconds for the file to show up in finder. The file I uploaded to the server with push notify enabled, the file never showed up in Finder.

c4539 avatar Aug 09 '26 09:08 c4539

I don't have push notifications enabled, but the externally added file does appear in "Recent activity" in the status bar dropdown, it just does not show up in Finder.

BangyStudios avatar Aug 12 '26 13:08 BangyStudios

I uploaded a file via the web interface and from the server without push_notify, it takes about 30 seconds for the file to show up in finder. The file I uploaded to the server with push notify enabled, the file never showed up in Finder.

Okay, that is a valuable trace to follow.

i2h3 avatar Aug 26 '26 09:08 i2h3

We need to prepare for the next due release and because of that move the target milestone for this non-blocking issue.

i2h3 avatar Sep 14 '26 13:09 i2h3

Same symptom on 34.0.4, with a File Provider domain-log trace

Client: 34.0.4 Β· macOS: 26.6.2 (Apple Silicon) Β· Server: 34.0.4.1 (AIO) Mode: File Provider (macFileProviderModeEnabled=true, isVfsEnabled=false) Β· ~11,400 items in the domain Report drafted with AI assistance; the log excerpts were verified against my own system.

I'm hitting the reported symptom, with one difference worth recording: in my case the item does eventually appear β€” after ~38 minutes β€” rather than never. Neither a VF toggle nor a client restart was needed; they only shorten the wait.

Timeline (2026-09-17, local time)

Time Event
12:39:07 enumerator set up for the folder; Received enumerate items request
12:39:10 Finished reading page … Processed 3 metadatas β€” the folder's last completed page that day
14:53:29 file created on the server from the mobile app (same account); both the web UI and the client's "Recent activity" show it
14:53:30 Received file ID changes for locally known metadata. Signalling enumerator.
14:53:34 β†’ 15:08:16 13Γ— Set up enumerator for that folder β€” no request, no page
15:00:16 PROPFIND of that folder returns 10369 bytes, was 8405 at 12:39:07 (+1964 B β‰ˆ the new entry)
15:09:21 / 15:10:47 XPC connection invalidated! β†’ extension restarts (new log file)
15:14:48, 15:21:18 2 more Set up enumerator β€” still no request, no page
15:28:23 ls, Finder, a third-party file manager and mdfind all show nothing for the new file
15:31:30 local item created (stat ctime; birth/mtime are backdated from the server's DAV metadata, so a plain ls makes the item look older than it is)

The part I haven't seen posted: the folder's enumerator keeps being created and never completes a page.

12:39:07.763  Set up enumerator.    {"url":".../Documents/Projects/Wallpapers"}
12:39:07.770  Received enumerate items request for enumerator with user
12:39:10.080  Finished reading page: FPPageSortedByName ... Processed 3 metadatas
14:53:34.229  Set up enumerator.    <- no request, no page
14:53:59.480  Set up enumerator.
15:05:56.618  Set up enumerator.
15:06:05.217  Set up enumerator.
15:06:07.242  Set up enumerator.
15:06:09.390  Set up enumerator.
15:06:28.426  Set up enumerator.
15:06:50.976  Set up enumerator.
15:06:56.803  Set up enumerator.
15:06:58.948  Set up enumerator.
15:07:06.329  Set up enumerator.
15:07:57.104  Set up enumerator.
15:08:16.397  Set up enumerator.
   (after the restart)
15:14:48.916  Set up enumerator.
15:21:18.283  Set up enumerator.

15 enumerator creations after the item appeared on the server, and not one of them produced an enumerate request or a page.

Same log, aggregate: Set up enumerator 2610 Β· Received enumerate items request 1715 Β· Finished reading page 1657 β€” i.e. 895 enumerators were created and never asked for anything. In the log written after the restart: 49 / 2 / 0 (counts drift, the extension keeps running).

The new file's name appears nowhere in the domain logs, while the DAV responses above show a listing containing it was fetched. So the extension had the item and never presented it. This also matches @BangyStudios' observation in this thread: it shows up in "Recent activity" but not in Finder.

Why I don't think this is #9688: I'm on 34.0.4 β€” the release that closed it and included #10751 β€” and it still reproduces. For what it's worth, that folder had been unchanged since it was created (mtime == birth); the only completed page for it that day was at 12:39:10, which is why this looks related to the "visited directory / refresh subscription" area #10751 touched.

Notes

  1. My server is AIO, which ships notify_push, so @c4539's failing configuration may well apply to me.
  2. The domain-log excerpt is pasted below in a code block: the enumerator history, the aggregate counts, the DAV lines, and the before/after local evidence. I can also provide the raw 3.2 MB domain log for 12:11β†’15:09 if that's more useful.
  3. FYI the VF off/on workaround would be my fallback, but per #10737 that toggle was removed in 34.0.2, so re-adding the account is the only lever left on 34.0.4.
# File Provider: item created on the server stays invisible locally for ~38 minutes
# Window: 2026-09-17, local time. Excerpts verbatim; host/account/ids/file names are placeholders.

## 1. Enumerator history for the affected folder (Documents/Projects/Wallpapers)
### log A (covers 12:11 -> 15:09) - the folder is set up repeatedly, no page completes
{"category":"Enumerator","date":"2026.09.17 12:39:07.763","details":{"account":"<user> https:\/\/cloud.example.com","url":"https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers"},"level":"info","message":"Set up enumerator."}
{"category":"Enumerator","date":"2026.09.17 12:39:07.770","details":{"account":"<user> https:\/\/cloud.example.com","url":"https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers"},"level":"info","message":"Received enumerate items request for enumerator with user"}
{"category":"Enumerator","date":"2026.09.17 12:39:10.080","details":{},"level":"info","message":"Finished reading page:\n    FPPageSortedByName\u0000\n    serverUrl: https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers\n    for user: <user> https:\/\/cloud.example.com.\n    Processed 3 metadatas"}
{"category":"Enumerator","date":"2026.09.17 14:53:34.229","details":{"account":"<user> https:\/\/cloud.example.com","url":"https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers"},"level":"info","message":"Set up enumerator."}
{"category":"Enumerator","date":"2026.09.17 14:53:59.480","details":{"account":"<user> https:\/\/cloud.example.com","url":"https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers"},"level":"info","message":"Set up enumerator."}
{"category":"Enumerator","date":"2026.09.17 15:05:56.618","details":{"account":"<user> https:\/\/cloud.example.com","url":"https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers"},"level":"info","message":"Set up enumerator."}
{"category":"Enumerator","date":"2026.09.17 15:06:05.217","details":{"account":"<user> https:\/\/cloud.example.com","url":"https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers"},"level":"info","message":"Set up enumerator."}
{"category":"Enumerator","date":"2026.09.17 15:06:07.242","details":{"account":"<user> https:\/\/cloud.example.com","url":"https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers"},"level":"info","message":"Set up enumerator."}
{"category":"Enumerator","date":"2026.09.17 15:06:09.390","details":{"account":"<user> https:\/\/cloud.example.com","url":"https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers"},"level":"info","message":"Set up enumerator."}
{"category":"Enumerator","date":"2026.09.17 15:06:28.426","details":{"account":"<user> https:\/\/cloud.example.com","url":"https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers"},"level":"info","message":"Set up enumerator."}
{"category":"Enumerator","date":"2026.09.17 15:06:50.976","details":{"account":"<user> https:\/\/cloud.example.com","url":"https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers"},"level":"info","message":"Set up enumerator."}
{"category":"Enumerator","date":"2026.09.17 15:06:56.803","details":{"account":"<user> https:\/\/cloud.example.com","url":"https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers"},"level":"info","message":"Set up enumerator."}
{"category":"Enumerator","date":"2026.09.17 15:06:58.948","details":{"account":"<user> https:\/\/cloud.example.com","url":"https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers"},"level":"info","message":"Set up enumerator."}
{"category":"Enumerator","date":"2026.09.17 15:07:06.329","details":{"account":"<user> https:\/\/cloud.example.com","url":"https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers"},"level":"info","message":"Set up enumerator."}
{"category":"Enumerator","date":"2026.09.17 15:07:57.104","details":{"account":"<user> https:\/\/cloud.example.com","url":"https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers"},"level":"info","message":"Set up enumerator."}
{"category":"Enumerator","date":"2026.09.17 15:08:16.397","details":{"account":"<user> https:\/\/cloud.example.com","url":"https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers"},"level":"info","message":"Set up enumerator."}

### log B (after the extension restarted, 15:10 ->) - still no page completes
{"category":"Enumerator","date":"2026.09.17 15:14:48.916","details":{"account":"<user> https:\/\/cloud.example.com","url":"https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers"},"level":"info","message":"Set up enumerator."}
{"category":"Enumerator","date":"2026.09.17 15:21:18.283","details":{"account":"<user> https:\/\/cloud.example.com","url":"https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers"},"level":"info","message":"Set up enumerator."}

## 2. Aggregate enumerator counts
log A: set up=2610  requests=1715  pages=1657
log B: set up=49  requests=2  pages=0

## 3. Non-enumerator activity in the window (14:50 -> 15:10)
{"category":"FileProviderExtension","date":"2026.09.17 14:53:30.462","details":{},"level":"info","message":"Received file ID changes for locally known metadata. Signalling enumerator."}
{"category":"FileProviderExtension","date":"2026.09.17 14:55:37.850","details":{},"level":"info","message":"Received file ID changes for locally known metadata. Signalling enumerator."}
{"category":"FileProviderExtension","date":"2026.09.17 14:56:21.894","details":{},"level":"info","message":"All items successfully processed for keepDownloaded=true"}
{"category":"MaterializedEnumerationObserver","date":"2026.09.17 14:58:30.185","details":{"item":"01641663ocxsqlzozdwk","name":"<file>"},"level":"info","message":"Updating item state to dataless."}
{"category":"MaterializedEnumerationObserver","date":"2026.09.17 14:58:30.196","details":{"item":"01646514ocxsqlzozdwk","name":"<file>"},"level":"info","message":"Updating item state to dataless."}
{"category":"MaterializedEnumerationObserver","date":"2026.09.17 14:58:30.203","details":{"item":"01641662ocxsqlzozdwk","name":"<file>"},"level":"info","message":"Updating item state to dataless."}
{"category":"MaterializedEnumerationObserver","date":"2026.09.17 14:58:30.216","details":{"item":"01642609ocxsqlzozdwk","name":"<file>"},"level":"info","message":"Updating item state to dataless."}
{"category":"MaterializedEnumerationObserver","date":"2026.09.17 14:58:30.224","details":{"item":"01641767ocxsqlzozdwk","name":"<file>"},"level":"info","message":"Updating item state to dataless."}
{"category":"MaterializedEnumerationObserver","date":"2026.09.17 14:58:30.234","details":{"item":"01641651ocxsqlzozdwk","name":"<file>"},"level":"info","message":"Updating item state to dataless."}
{"category":"MaterializedEnumerationObserver","date":"2026.09.17 14:58:30.245","details":{"item":"01642039ocxsqlzozdwk","name":"<file>"},"level":"info","message":"Updating item state to dataless."}
{"category":"FilesDatabaseManager","date":"2026.09.17 14:58:31.059","details":{},"level":"info","message":"Depth 1 read target changed: NSFileProviderRootContainerItemIdentifier"}
{"category":"FilesDatabaseManager","date":"2026.09.17 14:58:47.118","details":{},"level":"info","message":"Depth 1 read target changed: 00801789ocxsqlzozdwk"}
{"category":"FileProviderExtension","date":"2026.09.17 14:58:47.546","details":{},"level":"info","message":"Received file ID changes for locally known metadata. Signalling enumerator."}
{"category":"FilesDatabaseManager","date":"2026.09.17 14:58:48.140","details":{},"level":"info","message":"Depth 1 read target changed: 00801787ocxsqlzozdwk"}
{"category":"FileProviderExtension","date":"2026.09.17 14:59:28.021","details":{},"level":"info","message":"Received file ID changes for locally known metadata. Signalling enumerator."}
{"category":"FilesDatabaseManager","date":"2026.09.17 14:59:29.179","details":{},"level":"info","message":"Depth 1 read target changed: 00801810ocxsqlzozdwk"}
{"category":"FileProviderExtension","date":"2026.09.17 14:59:29.334","details":{},"level":"info","message":"Received file ID changes for locally known metadata. Signalling enumerator."}
{"category":"FileProviderExtension","date":"2026.09.17 14:59:36.551","details":{},"level":"info","message":"Received file ID changes for locally known metadata. Signalling enumerator."}
{"category":"FileProviderExtension","date":"2026.09.17 14:59:59.921","details":{},"level":"info","message":"Received file ID changes for locally known metadata. Signalling enumerator."}
{"category":"FileProviderExtension","date":"2026.09.17 15:05:16.899","details":{},"level":"info","message":"Received file ID changes for locally known metadata. Signalling enumerator."}
{"category":"FileProviderExtension","date":"2026.09.17 15:05:33.158","details":{},"level":"info","message":"Received file ID changes for locally known metadata. Signalling enumerator."}
{"category":"FileProviderExtension","date":"2026.09.17 15:09:21.795","details":{},"level":"info","message":"XPC connection invalidated!"}

## 4. DAV responses for the same folder (NextcloudKit log) - the extension DID fetch the updated listing
2026-09-17 12:39:07 [INFO] User: <user> https://cloud.example.com - Network response request: https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, result: success(8405 bytes)
2026-09-17 15:00:16 [INFO] User: <user> https://cloud.example.com - Network response request: https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, result: success(10369 bytes)

## 5. Local absence on the Mac at 15:28:23 (37 min after creation)
$ ls -la ".../Documents/Projects/Wallpapers"
total 0
drwx------@  5 <user>  staff     160 May 12  2025 .
drwx------@ 40 <user>  staff    1280 Sep 16 11:33 ..
-rw-------@  1 <user>  staff  402868 Mar 19  2024 existing-c.jpg
-rw-------@  1 <user>  staff  630125 Mar 19  2024 existing-b.jpg
-rw-------@  1 <user>  staff  202585 Mar 19  2024 existing-a.jpg
$ mdfind -name "new-file.heic"        # -> no output

## 6. The same item at 15:42 (it arrived on its own; ctime is the real arrival time)
$ ls -la ".../Wallpapers"
-rw-------@  1 <user>  staff  40686970 Sep 17 14:53 new-file.heic
$ stat -f "birth=%SB mtime=%Sm ctime=%Sc" .../new-file.heic
birth=Sep 17 14:53:29 2026  mtime=Sep 17 14:53:29 2026  ctime=Sep 17 15:31:30 2026
$ du -h .../new-file.heic
  0B

Radek27 avatar Sep 17 '26 14:09 Radek27

@Radek27 Mh… Have you also checked ~/Library/Containers/com.nextcloud.desktopclient.FileProviderExt/Data/Documents/Logs/log.txt? The underlying NextcloudKit maintains its own log. I know, not great. πŸ˜… Have you also enabled debug-level logging for more information in logs? That might help. I am asking myself whether the WebDAV requests just take long or are dispatched out at all.

i2h3 avatar Sep 19 '26 18:09 i2h3

Debug logging: enabled β€” full trace below, and the item is in the client database

Drafted with AI assistance; the log excerpts and traces were verified on my own machine.

Thanks @i2h3. Yes to both, and the debug output changes the picture: the item does reach the client's database and gets reported to the framework β€” it simply never appears on disk.

Setup: 34.0.4 / macOS, File Provider mode, debug logging via defaults write com.nextcloud.desktopclient.FileProviderExt debugLoggingEnabled -bool YES. I opened the folder in Finder, created a new JPG on the server from the iOS app at 13:06 (confirmed in the web UI), then deliberately left the folder untouched. Still absent 76 minutes later.

The NextcloudKit log β€” the fetch is fine, and it contains the new entry:

2026-09-20 13:27:01  Request started: PROPFIND .../Documents/Projects/Wallpapers
2026-09-20 13:27:01  Network response request: ... result: success(12421 bytes)

That folder returned 8405 bytes with 3 entries and 10369 bytes with 4 entries on 2026-09-17, so 12421 bytes is consistent with 5 entries. This is the only DAV response for that folder all day.

The item's own trace (id resolved from the file name):

13:27:01.719  [FilesDatabaseManager]  Created new item metadata during update.
13:59:08.511  [FilesDatabaseManager]  Appended updated item to working set changes.
13:59:08.583  [Enumerator]           Reporting updated item in change batch.
13:59:08.647  [toFileProviderItems]  Will enumerate item.

So the item is created in the database at 13:27, appended to the working-set changes and reported in a change batch at 13:59 β€” and the file is still not there.

The containing folder, every line:

13:02:51.063  System requested enumerator.
13:02:51.065  Providing enumerator for item with identifier.
13:14:01.056  Enumerator is being invalidated.
13:25:04.971  Updated existing item metadata.
13:54:41.789  System requested enumerator.
13:54:41.794  Providing enumerator for item with identifier.
13:59:08.509  Found updated item.
13:59:08.583  Reporting updated item in change batch.
13:59:08.621  Will enumerate item.
13:59:50.318  Skipping item metadata update; same as existing, or still in transit.

Domain-wide over the same period:

Set up enumerator                : 94
Received enumerate items request : 0
Finished reading page            : 0

Push works β€” 15 Γ— Received file ID changes for locally known metadata. Signalling enumerator. in eight minutes, three within 90 s of the upload β€” and the folder's own local mtime moved to the child's creation time (13:06), so the client did register the change locally.

Attached: the item trace above, plus a capture with the local state, the folder's domain-log lines, the NextcloudKit lines and the disk state.

One possibly related observation: 13,059 Γ— Skipping item metadata update; same as existing, or still in transit. in eight minutes, most under .venv/lib/python3.x/site-packages/…, with the Realm growing from 273 MB to 591 MB.

If you think it would be helpful, I can ask AI for theory why it thinks that the framework drops the enumerator.

# File Provider repro capture
# when:        2026-09-20 14:02:52 CEST
# client:      34.0.4 / macOS 27.0
# folder:      Documents/Projects/Wallpapers
# file:        <file>
# debug logging setting: 1

## 0. TIMINGS - fill these in yourself
   file created elsewhere (phone/web) : ____
   visible in web UI at               : ____
   appeared in Finder at              : ____  (or: did NOT appear within ___ min)

## 1. Local mirror right now
$ ls -la "$cloud/Documents/Projects/Wallpapers"
total 16
drwx------@  7 <user>  staff       224 Sep 20 13:06 .
drwx------@ 40 <user>  staff      1280 Sep 20 13:06 ..
-rw-r--r--@  1 <user>  staff      6148 Sep 17 16:33 .DS_Store
-rw-------@  1 <user>  staff    402868 Mar 19  2024 <other-media>
-rw-------@  1 <user>  staff    630125 Mar 19  2024 <other-media>
-rw-------@  1 <user>  staff    202585 Mar 19  2024 <other-media>
-rw-------@  1 <user>  staff  40686970 Sep 17 14:53 <other-media>

$ stat -f 'birth=%SB mtime=%Sm ctime=%Sc size=%z'
#   ctime is usually the local arrival time, but anything that touches the item
#   afterwards (materialisation, rename, a re-download) updates it too - capture promptly.
#   birth/mtime are backdated from the server's DAV metadata, so ls hides the arrival time.
stat: ~/Library/CloudStorage/Nextcloud-<account>/Documents/Projects/Wallpapers/<file>: stat: No such file or directory

$ du -h   # 0B = placeholder, not downloaded
du: ~/Library/CloudStorage/Nextcloud-<account>/Documents/Projects/Wallpapers/<file>: No such file or directory

$ mdfind -name "<file>"
~/Library/CloudStorage/Nextcloud-<account>/Documents/Projects/Wallpapers/<other-media>
/Volumes/pocket/Backup/home/Drive/Documents/Projects/Wallpapers/<other-media>

## 2. File Provider domain log - lines for this folder (all levels)
{"category":"Enumerator","date":"2026.09.20 13:02:51.065","details":{"account":"<user> https:\/\/cloud.example.com","url":"https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers"},"level":"info","message":"Set up enumerator."}
{"category":"Enumerator","date":"2026.09.20 13:27:01.422","details":{"url":"https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers"},"level":"debug","message":"Starting to read server URL."}
{"category":"Enumerator","date":"2026.09.20 13:27:01.711","details":{},"level":"debug","message":"Starting async conversion of NKFiles for serverUrl: https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers for user: <user> https:\/\/cloud.example.com"}
{"category":"Enumerator","date":"2026.09.20 13:54:41.794","details":{"account":"<user> https:\/\/cloud.example.com","url":"https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers"},"level":"info","message":"Set up enumerator."}
{"category":"FilesDatabaseManager","date":"2026.09.20 13:59:08.511","details":{"item":"01646852ocxsqlzozdwk","url":"https:\/\/cloud.example.com\/remote.php\/dav\/files\/<user>\/Documents\/Projects\/Wallpapers"},"level":"debug","message":"Appended updated item to working set changes."}

### counts (whole domain log dir)
Set up enumerator                : 94
Received enumerate items request : 0
Finished reading page            : 0
debug-level lines                : 111563

## 3. NextcloudKit log - lines for this folder
### mentioning the file (raw and %20-encoded name)

### all requests/responses for the folder (last 40)
2026-09-10 18:54:57 [INFO] User: <user> https://cloud.example.com - Network response request: https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, result: failure(Alamofire.AFError.sessionTaskFailed(error: Error Domain=NSURLErrorDomain Code=-1009 "The Internet con
), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, NSErrorFailingURLKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, _kCF
2026-09-11 09:58:53 [INFO] User: <user> https://cloud.example.com - Request started: PROPFIND https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers
2026-09-11 09:58:53 [INFO] User: <user> https://cloud.example.com - Network response request: https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, result: failure(Alamofire.AFError.sessionTaskFailed(error: Error Domain=NSURLErrorDomain Code=-1009 "The Internet con
), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, NSErrorFailingURLKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, _kCF
2026-09-11 19:22:58 [INFO] User: <user> https://cloud.example.com - Network response request: https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, result: failure(Alamofire.AFError.sessionTaskFailed(error: Error Domain=NSURLErrorDomain Code=-1009 "The Internet con
), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, NSErrorFailingURLKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, _kCF
2026-09-14 09:56:42 [INFO] User: <user> https://cloud.example.com - Network response request: https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, result: failure(Alamofire.AFError.sessionTaskFailed(error: Error Domain=NSURLErrorDomain Code=-1009 "The Internet con
), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, NSErrorFailingURLKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, _kCF
2026-09-14 11:40:59 [INFO] User: <user> https://cloud.example.com - Request started: PROPFIND https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers
2026-09-14 11:40:59 [INFO] User: <user> https://cloud.example.com - Network response request: https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, result: failure(Alamofire.AFError.sessionTaskFailed(error: Error Domain=NSURLErrorDomain Code=-1009 "The Internet con
), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, NSErrorFailingURLKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, _kCF
2026-09-14 13:55:53 [INFO] User: <user> https://cloud.example.com - Request started: PROPFIND https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers
2026-09-14 13:55:53 [INFO] User: <user> https://cloud.example.com - Network response request: https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, result: failure(Alamofire.AFError.sessionTaskFailed(error: Error Domain=NSURLErrorDomain Code=-1009 "The Internet con
), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, NSErrorFailingURLKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, _kCF
2026-09-15 10:01:22 [INFO] User: <user> https://cloud.example.com - Request started: PROPFIND https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers
2026-09-15 10:01:22 [INFO] User: <user> https://cloud.example.com - Network response request: https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, result: failure(Alamofire.AFError.sessionTaskFailed(error: Error Domain=NSURLErrorDomain Code=-1009 "The Internet con
), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, NSErrorFailingURLKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, _kCF
2026-09-16 09:59:40 [INFO] User: <user> https://cloud.example.com - Request started: PROPFIND https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers
2026-09-16 09:59:40 [INFO] User: <user> https://cloud.example.com - Network response request: https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, result: failure(Alamofire.AFError.sessionTaskFailed(error: Error Domain=NSURLErrorDomain Code=-1009 "The Internet con
), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, NSErrorFailingURLKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, _kCF
2026-09-17 12:39:07 [INFO] User: <user> https://cloud.example.com - Request started: PROPFIND https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers
2026-09-17 12:39:07 [INFO] User: <user> https://cloud.example.com - Network response request: https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, result: success(8405 bytes)
2026-09-17 15:00:16 [INFO] User: <user> https://cloud.example.com - Network response request: https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, result: success(10369 bytes)
2026-09-17 15:53:59 [INFO] User: <user> https://cloud.example.com - Network response request: https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, result: success(12337 bytes)
2026-09-17 16:33:20 [INFO] User: <user> https://cloud.example.com - Request started: DELETE https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers/wallpaper%<other-media>
2026-09-17 16:33:20 [INFO] User: <user> https://cloud.example.com - Network response request: https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers/wallpaper%<other-media>, result: success(0 bytes)
2026-09-17 16:33:21 [INFO] User: <user> https://cloud.example.com - Request started: GET https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers/<other-media>
2026-09-17 16:34:59 [INFO] User: <user> https://cloud.example.com - Request started: PROPFIND https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers
2026-09-17 16:34:59 [INFO] User: <user> https://cloud.example.com - Network response request: https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, result: success(10369 bytes)
2026-09-17 19:33:12 [INFO] User: <user> https://cloud.example.com - Request started: PROPFIND https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers
2026-09-17 19:33:12 [INFO] User: <user> https://cloud.example.com - Network response request: https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, result: failure(Alamofire.AFError.sessionTaskFailed(error: Error Domain=NSURLErrorDomain Code=-1009 "The Internet con
), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, NSErrorFailingURLKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, _kCF
2026-09-19 01:26:02 [INFO] User: <user> https://cloud.example.com - Request started: PROPFIND https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers
2026-09-19 01:26:02 [INFO] User: <user> https://cloud.example.com - Network response request: https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, result: failure(Alamofire.AFError.sessionTaskFailed(error: Error Domain=NSURLErrorDomain Code=-1009 "The Internet con
), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, NSErrorFailingURLKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, _kCF
2026-09-19 08:27:21 [INFO] User: <user> https://cloud.example.com - Network response request: https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, result: failure(Alamofire.AFError.sessionTaskFailed(error: Error Domain=NSURLErrorDomain Code=-1009 "The Internet con
), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, NSErrorFailingURLKey=https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, _kCF
2026-09-20 13:27:01 [INFO] User: <user> https://cloud.example.com - Request started: PROPFIND https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers
2026-09-20 13:27:01 [INFO] User: <user> https://cloud.example.com - Network response request: https://cloud.example.com/remote.php/dav/files/<user>/Documents/Projects/Wallpapers, result: success(12421 bytes)

### request/response balance for the folder
Request started : 56
Network response: 67

## 4. Log files present / disk
-rw-r--r--@ 1 <user>  staff  17820742 Sep 20 08:40 2026-09-20_00-11-54 (91739).jsonl
-rw-r--r--@ 1 <user>  staff   6721616 Sep 20 11:53 2026-09-20_08-41-38 (12050).jsonl
-rw-r--r--@ 1 <user>  staff   1874192 Sep 20 12:47 2026-09-20_11-53-34 (18916).jsonl
-rw-r--r--@ 1 <user>  staff  36196753 Sep 20 14:03 2026-09-20_12-48-34 (1263).jsonl
-rw-r--r--@  1 <user>  staff   93227438 Sep 15 23:59 log-2026-09-15.txt
-rw-r--r--@  1 <user>  staff  190899627 Sep 17 23:59 log-2026-09-17.txt
-rw-r--r--@  1 <user>  staff   73619542 Sep 18 23:59 log-2026-09-18.txt
-rw-r--r--@  1 <user>  staff   22564357 Sep 20 14:03 log.txt
/dev/disk3s5   926Gi   844Gi   3.2Gi   100%    3.7M   33M   10%   /System/Volumes/Data

Radek27 avatar Sep 20 '26 12:09 Radek27

Item trace - file created on the server, never materialised on the Mac

when: 2026-09-20 14:23:29

client: 34.0.4 / macOS 27.0

folder: Documents/Projects/Wallpapers

file:

1. Every domain-log line for the item (id resolved from the file name)

2026.09.20 13:27:01.719 [FilesDatabaseManager] Created new item metadata during update. name=- 2026.09.20 13:59:08.511 [FilesDatabaseManager] Appended updated item to working set changes. name=- 2026.09.20 13:59:08.583 [Enumerator] Reporting updated item in change batch. name= 2026.09.20 13:59:08.647 [toFileProviderItems] Will enumerate item. name=

2. Every domain-log line for the containing folder (00046974ocxsqlzozdwk)

2026.09.20 13:02:51.063 [FileProviderExtension] System requested enumerator. 2026.09.20 13:02:51.065 [Enumerator] Providing enumerator for item with identifier. 2026.09.20 13:14:01.056 [Enumerator] Enumerator is being invalidated. 2026.09.20 13:25:04.971 [FilesDatabaseManager] Updated existing item metadata. 2026.09.20 13:54:41.789 [FileProviderExtension] System requested enumerator. 2026.09.20 13:54:41.794 [Enumerator] Providing enumerator for item with identifier. 2026.09.20 13:59:08.509 [FilesDatabaseManager] Found updated item. 2026.09.20 13:59:08.583 [Enumerator] Reporting updated item in change batch. 2026.09.20 13:59:08.621 [toFileProviderItems] Will enumerate item. 2026.09.20 13:59:50.318 [FilesDatabaseManager] Skipping item metadata update; same as existing, or still in transit.

3. Counts (whole domain log directory)

Set up enumerator : 94 Received enumerate items request : 0 Finished reading page : 0 debug-level lines : 132113

4. DAV responses for the folder today

2026-09-20 13:27:01 [INFO] User: https://cloud.example.com - Network re

5. On disk

total 16 drwx------@ 7 staff 224 Sep 20 13:06 . drwx------@ 40 staff 1280 Sep 20 13:06 .. -rw-r--r--@ 1 staff 6148 Sep 17 16:33 .DS_Store -rw-------@ 1 staff 402868 Mar 19 2024 -rw-------@ 1 staff 630125 Mar 19 2024 -rw-------@ 1 staff 202585 Mar 19 2024 -rw-------@ 1 staff 40686970 Sep 17 14:53

6. Is the item present?

absent - 76 minutes after creation

Radek27 avatar Sep 20 '26 12:09 Radek27

Update: the file appeared on its own at 91 minutes, and the log shows what surfaced it

Drafted with AI assistance; the log excerpts and traces were verified on my own machine.

It was still absent at 76 minutes; 15 minutes later it appeared by itself. The ctime of the local item is 14:37:01 β€” 91 minutes after creation on the server at 13:06, and 70 minutes after the client already had it:

13:27:01  PROPFIND ... result: success(12421 bytes)      <- the only DAV response for that folder all day
13:27:01  [FilesDatabaseManager] Created new item metadata during update.
13:59:08  [Enumerator]           Reporting updated item in change batch.
13:59:08  [toFileProviderItems]  Will enumerate item.
          ... nothing changes on disk for another 37 minutes ...
14:36:56  [Enumerator]  Reporting change batch. updated: 47, deleted: 8, moreComing: false
14:37:01  file appears locally (stat ctime)

The per-item report at 13:59 had no visible effect. The bulk working-set change batch at 14:36:56 was followed by the item appearing five seconds later.

Two things worth noting:

  • No re-fetch happened. That folder has exactly one WebDAV response all day (13:27:01), and the item appeared purely from data the client already had locally β€” so this is neither "requests take long" nor "the change isn't discovered".
  • du reports 0 B for the new file, i.e. the normal un-downloaded placeholder, so the delay isn't materialisation either.

Caveat on coverage: debug logging was enabled from 13:06 until 14:14, so the 14:37 arrival is documented by INFO-level lines only β€” I can't show the framework side of that moment.

So the gap appears to sit between the client's database and what the framework presents: the client had the item at 13:27 and reported it in a per-item change batch at 13:59, but it only became visible after a later bulk change batch. Happy to re-run with debug logging on across the whole window if that helps pin down the handoff.

Radek27 avatar Sep 20 '26 12:09 Radek27