rg35xx-cfw / rg35xx-cfw.github.io

RG35XX Custom Firmware Documentation
419 stars 3 forks source link

syncthing fails to start #85

Open boolemancer opened 5 months ago

boolemancer commented 5 months ago

When enabling syncthing in system settings > services > syncthing, syncthing doesn't start.

If you try to manually start syncthing with the instructions from the wiki, it fails because the version string is invalid:

[root@batocera-b /userdata/system]# /usr/bin/syncthing serve --no-browser --logfile=default
2024/01/27 15:15:11 Invalid version string "2b81b0f6";
        does not match regexp ^v\d+\.\d+\.\d+(-[a-z0-9]+)*(\.\d+)*(\+\d+-g[0-9a-f]+)?(-[^\s]+)?$

Looks like when it's getting built, it gets the version string from git and if the git environment doesn't match what it expects, you can end up with a git hash for the version number instead of the proper version:

https://forum.syncthing.net/t/solved-some-self-compiled-binaries-fail-with-start-due-to-invalid-version-string/16793/4

acmeplus commented 5 months ago

Good finding! I'm not building most of the firmware using the default batocera toolchain, so that makes sense. I'll look into that for the next release. Thanks for the link.

mhbates commented 4 months ago

Syncthing seems to be fixed with v39.