-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map /var/lib/systemd/coredump/ into the toolbox #543
Comments
Hm, ok, seems the mapping is already there, as part of a more general |
From the outset, this does look a sane idea. Do you want to submit a pull request? Look at |
Hi. I hope you are fine and the same for your relatives. I would like to work on this issue. Best regards. |
I managed to add
Its complaint is false because it is PID 1 on my machine (and though inside |
Thank you for asking. Yes, I am good. :)
Cool. However, bind mounting a location using Look at |
You are welcome :) I dived more into the code and I understood that Do you have some information about using |
It's a known problem that we can't use
|
Hum... |
Really? Could you paste the full error? We do make the systemd journal available inside the container from the host, but you can only access entries written by your UID inside the container. |
Sorry for my late answer! me@toolbox:~/Codes/toolbox$ coredumpctl
No journal files were found.
No coredumps found. While the coredump files are accessible through a toolbox mount: me@toolbox:~/Codes/toolbox$ ls /run/host/var/lib/systemd/coredump/
core.processus.X.Y.Z.W.lz4 I have the same problem with me@toolbox:~/Codes/toolbox$ journalctl
No journal files were found.
-- No entries -- |
Just having
Do you have anything inside |
My comment was not clear but I tried after mounting with me@toolbox:~/Codes/toolbox$ sudo mount --rbind /run/host/var/lib/systemd/coredump /var/lib/systemd/coredump
me@toolbox:~/Codes/toolbox$ coredumpctl
No journal files were found.
No coredumps found.
Good catch! I have nothing inside this directory... I should have checked before writing. |
In that case, I think |
I just created it with And, just to be sure I understood correctly, |
Maybe first check if
Yes, I think so. |
|
Maybe try something like this to write something to your systemd journal:
|
I wanted to test your command, sorry for the delay I was a bit busy, but when I try to About this command |
You mean, it's asking for a
This should have been fixed. You need to update your What's your
You can modify the |
No, I am asked for a me@toolbox:~/Codes/toolbox$ sudo mount --rbind /run/host/var/lib/
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for me:
I am building it from the source, so this is "master".
Thank you for the answer but I should have think before asking this... |
And that's inside a toolbox container, right? It sounds like systemd-journald isn't enabled on your system. What does this show:
You will probably find it easier to use a Fedora host (a virtual machine is fine) to contribute to Toolbox. |
Yes!
The above command gives me back: root 336 0.2 0.1 29720 9400 ? Ss 10:36 0:00 /lib/systemd/systemd-journald
me 2762 0.0 0.0 6224 2520 pts/1 S+ 10:38 0:00 grep --color=auto systemd-journald which means that systemd-journald seems to work on my system.
You are right, I will setup a Fedora VM and I update you here when I have some news! |
This commit maps host /var/lib/systemd/coredump in the same place inside the toolbox. So, coredumpctl can be used, inside the toolbox, to see coredump log. This fixes containers#543.
In order to be able to debug something that has segfaulted in a toolbox, access to the core file is needed.
as
/var/lib/systemd/coredump/
is empty inside the toolbox container.The text was updated successfully, but these errors were encountered: