OpenVZ Forum - RDF feed
type: channel
items: *SOLVED* Server refused to allocate pty
items: Re: Server refused to allocate pty

*SOLVED* Server refused to allocate pty
type: item
description: My host OS is CentOS 4.1 and I have configured a VPS of CentOS 4.1 via vztmpl-centos-4 and added the simfs fix from this forum. I have had a recurring problem of the error "Server refused to allocate pty" when trying to SSH to this CentOS VPS. It seems that after the host is restarted the error occurs. As best I can remember I performed the following. Created the VPS and was able to SSH into the VPS. I vzyum'ed to add YUM to the VPS and restarted the VPS. All was fine so I rebooted the host. SSH still worked. I then "yum update" from inside the VPS. I then restarted the VPS and and all was fine, I rebooted the host and received the pty error. I'm including some things which I have received which amount to errors. # vzctl start 101 Starting VPS ... vzquota : (error) Quota off syscall for id 101: Device or resource busy vzquota setlimit -f failed [3] vzquota : (warning) Quota is running for id 101 already VPS is mounted Adding IP address(es): 72.36.180.xxx Setting CPU units: 1000 Set hostname: devnu11.servebeer.com File resolv.conf was modified VPS start in progress... # # vzctl enter 101 Unable to open pty: No such file or directory enter failed From VPS 101 /var/log/messages Oct 5 00:40:51 devnu11 shutdown: shutting down for system halt Oct 5 00:40:51 devnu11 init: Switching to runlevel: 0 Oct 5 00:40:51 devnu11 httpd: httpd shutdown succeeded Oct 5 00:40:51 devnu11 sshd: sshd -TERM succeeded Oct 5 00:40:51 devnu11 sendmail: sendmail shutdown succeeded Oct 5 00:40:51 devnu11 sendmail: sm-client shutdown succeeded Oct 5 00:40:51 devnu11 xinetd[15870]: Exiting... Oct 5 00:40:51 devnu11 xinetd: xinetd shutdown succeeded Oct 5 00:40:51 devnu11 exiting on signal 15 Oct 5 00:46:03 devnu11 syslogd 1.4.1: restart. Oct 5 00:46:03 devnu11 syslog: syslogd startup succeeded Oct 5 00:46:03 devnu11 syslog: klogd succeeded Oct 5 00:46:03 devnu11 sshd: succeeded Oct 5 00:46:03 devnu11 xinetd: xinetd startup succeeded Oct 5 00:46:03 devnu11 xinetd[19556]: xinetd Version 2.3.13 start…
creator: devnu11
date: 2005-10-05T05:52:19-00:00

Re: Server refused to allocate pty
type: item
description: Swdev was kind enough to assist me in #openvz and I was able to correct the problem. I am adding what I did as a reference for someone else. vzctl exec 101 /sbin/MAKEDEV tty then vzctl exec 101 /sbin/MAKEDEV pty This solved the problem and I can log in as before. I believe udev was updated from a "yum update" and caused the problem. Thanks again swdev
creator: devnu11
date: 2005-10-05T06:30:42-00:00

Re: Server refused to allocate pty
type: item
description: Most probably the right way is to run vzctl exec <VPSID> /sbin/MAKEDEV ptyp
creator: kir
date: 2005-10-05T12:11:59-00:00

Re: Server refused to allocate pty
type: item
description: i have a similar error : -> vzctl enter 133 entered into VE 133 mesg: error: tty device is not owned by group `tty' i have tested thsi command : vzctl exec 133 /sbin/MAKEDEV ptyp and vzctl exec 133 /dev/MAKEDEV tty and vzctl exec 133 /dev/MAKEDEV pty but nothing work best regards
creator: youp
date: 2007-02-06T08:50:07-00:00

Re: Server refused to allocate pty
type: item
description: This works for me but when I restart the VE the problem occurs again. What is a good way to solve this problem permanently?
creator: alevchuk
date: 2007-07-14T02:46:40-00:00

Re: Server refused to allocate pty
type: item
description: I guess you should disable udev inside a VE, and disable mounting /dev on tmpfs. After that, create devices and they will be there permanently.
creator: kir
date: 2007-07-14T03:11:23-00:00

Re: Server refused to allocate pty
type: item
description: Thank you Kir.
creator: alevchuk
date: 2007-07-14T05:06:19-00:00

Re: Server refused to allocate pty
type: item
description: vzctl exec $VPSID /sbin/MAKEDEV tty Please Try this command worked.
creator: istdizayn
date: 2008-02-10T12:24:46-00:00

Re: Server refused to allocate pty
type: item
description: Hi, I do following: vzctl exec 133 /sbin/MAKEDEV ptyp and vzctl exec 133 /dev/MAKEDEV tty and vzctl exec 133 /dev/MAKEDEV pty And problem resolved, but issue come back when i restart customer vps. How can fix this too?
creator: gozargah
date: 2008-06-04T11:19:46-00:00

Re: Server refused to allocate pty
type: item
description: Hi, is there udev inside that VPS?
creator: maratrus
date: 2008-06-04T11:21:28-00:00

Re: Server refused to allocate pty
type: item
description: Yes, we have "dev" in vps.
creator: gozargah
date: 2008-06-04T14:28:32-00:00

Re: Server refused to allocate pty
type: item
description: Hi, No, I've meant something else. I asked you about "udev" package that helps us dynamically "create" appropriate devices (and we can find them inside /dev directory). If you have rpm-based VPS you can check that by typing "rpm -qa | grep udev" command.
creator: maratrus
date: 2008-06-04T14:42:00-00:00

Re: Server refused to allocate pty
type: item
description: youp, There is a wiki article about the issue, maybe it will answer all your questions: http://wiki.openvz.org/Container_enter_failed
creator: kir
date: 2008-06-04T14:46:32-00:00

Re: Server refused to allocate pty
type: item
description: maratrus wrote on Wed, 04 June 2008 10:42 Hi, No, I've meant something else. I asked you about "udev" package that helps us dynamically "create" appropriate devices (and we can find them inside /dev directory). If you have rpm-based VPS you can check that by typing "rpm -qa | grep udev" command. [root@datamedia dev]# rpm -qa | grep udev udev-095-14.9.el5 What can i must do now?
creator: gozargah
date: 2008-06-04T14:52:21-00:00

Re: Server refused to allocate pty
type: item
description: Hello, Kir suggests wonderful link. I think it describes your problem totally. But if you have any questions please ask.
creator: maratrus
date: 2008-06-04T14:55:13-00:00

Re: Server refused to allocate pty
type: item
description: I have following error when run "vzctl exec 270 /dev/MAKEDEV tty" and customer vps going down and must be reboot for back online. MAKEDEV: error making /dev/ttyEQ664: Cannot allocate memory Where is problem and how can fix this?
creator: gozargah
date: 2008-06-19T18:15:27-00:00

Re: Server refused to allocate pty
type: item
description: youp wrote on Tue, 06 February 2007 11:50 i have a similar error : -> vzctl enter 133 entered into VE 133 mesg: error: tty device is not owned by group `tty' This is about bad group ownership of files. I guess you have to do something like: vzctl exec 133 'chgrp tty /dev/ttyp* /dev/ptyp*'
creator: kir
date: 2008-06-20T08:14:38-00:00

Re: Server refused to allocate pty
type: item
description: I had exactly same problem after a yum update on centos 5.0, followed the same proceedure from the host with vzctl exec 101 /sbin/MAKEDEV tty and vzctl exec 101 /sbin/MAKEDEV pty And it's good again. Thanks!
creator: rduval
date: 2008-10-14T14:21:56-00:00