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