Hi I am toying a bit with nixos-container. I noticed that most of the time the update (reload) fails.
nixos-container update web2 I am assuming that I can only reload a container which is started, is that correct? I don't have a configuration.nix inside the container, instead I maintain a container config which I import in my host configuration. Here is what I get: # nixos-container update web2 warning: Nix search path entry ‘/var/lib/containers/web2/etc/nixos/configuration.nix’ does not exist, ignoring reloading container... Job for [email protected] failed. See "systemctl status [email protected]" and "journalctl -xe" for details. /run/current-system/sw/bin/nixos-container: failed to reload container And journalctl -xe: ternal systemd[1]: Reloading Container 'web2'. ternal container web2[30273]: stopping the following units: console-getty.service, cron.service, httpd.se ternal container web2[30273]: activating the configuration... ternal container web2[30273]: setting up /etc... ternal container web2[30273]: removing group ‘wwwrun’ ternal container web2[30273]: removing user ‘wwwrun’ ternal container web2[30273]: /nix/store/hypmmhhhb61v9wh2hmlw6r42bnkzaizy-nixos-14.12.885.b373bf9/activat ternal container web2[30273]: /nix/store/hypmmhhhb61v9wh2hmlw6r42bnkzaizy-nixos-14.12.885.b373bf9/activat ternal container web2[30273]: /nix/store/hypmmhhhb61v9wh2hmlw6r42bnkzaizy-nixos-14.12.885.b373bf9/activat ternal container web2[29848]: web2 login: Running in a container, ignoring fstab device entry for /dev/di ternal container web2[30273]: reloading the following units: dbus.service, firewall.service ternal container web2[30273]: starting the following units: cron.service, nscd.service ternal kernel: EXT4-fs (xvda1): re-mounted. Opts: (null) ternal kernel: INFO: task systemd-shutdow:13535 blocked for more than 120 seconds. ternal kernel: Not tainted 3.14.50 #1-NixOS ternal kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. ternal kernel: systemd-shutdow D ffff88007fc127c0 0 13535 1 0x00000002 ternal kernel: ffff88006f1d3d58 0000000000000046 ffff88007c0ae600 00000000000127c0 ternal kernel: ffff88006f1d3fd8 00000000000127c0 ffff88007c0ae600 ffff88007c0ae600 ternal kernel: ffff880074b00890 0000000000000001 0000000000000000 ffff88007c0ae600 ternal kernel: Call Trace: ternal kernel: [<ffffffff81460e89>] schedule+0x29/0x70 ternal kernel: [<ffffffff810e04f5>] zap_pid_ns_processes+0x145/0x1a0 ternal kernel: [<ffffffff81062795>] do_exit+0xa05/0xa40 ternal kernel: [<ffffffff810e05cd>] reboot_pid_ns+0x7d/0xa0 ternal kernel: [<ffffffff81087c3e>] SYSC_reboot+0x8e/0x260 ternal kernel: [<ffffffff810629aa>] ? SyS_waitid+0xaa/0x170 ternal kernel: [<ffffffff81051c52>] ? do_page_fault+0x22/0x30 ternal kernel: [<ffffffff81087eae>] SyS_reboot+0xe/0x10 ternal kernel: [<ffffffff81465089>] system_call_fastpath+0x16/0x1b ternal systemd[1]: [email protected] reload operation timed out. Stopping. ternal systemd[1]: Reload failed for Container 'web2'. # nixos-version 14.12.885.b373bf9 (Caterpillar) T(hx) _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
