*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

error on enabling

Open source file synchronization tool.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Schizoid
NewUser
NewUser
Posts: 9
Joined: 14 Jul 2015 08:12
Status: Offline

error on enabling

#1

Post by Schizoid » 30 Nov 2015 22:51

i'm stuck with this error, can you give me some ideas to solve it?
st1.jpg
st2.jpg
latest 10.2.0.2.2118, embedded, amd64, more info upon request if needed

edit: sorry about formatting, i do not understand why the second image is not previewed
You do not have the required permissions to view the files attached to this post.

User avatar
zoon01
Developer
Developer
Posts: 768
Joined: 20 Jun 2012 21:06
Location: Netherlands
Contact:
Status: Offline

Re: error on enabling

#2

Post by zoon01 » 13 Dec 2015 14:28

Hi,
please try it again by remove the "."

So Home directory looks like this: /mnt/42/syncthing
System specs: XigmaNAS 11.2.0.4 -embedded on Samsung 860 EVO 256GB and Supermicro X10SL7-F w / Bios v3.2, IPMI v.03.84 / CPU E3-1241 v3 @ 3.50GHz - 32GB Crucial DDR3L 1600mhz ECC 1.35v , LSI 2308 on PH20.00.07.00 IT mode, Storage: 5x Western Digital Red (WD30EFRX) raidz

Development system is same system in virtualbox.

Schizoid
NewUser
NewUser
Posts: 9
Joined: 14 Jul 2015 08:12
Status: Offline

Re: error on enabling

#3

Post by Schizoid » 13 Dec 2015 17:44

no luck, i got the same error as before

User avatar
daoyama
Developer
Developer
Posts: 423
Joined: 25 Aug 2012 09:28
Location: Japan
Status: Offline

Re: error on enabling

#4

Post by daoyama » 13 Dec 2015 20:20

Is the target directory empty? If not empty, please use empty directory.
Most case you don't have correct permission or use old configuration.

BTW, what format are you using on /mnt/42?
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1

Schizoid
NewUser
NewUser
Posts: 9
Joined: 14 Jul 2015 08:12
Status: Offline

Re: error on enabling

#5

Post by Schizoid » 13 Dec 2015 22:16

empty directories, fresh created they have 755 permission 1000 uid and 1000 gid
700 permission 983 uid 983 gid after i try to launch syncthing (so some steps of the script are actually working)

/mnt/42 is the root mount point of my zfs pool (it has some nested datasets if it is a relevant information)

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4925
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: error on enabling

#6

Post by raulfg3 » 13 Dec 2015 23:36

create a new dataset : /mnt/42/syncthing and try again
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

Schizoid
NewUser
NewUser
Posts: 9
Joined: 14 Jul 2015 08:12
Status: Offline

Re: error on enabling

#7

Post by Schizoid » 14 Dec 2015 07:17

still same error, same behavior as before about changing permissions and ownership


edit:
i tried running commands by hand as root
it works, but i got a

Code: Select all

sed: 1: "/mnt/42/syncthing/confi ...": invalid command code 4
when trying to sed

Schizoid
NewUser
NewUser
Posts: 9
Joined: 14 Jul 2015 08:12
Status: Offline

Re: error on enabling

#8

Post by Schizoid » 18 Dec 2015 19:29

updated to release 2235, same behavior

User avatar
daoyama
Developer
Developer
Posts: 423
Joined: 25 Aug 2012 09:28
Location: Japan
Status: Offline

Re: error on enabling

#9

Post by daoyama » 19 Dec 2015 09:39

I can't reproduce it.
Schizoid wrote: sed: 1: "/mnt/42/syncthing/confi ...": invalid command code 4
Please use this from shell.

Code: Select all

sudo -u syncthing /usr/bin/sed s/127.0.0.1:8384/192.168.210.42:8384/ /mnt/42/syncthing/config.xml
which shell do you use for root user?
do you have /mnt/42/syncthing/config.xml?
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1

Schizoid
NewUser
NewUser
Posts: 9
Joined: 14 Jul 2015 08:12
Status: Offline

Re: error on enabling

#10

Post by Schizoid » 19 Dec 2015 17:02

as root, without "-i" it works

so the problem lies in some permission, maybe i have to add syncthing user to admin group?

User avatar
daoyama
Developer
Developer
Posts: 423
Joined: 25 Aug 2012 09:28
Location: Japan
Status: Offline

Re: error on enabling

#11

Post by daoyama » 19 Dec 2015 17:56

Schizoid wrote:as root, without "-i" it works
this is not -i, correct option is -i ''. (-i and empty string by double single quot)
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1

Schizoid
NewUser
NewUser
Posts: 9
Joined: 14 Jul 2015 08:12
Status: Offline

Re: error on enabling

#12

