Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BETA Test Syncthing! #1011

Closed
crazyscow opened this issue May 19, 2014 · 177 comments
Closed

BETA Test Syncthing! #1011

crazyscow opened this issue May 19, 2014 · 177 comments
Labels

Comments

@crazyscow
Copy link

Syncthing is similiar to btsync, however its open source, for more information go to http://syncthing.net/

Thanks to @cytec he was able to create a working version of Syncthing for the Synology NAS.
its in beta. and you can get it on the Package Center by adding http://cytec.us/spk/

dont forget to say thanks to cytec! =D

@cytec
Copy link
Member

cytec commented May 19, 2014

not sure if there is any need to compile the source by yourself...
just saw that the git page already provides binary downloads for armv5, armv6, armv7, 386 and amd64 here: https://github.com/calmh/syncthing/releases/tag/v0.8.7

som maybe just getting the correct file and upacking/copying it will do the trick?

@crazyscow
Copy link
Author

so you're saying i could just copy for example the amd64 linux tar (for the cedarview cpu) file into the cross directory and then complie a spk?
like i said im a noob.

@cytec
Copy link
Member

cytec commented May 20, 2014

basically yes...
you could take a look at the btsync Makefile which does basically the same thing https://github.com/SynoCommunity/spksrc/blob/develop/cross/btsync/Makefile

@crazyscow
Copy link
Author

makes sense. thank you ill try it out 👍

@crazyscow
Copy link
Author

i started a repo to see if you guys find anything, i hope i didnt offend anybody by putting these files into my repo.

https://github.com/crazyscow/booger.git

ok my problem is that it doesnt put the executable syncthing file into the install folder so that it will create a correct PLIST file. i directed it to the folder it creates, which is "syncthing-linux-amd64-v0.8.7"
https://github.com/crazyscow/booger/blob/master/cross/syncthing/Makefile

or am i missing something?

@cytec
Copy link
Member

cytec commented May 21, 2014

  • the SYNCTHING_ARCH should be the arch which should be downloaded from the github page so you have to change those to reflect the naming of the release files for example 6281 6282 is armv5 i think you can check that here: http://forum.synology.com/wiki/index.php/What_kind_of_CPU_does_my_NAS_have
  • the PLIST file just needs one single line (like the one from btysnc) bin:bin/syncthing
  • you link on a custom install target (myInstall) but that is not in your makefile... that should look something like this:
myInstall:
    mkdir -p $(STAGING_INSTALL_PREFIX)/bin
    install -m 755 $(WORK_DIR)/$(PKG_DIR)/syncthing $(STAGING_INSTALL_PREFIX)/bin/

@Diaoul
Copy link
Member

Diaoul commented May 21, 2014

If possible, I'd like the whole thing to be recompiled rather than picking precompiled binaries. This way we ensure maximum compatibility with all models.

@cytec
Copy link
Member

cytec commented May 21, 2014

@Diaoul i think that would be a little bit more difficult because afaik its completely written in go and i don't know if/how go goes with cross compilig....

@Diaoul
Copy link
Member

Diaoul commented May 21, 2014

What about making a Go SPK ? Maybe that's possible.

@cytec
Copy link
Member

cytec commented May 21, 2014

should be possible...
i'm not sure if it needs go to run on a DS... but it definitively needs go to compile the binaries so maybe there must be a native/go package as well?

@crazyscow
Copy link
Author

@cytec thanks.
i updated most of the points. except for the busybox part. i first need to read about, what it is or what it does.

i guess ill need to read about stuff because as i said i have no idea what was discussed above. i dont even know what skript those files are written in.
https://github.com/crazyscow/booger.git

@cytec
Copy link
Member

cytec commented May 22, 2014

@crazyscow nice
armada370 and armadaxp are armv7 i think

about the port:
why did you use 7070? i would have picked something in the 8xxx range as its a web interface and common port is 80 or 8080... that already used by SAB so the next "free" port would be something like: 8100 or 8280 or something like that...
idk what @Diaoul thinks about that

@cytec
Copy link
Member

cytec commented May 28, 2014

just a little update:
Got a working installation on my 1513+ wasn't able to test it on my 213j as i currently don't have access to that DS... cytec@e33740e

