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


Message #56 received at 75959 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Zacchaeus Scheffer <eikcaz <at> zacchae.us>
Cc: Bruno Victal <mirai <at> makinata.eu>, 75959 <at> debbugs.gnu.org
Subject: Re: [PATCH v9] services: syncthing: Add support for config file
 generation.
Date: Sun, 16 Feb 2025 02:13:41 -0500
[Message part 1 (text/plain, inline)]
On Sat, Feb 15, 2025 at 08:06:42PM -0500, Zacchaeus Scheffer wrote:
> Subject: [PATCH v9] services: syncthing: Add support for config file
>  generation.

Thanks!

> +      (start #~(lambda _
> +                 ;; If we are managing the config, and it's not a home
> +                 ;; service, then exepect the config file at
> +                 ;; /var/lib/syncthing-<user>.  This makes sure the ownership
> +                 ;; is correct
> +                 (unless (or #$(not config-file) #$home-service?)
> +                   (chown (string-append "/var/lib/syncthing-" #$user)
> +                          (passwd:uid #$user)
> +                          (passwd:gid #$user))
> +                   (chmod (string-append "/var/lib/syncthing-" #$user) #o700))

This is making the service crash, not sure why:

------
# herd start syncthing-leo
Service user-homes has been started.
herd: error: exception caught while executing 'start' on service 'syncthing-leo':
In procedure vector-ref: Wrong argument in position 1 (expecting vector): "leo"
------

Of course my user's name is leo in the test VM.

I added some print-style tracing (attached diff) and it crashes in
chown.
[trace.diff (text/plain, attachment)]

This bug report was last modified 145 days ago.

Previous Next


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