Post by Schizoid » 20 Dec 2015 11:17

this is the command i find in logs

Code: Select all

/usr/bin/sed -i s/127.0.0.1:8384/192.168.210.42:8384/ /mnt/42/syncthing/config.xml
and throws this error:

Code: Select all

sed: 1: "/mnt/42/syncthing/confi ...": invalid command code 4
these are working

Code: Select all

/usr/bin/sed s/127.0.0.1:8384/192.168.210.42:8384/ /mnt/42/syncthing/config.xml

Code: Select all

/usr/bin/sed -i '' s/127.0.0.1:8384/192.168.210.42:8384/ /mnt/42/syncthing/config.xml
first one obviously print config to screen, second one (two single quote) to file

script is missing some escapes?

User avatar
daoyama
Developer
Developer
Posts: 423
Joined: 25 Aug 2012 09:28
Location: Japan
Status: Offline

Re: error on enabling

#13

Post by daoyama » 20 Dec 2015 14:42

Schizoid wrote:script is missing some escapes?
No, the log looks after de-quoting.

If you have usable config, syncthing.log may be created under your specified directory after fail to start.
(in your case, /mnt/42/syncthing/syncthing.log)
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1

Schizoid
NewUser
NewUser
Posts: 9
Joined: 14 Jul 2015 08:12
Status: Offline

Re: error on enabling

#14

Post by Schizoid » 22 Dec 2015 20:56

short system log this time:

Code: Select all

root: /etc/rc.d/syncthing: WARNING: failed to start syncthing
root: Failed to start service syncthing
no logfile in synchthing folder



HarusKG
NewUser
NewUser
Posts: 4
Joined: 17 Jun 2013 14:40
Status: Offline

Re: error on enabling

#15

Post by HarusKG » 02 Feb 2016 20:32

I have same problem. First start - all ok! Stop service, clean Syncthing config folder, start service again... and error.

I solved my problem. I have trouble with incorrect permissions.

Schizoid
NewUser
NewUser
Posts: 9
Joined: 14 Jul 2015 08:12
Status: Offline

Re: error on enabling

#16

Post by Schizoid » 03 Feb 2016 07:14

how did you set permissions to have it work?

Oklahoma
Starter
Starter
Posts: 16
Joined: 14 Feb 2016 20:56
Status: Offline

Re: error on enabling

#17

Post by Oklahoma » 16 Feb 2016 06:00

Schizoid wrote:how did you set permissions to have it work?
Yep, I think that this is my problem as well. Would also like to know more about getting it to work.

corvin
NewUser
NewUser
Posts: 3
Joined: 23 Dec 2016 00:21
Status: Offline

Re: error on enabling

#18

Post by corvin » 23 Dec 2016 02:12

Same problem here... any thoughts? running 10.3.0.3 - Pilingitam (revision 3330) liveUSB on x86 system.

Regards,

corvin
NewUser
NewUser
Posts: 3
Joined: 23 Dec 2016 00:21
Status: Offline

Re: error on enabling

#19

Post by corvin » 24 Dec 2016 14:16

Hi,

I was poking around a bit and noticed, that if you put /var/run/syncthing as home directory, and create it, the service starts correctly with no error.
My hard drive is formatted in UFS and mounted in /mnt as Data (/mnt/Data/ ) so I just recreated permissions path from /var/run/syncthing to /mnt/Data/syncthing and the service starts correctly now!

I think syncthing needs read and execute permission for "others" along the path to be able to access home directory configred in NAS4Free webinterface.

Permissions on my folders:
/var
drwxr-xr-x 14 root wheel 512 Dec 23 10:25 var

/var/run
drwxr-xr-x 8 root wheel 1024 Dec 24 12:31 run

/var/run/syncthing
drwx------ 3 syncthing syncthing 512 Dec 24 12:12 syncthing
/mnt
drwxr-xr-x 3 root wheel 512 Dec 23 10:25 mnt

/mnt/Data
drwxr-xr-x 10 root staff 1536 Dec 24 12:10 Data

/mnt/Data/syncthing
drwx------ 3 syncthing syncthing 512 Dec 24 12:58 syncthing
I have working service now, I will return here when I get working sync folder...

corvin
NewUser
NewUser
Posts: 3
Joined: 23 Dec 2016 00:21
Status: Offline

Re: error on enabling

#20

Post by corvin » 24 Dec 2016 15:45

Hi,

Ok. I have all working now. To sync folder within your data drive, your folder to sync must be owned by syncthing group. Same rule of rx permission apply along the path to sync folder. Folder does not have to be owned by syncthing user, and to access it from for example Samba share, your samba user must be in syncthing group.
It all works fine then!

Regards,

By the way, I am running NAS4Free for home setup on HP T5540 thin client... :)

Post Reply

Return to “Syncthing”