* Re: [gentoo-user] How to repair a 'secondary Gentoo system'
@ 2017-12-11 20:56 99% ` Rich Freeman
0 siblings, 0 replies; 1+ results
From: Rich Freeman @ 2017-12-11 20:56 UTC (permalink / raw
To: gentoo-user
On Mon, Dec 11, 2017 at 2:45 PM, David Haller <gentoo@dhaller.de> wrote:
>
> On Mon, 11 Dec 2017, Helmut Jarausch wrote:
>>Strangely enough, dmesg shows
>>
>>systemd-coredump[25375]: Failed to connect to coredump service: No such file
> ^^^^^^
>>or directory
>>
>>although I'm not using system but openrc on both system
>
> It seems to me though, that that systemd-coredump thingy is running
> though ...
>
> $ ps a -eo pid,cmd | awk '$1 == 25375 { print;}'
>
That won't show anything, because systemd-coredump isn't a daemon. If
configured to do so, the kernel runs it when a core file is generated,
pipes the core into it, and it in turns passes it along to a
socket-activated service which logs it. Then all those processes
terminate. You wouldn't see them running except for a brief moment
when a process dumps core.
In your case the problem is that the socket doesn't exist, probably
because you aren't actually running systemd. So, systemd-coredump is
being run by the kernel, but it can't pass the core file along to the
service that logs it.
Most likely you have systemd installed but aren't actually running it.
It isn't particularly easy to accidentally install systemd under
Gentoo (I can't imagine that bug going unreported for long around
here...). Presumably you're using a systemd profile, or otherwise
have installed it.
If systemd is installed, then chances are you have this file
installed: /usr/lib/sysctl.d/50-coredump.conf
If that file exists, then I suspect openrc will parse it and set:
kernel.core_pattern=|/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %e
And that will cause the issue you're seeing.
Just move that file someplace else and reboot. Or run sysctl
kernel.core_pattern=/tmp/core.%p or something like that. Then core
files will be dumped to disk and not piped into systemd-coredump.
Long-term you should sort out which service manager you want to run
and configure the entire system accordingly. You might run into
subtle bugs like this one if you have systemd installed and don't use
it. There is nothing wrong with switching back and forth, but it
isn't a well-tested config.
--
Rich
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2017-12-11 16:58 [gentoo-user] How to repair a 'secondary Gentoo system' David Haller
2017-12-11 19:12 ` Helmut Jarausch
2017-12-11 19:45 ` David Haller
2017-12-11 20:56 99% ` Rich Freeman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox