Page 1 of 1
Server refused to allocate pty
Posted: 2019/10/04 22:52:25
by jvdwesthuizen
Hi,
I'm running asterisk on a centos6.6 in a proxmox virtual inviroment, I moved the container from 1 node to anotehr and now I'm getting this error: "server refused to allocate pty", tried a couple of things but wasn't successful.
Any help would be appreciated.
Thanks.
Re: Server refused to allocate pty
Posted: 2019/10/04 22:57:00
by TrevorH
You shouldn't be running CentOS 6.6 in the first place! It's from 2014 so is now 5 years old and absolutely riddled with high severity security bugs. You should be running yum update on a regular basis - like weekly - not once every 5 years!
The current version is 6.10 and only has about 1 more year of life left in it. You'll want to be looking at migrating to 7 or 8 sooner rather than later.
Run yum update to get up to date, reboot and see if the issue persists.
Re: Server refused to allocate pty
Posted: 2019/10/05 23:33:36
by jvdwesthuizen
Hi,
Thanks for the reply and update.
I followed your advice but it's still the same after the update and reboot, still getting the error when trying to ssh directly.
Any other option I can try to fix this?
Thanks.
Re: Server refused to allocate pty
Posted: 2019/10/08 09:52:51
by jvdwesthuizen
Hi,
So I think I messed up here, asterisk is not showing as it should and if I login it logs me out.
Can I revert back to the previous version, jsut for now or what option s do I have?
Thanks.
Re: Server refused to allocate pty
Posted: 2019/10/08 16:54:41
by aks
Hell it's been such a long time now. In C6 I think it's still mingetty who allocations the them - perhaps have a look in /etc/inittab (but be careful), otherwise have a look in the mingetty rpm for config files (and if it's not mingetty then it'll probably be a package with tty in the name).
Re: Server refused to allocate pty
Posted: 2019/10/20 22:12:20
by jvdwesthuizen
Hi,
Fixed the login issues but still have the tty issue when ssh'ing into the vm.
What other options could I try to fix this.
Thanks in advance.
Re: Server refused to allocate pty
Posted: 2019/10/23 17:40:55
by aks
If you stil don't have enough ttys increase them (but also understand why this is the case) - see previous post(s)