This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
error on enabling
-
Schizoid
- NewUser

- Posts: 9
- Joined: 14 Jul 2015 08:12
- Status: Offline
error on enabling
i'm stuck with this error, can you give me some ideas to solve it?
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
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.
- zoon01
- Developer

- Posts: 724
- Joined: 20 Jun 2012 21:06
- Location: Netherlands
- Contact:
- Status: Offline
Re: error on enabling
Hi,
please try it again by remove the "."
So Home directory looks like this: /mnt/42/syncthing
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.86 / 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.
Development system is same system in virtualbox.
-
Schizoid
- NewUser

- Posts: 9
- Joined: 14 Jul 2015 08:12
- Status: Offline
Re: error on enabling
no luck, i got the same error as before
- daoyama
- Developer

- Posts: 394
- Joined: 25 Aug 2012 09:28
- Location: Japan
- Status: Offline
Re: error on enabling
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?
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
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

- Posts: 9
- Joined: 14 Jul 2015 08:12
- Status: Offline
Re: error on enabling
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)
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)
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: error on enabling
create a new dataset : /mnt/42/syncthing and try again
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
Schizoid
- NewUser

- Posts: 9
- Joined: 14 Jul 2015 08:12
- Status: Offline
Re: error on enabling
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
when trying to sed
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-
Schizoid
- NewUser

- Posts: 9
- Joined: 14 Jul 2015 08:12
- Status: Offline
Re: error on enabling
updated to release 2235, same behavior
- daoyama
- Developer

- Posts: 394
- Joined: 25 Aug 2012 09:28
- Location: Japan
- Status: Offline
Re: error on enabling
I can't reproduce it.
which shell do you use for root user?
do you have /mnt/42/syncthing/config.xml?
Please use this from shell.Schizoid wrote: sed: 1: "/mnt/42/syncthing/confi ...": invalid command code 4
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
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
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

- Posts: 9
- Joined: 14 Jul 2015 08:12
- Status: Offline
Re: error on enabling
as root, without "-i" it works
so the problem lies in some permission, maybe i have to add syncthing user to admin group?
so the problem lies in some permission, maybe i have to add syncthing user to admin group?
- daoyama
- Developer

- Posts: 394
- Joined: 25 Aug 2012 09:28
- Location: Japan
- Status: Offline
Re: error on enabling
this is not -i, correct option is -i ''. (-i and empty string by double single quot)Schizoid wrote:as root, without "-i" it works
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
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

- Posts: 9
- Joined: 14 Jul 2015 08:12
- Status: Offline
Re: error on enabling
this is the command i find in logs
and throws this error:
these are working
first one obviously print config to screen, second one (two single quote) to file
script is missing some escapes?
Code: Select all
/usr/bin/sed -i s/127.0.0.1:8384/192.168.210.42:8384/ /mnt/42/syncthing/config.xmlCode: Select all
sed: 1: "/mnt/42/syncthing/confi ...": invalid command code 4Code: Select all
/usr/bin/sed s/127.0.0.1:8384/192.168.210.42:8384/ /mnt/42/syncthing/config.xmlCode: Select all
/usr/bin/sed -i '' s/127.0.0.1:8384/192.168.210.42:8384/ /mnt/42/syncthing/config.xmlscript is missing some escapes?
- daoyama
- Developer

- Posts: 394
- Joined: 25 Aug 2012 09:28
- Location: Japan
- Status: Offline
Re: error on enabling
No, the log looks after de-quoting.Schizoid wrote:script is missing some escapes?
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
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

- Posts: 9
- Joined: 14 Jul 2015 08:12
- Status: Offline
Re: error on enabling
short system log this time:
no logfile in synchthing folder
Code: Select all
root: /etc/rc.d/syncthing: WARNING: failed to start syncthing
root: Failed to start service syncthing-
HarusKG
- NewUser

- Posts: 4
- Joined: 17 Jun 2013 14:40
- Status: Offline
Re: error on enabling
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.
I solved my problem. I have trouble with incorrect permissions.
-
Schizoid
- NewUser

- Posts: 9
- Joined: 14 Jul 2015 08:12
- Status: Offline
Re: error on enabling
how did you set permissions to have it work?
-
Oklahoma
- Starter

- Posts: 16
- Joined: 14 Feb 2016 20:56
- Status: Offline
Re: error on enabling
Yep, I think that this is my problem as well. Would also like to know more about getting it to work.Schizoid wrote:how did you set permissions to have it work?
-
corvin
- NewUser

- Posts: 3
- Joined: 23 Dec 2016 00:21
- Status: Offline
Re: error on enabling
Same problem here... any thoughts? running 10.3.0.3 - Pilingitam (revision 3330) liveUSB on x86 system.
Regards,
Regards,
-
corvin
- NewUser

- Posts: 3
- Joined: 23 Dec 2016 00:21
- Status: Offline
Re: error on enabling
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:
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
I have working service now, I will return here when I get working sync folder.../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
-
corvin
- NewUser

- Posts: 3
- Joined: 23 Dec 2016 00:21
- Status: Offline
Re: error on enabling
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...
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...