From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#33260: [Shepherd] ERROR: In procedure stat: No such file or directory: "/run/user/30011/shepherd Date: Tue, 06 Nov 2018 15:03:41 +0100 Message-ID: <877ehq2the.fsf@gnu.org> References: <34806e19-072a-ce32-3a23-78e78f59b719@riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gK29I-0001oN-CA for bug-guix@gnu.org; Tue, 06 Nov 2018 09:16:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gK1xc-0004WC-3y for bug-guix@gnu.org; Tue, 06 Nov 2018 09:04:09 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:60131) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gK1xb-0004V6-2Q for bug-guix@gnu.org; Tue, 06 Nov 2018 09:04:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gK1xa-00070E-Rz for bug-guix@gnu.org; Tue, 06 Nov 2018 09:04:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <34806e19-072a-ce32-3a23-78e78f59b719@riseup.net> (swedebugia's message of "Sun, 4 Nov 2018 23:34:22 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: swedebugia Cc: 33260@debbugs.gnu.org Hello, swedebugia skribis: > In a VM with GuixSD I did: > > $ shepherd > Backtrace: > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 3 (primitive= -load "/run/current-system/profile/bin/shephe=E2=80=A6") > In shepherd.scm: > =C2=A0=C2=A0=C2=A0 164:9=C2=A0 2 (main . _) > In shepherd/support.scm: > =C2=A0=C2=A0 396:20=C2=A0 1 (verify-dir _ #:secure? _) > In unknown file: > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 (stat "/ru= n/user/30011/shepherd" #) > > ERROR: In procedure stat: > In procedure stat: No such file or directory: "/run/user/30011/shepherd" Danny Milosavljevic skribis: > this is a known problem in GuixSD (not in shepherd) and I don't think any= one fixed > it yet, because it requires some design (and is kinda harder than ignorin= g the > problem and letting the user choose - see below). > > There is only rudimentary support for distinguishing sessions from users = in GuixSD > (I guess nowadays everyone is using a computer of their own and people do= n't > remember huge shared computers which you would dial into multiple times f= rom > different sites (not necessarily after hanging up the previous connection= ) - > I work with the latter daily so I do remember). > > Shepherd assumes to be run per user (for non-root), not per session. > For the vast majority of tasks-to-be-automated, that is what you want. > > But who starts the per-user shepherd? I do! I run =E2=80=98shepherd=E2=80=99 as non-root on GuixSD, and I don=E2= =80=99t have the above file-not-found issue. On GuixSD, /run/user/UID is created as expected, and I suspect it=E2=80=99s the same on most other GNU/Linux distr= os these days. swedebugia, what distribution are you using? On GuixSD, 30011 is a UID that would be allocated to one of the build users, which cannot =E2=80=9Clo= g in=E2=80=9D. Thanks, Ludo=E2=80=99.