From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: bug#33260: [Shepherd] ERROR: In procedure stat: No such file or directory: "/run/user/30011/shepherd Date: Wed, 07 Nov 2018 19:18:12 +0100 Message-ID: <87muqkzr8b.fsf@fastmail.com> References: <34806e19-072a-ce32-3a23-78e78f59b719@riseup.net> <877ehq2the.fsf@gnu.org> <55e1a1ec-477a-f370-6ede-70872a8a6746@riseup.net> <87o9b0u9nf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKSRz-0001st-5C for bug-guix@gnu.org; Wed, 07 Nov 2018 13:21:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gKSPu-0003qs-Sz for bug-guix@gnu.org; Wed, 07 Nov 2018 13:19:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:35604) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gKSPt-0003qM-TY for bug-guix@gnu.org; Wed, 07 Nov 2018 13:19:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gKSPt-0000G6-IU for bug-guix@gnu.org; Wed, 07 Nov 2018 13:19:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: 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 , Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 33260@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable swedebugia writes: > Hi > > Output as requested below. > > On 2018-11-07 17:36, Ludovic Court=C3=A8s wrote: >> Hello, >> >> swedebugia skribis: >> >>> On 2018-11-06 15:03, Ludovic Court=C3=A8s wrote: >> [...] >> >>>> I do! I run =E2=80=98shepherd=E2=80=99 as non-root on GuixSD, and I d= on=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 = distros >>>> 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= =9Clog in=E2=80=9D. >>> GuixSD VM image in Qemu on parabola. >>> >>> sdb@komputilo ~$ guix --version >>> guix (GNU Guix) 1f44934fb6e2cefccbecd4fa347025349fa9ff76 (v0.15) >>> >>> $ which shepherd >>> /run/current-system/profile/bin/shepherd >>> >>> sdb@komputilo ~$ readlink -f $(which shepherd) >>> /gnu/store/fwc1nkcc0hfyr1d9snpbvfss4pz4ycrw-shepherd-0.4.0/bin/shepherd >> What does =E2=80=98id=E2=80=99 return? > sdb@komputilo ~$ id > uid=3D30011(sdb) gid=3D998(users)=20 > groups=3D998(users),991(audio),992(video),999(wheel) > >> What about: =E2=80=98herd status | grep logind=E2=80=99? > > No output > > sdb@komputilo ~$ sudo herd status |grep logind > >> Does /run/user exist? > > No If you add (elogind-service) to your system configuration, Shepherd should work out of the box. Alternatively, I do this on a minimal system: =2D-8<---------------cut here---------------start------------->8--- # Shepherd requires that this variable is set unless logind is present. export XDG_RUNTIME_DIR=3D"${HOME}/.local/run" # ...and does not clean up its own socket after use. rm -f "$XDG_RUNTIME_DIR/shepherd/socket" # Now we can start it. shepherd & =2D-8<---------------cut here---------------end--------------->8--- --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlvjLGQACgkQoqBt8qM6 VPrf3QgApeAxHeWlBffyZEFq/zywqoRkDqUyT0pPc+RxGtguT7P+A3T+R9Z+QPO7 lz9wSXvmA2MQvDbrM9FHhcjXOJaZ+/kKYHcnRaX+pc2g4UD1OSmS+H+ZXut/EHZn wVOx8Ld2CRg9yog35X4Krej+c5cMOHzx0+k3BmW+GSSFXz6tWrMArQOZEf+mE5Ab H6sk+cMFIn4ujQUo4EG8hBN02BbUjDV3Me0/e2qOXYEksNrUmS8uhUDbma7VOxWq tPI7FFDPD2NLRRUa204Yz87A7cFLoYniPaziOafi8mQOIafbp6d/o6eIuEIRR+Q9 XeJ111hcUktZ/g3YWuochxcbnL3OKw== =qO2G -----END PGP SIGNATURE----- --=-=-=--