GNU bug report logs - #75959
[PATCH] (home-)syncthing-service: added support for config serialization

Previous Next

Package: guix-patches;

Reported by: Zacchaeus <eikcaz <at> zacchae.us>

Date: Fri, 31 Jan 2025 04:18:03 UTC

Severity: normal

Tags: patch

Done: Leo Famulari <leo <at> famulari.name>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Rodion Goritskov <rodion <at> goritskov.com>
To: Zacchaeus Scheffer <eikcaz <at> zacchae.us>
Cc: ludo <at> gnu.org, mirai <at> makinata.eu, 75959 <at> debbugs.gnu.org, Gabriel Santos <gabrielsantosdesouza <at> disroot.org>, leo <at> famulari.name
Subject: [bug#75959] [PATCH v10] services: syncthing: Add support for config file generation.
Date: Sun, 23 Feb 2025 00:29:25 +0100
Zacchaeus Scheffer <eikcaz <at> zacchae.us> writes:

> Hi,
>
> Gabriel Santos <gabrielsantosdesouza <at> disroot.org> writes:
>
>> Greetings,
>>
>> I appreciate your efforts on this, but this completly broke
>> home-syncthing-service-type for me, as it's resetting my configuration,
>> giving my device another ID.
>>
>> --
>> Gabriel Santos
>
> I think I know why this is.  At some point Syncthing changed the default
> config directory from ~/.config/syncthing to ~/.local/state/syncthing.
> If you move your syncthing .pem files from ~/.local/state/syncthing to
> ~/.config/syncthing, it will work.  Since it seems Syncthing has changed
> the default, this service should really do so as well.  I'll update it
> on the other patch that I'm submitting.
>
> -Zacchae

Hi!

I also have a problem (cannot say if it the same as Gabriel's) - after upgrade my Syncthing
instances stopped working with the odd error "remote device missing in
cluster config".

Moving config didn't work - and, as far as I understand, Syncthing still
read the config in .config if it is present.

However, it looks like it is not because the service itself, but because
of the syncthing upgrade to 1.29.2 in commit
06d37f38606fabbace21e55ec7f2546b3ae5214f.

I checked it by inheriting the Syncthing with the older version:

> (define-public syncthing-old
>  (package
>    (inherit syncthing)
>    (name "syncthing-old")
>    (version "1.28.1")
>    (source (origin
>              (method url-fetch)
>              (uri (string-append "https://github.com/syncthing/syncthing"
>                                  "/releases/download/v" version
>                                  "/syncthing-source-v" version ".tar.gz"))
>              (sha256
>               (base32
>                "16j5w6hdr1x2231hw0zsxm53sw34wxcs4ijjjcnzcg1vz9drjrg9"))))))

And passing it to the server:

> (service syncthing-with-vpn-service-type
> 		 (syncthing-configuration
> 		  (syncthing syncthing-old)
> 		  (user "rodion")))

After that everything started working as before.
Will try to investigate the issue further - couldn't find anything
related neither in Syncthing form nor in the Github issues.




This bug report was last modified 144 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.