Why is this error message coming?

Blockquote 2024-03-17 22:56:57: Failed to create folder root directory CreateFile \?\D:\my_folder_name: Access is denied.

2024-03-17 22:56:57: Error on folder “Obsidian” (ererw-fsfad): CreateFile \?\D:\my_folder_name: Access is denied.

It’s an obsidian folder with all my notes. I didn’t encrypt my folder or anything. What can I do?

It’s difficult to say without more details, but based on the two error messages, it’s very likely that the user Syncthing is running under isn’t the same user who owns D:\my_folder_name. Given the pathname syntax (drive letter + folder name), I’m assuming you’re using some version of Windows.

Although it’s really a Windows permission issue instead of a Syncthing issue, at the very least, the following information would be helpful in providing possible solutions:

  • Which Syncthing package? (A download link is ideal because there are community-supported bundles that differ from the official packages.)
  • Windows version?
  • Is D: an external drive?
  • What filesystem is on D:? (e.g. FAT, exFAT, NTFS)
  1. This syncthing: GitHub - Bill-Stewart/SyncthingWindowsSetup: Syncthing Windows Setup I am not sure about the package number
  2. Windows 10
  3. No, it’s not an external drive, it’s another partition.
  4. This is the full address: D:\Nescafenori\Documents\000Designs\1 Logo designs\1 Logo after branding\0.0 Logo designs 2023 obsidian I’m not sure about your last question. The obsidian files are in .md (markdown) extension

So based on what’s been described so far, chances are that during the install the administrative mode was chosen which set up a Windows Service for auto-starting Syncthing when Windows starts/boots up.

In Windows, for security reasons the Windows Service user account runs with restricted privileges which prevents it from accessing user data (e.g. your D:\ partition).

One solution is to grant the Windows Service user access to your files and folders: https://github.com/Bill-Stewart/SyncthingWindowsSetup/?tab=readme-ov-file#granting-folder-permissions-for-the-service-account

However, a simpler, more secure, and more portable solution is to run Syncthing as the same user who owns the files and folders under D:. It ensures that all files and folders that Syncthing creates will also be owned by the same user. Upgrades of the Syncthing executable will also be simpler.

It doesn’t sound like you have much of a Syncthing setup yet, if so, then the easiest path forward is to uninstall the “Syncthing Windows Setup” package, reboot (for good measure), and then reinstall using the non-administrative mode.

If uninstalling and reinstalling isn’t an option, the Syncthing Windows Setup page you link to has all of the info for manually making the necessary changes.

In Windows, if you right-click on the drive letter and select “Properties”, the dialog box will show the filesystem being used. Given what’s known so far, it’s likely NTFS.

There are various reasons for using one filesystem over another, but for most users it’s a combination of maximum file size, maximum volume size, and portability. USB flash drives are commonly formatted with a FAT filesystem because it’s usable out-of-the-box with Windows, Macs, Linux, Chrome OS, Android, iOS, etc.