From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SFnkLnOTSmIBgwEAgWs5BA (envelope-from ) for ; Mon, 04 Apr 2022 08:42:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8L8oJ3OTSmL70AAAG6o9tA (envelope-from ) for ; Mon, 04 Apr 2022 08:42:59 +0200 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 60B4938372 for ; Mon, 4 Apr 2022 08:42:59 +0200 (CEST) Received: from localhost ([::1]:39956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nbGQU-0003Mm-5o for larch@yhetil.org; Mon, 04 Apr 2022 02:42:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbGPc-0003Lq-Mh for bug-guix@gnu.org; Mon, 04 Apr 2022 02:42:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56416) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nbGPZ-0007oy-VF for bug-guix@gnu.org; Mon, 04 Apr 2022 02:42:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nbGPZ-0003Py-Oe for bug-guix@gnu.org; Mon, 04 Apr 2022 02:42:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#54545: [Guix Home] =?UTF-8?Q?=E2=80=98shepherd=E2=80=99?= started twice? Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 04 Apr 2022 06:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54545 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 54545@debbugs.gnu.org Received: via spool by 54545-submit@debbugs.gnu.org id=B54545.164905447813073 (code B ref 54545); Mon, 04 Apr 2022 06:42:01 +0000 Received: (at 54545) by debbugs.gnu.org; 4 Apr 2022 06:41:18 +0000 Received: from localhost ([127.0.0.1]:50313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nbGOs-0003On-JD for submit@debbugs.gnu.org; Mon, 04 Apr 2022 02:41:18 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:44361) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nbGOq-0003OX-Fv for 54545@debbugs.gnu.org; Mon, 04 Apr 2022 02:41:17 -0400 Received: (Authenticated sender: andrew@trop.in) by mail.gandi.net (Postfix) with ESMTPSA id B49EB240005; Mon, 4 Apr 2022 06:41:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1649054470; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wOckvcRZk3vh/UQ099HIwUiAHRxI530LeFj2cNKkTPo=; b=JUiPvKhKoJJJhOGUwirnWW+/YEaPgTFLc4obbu82lZyGoxtcaGsjtlsmOheebccGQe5Fz8 MShXpFj8gaVjJG5ZWXqzg4L9C4/K7wjrszhoCdkmrAb2uPs7ELDl4LFBS9UyzicY4S7Mnw 1QS0C+X5GcHdyzb5WuHqywzurmpsBTAVZQJfV7jF3Xd3Zy3qr7aNOJz3wvbnpQgXhHIP5R k4JoS/tJDWQeBw67MVrI1nb7EM5aFGjQbDX+ywgVaX7hDKwpdd5zH+lxNfvHXaqjIfeAAd uotPTtt/hKnfLJKvQfhDow2PLdPzNZ7nBpWneFcqKuDRwNvKvH9WxafvWcjelw== From: Andrew Tropin In-Reply-To: <87a6dfbfdl.fsf@inria.fr> References: <87a6dfbfdl.fsf@inria.fr> Date: Mon, 04 Apr 2022 09:41:06 +0300 Message-ID: <87sfqt2vwd.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649054579; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=wOckvcRZk3vh/UQ099HIwUiAHRxI530LeFj2cNKkTPo=; b=KsaGV2VT+SMUcqGs0cjAmMuIi/zhJY3+TufIIbC7jg1WFIncIqQyqjo7uHhafThYnplRRh wP6QkI+ocSYsVSSzq61qYePBaDklb0z87sOd6VcbpkOaxYz3rVG7TscfrRhBlL27HAwtvz 33PtZLt2PE0BMvg+tgEhFt1rUDH9/DfKL097T/2YtNZJGY5ha0/dcCb5RCBljxC4Ozh3HO mXSc5aPaRITl3SnCp6/expgk26OmbK8133xA7RVB/w2eDvdfVR0qLuDssCQ6DijWNEv7TA KC6ptWhGPVO1PT2UXAObBkDI39Kuo1HgVHdfWugnoFNnjQgMkdIrT9unABsk8g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649054579; a=rsa-sha256; cv=none; b=YbNWpDdTSTv8vshvV2kbI/v7SC7Iu8Ab5c+/XZNi0J4NTFmvNAW9wZLU16G/2lg0zvB1Rh MpshOG0L2g/0hZquhQgpFV4dGBZSQe2MmBE3RiNwWmM00m+yIfRH24cfrCrSNXtvrbYKu+ CZRM42D8WkkYFRnBW04cgpUemlmD5xlRuGKOHlZLwwyLR5mpgz9GuOmZn3jmJbhDE9Pzxl 2pd0Bg+5M9QOwXyvYdrfHfWu48xl9B/wobp5fZA2swwDMeSlacvdttPr5wKFaND6/iZqGT Pf4rupmupN4KP9/ls7lYx70nVODXA76wZTAAYcH/sFW1FIoqQlNWezNGgopxLw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b=JUiPvKhK; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.98 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b=JUiPvKhK; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 60B4938372 X-Spam-Score: -0.98 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7vsbyU38o6Vk --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2022-03-24 15:21, Ludovic Court=C3=A8s wrote: > Hi, > > From what can be seen in =E2=80=98guix home container=E2=80=99, it would = seem that > =E2=80=98shepherd=E2=80=99 is started twice, leading to this error while = attempting to > bind(2) the second time (thus it=E2=80=99s actually harmless, but subopti= mal): > > --8<---------------cut here---------------start------------->8--- > $ ./pre-inst-env guix home container /tmp/t.scm > WARNING: (guile-user): imported module (guix build utils) overrides core = binding `delete' > Symlinking /home/ludo/.bash_profile -> /gnu/store/flqaxzvgfv2g3415mhmq6c0= zbzdzv2k4-bash_profile... done > Symlinking /home/ludo/.profile -> /gnu/store/dann7r1095xll0kji5yl0ql07096= rc8j-shell-profile... done > Symlinking /home/ludo/.bashrc -> /gnu/store/g78w0adqg25z3jl8jq71n0n0z32f7= dbx-bashrc... done > Symlinking /home/ludo/.config/fontconfig/fonts.conf -> /gnu/store/4261pxa= fny0g2myhh9yj1771ry7k05lc-fonts.conf... done > done > Finished updating symlinks. > > Comparing /gnu/store/non-existing-generation/profile/share/fonts and > /gnu/store/vvfrdbvmb0g41k00xxmd9qpgzavkvd32-home/profile/share/= fonts... done (same) > Evaluating on-change gexps. > > On-change gexps evaluation finished. > > Service root has been started. > WARNING: Use of `load' in declarative module (#{ g56}#). Add #:declarati= ve? #f to your define-module invocation. > Starting services... > Service mcron has been started. > > Service root has been started. > WARNING: Use of `load' in declarative module (#{ g56}#). Add #:declarati= ve? #f to your define-module invocation. > Starting services... > Service mcron has been started. > > Backtrace: > 4 (primitive-load "/gnu/store/vza48khbaq0fdmcsrn27xj5y5yy?") > In shepherd.scm: > ~$ 316:10 3 (main "--logfile" "/home/ludo/.local/var/log/shepherd.?" = ?) > 56:14 2 (call-with-server-socket "/run/user/1000/shepherd/sock?" ?) > 49:6 1 (open-server-socket "/run/user/1000/shepherd/socket") > In unknown file: > 0 (bind # #(1 "/run/user/1000?") #) > > ERROR: In procedure bind: > In procedure bind: Address already in use > --8<---------------cut here---------------end--------------->8--- > > I suspect the problem is in activation snippets, but I=E2=80=99m open to = other > hypotheses. :-) > > Thoughts? > > Ludo=E2=80=99. > > Can confirm. Activation script tries to load latest shepherd configuration with `herd load root ./path/to/config.scm` and it starts a shepherd process. Login shell starts the shepherd process as well. Probably we need to do config reload using on-change service and also not trigger on-change stuff if user isn't logged in. I can think on the proper solution and make a patch with a fix later this week or beginning of the next week. =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJDBAEBCgAtFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmJKkwIPHGFuZHJld0B0 cm9wLmluAAoJECII0glYwd6wAm8P/RgZVSBwXkyeRoZdoswslQPp6bnBF1Awc0a0 67ZoOZhJcMl7NHlk/Pk4fWTqsnqacSp3v6DWLnaQBWMmS9NdLGlqIn3vUqEvqhg6 zAtT3V17SSN0jj5OxzyVtiSDKz1wo7wCAyh2TWCpfa+/05fC/ivP48MM+YEswgiq gbtAwx//7LfQ5jHnatzWZoG+itI8q9TyvuTDp4uyePCDk2jk08Nuxu2zcOUMYkUD x0+q1YsQwSDwr+zLo6/HvyujeA8MIhvyB76X/kZ0uM8s9GrFulsH7dVdetPR6dEC H1Et/b4utZrDzqpQA4KzK0e5g3ES3EVmefGpOXeBHien8/E90v3a7SOBBUl1MNkT D3RTW9WCdjCdqTJ5L1VEpJ1BSFd96o7T7meiQ+RLyfzL1tB7yaCgcCux+ImiuIiV OeeaoKyhRSqj+T+v0wM+5oza0Tz7g5nbvaI68OCCcjZGsCGVAovUfBCkYgN5kX0e ic/Oa6MZQkzZByZqFxTMoD2pMi5XB7yNUu/Z1iPLu8S6W9M8Yeau2DuLTscpQHJZ FBGIbXPucZXzRGtWdPGJFEzC0fISbhdIVoKpkFWeoHFsNkAjC3OfTDyGPHb1kTgI HefZJOiB0adzapHdHeGRnV+83tJVInTij/nxnxsfkUDXNr3vxUIazjl3zPHChs+l bIPyDsob =DWez -----END PGP SIGNATURE----- --=-=-=--