Hello,
I am trying out syncthing at the moment and am doing some tests.
I encountered a problem which probably has to do with this error:
error="directory has been deleted on a remote device but is not empty; the contents are probably ignored on that remote device, but not locally
The setup is as follows:
- 1 Windows 11 PC
- 1 TrueNAS server with Syncthing app
- Both have a shared directory that is supposed to synchronize automatically.
In principle, this works.
However, I noticed that synchronizing directories that have been renamed takes a very long time.
What is being synchronized: 7,200 files, 804 folders, approx. 3.9 GB (1 parent folder with Wordpress within and 1 large file)
When I create the files on the PC and they are synchronized to the server, it takes approx. 3 minutes. When I rename the parent folder and the file, synchronization takes approx. 2-3 minutes.
I don’t know exactly what happens, but the process seems to be something like this:
Syncthing creates a new folder with the new name (visible on the server’s file system), then copies the files into it or over the network (probably not, as this is too fast), at which point a problem occurs, see log:
2025-12-17 11:52:34 INF Deleted directory (folder.id=dataset folder.type=sendreceive dir.name="Webseite Wordpress/wp-content" dir.permissions=0755 log.pkg=model)
2025-12-17 11:52:34 INF Failed to delete directory (folder.id=dataset folder.type=sendreceive dir.name="Webseite Wordpress" dir.permissions=0755 error="directory has been deleted on a remote device but is not empty; the contents are probably ignored on that remote device, but not locally" log.pkg=model)
2025-12-17 11:52:34 INF Failed to delete directory (folder.id=dataset folder.type=sendreceive dir.name="Webseite Wordpress/V2 Dev/wp-content" dir.permissions=0755 error="directory has been deleted on a remote device but is not empty; the contents are probably ignored on that remote device, but not locally" log.pkg=model)
2025-12-17 11:52:34 INF Deleted directory (folder.id=dataset folder.type=sendreceive dir.name="Webseite Wordpress/V2 Dev/wp-content/plugins/wordpress-seo" dir.permissions=0755 log.pkg=model)
2025-12-17 11:52:34 INF Failed to delete directory (folder.id=dataset folder.type=sendreceive dir.name="Webseite Wordpress/V2 Dev" dir.permissions=0755 error="directory has been deleted on a remote device but is not empty; the contents are probably ignored on that remote device, but not locally" log.pkg=model)
2025-12-17 11:52:34 INF Failed to delete directory (folder.id=dataset folder.type=sendreceive dir.name="Webseite Wordpress/V2 Dev/wp-content" dir.permissions=0755 error="directory has been deleted on a remote device but is not empty; the contents are probably ignored on that remote device, but not locally" log.pkg=model)
2025-12-17 11:52:34 INF Deleted directory (folder.id=dataset folder.type=sendreceive dir.name="Webseite Wordpress/V2 Dev/wp-content/plugins" dir.permissions=0755 log.pkg=model)
2025-12-17 11:52:34 INF Failed to delete directory (folder.id=dataset folder.type=sendreceive dir.name="Webseite Wordpress" dir.permissions=0755 error="directory has been deleted on a remote device but is not empty; the contents are probably ignored on that remote device, but not locally" log.pkg=model)
2025-12-17 11:52:34 INF Failed to delete directory (folder.id=dataset folder.type=sendreceive dir.name="Webseite Wordpress/V2 Dev" dir.permissions=0755 error="directory has been deleted on a remote device but is not empty; the contents are probably ignored on that remote device, but not locally" log.pkg=model)
2025-12-17 11:52:34 INF Failed to delete directory (folder.id=dataset folder.type=sendreceive dir.name="Webseite Wordpress" dir.permissions=0755 error="directory has been deleted on a remote device but is not empty; the contents are probably ignored on that remote device, but not locally" log.pkg=model)
2025-12-17 11:52:34 INF Failed to delete directory (folder.id=dataset folder.type=sendreceive dir.name="Webseite Wordpress/V2 Dev" dir.permissions=0755 error="directory has been deleted on a remote device but is not empty; the contents are probably ignored on that remote device, but not locally" log.pkg=model)
2025-12-17 11:52:34 INF Deleted directory (folder.id=dataset folder.type=sendreceive dir.name="Webseite Wordpress/V2 Dev/wp-content" dir.permissions=0755 log.pkg=model)
2025-12-17 11:52:34 WRN Failed to sync (path="Webseite Wordpress/V2 Dev" error="syncing: delete dir: directory has been deleted on a remote device but is not empty; the contents are probably ignored on that remote device, but not locally" folder.id=dataset folder.type=sendreceive log.pkg=model)
2025-12-17 11:52:34 WRN Failed to sync (path="Webseite Wordpress" error="syncing: delete dir: directory has been deleted on a remote device but is not empty; the contents are probably ignored on that remote device, but not locally" folder.id=dataset folder.type=sendreceive log.pkg=model)
2025-12-17 11:52:34 INF Folder failed to sync, will be retried (wait=2m0s folder.id=dataset folder.type=sendreceive log.pkg=model)
2025-12-17 11:54:34 INF Deleted directory (folder.id=dataset folder.type=sendreceive dir.name="Webseite Wordpress/V2 Dev" dir.permissions=0755 log.pkg=model)
2025-12-17 11:54:34 INF Deleted directory (folder.id=dataset folder.type=sendreceive dir.name="Webseite Wordpress" dir.permissions=0755 log.pkg=model)
Then a few empty folders remain and nothing happens at first, the status jumps back and forth from “Current”/green to “Not synchronized”/red, and at some point it is green and synchronized again. Then everything is OK. Times: Creating and copying folders until the problem occurs: approx. 30 seconds or faster. Strange status and problem resolution: 1.5-2 minutes.
Do you know what is going on there?
I fear with more PCs involved that could easily result in a confusing synchronization state.
Thank you,
Michael