From: Hilton Chain <hako@ultrarare.space>
To: Tanguy LE CARROUR <tanguy@bioneland.org>
Cc: nils@landt.email, help-guix@gnu.org
Subject: Re: Problem with Shepherd after `guix home reconfigure`
Date: Fri, 25 Aug 2023 15:34:09 +0800 [thread overview]
Message-ID: <87cyzb8tji.wl-hako@ultrarare.space> (raw)
In-Reply-To: <169294674347.1605.4839628488753357709@bioneland.org>
Hello,
On Fri, 25 Aug 2023 14:59:03 +0800,
Tanguy LE CARROUR wrote:
>
> Hi,
>
> Quoting nils@landt.email (2023-08-23 10:09:06)
> > Tanguy LE CARROUR <tanguy@bioneland.org> hat am 22.08.2023 18:56 CEST geschrieben:
> > > I now have a slightly different error message:
> > >
> > > ```
> > > $ guix home reconfigure
> > > # […]
> > > SSLoading /gnu/store/zbfyaxxigns5lqyxhxzxhm92w54ns1cz-shepherd.conf.
> > > herd: error: exception caught while executing 'load' on service 'root':
> > > In procedure fport_write: Broken pipe
> > > ```
> > > […]
> > > Even though `mpd` is reported as "starting" it actually works.
> > > `herd stop mcron` still hangs forever, but `herd status` keeps on
> > > working and reporting "starting" services.
> > >
> > > Thoughts? 🤔
> >
> > I had a similar issue about 2 months ago. I was using XDG_LOG_HOME in
> > a shepherd service definition, and it was not available anymore.
> > The error message I got was different, but the result was the same -
> > some services shown as "starting" and working, but herd <command> not
> > working for one particular broken service.
> >
> > I suggest to check your
> > /gnu/store/zbfyaxxigns5lqyxhxzxhm92w54ns1cz-shepherd.conf file for the
> > log path of the mcron job. Maybe your XDG_STATE_HOME points to a
> > non-writable directory?
>
> ```
> $ cat /gnu/store/l1463gh71pm62404rxpwbzhwmz8dakl2-shepherd-mcron.scm
> # […]
> #:log-file (string-append %user-log-dir "/mcron.log")
>
> $ env | grep XDG
> # […]
> XDG_STATE_HOME=/home/tanguy/.local/state
>
> $ ls /home/tanguy/.local/state
> log nvim shepherd wireplumber
>
> $ ls /home/tanguy/.local/state/log/
> dbus.log mcron.log shepherd.log
> ```
>
> I have no XDG "log" variable, but the `shepherd.log` in `~/.local/state/log/`
> contains today's log, so… I guess it can write to the log folder.
> The strange thing is that today mcron's log is in
> `~/.local/state/shepherd/`?! 🤔
From the definition in (shepherd support), the location is expected:
--8<---------------cut here---------------start------------->8---
(define %user-log-dir
;; Default log directory if shepherd is run as a normal user.
(string-append (or (getenv "XDG_STATE_HOME")
(string-append user-homedir "/.local/state"))
"/shepherd"))
--8<---------------cut here---------------end--------------->8---
And ~/.local/state/log/mcron.log was used before changing to
%user-log-dir:
--8<---------------cut here---------------start------------->8---
#:log-file (string-append
(or (getenv "XDG_STATE_HOME")
(format #f "~a/.local/state"
(getenv "HOME")))
"/log/mcron.log")
--8<---------------cut here---------------end--------------->8---
next prev parent reply other threads:[~2023-08-25 7:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-22 10:33 Problem with Sheperd after `guix home reconfigure` Tanguy LE CARROUR
2023-08-22 12:40 ` Hilton Chain
2023-08-22 13:23 ` Andreas Enge
2023-08-22 14:44 ` Hilton Chain
2023-08-22 13:51 ` Problem with Shepherd " Tanguy LE CARROUR
2023-08-22 15:18 ` Hilton Chain
2023-08-22 16:56 ` Tanguy LE CARROUR
2023-08-23 3:19 ` Hilton Chain
2023-08-23 6:29 ` Tanguy LE CARROUR
2023-08-23 8:09 ` nils
2023-08-25 6:59 ` Tanguy LE CARROUR
2023-08-25 7:34 ` Hilton Chain [this message]
2023-08-28 6:27 ` Tanguy LE CARROUR
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=87cyzb8tji.wl-hako@ultrarare.space \
--to=hako@ultrarare.space \
--cc=help-guix@gnu.org \
--cc=nils@landt.email \
--cc=tanguy@bioneland.org \
/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.