From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 04 02:41:18 2022 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 To: Ludovic =?utf-8?Q?Court=C3=A8s?= , 54545@debbugs.gnu.org Subject: Re: bug#54545: [Guix Home] =?utf-8?B?4oCYc2hlcGhlcmTigJk=?= started twice? 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-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 54545 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= 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----- --=-=-=--