OpenVZ Forum


Home » General » Support » "vzctl stop" - hangs (but only through sudo)
"vzctl stop" - hangs [message #36704] Sat, 11 July 2009 03:11 Go to next message
melsom is currently offline  melsom
Messages: 1
Registered: July 2009
Junior Member
Hello,

I'm coding a front-end for our company, and I stumbled across a very strange problem.

"vzctl stop" (and restart) hangs for 2 minutes exactly when executed, thing is. This only happens through "sudo", e.g "sudo /usr/sbin/vzctl stop 100". This problem does not occur through regular root-login.

But ofcourse, we have to use sudo for our project. Is there any resolution to this problem?

Template is a precreated one fetched from the wiki, running on an 64bit machine, "debian-5.0-x86_64.tar.gz".

Using strace, I can see that the following code is repeating over and over:

04:55:44.954194 rt_sigprocmask(SIG_SETMASK, [], NULL, Cool = 0
04:55:44.954259 ioctl(4, 0x400c2e05, 0x7fff65e26e70) = 0
04:55:44.954315 rt_sigprocmask(SIG_BLOCK, [CHLD], [], Cool = 0
04:55:44.954360 rt_sigaction(SIGCHLD, NULL, {SIG_IGN, [], SA_RESTORER|SA_NOCLDSTOP, 0x3834a30280}, Cool = 0
04:55:44.954409 nanosleep({1, 0}, {1, 0}) = 0
04:55:45.955141 rt_sigprocmask(SIG_SETMASK, [], NULL, Cool = 0
04:55:45.955204 ioctl(4, 0x400c2e05, 0x7fff65e26e70) = 0
04:55:45.955253 rt_sigprocmask(SIG_BLOCK, [CHLD], [], Cool = 0
04:55:45.955304 rt_sigaction(SIGCHLD, NULL, {SIG_IGN, [], SA_RESTORER|SA_NOCLDSTOP, 0x3834a30280}, Cool = 0
04:55:45.955354 nanosleep({1, 0}, {1, 0}) = 0
04:55:46.956110 rt_sigprocmask(SIG_SETMASK, [], NULL, Cool = 0
04:55:46.956171 ioctl(4, 0x400c2e05, 0x7fff65e26e70) = 0
04:55:46.956214 rt_sigprocmask(SIG_BLOCK, [CHLD], [], Cool = 0
04:55:46.956255 rt_sigaction(SIGCHLD, NULL, {SIG_IGN, [], SA_RESTORER|SA_NOCLDSTOP, 0x3834a30280}, Cool = 0
04:55:46.956298 nanosleep({1, 0}, {1, 0}) = 0

Any help would really be appreciated!

Thanks

UPDATE: This seems to be related to the provided debian/ubuntu templates. Centos-5-x86_64.tar.gz template does not freeze. Reboot takes 9-10 seconds.

[Updated on: Sat, 11 July 2009 03:43]

Report message to a moderator

Re: "vzctl stop" - hangs [message #36731 is a reply to message #36704] Tue, 14 July 2009 06:11 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

Could you please invoke `which reboot` inside a VE? Let's assume that `/sbin/reboot` is returned. Please try the following workaround: change nonpriviledged user's $PATH variable so that it contains '/sbin' directory i.e

# PATH=$PATH:/sbin
# export PATH

[Updated on: Tue, 14 July 2009 06:12]

Report message to a moderator

Re: "vzctl stop" - hangs [message #36738 is a reply to message #36704] Tue, 14 July 2009 09:54 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Thanks for reporting about the problem.
I made a new bug report:
http://bugzilla.openvz.org/show_bug.cgi?id=1304
Previous Topic: MAC Address
Next Topic: Problem In Cpanel, Disk Quota Doesnt working
Goto Forum:
  


Current Time: Sun Nov 10 20:38:35 GMT 2024

Total time taken to generate the page: 0.03635 seconds