Subject: Re: bug#47724: error: connect: /run/user/1000/shepherd/socket: No such file or directory

From: Ludovic Courtès <[email-masked]>
Date: Sun, 18 Apr 2021 12:32:51 +0200

Hi,

Leo Famulari <[email-masked]> skribis:

> On Mon, Apr 12, 2021 at 12:54:14PM +0000, bo0od wrote:

[...]

>> To complete the upgrade, run 'herd restart SERVICE' to stop,
>> upgrade, and restart each service that was not automatically restarted.
>> Run 'herd status' to view the list of services on your system.
>> user@host ~$ herd restart term-auto
>> error: connect: /run/user/1000/shepherd/socket: No such file or directory
>> user@host ~$ herd status
>> error: connect: /run/user/1000/shepherd/socket: No such file or directory 
>
> The problem is that you need to be root to run these commands. We should
> adjust the hint to say that.

Note that ‘herd’ cannot guess whether you intend to talk to your user
shepherd and it’s not running, or whether you intend to talk to the
system shepherd.

So the hint should suggest both possibilities.

(At some point we should extract the diagnostic code of Guix and make it
a separate library so that the Shepherd can use it as well.)

Ludo’.