{"action":"created","issue":{"url":"https://api.github.com/repos/lxc/lxc/issues/2487","repository_url":"https://api.github.com/repos/lxc/lxc","labels_url":"https://api.github.com/repos/lxc/lxc/issues/2487/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxc/issues/2487/comments","events_url":"https://api.github.com/repos/lxc/lxc/issues/2487/events","html_url":"https://github.com/lxc/lxc/issues/2487","id":343360972,"node_id":"MDU6SXNzdWUzNDMzNjA5NzI=","number":2487,"title":"lxc_start - start.c:start:1443 - Permission denied - Failed to exec \"/sbin/init\"","user":{"login":"matheo","id":260185,"node_id":"MDQ6VXNlcjI2MDE4NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/260185?v=4","gravatar_id":"","url":"https://api.github.com/users/matheo","html_url":"https://github.com/matheo","followers_url":"https://api.github.com/users/matheo/followers","following_url":"https://api.github.com/users/matheo/following{/other_user}","gists_url":"https://api.github.com/users/matheo/gists{/gist_id}","starred_url":"https://api.github.com/users/matheo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matheo/subscriptions","organizations_url":"https://api.github.com/users/matheo/orgs","repos_url":"https://api.github.com/users/matheo/repos","events_url":"https://api.github.com/users/matheo/events{/privacy}","received_events_url":"https://api.github.com/users/matheo/received_events","type":"User","site_admin":false},"labels":[{"id":146847520,"node_id":"MDU6TGFiZWwxNDY4NDc1MjA=","url":"https://api.github.com/repos/lxc/lxc/labels/Incomplete","name":"Incomplete","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-07-21T22:41:32Z","updated_at":"2018-08-02T08:42:51Z","closed_at":null,"author_association":"NONE","body":"I'm having this issue similar to #339 but I found no clues of the cause.\r\n\r\nI do have two containers, one is running ok, the other is not.\r\nThe configs don't have differences except for the `network.hwaddr`.\r\n\r\n# Required information\r\n\r\n * Distribution: Ubuntu\r\n * Distribution version: 16.04.5 LTS\r\n * The output of\r\n   * `lxc-start --version`: `2.0.8`\r\n   * `uname -a`: `Linux abrego 4.4.0-130-generic #156-Ubuntu SMP Thu Jun 14 08:53:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux`\r\n   * `lxc-checkconfig`\r\n```\r\nKernel configuration not found at /proc/config.gz; searching...\r\nKernel configuration found at /boot/config-4.4.0-130-generic\r\n--- Namespaces ---\r\nNamespaces: enabled\r\nUtsname namespace: enabled\r\nIpc namespace: enabled\r\nPid namespace: enabled\r\nUser namespace: enabled\r\nWarning: newuidmap is not setuid-root\r\nWarning: newgidmap is not setuid-root\r\nNetwork namespace: enabled\r\nMultiple /dev/pts instances: enabled\r\n\r\n--- Control groups ---\r\nCgroup: enabled\r\nCgroup clone_children flag: enabled\r\nCgroup device: enabled\r\nCgroup sched: enabled\r\nCgroup cpu account: enabled\r\nCgroup memory controller: enabled\r\nCgroup cpuset: enabled\r\n\r\n--- Misc ---\r\nVeth pair device: enabled\r\nMacvlan: enabled\r\nVlan: enabled\r\nBridges: enabled\r\nAdvanced netfilter: enabled\r\nCONFIG_NF_NAT_IPV4: enabled\r\nCONFIG_NF_NAT_IPV6: enabled\r\nCONFIG_IP_NF_TARGET_MASQUERADE: enabled\r\nCONFIG_IP6_NF_TARGET_MASQUERADE: enabled\r\nCONFIG_NETFILTER_XT_TARGET_CHECKSUM: enabled\r\nFUSE (for use with lxcfs): enabled\r\n\r\n--- Checkpoint/Restore ---\r\ncheckpoint restore: enabled\r\nCONFIG_FHANDLE: enabled\r\nCONFIG_EVENTFD: enabled\r\nCONFIG_EPOLL: enabled\r\nCONFIG_UNIX_DIAG: enabled\r\nCONFIG_INET_DIAG: enabled\r\nCONFIG_PACKET_DIAG: enabled\r\nCONFIG_NETLINK_DIAG: enabled\r\nFile capabilities: enabled\r\n\r\nNote : Before booting a new kernel, you can check its configuration\r\nusage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig\r\n```\r\n   * `cat /etc/subuid` `cat /etc/subgid`\r\n```\r\nmateo:100000:65536\r\nroot:1000000:65536\r\n```\r\n   * `cat /proc/self/cgroup`\r\n```\r\n11:hugetlb:/\r\n10:cpuset:/\r\n9:net_cls,net_prio:/\r\n8:freezer:/user/root/0\r\n7:blkio:/user.slice/user-0.slice/session-c1.scope\r\n6:memory:/user.slice/user-0.slice/session-c1.scope\r\n5:perf_event:/\r\n4:pids:/user.slice/user-0.slice/session-c1.scope\r\n3:devices:/user.slice/user-0.slice/session-c1.scope\r\n2:cpu,cpuacct:/user.slice/user-0.slice/session-c1.scope\r\n1:name=systemd:/user.slice/user-0.slice/session-c1.scope\r\n```\r\n   * `cat /proc/1/mounts`\r\n```\r\nsysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0\r\nproc /proc proc rw,nosuid,nodev,noexec,relatime 0 0\r\nudev /dev devtmpfs rw,nosuid,relatime,size=980312k,nr_inodes=245078,mode=755 0 0\r\ndevpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0\r\ntmpfs /run tmpfs rw,nosuid,noexec,relatime,size=199896k,mode=755 0 0\r\n/dev/vda1 / ext4 rw,relatime,data=ordered 0 0\r\nsecurityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0\r\ntmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0\r\ntmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0\r\ntmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0\r\ncgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd 0 0\r\npstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0\r\ncgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0\r\ncgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0\r\ncgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids 0 0\r\ncgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0\r\ncgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0\r\ncgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0\r\ncgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0\r\ncgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0\r\ncgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset,clone_children 0 0\r\ncgroup /sys/fs/cgroup/hugetlb cgroup rw,nosuid,nodev,noexec,relatime,hugetlb 0 0\r\nsystemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct 0 0\r\nhugetlbfs /dev/hugepages hugetlbfs rw,relatime 0 0\r\nmqueue /dev/mqueue mqueue rw,relatime 0 0\r\ndebugfs /sys/kernel/debug debugfs rw,relatime 0 0\r\nfusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0\r\nlxcfs /var/lib/lxcfs fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0\r\ntmpfs /run/user/1000 tmpfs rw,nosuid,nodev,relatime,size=199896k,mode=700,uid=1000,gid=1000 0 0\r\ntmpfs /run/user/0 tmpfs rw,nosuid,nodev,relatime,size=199896k,mode=700 0 0\r\n```\r\n# Issue description\r\n\r\n`lxc-start` fails and the log file says:\r\n```\r\n lxc-start 20180721223201.899 ERROR    lxc_start - start.c:start:1443 - Permission denied - Failed to exec \"/sbin/init\".\r\n      lxc-start 20180721223201.900 ERROR    lxc_sync - sync.c:__sync_wait:57 - An error occurred in another process (expected sequence number 5)\r\n      lxc-start 20180721223201.900 ERROR    lxc_start - start.c:__lxc_start:1358 - Failed to spawn container \"odoo9\".\r\n      lxc-start 20180721223206.601 ERROR    lxc_start_ui - tools/lxc_start.c:main:366 - The container failed to start.\r\n      lxc-start 20180721223206.601 ERROR    lxc_start_ui - tools/lxc_start.c:main:368 - To get more details, run the container in foreground mode.\r\n      lxc-start 20180721223206.601 ERROR    lxc_start_ui - tools/lxc_start.c:main:370 - Additional information can be obtained by setting the --logfile\r\n```\r\n\r\nMy container config:\r\n```\r\n# Template used to create this container: /usr/share/lxc/templates/lxc-ubuntu\r\n# Parameters passed to the template:\r\n# For additional config options, please look at lxc.container.conf(5)\r\n\r\n# Common configuration\r\nlxc.include = /usr/share/lxc/config/ubuntu.common.conf\r\n\r\n# Container specific configuration\r\nlxc.rootfs = /var/lib/lxc/odoo9/rootfs\r\nlxc.rootfs.backend = dir\r\nlxc.utsname = odoo9\r\nlxc.arch = amd64\r\n\r\n# Network configuration\r\nlxc.network.type = veth\r\nlxc.network.link = lxcbr0\r\nlxc.network.flags = up\r\nlxc.network.hwaddr = 00:16:3e:e3:23:c7\r\nlxc.mount = /var/lib/lxc/odoo9/fstab\r\nlxc.start.auto = 1\r\nlxc.start.delay = 5\r\n```\r\n\r\nThanks in advance for any info @stgraber "},"comment":{"url":"https://api.github.com/repos/lxc/lxc/issues/comments/409852551","html_url":"https://github.com/lxc/lxc/issues/2487#issuecomment-409852551","issue_url":"https://api.github.com/repos/lxc/lxc/issues/2487","id":409852551,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTg1MjU1MQ==","user":{"login":"brauner","id":7353573,"node_id":"MDQ6VXNlcjczNTM1NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/7353573?v=4","gravatar_id":"","url":"https://api.github.com/users/brauner","html_url":"https://github.com/brauner","followers_url":"https://api.github.com/users/brauner/followers","following_url":"https://api.github.com/users/brauner/following{/other_user}","gists_url":"https://api.github.com/users/brauner/gists{/gist_id}","starred_url":"https://api.github.com/users/brauner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brauner/subscriptions","organizations_url":"https://api.github.com/users/brauner/orgs","repos_url":"https://api.github.com/users/brauner/repos","events_url":"https://api.github.com/users/brauner/events{/privacy}","received_events_url":"https://api.github.com/users/brauner/received_events","type":"User","site_admin":false},"created_at":"2018-08-02T08:42:51Z","updated_at":"2018-08-02T08:42:51Z","author_association":"MEMBER","body":"What's in the `fstab` file for both?"}}
{"actor":{"display_login":"brauner"}}