threefoldtecharchive / jumpscaleX_builders

Apache License 2.0
1 stars 0 forks source link

update syncthing and verify it's working [unstable] #58

Closed xmonader closed 4 years ago

xmonader commented 4 years ago
Hamdy commented 4 years ago

Syncthing is working, However I had to upgrade golang ot version 1.14 rather than 1.12.x

Hamdy commented 4 years ago

Also another issue I encountered, was when running as a root , it gives warning, then stops first time then run correctly again, so I updated builder to add new user called syncthing and ran the server from that user

Another issue, is it can not run in tmux in proper way sincce tmux uses something like exec -a startupcmd_{cmd} cmd {args} which does not work with syncthing that assumes that the first argument number 0 passed to it is the same exact name as the binary name so startupcmd_syncthing now passed as (0) argument by exec will not work, so I renamed the binary to startupcmd_syncthing which is a workaround, not the best thing, but I don't think we have many of usecases like this any way!

here's the commit : https://github.com/threefoldtech/jumpscaleX_builders/commit/68c3df301baea7a0aefdd2acc577782763abde27

Hamdy commented 4 years ago

To verify : j.builders.storage.syncthing.test

Dina-Abd-Elrahman commented 4 years ago