[lxc-users] Error connecting to cgroup manager
Alan Hoffmeister
alanhoffmeister at gmail.com
Thu Jun 18 13:20:06 UTC 2015
That didn't worked :-(
--
Alan Hoffmeister
https://twitter.com/alan_hoff
https://github.com/alanhoff
https://keybase.io/alanhoff
2015-06-18 10:05 GMT-03:00 Serge Hallyn <serge.hallyn at ubuntu.com>:
> Heh, it wasn't a solution, but a debugging tool :)
>
> Let's try something perhaps a wee bit more elegant: in place of the
> sleep, can you add something like
>
> while ! cgm ping 2>&1 > /dev/null; do sleep 1; done
>
> This is where upstart really failed (though it had plans) to
> fix things - 'started cgmanager' means cgmanager has started,
> but not that it is ready. Socket activation is a much better
> model here.
>
> -serge
>
> Quoting Alan Hoffmeister (alanhoffmeister at gmail.com):
> > Yep, it worked.
> >
> >
> > --
> > Alan Hoffmeister
> > https://twitter.com/alan_hoff
> > https://github.com/alanhoff
> > https://keybase.io/alanhoff
> >
> > 2015-06-18 9:41 GMT-03:00 Alan Hoffmeister <alanhoffmeister at gmail.com>:
> >
> > > I was trying to avoid sleeps, it feels like a dirty solution, but I
> will
> > > take a try.
> > >
> > >
> > > --
> > > Alan Hoffmeister
> > > https://twitter.com/alan_hoff
> > > https://github.com/alanhoff
> > > https://keybase.io/alanhoff
> > >
> > > 2015-06-17 23:39 GMT-03:00 Serge Hallyn <serge.hallyn at ubuntu.com>:
> > >
> > >> Hm, so does adding a "sleep 1m" in /etc/init/lxc.conf right before
> > >> the call to lxc-autostart help?
> > >>
> > >> Quoting Alan Hoffmeister (alanhoffmeister at gmail.com):
> > >> > yes, exactly.
> > >> >
> > >> >
> > >> > --
> > >> > Alan Hoffmeister
> > >> > https://twitter.com/alan_hoff
> > >> > https://github.com/alanhoff
> > >> > https://keybase.io/alanhoff
> > >> >
> > >> > 2015-06-15 12:20 GMT-03:00 Serge Hallyn <serge.hallyn at ubuntu.com>:
> > >> >
> > >> > > to be clear, these containers start fine on the command line?
> > >> > >
> > >> > > Quoting Alan Hoffmeister (alanhoffmeister at gmail.com):
> > >> > > > Nothing, same error.
> > >> > > >
> > >> > > >
> > >> > > > --
> > >> > > > Alan Hoffmeister
> > >> > > > https://twitter.com/alan_hoff
> > >> > > > https://github.com/alanhoff
> > >> > > > https://keybase.io/alanhoff
> > >> > > >
> > >> > > > 2015-06-08 12:19 GMT-03:00 Serge Hallyn <
> serge.hallyn at ubuntu.com>:
> > >> > > >
> > >> > > > > Quoting Alan Hoffmeister (alanhoffmeister at gmail.com):
> > >> > > > > > Hello folks, I'm getting this messages when trying to
> autostart
> > >> a
> > >> > > vanilla
> > >> > > > > > ubuntu 14.04 guest on an ubntu 14.04 host, I'm using LXC
> 1.1.2
> > >> > > > > >
> > >> > > > > > lxc-start 1433600022.910 ERROR lxc_cgmanager -
> > >> > > > > > cgmanager.c:cgm_destroy:571 - Error connecting to cgroup
> manager
> > >> > > > > > lxc-start 1433600096.266 ERROR lxc_cgmanager -
> > >> > > > > > cgmanager.c:cgm_bind_dir:1339 -
> > >> > > > > /usr/lib/x86_64-linux-gnu/lxc/sys/fs/cgroup
> > >> > > > > > does not exist
> > >> > > > >
> > >> > > > > Hm, this looks like a race. lxc.conf starts on runlevel
> [2345].
> > >> > > > > cgmanager starts on starting dbus. If cgmanager is slow to
> start,
> > >> > > > > I'm not sure there is anything stopping runlevel 2 from being
> > >> entered
> > >> > > > > before
> > >> > > > > cgmanager is up.
> > >> > > > >
> > >> > > > > Does it reliably solve your issue if you change the 'start on'
> > >> line in
> > >> > > > > /etc/init/lxc.conf to
> > >> > > > >
> > >> > > > > start on runlevel [2345] and started cgmanager
> > >> > > > >
> > >> > > > > ?
> > >> > > > >
> > >> > > > > > lxc-start 1433600096.286 ERROR lxc_conf -
> > >> > > > > > conf.c:lxc_mount_auto_mounts:846 - No such file or
> directory -
> > >> error
> > >> > > > > > mounting /sys/fs/cgroup
> > >> > > > > > lxc-start 1433600096.286 ERROR lxc_conf -
> > >> > > > > conf.c:lxc_setup:3847 -
> > >> > > > > > failed to setup the automatic mounts for 'test'
> > >> > > > > > lxc-start 1433600096.286 ERROR lxc_start -
> > >> > > > > start.c:do_start:699 -
> > >> > > > > > failed to setup the container
> > >> > > > > > lxc-start 1433600096.286 ERROR lxc_sync -
> > >> > > > > sync.c:__sync_wait:51 -
> > >> > > > > > invalid sequence number 1. expected 2
> > >> > > > > > lxc-start 1433600096.319 ERROR lxc_start -
> > >> > > > > > start.c:__lxc_start:1164 - failed to spawn 'test'
> > >> > > > > > lxc-start 1433600101.324 ERROR lxc_start_ui -
> > >> > > > > lxc_start.c:main:344
> > >> > > > > > - The container failed to start.
> > >> > > > > > lxc-start 1433600101.325 ERROR lxc_start_ui -
> > >> > > > > lxc_start.c:main:346
> > >> > > > > > - To get more details, run the container in foreground mode.
> > >> > > > > > lxc-start 1433600101.325 ERROR lxc_start_ui -
> > >> > > > > lxc_start.c:main:348
> > >> > > > > > - Additional information can be obtained by setting the
> > >> --logfile and
> > >> > > > > > --logpriority options
> > >> > > > > >
> > >> > > > > > --
> > >> > > > > > Alan Hoffmeister
> > >> > > > > > https://twitter.com/alan_hoff
> > >> > > > > > https://github.com/alanhoff
> > >> > > > > > https://keybase.io/alanhoff
> > >> > > > >
> > >> > > > > > _______________________________________________
> > >> > > > > > lxc-users mailing list
> > >> > > > > > lxc-users at lists.linuxcontainers.org
> > >> > > > > > http://lists.linuxcontainers.org/listinfo/lxc-users
> > >> > > > >
> > >> > > > > _______________________________________________
> > >> > > > > lxc-users mailing list
> > >> > > > > lxc-users at lists.linuxcontainers.org
> > >> > > > > http://lists.linuxcontainers.org/listinfo/lxc-users
> > >> > >
> > >> > > > _______________________________________________
> > >> > > > lxc-users mailing list
> > >> > > > lxc-users at lists.linuxcontainers.org
> > >> > > > http://lists.linuxcontainers.org/listinfo/lxc-users
> > >> > >
> > >> > > _______________________________________________
> > >> > > lxc-users mailing list
> > >> > > lxc-users at lists.linuxcontainers.org
> > >> > > http://lists.linuxcontainers.org/listinfo/lxc-users
> > >> > >
> > >>
> > >> > _______________________________________________
> > >> > lxc-users mailing list
> > >> > lxc-users at lists.linuxcontainers.org
> > >> > http://lists.linuxcontainers.org/listinfo/lxc-users
> > >>
> > >> _______________________________________________
> > >> lxc-users mailing list
> > >> lxc-users at lists.linuxcontainers.org
> > >> http://lists.linuxcontainers.org/listinfo/lxc-users
> > >>
> > >
> > >
>
> > _______________________________________________
> > lxc-users mailing list
> > lxc-users at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-users
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150618/d33565e3/attachment-0001.html>
More information about the lxc-users
mailing list