[lxc-users] lxc stop / lxc reboot hang

Tomasz Chmielewski mangoo at wpkg.org
Wed Mar 1 11:56:15 UTC 2017


Again seeing this issue on one of the servers:

- "lxc stop container" will stop the container but will never exit
- "lxc restart container" will stop the container and will never exit


# dpkg -l|grep lxd
ii  lxd                              2.0.9-0ubuntu1~16.04.2              
amd64        Container hypervisor based on LXC - daemon
ii  lxd-client                       2.0.9-0ubuntu1~16.04.2              
amd64        Container hypervisor based on LXC - client


This gets logged to container log:

             lxc 20170301115514.738 WARN     lxc_commands - 
commands.c:lxc_cmd_rsp_recv:172 - Command get_cgroup failed to receive 
response: Connection reset by peer.


How can it be debugged?

Tomasz


On 2017-02-03 13:05, Tomasz Chmielewski wrote:
> On 2017-02-03 12:52, Tomasz Chmielewski wrote:
>> Suddenly, today, I'm not able to stop or reboot any of containers:
>> 
>> # lxc stop some-container
>> 
>> Just sits there forever.
>> 
>> 
>> In /var/log/lxd/lxd.log, only this single entry shows up:
>> 
>> t=2017-02-03T03:46:20+0000 lvl=info msg="Shutting down container"
>> creation date=2017-01-19T15:51:21+0000 ephemeral=false timeout=-1s
>> name=some-container action=shutdown
>> 
>> 
>> In /var/log/lxd/some-container/lxc.log, only this one shows up:
>> 
>>             lxc 20170203034624.534 WARN     lxc_commands -
>> commands.c:lxc_cmd_rsp_recv:172 - command get_cgroup failed to receive
>> response
> 
> The container actually stops (it's in STOPPED state in "lxc list").
> 
> The command just never returns.
> 
> 
> Tomasz Chmielewski
> https://lxadm.com
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users


More information about the lxc-users mailing list