From 96b551f2ffc72be23c0510e52a0b6896a5fd9bd0 Mon Sep 17 00:00:00 2001 From: mithrandi@311efa1b2b5c4999c2edae7da06fb825899e8a82 Date: Sat, 1 Oct 2016 19:50:48 +0000 Subject: --- doc/forum/Systemd_nspawn_container_failure.mdwn | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 doc/forum/Systemd_nspawn_container_failure.mdwn (limited to 'doc') diff --git a/doc/forum/Systemd_nspawn_container_failure.mdwn b/doc/forum/Systemd_nspawn_container_failure.mdwn new file mode 100644 index 00000000..546f59ae --- /dev/null +++ b/doc/forum/Systemd_nspawn_container_failure.mdwn @@ -0,0 +1,12 @@ +I'm trying to spin up a new host to replace an old one, and I'm getting these weird failures on some `Systemd.nspawned` properties: + +``` +mount: mount point /var/lib/container/nginx-primary/proc does not exist +** warning: user error (chroot ["/var/lib/container/nginx-primary","/usr/local/propellor/chroot/_var_lib_container_nginx-primary.shim/propellor","--continue","ChrootChain \"onyx.fusionapp.com\" \"/var/lib/container/nginx-primary\" True True"] exited 127) +onyx.fusionapp.com nspawned nginx-primary ... failed +chroot: failed to run command â/usr/local/propellor/chroot/_var_lib_container_nginx-primary.shim/propellorâ: No such file or directory +onyx.fusionapp.com nspawned apache-svn ... failed +onyx.fusionapp.com nspawned mail-relay ... failed +``` + +There's some weird race condition since sometimes the message about `.../proc does not exist` shows up, and sometimes I get "failed" with no other error output. On further investigation, it turns out that `debootstrap` is not installed on the remote system. Inserting an `Apt.installed ["debootstrap"]` before the `nspawned` properties seems to have fixed it; but looking at the code, I don't fully understand why it isn't being installed by `Debootstrap.built`. -- cgit v1.2.3