all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marius Bakke <mbakke@fastmail.com>
To: swedebugia <swedebugia@riseup.net>, "Ludovic Courtès" <ludo@gnu.org>
Cc: 33260@debbugs.gnu.org
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	[thread overview]
Message-ID: <87muqkzr8b.fsf@fastmail.com> (raw)
In-Reply-To: <dc5935cf-a6ce-0e15-51a8-adfa575ff842@riseup.net>

[-- Attachment #1: Type: text/plain, Size: 1886 bytes --]

swedebugia <swedebugia@riseup.net> writes:

> Hi
>
> Output as requested below.
>
> On 2018-11-07 17:36, Ludovic Courtès wrote:
>> Hello,
>>
>> swedebugia <swedebugia@riseup.net> skribis:
>>
>>> On 2018-11-06 15:03, Ludovic Courtès wrote:
>> [...]
>>
>>>> I do!  I run ‘shepherd’ as non-root on GuixSD, and I don’t have the
>>>> above file-not-found issue.  On GuixSD, /run/user/UID is created as
>>>> expected, and I suspect it’s 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 “log in”.
>>> 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 ‘id’ return?
> sdb@komputilo ~$ id
> uid=30011(sdb) gid=998(users) 
> groups=998(users),991(audio),992(video),999(wheel)
>
>> What about: ‘herd status | grep logind’?
>
> 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:

--8<---------------cut here---------------start------------->8---
# Shepherd requires that this variable is set unless logind is present.
export XDG_RUNTIME_DIR="${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 &
--8<---------------cut here---------------end--------------->8---

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  reply	other threads:[~2018-11-07 18:21 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-04 22:34 bug#33260: [Shepherd] ERROR: In procedure stat: No such file or directory: "/run/user/30011/shepherd swedebugia
2018-11-05  0:55 ` bug#33260: Invocation of per-user shepherd - design needed Danny Milosavljevic
2018-11-05  7:49   ` swedebugia
2018-11-05  8:47     ` Danny Milosavljevic
2018-11-05  7:58   ` Gábor Boskovits
2018-11-06 14:03 ` bug#33260: [Shepherd] ERROR: In procedure stat: No such file or directory: "/run/user/30011/shepherd Ludovic Courtès
2018-11-06 18:26   ` swedebugia
2018-11-07 16:36     ` Ludovic Courtès
2018-11-07 17:13       ` swedebugia
2018-11-07 18:18         ` Marius Bakke [this message]
2018-11-08  8:45           ` Ludovic Courtès
2018-11-14 19:37             ` Marius Bakke
2018-11-14 20:55               ` Ludovic Courtès
2018-11-14 21:29                 ` Marius Bakke
2018-11-16 14:27               ` Danny Milosavljevic
2018-11-16 16:55                 ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87muqkzr8b.fsf@fastmail.com \
    --to=mbakke@fastmail.com \
    --cc=33260@debbugs.gnu.org \
    --cc=ludo@gnu.org \
    --cc=swedebugia@riseup.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.