Hi guys!
I have every few days a persistent container that refuses to let itself shut. It times out on any shutdown attempt, and so far the only solution I found is to reboot the whole server because of a single container. Is there a way to force shutdown an LXC container?
This is what I get:
EDIT: When this happens, I can't even reboot the server normally, I need to do a hard reboot by holding the power button. It's really nasty and I'd like to find any better way to do this.
I have every few days a persistent container that refuses to let itself shut. It times out on any shutdown attempt, and so far the only solution I found is to reboot the whole server because of a single container. Is there a way to force shutdown an LXC container?
This is what I get:
Code:
command 'lxc-stop -n 108 --nokill --timeout 60' failed: exit code 1
What else can I do to force the container to die?root@server:/usr/bin# pct exec 108 poweroff
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "en_GB.UTF-8",
LANG = "C.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("C.UTF-8").
root@server:/usr/bin# pct exec 108 stop
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "en_GB.UTF-8",
LANG = "C.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("C.UTF-8").
lxc-attach: 108: attach.c: lxc_attach_run_command: 1450 No such file or directory - Failed to exec "stop"
EDIT: When this happens, I can't even reboot the server normally, I need to do a hard reboot by holding the power button. It's really nasty and I'd like to find any better way to do this.