only problem i could see so far is that syncthing requires a lot of restarts (every time settings change, node was added etc) which currently doesn't work cause it somehow doesn't kill itself properly and thus can't "rebind" on the used port because it's already/still in use...

if anyone likes to test, feel free to download the BETA spk from my Package Center

@crazyscow
Copy link
Author

@cytec awesome. Id like to beta test.
where can i find your spk?
i can test it on a 1513+ or a 212j

@cytec
Copy link
Member

cytec commented May 29, 2014

You can add this URL in Package Center http://cytec.us/spk/

@penenkel
Copy link

@cytec could you also compile a spk for qoriq (DS 213+)? I'd really like to try it out myself.

@crazyscow crazyscow changed the title anyone heard of Syncthing? BETA Test Syncthing! May 29, 2014
@crazyscow
Copy link
Author

@cytec Im having an issue and not sure if you're having the same, but after i installed and set up a repository to sync. i pressed on the restart button and now syncthing doesnt start anymore nor can i uninstall it. I also rebooted the NAS.
I was able to set up a node with my computer but to create a repo failed, and now i cant really do anything anymore lol.

@cytec
Copy link
Member

cytec commented May 31, 2014

@penenkel atm im not compiling it myself as that would require a lot more stuff to change/install/fix so i'm just useing the precompiled binarys for now and afail qoriq is PPC and there are no binarys for ppc... so sadly: nope

@crazyscow i didn't have much time to test it, as im currently on vacation and don't have any access to a DS from here. I just checked the package is installed and started properly.

What i found out was:

  1. If you start the package, somehow it don't get a "k im running now" message back so it kinda "blocks" everything... (starting manually over ssh fixed that for me)
  2. syncthing requires a lot of restarts from the web interface (changes in config etc) but thats nor really working atm because its blocking it self somehow by not completely shutting down (port already in use error)

hopefully i have some more time to test when im home again next week, also maybe there should be added a firewall route as i was not able to connect to my DS from outside of my lokal network

@cytec
Copy link
Member

cytec commented Jun 3, 2014

@crazyscow im back home and fixed some errors.

i've got it running perfectly with 2 Machines in my local LAN and another one outside of my LAN yeah also the errors i've mentioned above should now be fixed as i reworked the start-stop script

there should be a new version (0.8.12-3) be available by now in the beta channel of my repo ;)

if everything fails you can still manually uninstall it (remove files/folders through ssh)

@crazyscow
Copy link
Author

@cytec thanks.
i had to remove it manually via ssh. however, after i installed it wont run. so i ssh'ed into the /volume1/@tmp/@synopackage/ directory and deleted the syncthing folder. that didnt work either.

ill try to reboot later tonight and see what happens.

@kevinkupski
Copy link

@cytec first of all thank you so much for your effort!

Unfortunately it's the same for me: I have two DS213j NAS, removed any old syncthing file via SSH and installed the new package. When I hit start it started loading but stayed in the 'stopped' state. Any ideas? Is there a chance to get a better error output? Thanks!

@cytec
Copy link
Member

cytec commented Jun 4, 2014

yeah i have that error sometimes too, i dont really know why yet, but im always able to start it via ssh
/var/packages/syncthing/scripts/start-stop-status start does work, also stopping from Package Manager works quite well... idk whats wrong there...

Sometimes you just have to wait a little bit longer then the status in Package Center is also updated...

@ferongr
Copy link

ferongr commented Jun 26, 2014

I'm interested in purchasing a Synology device (probably a DS112j) in order to turn it into a dedicated Synthing device. My only caveat is regarding speed. St uses very CPU-heavy encryption. On my fast 1.2GHz dual-core Android Krait device I can manage a maximum speed of around 5-7Mbps. How fast is St expected those single-core Synology devices?

Sorry for the somewhat offtopic comment.

@cytec
Copy link
Member

cytec commented Jun 26, 2014

@ferongr it runs nicely on my DS1513+ which has a Dual Core 2.13 GHz and 4GB Ram...
on my 211j on the other hand it has 99% CPU usage when syncing.

I can't say much about the speed but i think if your main purpose is to use the DS as a Cloud Storage you may better use Synologys CloudStation or BTSync on the lower price segment Devices...

