[FreeNAS 9 Plugin] - Syncthing

Status
Not open for further replies.

Silwanyx

Dabbler
Joined
Oct 18, 2014
Messages
19
Hi Joshua

Just to remaind you, it would be great if you could now add the new syncthing 0.13.2 (at this time) to standard installation of FreeNAS available plugin, because, it is not backward compatible with 0.12 or any other old versions, it has new database system (it create a new database folder and system: index-v0.13.0.db on config), and this is not compatible with older versions.

Here you have Infos about this new 0.13.x Version:

https://forum.syncthing.net/t/syncthing-v0-13-2-and-v0-12-25-released/7421

https://github.com/syncthing/syncthing/releases/tag/v0.13.2

Would great, if you can change the old 0.12.2 to the new one.

Thanks

Regards
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hi Joshua

Just to remaind you, it would be great if you could now add the new syncthing 0.13.2 (at this time) to standard installation of FreeNAS available plugin, because, it is not backward compatible with 0.12 or any other old versions, it has new database system (it create a new database folder and system: index-v0.13.0.db on config), and this is not compatible with older versions.

Here you have Infos about this new 0.13.x Version:

https://forum.syncthing.net/t/syncthing-v0-13-2-and-v0-12-25-released/7421

https://github.com/syncthing/syncthing/releases/tag/v0.13.2

Would great, if you can change the old 0.12.2 to the new one.

Thanks

Regards
good to know, thanks.
ok, I'll put updating this plugin on my to do list. unfortunately, at the moment I am pretty strapped for time so I dont think I'll be able to address this for a while.
 

Soloam

Contributor
Joined
Feb 14, 2014
Messages
196
Hi all, any one was able to make GUI SSL to work? I replaced the /var/db/syncthing/https-cert.pem and /var/db/syncthing/https-key.pem with my certificate and key, but when I reboot the jail it's reverted back to the old certificate.

Thank you
 

Silwanyx

Dabbler
Joined
Oct 18, 2014
Messages
19
Hi all

