Hi,
Syncing from a Windows Server.
Syncthing was working fine when synced folder was D:\XXX\YYY. (D: is a local drive).
However, we moved “XXX” to a network drive, and now it is mounted under \some-path.
Whatever I do - trying to use a folder on the net drive is failing.
Tried giving the drive a letter (using net use) - “T:”
Tried giving the drive a letter (using subst) - “T:”
Tried using symlinks to a folder in D:
Tried using
Tried using junction
All produced the same result - Syncthing attempts to create the folder, as if it doesn’t exist and fails.
The error is even weirder as it looks like
Failed to create folder root directory mkdir \\?\T:\XXX: The system cannot find the path specified.
What user account is Syncthing running under? Windows hides mapped network drives from other users, so make sure it’s the same user you are logging in with.
It’s running as a service.
It was running as the default service user, and I even tried creating a new user, add them to local admins and use that for the service to run. still same.
Can you run Syncthing on that other server and use it that way? This way the second/new server you moved the files to can handle syncing files by itself.
It is sub-optimal to configure a service to run from a user’s account, there are a number of potential problems and it’s fragile (for example, a user changing their password silently breaks the service).
If Syncthing is running under localsystem then you need to grant permissions (to the Share and at the NTFS level) on the server to the computername$ of the machine where Syncthing is running. If Syncthing is running as a separate user account then grant permissions to that account.
Regardless do not use mapped drive letters, use the full unc path in the form \\servername.domain\sharename\foldername, mapped drive letters not only exist only for an individual user (keep in mind you can have multiple users logged in to a computer at once, they each have their own set of mapped drives) but if the network isn’t available on login a mapped drive doesn’t get created, and there are cases where they get completely forgotten.
There’s no “other” server. it’s a network volume (AWS) mounted on few Windows machines (I’m trying to sync from one of them to a different, remote Ubuntu)