@ferongr
Copy link

ferongr commented Jun 26, 2014

CloudStation and BTSync are proprietary, closed source solutions that cannot be audited for the effectiveness of their encryption schemes and the existence of backdoors defeating encryption for use by law enforcement agencies. They are considered harmful if one cares about one's privacy.

Anyway. I expected a 99% CPU usage on the slower devices, but if they can manage 3 or more Mbps then they are okay for my needs.

@cytec
Copy link
Member

cytec commented Jun 27, 2014

@ferongr i've just tested it on my local LAN with 500MB of files and got speed between 2 and 4 Mbps (on my 211j) hope that helps you out

@ferongr
Copy link

ferongr commented Jun 27, 2014

Indeed, it does help me put the relative CPU performance between models into perspective. I'll start saving for a 214 (or a 214+ if the bump from 512MB to 1GB of RAM can be justified) plus disks for RAID-1. Thank you.

@Diaoul
Copy link
Member

Diaoul commented Jun 27, 2014

I think you will never get better performances until the package is built from source instead of basically packaging the pre-built binary.
That's how it's done with BTSync because the code is proprietary, SyncThing being opensource it needs to be recompiled using Synology's toolchains.

@crazyscow
Copy link
Author

@NickPyz
oh ok thanks. I was also on v.0.9.4-2 before and after i read your message on github saying that you had no problem upgrading i thought you were on the new version, which is now on the synocommunity repo, so i upgraded to this version v.0.10.30-3. Now i dont have the update button.
too bad, i guess im stuck on 10.30-3 for now :)

thanks for the reply.

@qlxltd
Copy link

qlxltd commented Jun 15, 2015

Is there a step by step guide how to install from binary?

@NickPyz
Copy link

NickPyz commented Jun 15, 2015

@crazyscow @Diaoul

According to Jakob Borg, who is the primary Syncthing developer, version 0.10.30 had a broken upgrade system. This might explain crazycow's problem with no upgrade button. Details in the following thread from the Syncthing Forum:

https://forum.syncthing.net/t/synology-ds412-update-to-latest-version/3024/2

Since this is the only version available in Synocommunity packages. other new users will get trapped with no version upgrade option. This should resolve by releasing a compiled Synology version based on 0.11.1 or later (presently @ 0.11.9).

Thanks.

@tcaleshu
Copy link

Any chance anyone has an old package file lying around? @cytec ? The synocommunity 0.10.30 does not, as @NickPyz says, have an upgrade option. So I'm stuck without a client to sync the synology to other devices running current revisions...

Sounds like pretty much an package version will update properly.

@cytec
Copy link
Member

cytec commented Jun 26, 2015

i think i still have some 0.10.11 spk's flying around somewhere... which arch?

@tcaleshu
Copy link

@cytec its a DS414 - armadaxp

@crazyscow
Copy link
Author

@cytec do you have one for cedarview, too? would be awesome.

@Dr-Bean Dr-Bean added the beta label Jul 16, 2015
@Dr-Bean
Copy link
Contributor

Dr-Bean commented Jul 16, 2015

Syncthing 0.11.15-4 has been published on the repository.

@Dr-Bean
Copy link
Contributor

Dr-Bean commented Jul 19, 2015

Syncthing 0.11.15-5 has been released for ARM-based arches (88f6281, alpine/4k, armada*, comcerto2k). See #1792.

@jokogr
Copy link

jokogr commented Aug 23, 2015

Hello,
I would like to ask two things:

  1. Is it safe to upgrade syncthing using the "Automatic upgrades" option?
  2. How to ensure that my normal NAS users have access to files which have only owner access? E.g., a file in the system reports permissions and ownership as such: "-rw------- 1 syncthin users" and it is not listed at all on my SMB network mount from my workstation.

@Dr-Bean
Copy link
Contributor

Dr-Bean commented Aug 24, 2015

1: Yes.
2: Check the Syncthing FAQ or their forums. For example: http://docs.syncthing.net/users/faq.html#how-to-configure-multiple-users-on-a-single-machine or https://forum.syncthing.net/t/sync-file-ownership-and-permissions/143.
Owner-only permissions simply won't work if multiple users should be able to access the files. I'd suggest to set the appropriate permissions (read or r/w) for the users group on those files.

