Skip to content

Instantly share code, notes, and snippets.

@toravir
Last active November 26, 2018 18:19
Show Gist options
  • Select an option

  • Save toravir/a51175abb6adc086330dee6675f0f0d5 to your computer and use it in GitHub Desktop.

Select an option

Save toravir/a51175abb6adc086330dee6675f0f0d5 to your computer and use it in GitHub Desktop.
stacker build error from within the container..
root@ee9f23086720:/first# more ./.stacker/lxc.log
lxc .working 20181121020640.903 TRACE commands - commands.c:lxc_cmd_init:1249 - Creating abstract unix socket "/first/roots/.working/command"
lxc .working 20181121020640.903 TRACE start - start.c:lxc_init_handler:729 - Unix domain socket 3 for command server is ready
lxc .working 20181121020640.903 TRACE execute - execute.c:lxc_execute:157 - Doing lxc_execute
lxc .working 20181121020640.903 INFO lsm - lsm/lsm.c:lsm_init:47 - LSM security driver AppArmor
lxc .working 20181121020640.903 TRACE start - start.c:lxc_init:746 - Initialized LSM
lxc .working 20181121020640.903 TRACE start - start.c:lxc_init:753 - Read seccomp policy
lxc .working 20181121020640.903 TRACE start - start.c:lxc_serve_state_clients:431 - Set container state to STARTING
lxc .working 20181121020640.903 TRACE start - start.c:lxc_serve_state_clients:434 - No state clients registered
lxc .working 20181121020640.903 TRACE start - start.c:lxc_init:761 - Set container state to "STARTING"
lxc .working 20181121020640.903 TRACE start - start.c:lxc_init:824 - Set environment variables
lxc .working 20181121020640.903 TRACE start - start.c:lxc_init:831 - Ran pre-start hooks
lxc .working 20181121020640.903 TRACE start - start.c:setup_signal_fd:332 - Created signal file descriptor 5
lxc .working 20181121020640.903 TRACE start - start.c:lxc_init:842 - Set up signal fd
lxc .working 20181121020640.904 DEBUG terminal - terminal.c:lxc_terminal_peer_default:704 - No such device - The process does not have a controlling terminal
lxc .working 20181121020640.904 TRACE start - start.c:lxc_init:850 - Created console
lxc .working 20181121020640.904 TRACE start - start.c:lxc_init:857 - Chowned console
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:lxc_cgfsng_print_basecg_debuginfo:1029 - basecginfo is:
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:lxc_cgfsng_print_basecg_debuginfo:1030 - 12:blkio:/docker/ee9f23086720ed24903b77021d319512fd8f67f843709b
27217f78c95a84844f
11:cpuset:/docker/ee9f23086720ed24903b77021d319512fd8f67f843709b27217f78c95a84844f
10:net_cls,net_prio:/docker/ee9f23086720ed24903b77021d319512fd8f67f843709b27217f78c95a84844f
9:hugetlb:/docker/ee9f23086720ed24903b77021d319512fd8f67f843709b27217f78c95a84844f
8:memory:/docker/ee9f23086720ed24903b77021d319512fd8f67f843709b27217f78c95a84844f
7:freezer:/docker/ee9f23086720ed24903b77021d319512fd8f67f843709b27217f78c95a84844f
6:perf_event:/docker/ee9f23086720ed24903b77021d319512fd8f67f843709b27217f78c95a84844f
5:devices:/docker/ee9f23086720ed24903b77021d319512fd8f67f843709b27217f78c95a84844f
4:pids:/docker/ee9f23086720ed24903b77021d319512fd8f67f843709b27217f78c95a84844f
3:rdma:/
2:cpu,cpuacct:/docker/ee9f23086720ed24903b77021d319512fd8f67f843709b27217f78c95a84844f
1:name=systemd:/docker/ee9f23086720ed24903b77021d319512fd8f67f843709b27217f78c95a84844f
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:lxc_cgfsng_print_basecg_debuginfo:1033 - kernel subsystem 0: blkio
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:lxc_cgfsng_print_basecg_debuginfo:1033 - kernel subsystem 1: cpuset
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:lxc_cgfsng_print_basecg_debuginfo:1033 - kernel subsystem 2: net_cls
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:lxc_cgfsng_print_basecg_debuginfo:1033 - kernel subsystem 3: net_prio
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:lxc_cgfsng_print_basecg_debuginfo:1033 - kernel subsystem 4: hugetlb
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:lxc_cgfsng_print_basecg_debuginfo:1033 - kernel subsystem 5: memory
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:lxc_cgfsng_print_basecg_debuginfo:1033 - kernel subsystem 6: freezer
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:lxc_cgfsng_print_basecg_debuginfo:1033 - kernel subsystem 7: perf_event
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:lxc_cgfsng_print_basecg_debuginfo:1033 - kernel subsystem 8: devices
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:lxc_cgfsng_print_basecg_debuginfo:1033 - kernel subsystem 9: pids
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:lxc_cgfsng_print_basecg_debuginfo:1033 - kernel subsystem 10: rdma
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:lxc_cgfsng_print_basecg_debuginfo:1033 - kernel subsystem 11: cpu
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:lxc_cgfsng_print_basecg_debuginfo:1033 - kernel subsystem 12: cpuacct
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:lxc_cgfsng_print_basecg_debuginfo:1036 - named subsystem 0: name=systemd
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:cg_hybrid_init:2417 - Writable cgroup hierarchies:
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:lxc_cgfsng_print_hierarchies:1010 - Hierarchies:
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:lxc_cgfsng_print_hierarchies:1015 - 0: base_cgroup: /
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:lxc_cgfsng_print_hierarchies:1016 - mountpoint: /sys/fs/cgroup/rdma
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:lxc_cgfsng_print_hierarchies:1017 - controllers:
lxc .working 20181121020640.904 TRACE cgfsng - cgroups/cgfsng.c:lxc_cgfsng_print_hierarchies:1019 - 0: rdma
lxc .working 20181121020640.904 ERROR cgfsng - cgroups/cgfsng.c:all_controllers_found:701 - No freezer controller mountpoint found
lxc .working 20181121020640.904 ERROR cgroup - cgroups/cgroup.c:cgroup_init:44 - Failed to initialize cgroup driver
lxc .working 20181121020640.904 ERROR start - start.c:lxc_init:861 - Failed to initialize cgroup driver
lxc .working 20181121020640.904 TRACE start - start.c:lxc_serve_state_clients:431 - Set container state to ABORTING
lxc .working 20181121020640.904 TRACE start - start.c:lxc_serve_state_clients:434 - No state clients registered
lxc .working 20181121020640.904 ERROR start - start.c:__lxc_start:1876 - Failed to initialize container ".working"
root@ee9f23086720:/first#
root@ee9f23086720:/first# stacker build -f stacker.yaml
building image first...
importing files...
copying install.sh
Getting image source signatures
Copying blob sha256:aeb7866da422acc7e93dcf7323f38d7646f6269af33bcdb6647f2094fc4b3bf7
71.24 MiB / 71.24 MiB [====================================================] 5s
Copying config sha256:1e8ad5e15a62dea6c1a650a7ff14da420854aaac4f3b2b5e5da9f70fc6c22ec6
1.05 KiB / 1.05 KiB [======================================================] 0s
Writing manifest to image destination
Storing signatures
unpacking to /first/roots/.working
running commands...
running commands for first
failed to start container .working
error: run commands failed: execute failed
Last few LXC errors:
lxc .working 20181121020013.341 ERROR cgfsng - cgroups/cgfsng.c:all_controllers_found:701 - No freezer controller mountpoint found
lxc .working 20181121020013.341 ERROR cgroup - cgroups/cgroup.c:cgroup_init:44 - Failed to initialize cgroup driver
lxc .working 20181121020013.341 ERROR start - start.c:lxc_init:861 - Failed to initialize cgroup driver
lxc .working 20181121020013.341 ERROR start - start.c:__lxc_start:1876 - Failed to initialize container ".working"
root@ee9f23086720:/first#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment