From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id OH7AJDhKmWVGeQEAkFu2QA (envelope-from ) for ; Sat, 06 Jan 2024 13:40:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id YIYhIDhKmWWBLQEAqHPOHw (envelope-from ) for ; Sat, 06 Jan 2024 13:40:24 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=Y3VpfgjI; dkim=pass header.d=wolfsden.cz header.s=mail header.b=v3elAArB; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=wolfsden.cz ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704544824; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=cJl1OU+46EKsWKIBZi09k0wyCdOsTAkCPPCmsQMfw/M=; b=e7wvfqfifypHTISxVnck0Uz7UDpstAsR4CotvFLooOBeFn021WsXMb2kewQCRYLp2dHQKs q3lT4sz7BQi2SN/lWMPtPWmhwI2JpX85/CxU5GDtjp5ltyqLTqHhyQoTYX85EizjQqNe3R eEbEIuEw3fpExZpVltKToiAfj6wt0iyotKte7bl+KW4dWsPGIzFqf4k4WkNEW156x9bP78 8Qc9uutYjbucByUlSDOy7T0CmLo5dUglVXuCBfa7CFoXAT6Y6jZb1XE47QHxzVTw7Veylf PYmYhrxH+JE5qJp7JY7NnETSqnuNvBUQMPW7/uq+KQ4gsiE4Jw7K9vibrL0THQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704544824; a=rsa-sha256; cv=none; b=P2aZP2uVTFFNNRftZobvyjX3UTVHyfGwSRf+K6LNi6o5qmlqEWpyGFhEj9cU2EwFCWyejF FSj3JHtiWTjnpddg6bgHVoLo9ZJdksl2ckKogfyRWZnSIUMzxx5a0bopxSuJ+8nJNCGjOY J4goJVdYxDGRYkqdgbC15DMEsZzDZKZtYYjtIbHzPPpjWezQeNC++LibZDyAh4QfWhkA2h eKdsXLUE15+POz+YYGLEpLi3wubu77gjIiVDVmvPERUYio5PElgUhA5Iem2Tq5akyra8sh AFHSatF6KGJLCbeyvRtnFdisAiJgZRWLCxOx046i82UpqLN4hTa80FcQ1sopew== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=Y3VpfgjI; dkim=pass header.d=wolfsden.cz header.s=mail header.b=v3elAArB; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=wolfsden.cz Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6066C227C2 for ; Sat, 6 Jan 2024 13:40:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rM5y2-0008Uw-65; Sat, 06 Jan 2024 07:39:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1rM5y0-0008UF-1r; Sat, 06 Jan 2024 07:39:56 -0500 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1rM5xx-0004d1-MW; Sat, 06 Jan 2024 07:39:55 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id 4E4C524570C; Sat, 6 Jan 2024 12:39:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1704544788; bh=iZtnE9yvA2WVipUku/GiLlp8O17L6GuWmoQClB4P7F4=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Y3VpfgjIc1cyMZK0y4eMxv7aPmMpJfxLbFEa0+xo6faNonmgU/SUfzFkox/R43wa8 g3gRsET52H3NqKZaSp/HRwsj944WsBzIXQCSaWUorBY4s8QWvDGLQwAt5eHHJEs9rS xDe8EJt/JiE/od15Q9em9y3ymYwJEppGW/36iYZYak/avM31/ISV2d3cPCCDgO9KgY 5xV1ItuPZxCJBrmxmvD+rSDziSFaQw9+5odSDLKwaCiTcP1zI/aJxM+BHSPJ9XdQ44 7YgtmbY2bLHjdee8CdQkwDVxVVHHvSPqAzVJEYtYgKgu4x0w9hh8i2LGfdQvG4S/y8 CoJKaSv3Lhth2qHV/lZ50P2hcFZQYMqTdJV/Z5WgCdLz71whUkyRr1D125rZqxUJ88 wSwE+eZiglP3ohVB13l52qp20Q+cRt1mYEsI0UWKiMC7GDbCO3lD1WzMDjupRcUCjo ilscozPuW/nS37OfiDc2RFRqegOAVuVbMc0KYDaLvR702cuBvGcAdsoyoHTGezkkv8 cFheef6tlNaEPYuPsSiElm8Px/HPKKRgpLiyl/zSW5fncY25nxD3R2mArmwwrwgOGa CfFx8ee0thqJf6r5Efz2bA1nS+LY9ZGyF0Z9+GaVDWqc9CvEKBWlVO4+5nrE0+ZVEs WHIu2xJBPnAIpQV3xBCoPG7c= Received: from localhost (unknown [193.32.127.155]) by wolfsden.cz (Postfix) with ESMTPSA id 4E102245794; Sat, 6 Jan 2024 12:39:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1704544787; bh=iZtnE9yvA2WVipUku/GiLlp8O17L6GuWmoQClB4P7F4=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=v3elAArBOYkvOc6OCt13T+cBiOd8Kf3fMUSqHzyTrbFY7etBE5z8SuVs30gDxFyp1 EKnux30i9nlpvypgfE98YIHs1Pf9I5PROUm2r0Feghmu9149wJCavPvGUJq6Lt8OWl c3IW0EIfIDltpGzfyrLMQrladgIoDDBfmInz6yZU+9d9ToOGin17D/9IcIatiSPR9n yjOJn+Nq1P/d6mU7gh6MUpQMyhUPOjDsnQsxRlYvh+Si9J+ggxjDjgfqbXn98lAT+a dqupAYRclLHOCZ8ZZtH+E6G8OL8neatw2ftrRm9y9Q94G6/KLS9kA011a+ZsiJsXVm wFVUcXpOLm+SvtRWA6ij7dAQAvIPf3obYn2RoC3sRR/IxqvLqjLtswBwb83kEsA4kv E0tx7uJBnBYM/h4GCx9IH2lo4ywj1SRfPPiT6sUZhOtgaBWWCKwAoWn2ydUHyON1Nr u0dwA+RkndgEzygZLrM2TWDao8jZOp4MgJ/vwCdMTYPOwI8Cagn7XdnPMKSK5/PHAT xjZOxmCRKFcOapgCt0MnNa/a3ZMi5pYZQ+rn5h0IkjLfPnFBZUd6ly2ozThAihM1Zv QYVHJYaG17sJjUk7t8gbzpkFqWJ32d/tfnTP2pOm4nDd9ek+j1crK551QXE4C6UoR0 LkvHHCdQNP0powbFPl4ysYhA= Date: Sat, 6 Jan 2024 13:39:45 +0100 From: Tomas Volf <~@wolfsden.cz> To: =?iso-8859-1?Q?S=E9bastien?= Lerique Cc: help-guix@gnu.org, guix-devel@gnu.org Subject: Re: home-syncthing-service-type wants /root paths, yet syncthing can work Message-ID: Mail-Followup-To: =?iso-8859-1?Q?S=E9bastien?= Lerique , help-guix@gnu.org, guix-devel@gnu.org References: <0e58fe8b715dc6f4b0ddef3819a5222d@eauchat.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="RKNYOrXwW0j+WYmU" Content-Disposition: inline In-Reply-To: <0e58fe8b715dc6f4b0ddef3819a5222d@eauchat.org> Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 6066C227C2 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -11.10 X-Spam-Score: -11.10 X-TUID: ERMm1XzoDGUC --RKNYOrXwW0j+WYmU Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On 2024-01-05 15:05:38 +0100, S=E9bastien Lerique wrote: > Hi Guix! And dear helpers and devs, > > I'm running into a weird failure of home-syncthing-service-type. > > Running syncthing manually from the terminal works fine (here's an example > log: ). > > So I Ctrl-C syncthing, then add home-syncthing-service-type to my > home-configuration > (bottom lines). > > After restarting, home-syncthing-service-type fails synchronizing because= it > bases all user folders inside /root, to which it doesn't have writing > rights. This happens whether all syncthing configurations in > `.local/state/syncthing` had been removed in the meantime or not. Here's a > log: > > Could this be a bug? A mistake in the configuration files? After some digging in the source code, I managed to pinpoint the cause. Yo= ur configuration does not set user nor home, which causes Guix to call (getpw = #f). That returns the root user. I would say this is a bug. The code probably should be something like this (untested): (or #$home (passwd:dir (getpw (if (and #$home-service? (not #$user)) (g= etuid) #$user)))) For your immediate problem, explicitly setting the (home) field in the syncthing-configuration should help. I think. Have a nice day, Tomas Volf -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --RKNYOrXwW0j+WYmU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmWZShEACgkQL7/ufbZ/ wakUFw/+PcSKUUOXwyVLxXMyJQamqPbSTcqWBwpD6rPL6hShF5KNwST1D++WdYHY PSEt9T8/PBuCPEZuCIJkJ8WZwG5P97hJkwZ+biO7Ai8+GiT7vc/YIx6v41if5J5U hJmG192J2IsvgjiskVccPKjCuIbD2My2c+fqxyZO9f7Xkh3GOQSE0HUJqaK6rMEq d7tWYj2OsG/zK0OW02vUWaNwl+KwpZ6+yFeGJeDiITak7wRbq/iv4E6vwHh2fwyb 0WLP2wUNOKj1v+n9oFrQYY1vMeC+uKcUg2c+9gAhxlVuCI5K6UO+QZkrLps7/kVg aWeuXsQ9ANWOOakzNg3rz4VzUL0Ter11tO6zMhjK0bU4a2AuLORyshiHrNTeVtmz cb62wH29qPgbLvCBxXcNmGp5tUPl09hVOzuesrpx9jK3gmspv4/SfOhWF2sQ9b6b SMuXwdHQPw85UOLokTy3uT4NdcS+cX8Qa3ikD/FrrgB4zfX/D2aY3wkMtiTkapQ2 EfrcaNq1xKAhmy0/oIdQke+AiSmqElmdedOzFAXkMV1qMTGxKdAhbegC1u4SLrWX 5EXCadBLeYqxBDQfh4Nk/MYDucNe2fA3uXDt0shvxPUpuMcBGTL81NkowpUaPa9K Tuqm6EKkUzLRUVroqpbSryLEcPArFHow5w4e7Z1SsZZrj+4hTMw= =yEWf -----END PGP SIGNATURE----- --RKNYOrXwW0j+WYmU--