moshes
(Moshe)
April 9, 2015, 7:50am
1
All,
I am trying to setup Syncthing on a WIN7 machine with LAN mounted directories.
The response I am receiving the following error
10:47:57: Stopping folder “Work-S” - mkdir s:: The system cannot find the path specified.
I tried defing the folder as “s:” or “s:/” with same results.
Any idea?
Thanking you in advance
moshes
(Moshe)
April 9, 2015, 8:59am
3
of course. :- )
It’s there for a few years, (had no problem with another sync software (BTSync)
Thanks for your response/
MS
Can you provide your config? (with the sensitive bits removed)
Also, try capital S
moshes
(Moshe)
April 12, 2015, 7:55am
5
Hi,
I tried capital S with no success.
Here is the file:
<configuration version="10">
<folder id="default" path="C:\Users\WIN7\Sync" ro="false" rescanIntervalS="60" ignorePerms="false" autoNormalize="false">
<device id="{REMOVED}"></device>
<versioning></versioning>
<lenientMtimes>false</lenientMtimes>
<copiers>1</copiers>
<pullers>16</pullers>
<hashers>0</hashers>
</folder>
<folder id="s-work" path="S:\" ro="false" rescanIntervalS="60" ignorePerms="false" autoNormalize="true">
<device id="{REMOVED}"></device>
<versioning type="simple">
<param key="keep" val="10"></param>
</versioning>
<lenientMtimes>false</lenientMtimes>
<copiers>1</copiers>
<pullers>16</pullers>
<hashers>0</hashers>
</folder>
<device id="{REMOVED}" name="MOSHE-WORK" compression="metadata" introducer="false">
<address>dynamic</address>
</device>
<gui enabled="true" tls="false">
<address>127.0.0.1:8080</address>
<apikey>{REMOVED}</apikey>
</gui>
<options>
<listenAddress>0.0.0.0:22000</listenAddress>
<globalAnnounceServer>udp4://announce.syncthing.net:22026</globalAnnounceServer>
<globalAnnounceServer>udp6://announce-v6.syncthing.net:22026</globalAnnounceServer>
<globalAnnounceEnabled>true</globalAnnounceEnabled>
<localAnnounceEnabled>true</localAnnounceEnabled>
<localAnnouncePort>21025</localAnnouncePort>
<localAnnounceMCAddr>[ff32::5222]:21026</localAnnounceMCAddr>
<maxSendKbps>0</maxSendKbps>
<maxRecvKbps>0</maxRecvKbps>
<reconnectionIntervalS>60</reconnectionIntervalS>
<startBrowser>true</startBrowser>
<upnpEnabled>true</upnpEnabled>
<upnpLeaseMinutes>0</upnpLeaseMinutes>
<upnpRenewalMinutes>30</upnpRenewalMinutes>
<urAccepted>0</urAccepted>
<urUniqueID></urUniqueID>
<restartOnWakeup>true</restartOnWakeup>
<autoUpgradeIntervalH>12</autoUpgradeIntervalH>
<keepTemporariesH>24</keepTemporariesH>
<cacheIgnoredFiles>true</cacheIgnoredFiles>
<progressUpdateIntervalS>5</progressUpdateIntervalS>
<symlinksEnabled>true</symlinksEnabled>
<limitBandwidthInLan>false</limitBandwidthInLan>
</options>
</configuration>```
moshes
(Moshe)
April 12, 2015, 9:05am
6
ALL
I tried again with full path rather than the drive letter, and got this as a result:
11:59:21: Stopping folder “S-Work” - open \RECEPTION\Office Documents\Moshe.stfolder: Access is denied.
11:59:24: Loading .stignore: open \RECEPTION\Office Documents\Moshe.stignore: Access is denied.
Full path being \\<machie name>\<path to folder>\
?
I think you need double \\
in the front. Also make sure you have read/write permission.
moshes
(Moshe)
April 12, 2015, 11:10am
8
Thanks, but
I put double “\” in fromt. It shows here only one.
moshes
(Moshe)
April 12, 2015, 11:26am
9
Permissions are RW for Everyone
Are you using NSSM or something like that to run syncthing as a service?
moshes
(Moshe)
April 12, 2015, 1:40pm
11
YES
According to recomendations here:
NSSM runs stuff under a different user (service user AFAIK) which probably doesn’t have access to the network share.
moshes
(Moshe)
April 12, 2015, 2:21pm
13
Syncthing is logged a local system
In any event, the remore directory has RW permissions to EVERYONE.
Try running syncthing directly and see if that works.
moshes
(Moshe)
April 13, 2015, 5:15am
15
It seems OK.
Should I define the RW permissions for the user AFAIK on the folder?
moshes
(Moshe)
April 13, 2015, 8:26am
16
Bypass:
I created a new local user and used it to run the Syncthing service on local machine.
I still had to provide full path rather than the drive letter.
All- Thanks for your help
canton7
(Antony Male)
April 13, 2015, 8:34am
17
Please make sure you’re aware of the security implications of running Syncthing as a service/privileged user, and make sure you secure the GUI. I’ve updated that wiki article.
See posts such as:
The point is that if a user executes a malicious file, that file runs with the user’s permissions. It can only change things the user has permission to change.
But… If Syncthing is running as a local admin, and doesn’t have a GUI password set up, any process can talk to Syncthing. Even the most unprivileged process can open a connection on port 8080 and talk to its REST API. It can ask Syncthing to set up a folder anywhere (since Syncthing, running as local admin, has permission to do anything…