Skip to content

Instantly share code, notes, and snippets.

@mweinelt
Created January 16, 2025 03:10
Show Gist options
  • Save mweinelt/4311dae6ed541a60276d87dfee676708 to your computer and use it in GitHub Desktop.
Save mweinelt/4311dae6ed541a60276d87dfee676708 to your computer and use it in GitHub Desktop.
machine # [ 202.883606] container foo[4646]: Halting system.
machine # [ 202.899773] systemd-nspawn[4646]: Container foo has been shut down.
machine # [ 202.904399] dbus-daemon[659]: [system] Activating via systemd: service name='org.freedesktop.machine1' unit='dbus-org.freedesktop.machine1.service' requested by ':1.14' (uid=0 pid=4646 comm="/nix/store/fampg5z6zz78pxxvbg7zclhfblivw2xa-system" label="kernel")
machine # [ 202.934617] systemd[1]: Starting Virtual Machine and Container Registration Service...
machine # [ 203.050885] dbus-daemon[659]: [system] Successfully activated service 'org.freedesktop.machine1'
machine # [ 203.058235] systemd[1]: Started Virtual Machine and Container Registration Service.
machine # [ 203.069154] systemd-machined[5117]: Assertion 'pidref_is_set(&m->leader)' failed at src/machine/machine.c:496, function machine_watch_pidfd(). Aborting.
machine # [ 203.126675] systemd-coredump[5118]: Process 5117 (systemd-machine) of user 0 terminated abnormally with signal 6/ABRT, processing...
machine # [ 203.154249] systemd[1]: Created slice Slice /system/systemd-coredump.
machine # [ 203.169769] systemd[1]: Started Process Core Dump (PID 5118/UID 0).
machine # [ 203.553935] systemd-coredump[5119]: Process 5117 (systemd-machine) of user 0 dumped core.
machine #
machine # Module libaudit.so.1 without build-id.
machine # Module libattr.so.1 without build-id.
machine # Module libseccomp.so.2 without build-id.
machine # Module libpam.so.0 without build-id.
machine # Module libcrypt.so.2 without build-id.
machine # Module libcap.so.2 without build-id.
machine # Module libacl.so.1 without build-id.
machine # Stack trace of thread 5117:
machine # #0 0x00007f795838a8ec __pthread_kill_implementation (libc.so.6 + 0x988ec)
machine # #1 0x00007f79583329c6 raise (libc.so.6 + 0x409c6)
machine # #2 0x00007f795831a938 abort (libc.so.6 + 0x28938)
machine # #3 0x00007f7958594b09 log_assert_failed.cold (libsystemd-shared-257.so + 0x9db09)
machine # #4 0x0000561931cb1c27 machine_start (/nix/store/fampg5z6zz78pxxvbg7zclhfblivw2xa-systemd-257.1/lib/systemd/systemd-machined + 0xdc27)
machine # #5 0x0000561931caf896 main (/nix/store/fampg5z6zz78pxxvbg7zclhfblivw2xa-systemd-257.1/lib/systemd/systemd-machined + 0xb896)
machine # #6 0x00007f795831c1fc __libc_start_call_main (libc.so.6 + 0x2a1fc)
machine # #7 0x00007f795831c2b9 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2a2b9)
machine # #8 0x0000561931cafe85 _start (/nix/store/fampg5z6zz78pxxvbg7zclhfblivw2xa-systemd-257.1/lib/systemd/systemd-machined + 0xbe85)
machine # ELF object binary architecture: AMD x86-64
machine #
machine # [ 203.659432] systemd[1]: run-systemd-nspawn-unix\x2dexport-foo.mount: Deactivated successfully.
machine # [ 203.690415] systemd[1]: systemd-machined.service: Main process exited, code=dumped, status=6/ABRT
machine # [ 203.696914] systemd[1]: systemd-machined.service: Failed with result 'core-dump'.
machine # [ 203.702981] systemd[1]: [email protected]: Deactivated successfully.
machine # [ 203.706506] systemd[1]: Stopped Container 'foo'.
machine # [ 203.708878] systemd[1]: [email protected]: Consumed 3.421s CPU time, 31.1M memory peak, 48K written to disk, 356B outgoing IP traffic.
machine # [ 203.713958] systemd[1]: [email protected]: Deactivated successfully.
(finished: must succeed: nixos-container stop foo, in 2.27 seconds)
machine: waiting for Container foo has been shut down to appear on console
(finished: waiting for Container foo has been shut down to appear on console, in 0.00 seconds)
machine: must succeed: nixos-container start foo
machine # [ 204.077656] systemd[1]: Starting Container 'foo'...
machine # [ 204.181867] dbus-daemon[659]: [system] Activating via systemd: service name='org.freedesktop.machine1' unit='dbus-org.freedesktop.machine1.service' requested by ':1.16' (uid=0 pid=5135 comm="machinectl terminate foo" label="kernel")
machine # [ 204.198986] systemd[1]: Starting Virtual Machine and Container Registration Service...
machine # [ 204.300537] dbus-daemon[659]: [system] Successfully activated service 'org.freedesktop.machine1'
machine # [ 204.305916] systemd[1]: Started Virtual Machine and Container Registration Service.
machine # [ 204.314205] systemd-machined[5136]: Assertion 'pidref_is_set(&m->leader)' failed at src/machine/machine.c:496, function machine_watch_pidfd(). Aborting.
machine # [ 204.360694] systemd-coredump[5137]: Process 5136 (systemd-machine) of user 0 terminated abnormally with signal 6/ABRT, processing...
machine # [ 204.391457] systemd[1]: Started Process Core Dump (PID 5137/UID 0).
machine # [ 204.707928] systemd-coredump[5138]: Process 5136 (systemd-machine) of user 0 dumped core.
machine #
machine # Module libaudit.so.1 without build-id.
machine # Module libattr.so.1 without build-id.
machine # Module libseccomp.so.2 without build-id.
machine # Module libpam.so.0 without build-id.
machine # Module libcrypt.so.2 without build-id.
machine # Module libcap.so.2 without build-id.
machine # Module libacl.so.1 without build-id.
machine # Stack trace of thread 5136:
machine # #0 0x00007f104b7158ec __pthread_kill_implementation (libc.so.6 + 0x988ec)
machine # #1 0x00007f104b6bd9c6 raise (libc.so.6 + 0x409c6)
machine # #2 0x00007f104b6a5938 abort (libc.so.6 + 0x28938)
machine # #3 0x00007f104b91fb09 log_assert_failed.cold (libsystemd-shared-257.so + 0x9db09)
machine # #4 0x0000561cc8234c27 machine_start (/nix/store/fampg5z6zz78pxxvbg7zclhfblivw2xa-systemd-257.1/lib/systemd/systemd-machined + 0xdc27)
machine # #5 0x0000561cc8232896 main (/nix/store/fampg5z6zz78pxxvbg7zclhfblivw2xa-systemd-257.1/lib/systemd/systemd-machined + 0xb896)
machine # #6 0x00007f104b6a71fc __libc_start_call_main (libc.so.6 + 0x2a1fc)
machine # #7 0x00007f104b6a72b9 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2a2b9)
machine # #8 0x0000561cc8232e85 _start (/nix/store/fampg5z6zz78pxxvbg7zclhfblivw2xa-systemd-257.1/lib/systemd/systemd-machined + 0xbe85)
machine # ELF object binary architecture: AMD x86-64
machine #
machine # [ 204.792643] systemd[1]: systemd-machined.service: Main process exited, code=dumped, status=6/ABRT
machine # [ 204.826276] systemd[1]: systemd-machined.service: Failed with result 'core-dump'.
machine # [ 204.830635] systemd[1]: [email protected]: Deactivated successfully.
machine # [ 205.304182] systemd-nspawn[5152]: ░ Spawning container foo on /var/lib/nixos-containers/foo.
machine # [ 205.352675] (udev-worker)[5125]: Network interface NamePolicy= disabled on kernel command line.
machine # [ 205.363633] dbus-daemon[659]: [system] Activating via systemd: service name='org.freedesktop.machine1' unit='dbus-org.freedesktop.machine1.service' requested by ':1.18' (uid=0 pid=5152 comm="/nix/store/fampg5z6zz78pxxvbg7zclhfblivw2xa-system" label="kernel")
machine # [ 205.383403] systemd[1]: Starting Virtual Machine and Container Registration Service...
machine # [ 205.512443] dbus-daemon[659]: [system] Successfully activated service 'org.freedesktop.machine1'
machine # [ 205.518103] systemd[1]: Started Virtual Machine and Container Registration Service.
machine # [ 205.526689] systemd-machined[5163]: Assertion 'pidref_is_set(&m->leader)' failed at src/machine/machine.c:496, function machine_watch_pidfd(). Aborting.
machine # [ 205.577139] systemd-coredump[5165]: Process 5163 (systemd-machine) of user 0 terminated abnormally with signal 6/ABRT, processing...
machine # [ 205.605207] systemd[1]: Started Process Core Dump (PID 5165/UID 0).
machine # [ 205.936207] systemd-coredump[5166]: Process 5163 (systemd-machine) of user 0 dumped core.
machine #
machine # Module libaudit.so.1 without build-id.
machine # Module libattr.so.1 without build-id.
machine # Module libseccomp.so.2 without build-id.
machine # Module libpam.so.0 without build-id.
machine # Module libcrypt.so.2 without build-id.
machine # Module libcap.so.2 without build-id.
machine # Module libacl.so.1 without build-id.
machine # Stack trace of thread 5163:
machine # #0 0x00007f811c4298ec __pthread_kill_implementation (libc.so.6 + 0x988ec)
machine # #1 0x00007f811c3d19c6 raise (libc.so.6 + 0x409c6)
machine # #2 0x00007f811c3b9938 abort (libc.so.6 + 0x28938)
machine # #3 0x00007f811c633b09 log_assert_failed.cold (libsystemd-shared-257.so + 0x9db09)
machine # #4 0x0000559cf4969c27 machine_start (/nix/store/fampg5z6zz78pxxvbg7zclhfblivw2xa-systemd-257.1/lib/systemd/systemd-machined + 0xdc27)
machine # #5 0x0000559cf4967896 main (/nix/store/fampg5z6zz78pxxvbg7zclhfblivw2xa-systemd-257.1/lib/systemd/systemd-machined + 0xb896)
machine # #6 0x00007f811c3bb1fc __libc_start_call_main (libc.so.6 + 0x2a1fc)
machine # #7 0x00007f811c3bb2b9 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2a2b9)
machine # #8 0x0000559cf4967e85 _start (/nix/store/fampg5z6zz78pxxvbg7zclhfblivw2xa-systemd-257.1/lib/systemd/systemd-machined + 0xbe85)
machine # ELF object binary architecture: AMD x86-64
machine #
machine # [ 206.035132] systemd-nspawn[5152]: Failed to register machine: Message recipient disconnected from message bus without replying
machine # [ 206.056268] systemd[1]: run-systemd-nspawn-unix\x2dexport-foo.mount: Deactivated successfully.
machine # [ 206.059707] systemd[1]: systemd-machined.service: Main process exited, code=dumped, status=6/ABRT
machine # [ 206.064847] systemd[1]: systemd-machined.service: Failed with result 'core-dump'.
machine # [ 206.069574] systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
machine # [ 206.074063] systemd[1]: [email protected]: Failed with result 'exit-code'.
machine # [ 206.078694] systemd[1]: Failed to start Container 'foo'.
machine # [ 206.081576] systemd[1]: [email protected]: Deactivated successfully.
machine # Job for [email protected] failed because the control process exited with error code.
machine # See "systemctl status [email protected]" and "journalctl -xeu [email protected]" for details.
machine # /run/current-system/sw/bin/nixos-container: failed to start container
machine: output:
Test "Stop a container without machined (regression test for #109695)" failed with error: "command `nixos-container start foo` failed (exit code 1)"
cleanup
kill machine (pid 11)
qemu-system-x86_64: terminating on signal 15 from pid 8 (/nix/store/qrc496n6fsqp4p5m5h8wmw5d5jwyw5mr-python3-3.12.8/bin/python3.12)
kill vlan (pid 9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment