Newer builds for stdiscosrv?

While upgrading some of my machines to Debian bullseye, I lost one of my discovery servers. What happened was, that I forgot to pin apt.syncthing.net in apt and the syncthing-discosrv package in Debian bullseye is newer than the one in apt.s.n (Debian has build an unofficial 1.12.1~ds1-4, while apt.s.n has 1.8.0).

This caused apt to replace the package with the one from the debian repo, which killed the entire service, apparently because the systemd unit files are incompatible (they reference the same service, but are named differently, which then kills the symlinks).

Obviously this was my fault for not pinning (and not noticing the replacement of the package), but it got me thinking:

The current syncthing-discosrv release is over 1 year old. I know that there hasn’t been much change to this application, but still it’s go version is aging and all.

I would therefore like to ask if it were possible to release a newer version of stdiscosrv - same features, just compiled with recent go and all. A “refreshed” version, just for good measure.

2 Likes

Yeah it seems about time. I’ve published a new release to GitHub and the APT repo, and also deployed it to the public servers.

2 Likes

Ah, sorry to complain again, but I think something went wrong with that 1.18.1 release in apt.s.n:

The upgrade apparently removed my systemd unit file entirely. There’s no longer a corresponding unit file in /lib/systemd/system (neither stdiscosrv nor syncthing-discosrv) so I can’t start/stop via systemd.

The binary itself was upgraded though and prints:

stdiscosrv v1.18.1 "Fermium Flea" (go1.16.5 linux-amd64) deb@build.syncthing.net 2021-07-30 12:41:57 UTC [noupgrade, purego]

(Haven’t yet checked the github release)

Edit:

Having checked the GitHub release, the .deb file no longer contains the service file (outputs from 1.8.0 and 1.18.1 below for comparison):

# dpkg -c syncthing-discosrv_1.8.0_amd64.deb
drwxr-xr-x 0/0               0 2020-08-11 22:49 ./
drwxr-xr-x 0/0               0 2020-08-11 22:49 ./lib/
drwxr-xr-x 0/0               0 2020-08-11 22:49 ./lib/systemd/
drwxr-xr-x 0/0               0 2020-08-11 22:49 ./lib/systemd/system/
-rw-r--r-- 0/0             569 2020-08-11 22:49 ./lib/systemd/system/stdiscosrv.service
drwxr-xr-x 0/0               0 2020-08-11 22:49 ./usr/
drwxr-xr-x 0/0               0 2020-08-11 22:49 ./usr/bin/
-rwxr-xr-x 0/0        13988916 2020-08-11 22:49 ./usr/bin/stdiscosrv
drwxr-xr-x 0/0               0 2020-08-11 22:49 ./usr/share/
drwxr-xr-x 0/0               0 2020-08-11 22:49 ./usr/share/man/
drwxr-xr-x 0/0               0 2020-08-11 22:49 ./usr/share/man/man1/
-rw-r--r-- 0/0           14367 2020-08-11 22:49 ./usr/share/man/man1/stdiscosrv.1
drwxr-xr-x 0/0               0 2020-08-11 22:49 ./usr/share/doc/
drwxr-xr-x 0/0               0 2020-08-11 22:49 ./usr/share/doc/syncthing-discosrv/
-rw-r--r-- 0/0             152 2020-08-11 22:49 ./usr/share/doc/syncthing-discosrv/README.txt
-rw-r--r-- 0/0           16726 2020-08-11 22:49 ./usr/share/doc/syncthing-discosrv/LICENSE.txt
-rw-r--r-- 0/0             161 2020-08-11 22:49 ./usr/share/doc/syncthing-discosrv/changelog.gz
-rw-r--r-- 0/0           12613 2020-08-11 22:49 ./usr/share/doc/syncthing-discosrv/AUTHORS.txt
drwxr-xr-x 0/0               0 2020-08-11 22:49 ./etc/
drwxr-xr-x 0/0               0 2020-08-11 22:49 ./etc/ufw/
drwxr-xr-x 0/0               0 2020-08-11 22:49 ./etc/ufw/applications.d/
-rw-r--r-- 0/0             116 2020-08-11 22:49 ./etc/ufw/applications.d/stdiscosrv
drwxr-xr-x 0/0               0 2020-08-11 22:49 ./etc/default/
-rw-r--r-- 0/0              92 2020-08-11 22:49 ./etc/default/syncthing-discosrv

All good, but 1.18.1 prints:

# dpkg -c syncthing-discosrv_1.18.1_amd64.deb
drwxr-xr-x 0/0               0 2021-08-22 07:48 ./
drwxr-xr-x 0/0               0 2021-08-22 07:48 ./usr/
drwxr-xr-x 0/0               0 2021-08-22 07:48 ./usr/bin/
-rwxr-xr-x 0/0        12161194 2021-08-22 07:48 ./usr/bin/stdiscosrv
drwxr-xr-x 0/0               0 2021-08-22 07:48 ./usr/share/
drwxr-xr-x 0/0               0 2021-08-22 07:48 ./usr/share/man/
drwxr-xr-x 0/0               0 2021-08-22 07:48 ./usr/share/man/man1/
-rw-r--r-- 0/0           14714 2021-08-22 07:48 ./usr/share/man/man1/stdiscosrv.1
drwxr-xr-x 0/0               0 2021-08-22 07:48 ./usr/share/doc/
drwxr-xr-x 0/0               0 2021-08-22 07:48 ./usr/share/doc/syncthing-discosrv/
-rw-r--r-- 0/0             152 2021-08-22 07:48 ./usr/share/doc/syncthing-discosrv/README.txt
-rw-r--r-- 0/0           16726 2021-08-22 07:48 ./usr/share/doc/syncthing-discosrv/LICENSE.txt
-rw-r--r-- 0/0             160 2021-08-22 07:48 ./usr/share/doc/syncthing-discosrv/changelog.gz
-rw-r--r-- 0/0           13842 2021-08-22 07:48 ./usr/share/doc/syncthing-discosrv/AUTHORS.txt
drwxr-xr-x 0/0               0 2021-08-22 07:48 ./etc/
drwxr-xr-x 0/0               0 2021-08-22 07:48 ./etc/ufw/
drwxr-xr-x 0/0               0 2021-08-22 07:48 ./etc/ufw/applications.d/
-rw-r--r-- 0/0             116 2021-08-22 07:48 ./etc/ufw/applications.d/stdiscosrv
drwxr-xr-x 0/0               0 2021-08-22 07:48 ./etc/default/
-rw-r--r-- 0/0              92 2021-08-22 07:48 ./etc/default/syncthing-discosrv

(Note the missing ./lib/systemd/system/stdiscosrv.service)

1 Like

Fallout from the fpm breakage on the last strelaysrv release. I fixed said breakage, but apparently the fix removed the systemd unit files. Fixing htat: build: Readd systemd files to deb releases (ref #7564) by imsodin · Pull Request #7899 · syncthing/syncthing · GitH

1 Like

OK let’s try this again then, shall we :slight_smile: APT only gets a new special 1.18.1.1 release…

1 Like

I don’t see anything in apt.s.n? There’s still 1.18.1 as most recent (other versions being <= 1.8.0) and the 1.18.1 package is still the old one. Am I missing something?

(No worries though, this isn’t critical for me as I am perfectly capable of fixing this myself)

No, you weren’t missing anything. I was missing that a four part version number doesn’t match the patterns in the scripts that publish the APT repo. It should be visible now.

2 Likes