@reyman
Copy link

reyman commented Nov 4, 2015

Hi, i'm not seeing Syntching for ds213+ , any news about portage on architecture :
DS213+ Freescale QorIQ P1022 ppc 1.067 2 2 yes qoriq 64-bit@DDR3 512MB

Update :
Ok, i see the reason in another comment. This is sad :(
Any news of Synology for https://golang.org/doc/install/gccgo on toolchain ?

@cytec
Copy link
Member

cytec commented Nov 4, 2015

@reyman nope, see #1011 (comment) and following comments. go itself is not compatible with PowerPC arches

@Dr-Bean
Copy link
Contributor

Dr-Bean commented Nov 30, 2015

I've removed the beta tag from Syncthing, I believe we've done enough testing over time ;)
Our package release is now at 0.12.5, although the internal update function of Syncthing should work for the people that want to keep up-to-date with the latest.

Packages on the repo will be updated later. In the mean time, I'll close this issue. In the future, questions about the Syncthing package can be asked by opening a new issue.

@Dr-Bean Dr-Bean closed this as completed Nov 30, 2015
@reyman
Copy link

reyman commented Jan 22, 2016

Hi @Dr-Bean and @cytec, it seems there is ppc package on syncthing now : https://syncthing.net/
Don't know how it works.

@cytec
Copy link
Member

cytec commented Jan 22, 2016

@reyman yeah... ppc64 i think that was mentioned in another issue already... idk if synology ppc models are 64models

@Dr-Bean
Copy link
Contributor

Dr-Bean commented Jan 22, 2016

Unfortunately none of the PPC models that Synology has released are compatible with PPC64.

@safersurfing
Copy link

Been having problems with my Synology DS715 .. installed the package and got it to run (had to change unser in the start-stop script to root. The package runs, but I cannot access it via the Web UI. Any ideas why that could be? DSM 5. Alpine processor.

@MoOx
Copy link

MoOx commented Oct 2, 2016

Getting the same problem currently. When I installed it, no issue with web GUI, but with current version (0.14.7) can't access the web GUI :/

@MoOx
Copy link

MoOx commented Oct 2, 2016

Ok nevermind, it's an issue with my router/port. When accessing via *.synology.me, it's not working, when using local url address (192.168...) it is.

@hwmrocker
Copy link

@cytec sorry to spam you here, but i wanted to install syncting.spk on my sonology but your repository has it no longer. could you provide me the binary file somehow?

@cytec
Copy link
Member

cytec commented Jan 28, 2017

@hwmrocker that's right syncthing is available through https://synocommunity.com for a while now ;)

@hwmrocker
Copy link

@cytec many thanks!

publicarray added a commit to publicarray/spksrc that referenced this issue Nov 18, 2018
ymartin59 pushed a commit that referenced this issue Dec 1, 2018
* Fix script having 0 bytes after wget failes to get an IP

Use the cached file to fix the 0 byte file on upgrade
Can also be upgraded in the future

* Address issues raised

#3501 (comment)

* Disable online checks after saving file and reduce netprobe_timeout

* This decreases the boot time when offline (e.g setting up a new network)

* Should also reduce long service status updates in the package center.

Also allow the user to change the logfile location and the ability to disable it

* PPC is unsupported #1011 (comment)
and Go has no ppc32 support: golang/go#22885

* dnscrypt-proxy 2.0.19
stefaang pushed a commit to stefaang/spksrc that referenced this issue Jan 21, 2019
* Fix script having 0 bytes after wget failes to get an IP

Use the cached file to fix the 0 byte file on upgrade
Can also be upgraded in the future

* Address issues raised

SynoCommunity#3501 (comment)

* Disable online checks after saving file and reduce netprobe_timeout

* This decreases the boot time when offline (e.g setting up a new network)

* Should also reduce long service status updates in the package center.

Also allow the user to change the logfile location and the ability to disable it

* PPC is unsupported SynoCommunity#1011 (comment)
and Go has no ppc32 support: golang/go#22885

* dnscrypt-proxy 2.0.19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests