{"action":"created","issue":{"url":"https://api.github.com/repos/lxc/lxc/issues/411","labels_url":"https://api.github.com/repos/lxc/lxc/issues/411/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxc/issues/411/comments","events_url":"https://api.github.com/repos/lxc/lxc/issues/411/events","html_url":"https://github.com/lxc/lxc/issues/411","id":55247707,"number":411,"title":"call to cgmanager_create_sync failed: invalid request","user":{"login":"henn","id":1813729,"avatar_url":"https://avatars.githubusercontent.com/u/1813729?v=3","gravatar_id":"","url":"https://api.github.com/users/henn","html_url":"https://github.com/henn","followers_url":"https://api.github.com/users/henn/followers","following_url":"https://api.github.com/users/henn/following{/other_user}","gists_url":"https://api.github.com/users/henn/gists{/gist_id}","starred_url":"https://api.github.com/users/henn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henn/subscriptions","organizations_url":"https://api.github.com/users/henn/orgs","repos_url":"https://api.github.com/users/henn/repos","events_url":"https://api.github.com/users/henn/events{/privacy}","received_events_url":"https://api.github.com/users/henn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lxc/lxc/labels/Incomplete","name":"Incomplete","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-23T05:53:52Z","updated_at":"2015-04-27T20:45:15Z","closed_at":null,"body":"First attempt at using unprivileged containers on Ubuntu 14.10 (amd64) yields error in the title. Looking for similar bug reports seem to offer systemd responses, however I am still using the default upstart that comes with 14.10 (systemd wasn't mentioned as a prerequisite).\r\n\r\nAfter following the [ubuntu instructions](https://help.ubuntu.com/14.04/serverguide/lxc.html), I ran:\r\n\r\n    lxc-create -n test1 -t download -- -d ubuntu -r utopic -a amd64\r\n    lxc-start -n test1 --logpriority=DEBUG --logfile=test1.out`\r\n\r\nThis resulted in the following log (trimmed for size):\r\n\r\n```\r\nINFO     lxc_start - start.c:lxc_init:443 - 'test1' is initialized\r\nDEBUG    lxc_start - start.c:__lxc_start:1061 - Not dropping cap_sys_boot or watching utmp\r\nINFO     lxc_start - start.c:lxc_spawn:805 - Cloning a new user namespace \r\nINFO     lxc_cgroup - cgroup.c:cgroup_init:62 - cgroup driver cgmanager initing for test1\r\nERROR    lxc_cgmanager - cgmanager.c:lxc_cgmanager_create:284 - call to cgmanager_create_sync failed: invalid request\r\nERROR    lxc_cgmanager - cgmanager.c:lxc_cgmanager_create:286 - Failed to create name=systemd:test1\r\nERROR    lxc_cgmanager - cgmanager.c:cgm_create:638 - Error creating cgroup name=systemd:test1 \r\nINFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:508 - cgroup removal attempt: name=systemd:test1 did not exist\r\nINFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:508 - cgroup removal attempt: perf_event:test1 did not exist \r\nINFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:508 - cgroup removal attempt: net_prio:test1 did not exist\r\nINFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:508 - cgroup removal attempt: net_cls:test1 did not exist\r\nINFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:508 - cgroup removal attempt: memory:test1 did not exist\r\nINFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:508 - cgroup removal attempt: hugetlb:test1 did not exist\r\nINFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:508 - cgroup removal attempt: freezer:test1 did not exist\r\nINFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:508 - cgroup removal attempt: devices:test1 did not exist\r\nINFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:508 - cgroup removal attempt: cpuset:test1 did not exist\r\nINFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:508 - cgroup removal attempt: cpuacct:test1 did not exist\r\nINFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:508 - cgroup removal attempt: cpu:test1 did not exist\r\nINFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:508 - cgroup removal attempt: blkio:test1 did not exist\r\nERROR    lxc_start - start.c:lxc_spawn:864 - failed creating cgroups\r\nINFO     lxc_utils - utils.c:get_rundir:420 - XDG_RUNTIME_DIR isn't set in the environment.\r\nERROR    lxc_start - start.c:__lxc_start:1087 - failed to spawn 'test1'\r\nINFO     lxc_utils - utils.c:get_rundir:420 - XDG_RUNTIME_DIR isn't set in the environment.\r\nINFO     lxc_utils - utils.c:get_rundir:420 - XDG_RUNTIME_DIR isn't set in the environment. \r\nWARN     lxc_commands - commands.c:lxc_cmd_rsp_recv:172 - command get_init_pid failed to receive response\r\nWARN     lxc_cgmanager - cgmanager.c:cgm_get:946 - do_cgm_get exited with error\r\nERROR    lxc_start_ui - lxc_start.c:main:337 - The container failed to start.\r\n```\r\n\r\nJust in case, I tried setting apparmor to complain instead of enforce with `aa-complain lxc-start`, however received the same error. The system is up to date on all packages.\r\n\r\nAny ideas?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/lxc/lxc/issues/comments/96814638","html_url":"https://github.com/lxc/lxc/issues/411#issuecomment-96814638","issue_url":"https://api.github.com/repos/lxc/lxc/issues/411","id":96814638,"user":{"login":"tarruda","id":842846,"avatar_url":"https://avatars.githubusercontent.com/u/842846?v=3","gravatar_id":"","url":"https://api.github.com/users/tarruda","html_url":"https://github.com/tarruda","followers_url":"https://api.github.com/users/tarruda/followers","following_url":"https://api.github.com/users/tarruda/following{/other_user}","gists_url":"https://api.github.com/users/tarruda/gists{/gist_id}","starred_url":"https://api.github.com/users/tarruda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarruda/subscriptions","organizations_url":"https://api.github.com/users/tarruda/orgs","repos_url":"https://api.github.com/users/tarruda/repos","events_url":"https://api.github.com/users/tarruda/events{/privacy}","received_events_url":"https://api.github.com/users/tarruda/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T20:45:15Z","updated_at":"2015-04-27T20:45:15Z","body":"[Here](https://gist.github.com/tarruda/2aea9107f04d8b8d8dbf) is a small script to work around this issue."}}