Just to inform everyone, if someone has the problem with starting the Syncthing plugin after updating it, i found the problem! (If you click on Syncthing plugin button to start it, but, it won't turn "On", it stay "Off")

Here is the steps i have done, and my Syncthing WORK AGAIN:

For some reason, after updating it, the "syncthing" binary on:
"/mnt/(your mnt pool)/jails/syncthing_1/usr/pbi/syncthing-amd64/bin/"

and on:
"mnt/(your mnt pool)/jails/syncthing_1/usr/pbi/syncthing-amd64/bin/ST"

IS NOT THERE, disapeared (on ".../ST" folder not there, but on ".../bin" folder, transformed on "syncthing" symlink folder, which is wrong.

I have simply installed another copy of Syncthing plugin, and checked his folders, and have found, that the binary's from this 2 folders are missing. Perhaps, on:

"mnt/(your mnt pool)/jails/syncthing_1/usr/pbi/syncthing-amd64/bin/"

is transformed in a folder symlink, and the bin was not there.

I have deleted this symlink folder, because, on the other copy of Syncthing plugin, this symlink was not there, and if "syncthing" folder shortcut exist there, you won't be able to copy or to put the synthing binary there. Therefore, you should delete this "syncthing" folder symlink, and put there a copy of synthing binary.

I have just simply copyed the entire "mnt/(your mnt pool)/jails/syncthing_1/usr/pbi/syncthing-amd64/bin" folder from the 2nd installed copy of syncthing plugin to my PC, and from there, copyed to my first Syncthing plugin on "mnt/(your mnt pool)/jails/syncthing_1/usr/pbi/syncthing-amd64/bin/", but, it was just this 2 binary files that was missed there, and this was the problem, if i clicked on FreeNAS GUI to start the Syncthing plugin, the indicator won't turn to "On", just keep stay off.

I hope this would help many people out there with the starting Syncthing plugin after updating it.

Salutations.
 

Soloam

Contributor
Joined
Feb 14, 2014
Messages
196
worked like a charm, thank you Silwanyx
 

Silwanyx

Dabbler
Joined
Oct 18, 2014
Messages
19
Glad to hear it works for you, @Soloam

Maybe, @Joshua Parker Ruehlig should check this, if can fix it, to not delete or transform the binary's to symlink, on update.

Or, if deleting the old one, to make shure, that the new binary's are successfully copyed on it's places, where should be.
 
Last edited:

chrisada

Explorer
Joined
Dec 1, 2015
Messages
58
Thanks, @Silwanyx that worked flawlessly!

Your diagnostic is spot on. What I did was
  • Installed a 2nd copy of SyncThing plugin as syncthing_2 (I didn't know you can do that!)
  • SSH into my 9.10 installation as root
  • Delete the symlink syncthing from mnt/(your mnt pool)/jails/syncthing_1/usr/pbi/syncthing-amd64/bin
  • Copy syncthing binary files from syncthing_2 to syncthing_1 (2 times, under /bin and /bin/ST )
And now syncthing_1 is able to start. It also updated itself to version 0.13.7 to 0.13.9 automatically.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
crap, sorry I didn't test updates. I needed a clean way to have the syncthing binary in its own folder for updating purposes.

but obviously what I did, didn't work across updates. =\

I'll explore this a bit and see there's a better way to handle updates.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
hmm, I think before I did this with a symlink, and the way I named the folder broke things. the new naming should work for future updates I think. sorry guys
 

chrisada

Explorer
Joined
Dec 1, 2015
Messages
58
hmm, I think before I did this with a symlink, and the way I named the folder broke things. the new naming should work for future updates I think. sorry guys
Always extremely appreciative of what you have done for us with all the plugins!

Sent from my Nexus 6P using Tapatalk
 

SumitB

Dabbler
Joined
Aug 26, 2014
Messages
15
Thanks, @Silwanyx that worked flawlessly!

Your diagnostic is spot on. What I did was
  • Installed a 2nd copy of SyncThing plugin as syncthing_2 (I didn't know you can do that!)
  • SSH into my 9.10 installation as root
  • Delete the symlink syncthing from mnt/(your mnt pool)/jails/syncthing_1/usr/pbi/syncthing-amd64/bin
  • Copy syncthing binary files from syncthing_2 to syncthing_1 (2 times, under /bin and /bin/ST )
And now syncthing_1 is able to start. It also updated itself to version 0.13.7 to 0.13.9 automatically.

Can you please provide a step-by-step about doing this? I can install the 2nd instance of syncthing. How to delete the symlink and get it working from there?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Can you please provide a step-by-step about doing this? I can install the 2nd instance of syncthing. How to delete the symlink and get it working from there?
Here's a solution to fix an upgraded syncthing plugin. If you could test, that would be great.
Code:
rm -r /usr/pbi/syncthing-amd64/bin/syncthing
fetch "https://github.com/syncthing/syncthing/releases/download/v0.13.9/syncthing-freebsd-amd64-v0.13.9.tar.gz"
tar -zxf syncthing-freebsd-amd64-v*.tar.gz
install -o syncthing syncthing-freebsd-amd64-v*/syncthing /usr/pbi/syncthing-amd64/bin/ST
rm -r syncthing-freebsd-amd64-v*
 

SumitB

Dabbler
Joined
Aug 26, 2014
Messages
15
Here's a solution to fix an upgraded syncthing plugin. If you could test, that would be great.
Code:
rm -r /usr/pbi/syncthing-amd64/bin/syncthing
fetch "https://github.com/syncthing/syncthing/releases/download/v0.13.9/syncthing-freebsd-amd64-v0.13.9.tar.gz"
tar -zxf syncthing-freebsd-amd64-v*.tar.gz
install -o syncthing syncthing-freebsd-amd64-v*/syncthing /usr/pbi/syncthing-amd64/bin/ST
rm -r syncthing-freebsd-amd64-v*

Where do I execute these commands. Sorry for being such a noob!
 

nikzim

Cadet
Joined
Jan 17, 2015
Messages
2
Here's a solution to fix an upgraded syncthing plugin. If you could test, that would be great.
Code:
rm -r /usr/pbi/syncthing-amd64/bin/syncthing
fetch "https://github.com/syncthing/syncthing/releases/download/v0.13.9/syncthing-freebsd-amd64-v0.13.9.tar.gz"
tar -zxf syncthing-freebsd-amd64-v*.tar.gz
install -o syncthing syncthing-freebsd-amd64-v*/syncthing /usr/pbi/syncthing-amd64/bin/ST
rm -r syncthing-freebsd-amd64-v*

When I try to execute the second step (fetching syncthing v0.13.9 from github) I get an SSL certificate verification failure.

Code:
Certificate verification failed for /C=USJ/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended Validation Server CA
47226:error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_clnt.c:997:
fetch: https://github.com/syncthing/syncthing/releases/download/v0.13.9/syncthing-freebsd-amd64-v0.13.9.tar.gz: Authentication error


Any idea how to fix this?
 
Last edited by a moderator:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
When I try to execute the second step (fetching syncthing v0.13.9 from github) I get an SSL certificate verification failure.

Code:
Certificate verification failed for /C=USJ/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended Validation Server CA
47226:error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_clnt.c:997:
fetch: https://github.com/syncthing/syncthing/releases/download/v0.13.9/syncthing-freebsd-amd64-v0.13.9.tar.gz: Authentication error


Any idea how to fix this?
older installs of freebsd had this problem.
I think this would fix it. Tell me if it does
pkg install ca_root_nss
 

cadavor

Cadet
Joined
Dec 6, 2015
Messages
4
Here's a solution to fix an upgraded syncthing plugin. If you could test, that would be great.
Code:
rm -r /usr/pbi/syncthing-amd64/bin/syncthing
fetch "https://github.com/syncthing/syncthing/releases/download/v0.13.9/syncthing-freebsd-amd64-v0.13.9.tar.gz"
tar -zxf syncthing-freebsd-amd64-v*.tar.gz
install -o syncthing syncthing-freebsd-amd64-v*/syncthing /usr/pbi/syncthing-amd64/bin/ST
rm -r syncthing-freebsd-amd64-v*
Thanks joshua for your help.

Any ideas for the release date of plugin update to syncthing 0.14 ?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Thanks joshua for your help.

Any ideas for the release date of plugin update to syncthing 0.14 ?
I'll look into it when I have time, maybe in the next week. I don't keep up with the releases, but I guess a new FreeNAS plugin update is needed each time a major version is updated?
 
Status
Not open for further replies.
Top