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 qFcdMxMAjGUffAAAkFu2QA (envelope-from ) for ; Wed, 27 Dec 2023 11:44:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id ADFSLBMAjGU6AQAAqHPOHw (envelope-from ) for ; Wed, 27 Dec 2023 11:44:35 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=i7EPEi6J; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1703673875; 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:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=QhO+VcYhZK23mbUs+lM+d8lcvJSDT9eNM464CPq8CeQ=; b=VHDn3Bq7MSlhRFCIstdjO0WtprE0rImoLK7Dx1bomKXK7xTdw2I3X/RsJHKJKJdYXHHBdF p9FssK21DUnTQn9B/NoMjRb7kbETP2ynLgvMfRnqqyO9tqN0qdwPXDiJBkoMxASM6gzBQ/ q14i6BqURorFIhkN7EOxamgdbCjdc6RY/Z4a3/XVPXL2Ztj+zPKfjr5D/dW2/EH8WTEIXi Vw+C+OZOrZA9OKujkUqFExico2TPobijB1wr2D7+Z/rNF41Z+qS1bwy2gYOpG2ITTsKpOe NCTDn8/Jhd23nQfVkhcN1R5o2Db6FfxHVOe9spYsbMPWQjy+Gf41/2nNT0Uz8g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1703673875; a=rsa-sha256; cv=none; b=YBkfpnixUfTjyjDCYAZ66LTGMoXpUni0dF3kx8cZMqNI3MuBRwOYbEgFpHNVkfl1YnE3QG siuINfqLp0wKjqb5dYEcVeeCGpY4uKet/GnBQ2dIslhDK9K4G8gO8VEckK20jNt2lI5K8a ZuF90WY6SRbWe+fIfeQlxhZRf3/gDXcdmZpAFYQiF5jfY3U99ouINjw64iB1PDfMsSJq/B HvTY3kAOlJmyulOGOG7zRxSmw7Cz6VN63wlDI+LPf4Lec0gGHD4wlvPXGqOrI6mN41m+k4 AWXrMMeJIMZTgnTmO7AOsrgPrw08qkm8jtSmJiexFH39UOQKjtLl6CoJ3+MGPg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=i7EPEi6J; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) 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 448336692C for ; Wed, 27 Dec 2023 11:44:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rIROS-0008UJ-3q; Wed, 27 Dec 2023 05:44:08 -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 ) id 1rIROO-0008Tr-PX for bug-guix@gnu.org; Wed, 27 Dec 2023 05:44:04 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rIROO-0004R4-HN for bug-guix@gnu.org; Wed, 27 Dec 2023 05:44:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rIROM-0005q5-KT for bug-guix@gnu.org; Wed, 27 Dec 2023 05:44:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#68057: home container: XDG_RUNTIME_DIR doesn't exists, on-first-login script won't execute anything. Resent-From: Mikhail Tsykalov Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 27 Dec 2023 10:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68057 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 68057@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@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 ) id 1rIRNs-0005ov-Um for submit@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 ) id 1rIRNq-0005oi-Ko for submit@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 ) id 1rIRNm-0008Sq-Ml for bug-guix@gnu.org; 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 ) id 1rIRNk-0004M7-Ua for bug-guix@gnu.org; Wed, 27 Dec 2023 05:43:26 -0500 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-50e7dff3e9fso1702842e87.2 for ; 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 (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@gmail.com> Date: Wed, 27 Dec 2023 13:43:19 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Mikhail Tsykalov Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=tsymsh@gmail.com; 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-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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.04 X-Spam-Score: -4.04 X-Migadu-Queue-Id: 448336692C X-Migadu-Scanner: mx12.migadu.com X-TUID: m5jJyHV05oJZ 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

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-- --------------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--