GNU logs - #68057, boring messages


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#68057: home container: XDG_RUNTIME_DIR doesn't exists, on-first-login script won't execute anything.
Resent-From: Mikhail Tsykalov <tsymsh@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 27 Dec 2023 10:44:02 +0000
Resent-Message-ID: <handler.68057.B.170367381322382 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 68057
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 68057 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guix@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.170367381322382
          (code B ref -1); Wed, 27 Dec 2023 10:44:02 +0000
Received: (at submit) by debbugs.gnu.org; 27 Dec 2023 10:43:33 +0000
Received: from localhost ([127.0.0.1]:35414 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rIRNs-0005ov-Um
	for submit <at> debbugs.gnu.org; Wed, 27 Dec 2023 05:43:33 -0500
Received: from lists.gnu.org ([2001:470:142::17]:42254)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tsymsh@HIDDEN>) id 1rIRNq-0005oi-Ko
 for submit <at> debbugs.gnu.org; Wed, 27 Dec 2023 05:43:31 -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 <tsymsh@HIDDEN>) id 1rIRNm-0008Sq-Ml
 for bug-guix@HIDDEN; Wed, 27 Dec 2023 05:43:26 -0500
Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <tsymsh@HIDDEN>) id 1rIRNk-0004M7-Ua
 for bug-guix@HIDDEN; Wed, 27 Dec 2023 05:43:26 -0500
Received: by mail-lf1-x12d.google.com with SMTP id
 2adb3069b0e04-50e7dff3e9fso1702842e87.2
 for <bug-guix@HIDDEN>; Wed, 27 Dec 2023 02:43:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1703673801; x=1704278601; darn=gnu.org;
 h=subject:from:to:content-language:user-agent:mime-version:date
 :message-id:from:to:cc:subject:date:message-id:reply-to;
 bh=mvNKatx3imCArHyVKi2Z7slEBN5mQ40YTGpOw7elr1E=;
 b=i7EPEi6JLb6a+CH5Mas0jrgqcyPVfXWvjZFaYUqcQAHIRYvnHqP3Rp4IEbYug+Q8ay
 1oIwYPbTQCzoEmd7bN9PEf15yIjbPHgy2M+qeYlumPugj2X6RpX67vu2A4/CkCb64n31
 urwmm3LeppIAl6gTUpgFi/0/p3Q91F1zRT8LdxVZFtO2xb5d0LNtEoV24TQgrGf0laP9
 57tMihGMsnhWWjdwjw+nwMNZqc6lUX11RJIW8LUMsClcv32akENO24qertvsrdih6+zc
 IzZ3EJqJMCSlThaoEaTUi5ys2gqXtgr8noQt34/khkTWsggeTK6oIpLfGcG8I4abqWHu
 jZgg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1703673801; x=1704278601;
 h=subject:from:to:content-language:user-agent:mime-version:date
 :message-id:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=mvNKatx3imCArHyVKi2Z7slEBN5mQ40YTGpOw7elr1E=;
 b=pYEG7j0NkbnJJGc/kSURpkj4IP8AQK8aR0RbUt1ZxcqzzN5o9e2fAymI80o9KxMvHa
 mn6xNiEx0cJZ/0E1ka/fNXaeqK+rjsncfsbYxwfTug9jAIfhMki42HmGV0fWebU3Oar1
 zMs+uHzV1DrEZTJ0FD6/Sr7akwte7LZMinrrRqRC30xW4XboayK8A4QPqwF03tD2h2Ah
 K0J9TYu9LJPAcn6EQML99KtrsQnSIMsWqsjJ2ugMZ72m8w/ScjkVfmCSGLui0B/V0X0S
 B2fwsMqdiN802OWjFIxrADH9WgLpe9EqJvqQsW9A8SXV0UZMkY4HRUeV0XlEY+HtnPPK
 Q+pA==
X-Gm-Message-State: AOJu0Yy0mcGEW+xn3cMazhAOH+G9diXLonLz4eR5uKCEA5Tijx7ooQbf
 UZ1LOJAMbctu2mE/80TfuHVnD3w6sF0=
X-Google-Smtp-Source: AGHT+IG+XnyDbSSv57xF4cib31jHXR5G6fSaFyWsmLVPUDPMYgRtXkY/EZ99ir+7t5FzcEg6JfRs6w==
X-Received: by 2002:ac2:4c18:0:b0:50e:7045:687 with SMTP id
 t24-20020ac24c18000000b0050e70450687mr2120841lfq.77.1703673800541; 
 Wed, 27 Dec 2023 02:43:20 -0800 (PST)
Received: from [192.168.0.198] ([88.201.171.100])
 by smtp.gmail.com with ESMTPSA id
 r30-20020ac25a5e000000b0050e7bee0787sm819153lfn.234.2023.12.27.02.43.19
 for <bug-guix@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Wed, 27 Dec 2023 02:43:20 -0800 (PST)
Content-Type: multipart/mixed; boundary="------------awlu2Qr05GAwVFf0YIXcE3XI"
Message-ID: <3c55270c-0561-4573-875a-5bdbe346c3e8@HIDDEN>
Date: Wed, 27 Dec 2023 13:43:19 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
From: Mikhail Tsykalov <tsymsh@HIDDEN>
Received-SPF: pass client-ip=2a00:1450:4864:20::12d;
 envelope-from=tsymsh@HIDDEN; helo=mail-lf1-x12d.google.com
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, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

This is a multi-part message in MIME format.
--------------awlu2Qr05GAwVFf0YIXcE3XI
Content-Type: multipart/alternative;
 boundary="------------HQWg0Bd76nCH0kTs1LDD5edt"

--------------HQWg0Bd76nCH0kTs1LDD5edt
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

When running "guix home container test-config.scm" (attached) the 
following warning appears on screen:

warning: XDG_RUNTIME_DIR doesn't exists, on-first-login script
won't execute anything.  You can check if xdg runtime directory exists,
XDG_RUNTIME_DIR variable is set to appropriate value and manually execute the
script by running '$HOME/.guix-home/on-first-login'

I don't know if on-first-login does anything useful when run in the 
container, but the warning looks scary.

A lot of users don't hit it because they run shepherd which creates 
XDG_RUNTIME_DIR in the process of creating a command socket.

I think that "guix home container" should create XDG_RUNTIME_DIR by 
itself, since there is no logind in the container.

This warning was discussed before in https://issues.guix.gnu.org/56758.

There was also this IRC discussion 
https://logs.guix.gnu.org/guix/2023-12-27.log#083824 that prompted me to 
file this bugreport.

--------------HQWg0Bd76nCH0kTs1LDD5edt
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>When running "guix home container test-config.scm" (attached) the
      following warning appears on screen:</p>
    <pre>warning: XDG_RUNTIME_DIR doesn't exists, on-first-login script
won't execute anything.  You can check if xdg runtime directory exists,
XDG_RUNTIME_DIR variable is set to appropriate value and manually execute the
script by running '$HOME/.guix-home/on-first-login'

</pre>
    <p>I don't know if on-first-login does anything useful when run in
      the container, but the warning looks scary.</p>
    <p>A lot of users don't hit it because they run shepherd which
      creates XDG_RUNTIME_DIR in the process of creating a command
      socket. <br>
    </p>
    <p>I think that "guix home container" should create XDG_RUNTIME_DIR
      by itself, since there is no logind in the container.</p>
    <p>This warning was discussed before in
      <a class="moz-txt-link-freetext" href="https://issues.guix.gnu.org/56758">https://issues.guix.gnu.org/56758</a>.</p>
    <p>There was also this IRC discussion
      <a class="moz-txt-link-freetext" href="https://logs.guix.gnu.org/guix/2023-12-27.log#083824">https://logs.guix.gnu.org/guix/2023-12-27.log#083824</a> that prompted
      me to file this bugreport.<br>
    </p>
  </body>
</html>

--------------HQWg0Bd76nCH0kTs1LDD5edt--

--------------awlu2Qr05GAwVFf0YIXcE3XI
Content-Type: text/x-scheme; charset=UTF-8; name="test-config.scm"
Content-Disposition: attachment; filename="test-config.scm"
Content-Transfer-Encoding: base64

KHVzZS1tb2R1bGVzIChnbnUgaG9tZSkKICAgICAgICAgICAgIChnbnUgc2VydmljZXMpCiAg
ICAgICAgICAgICAoZ251IGhvbWUgc2VydmljZXMgc2hlbGxzKSkKCihob21lLWVudmlyb25t
ZW50CiAoc2VydmljZXMKICAobGlzdCAoc2VydmljZSBob21lLWJhc2gtc2VydmljZS10eXBl
KSkpKQo=

--------------awlu2Qr05GAwVFf0YIXcE3XI--




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Mikhail Tsykalov <tsymsh@HIDDEN>
Subject: bug#68057: Acknowledgement (home container: XDG_RUNTIME_DIR
 doesn't exists, on-first-login script won't execute anything.)
Message-ID: <handler.68057.B.170367381322382.ack <at> debbugs.gnu.org>
References: <3c55270c-0561-4573-875a-5bdbe346c3e8@HIDDEN>
X-Gnu-PR-Message: ack 68057
X-Gnu-PR-Package: guix
Reply-To: 68057 <at> debbugs.gnu.org
Date: Wed, 27 Dec 2023 10:44:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-guix@HIDDEN

If you wish to submit further information on this problem, please
send it to 68057 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
68057: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D68057
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems



Last modified: Sat, 20 Jan 2024 12:30:02 UTC

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