systemd-coredump - Invalid argument
I'm trying to force a core dump using systemd-coredump, however, when I check my journal I see the following error:
[email protected]: Failed at step NETWORK spawning /lib/systemd/systemd-coredump: Invalid argument
coredumpctl reports no cores.
My core_pattern is:
|/lib/systemd/systemd-coredump %P %u %g %s %t %c %e
/lib/systemd/systemd-coredump does exist and is executable. I have noticed that in the /etc/systemd/coredump.conf, everything is commented out.
[Coredump] #Storage=external #Compress=yes #ProcessSizeMax=2G #ExternalSizeMax=2G #JournalSizeMax=767M #MaxUse= #KeepFree=
...which strikes me as odd...
Is there a way of "previewing" the arguments from core_pattern having been expanded that are fed into systemd-coredump - that way I could see if there is anything odd going on there... Otherwise, any idea what the problem could be?
I've also tried setting the core_pattern to point to a file like
bash -c 'echo "/home/root/core.%e.%p" > /proc/sys/kernel/core_pattern'
ulimit -c unlimited
But that doesn't work either - the core file doesn't get created.