- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Server refused to allocate pty, ttytype: could...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2012 07:09 AM
01-12-2012 07:09 AM
Server refused to allocate pty , ttytype: couldn't open /dev/tty for reading
Dear all,
I have hp-ux server with 11.11 OS version, Today with suddenly I can't remote my server with telnet or putty (ssh) eve ftp.
But I can use it well with terminal (directly through server).
I've checked the syslog.log and found this below:
error:openpty:Bad file number
error:session_pty_req:session 0 alloc failed.
I've read some articles in this forum and try to restart my server but not solve the problem,
Anyone can tell me what happen to my server? it's a bug or something else?
Thanks
Best Regards
Adrian Tjahjana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2012 04:37 PM - edited 01-12-2012 06:21 PM
01-12-2012 04:37 PM - edited 01-12-2012 06:21 PM
Re: Server refused to allocate pty, ttytype: couldn't open /dev/tty for reading
>suddenly I can't remote my server with telnet or putty (ssh) even ftp.
What does kmtune(1m) show for npty nstrpty nstrtel?
You may need to use SAM to make these larger.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2012 05:02 PM
01-12-2012 05:02 PM
Re: Server refused to allocate pty , ttytype: couldn't open /dev/tty for reading
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2012 06:20 PM
01-12-2012 06:20 PM
Re: Server refused to allocate pty, ttytype: couldn't open /dev/tty for reading
>how I can show kmtune(1m) for npty nstrpty nstrtel?
Check the kmtune(1m) man page:
kmtune -q npty -q nstrpty -q nstrtel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2012 10:43 PM
01-12-2012 10:43 PM
Re: Server refused to allocate pty, ttytype: couldn't open /dev/tty for reading
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2012 03:33 PM
01-13-2012 03:33 PM
Re: Server refused to allocate pty, ttytype: couldn't open /dev/tty for reading
>npty 60 - 60 nstrpty 60 - 60 nstrtel 60 - 60
Do you have more than 60 people trying to log on? You may have to use SAM to increase these limits.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2012 12:06 AM
01-14-2012 12:06 AM
Re: Server refused to allocate pty, ttytype: couldn't open /dev/tty for reading
no it's only for around 50 users no more than 60, after I reboot the server the problem still occur.
it's corrupt maybe?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2012 02:47 PM
01-14-2012 02:47 PM
Re: Server refused to allocate pty, ttytype: couldn't open /dev/tty for reading
>after I reboot the server the problem still occur.
If you are going to reboot anyway, you might as well use SAM to increase these kernel parms.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2012 07:30 PM
01-15-2012 07:30 PM
Re: Server refused to allocate pty, ttytype: couldn't open /dev/tty for reading
... no it's only for around 50 users no more than 60, after I reboot the server the problem still occur.
it's corrupt maybe?
60 is the default and is way too small for 50 users. Every time a user logs in, you need a pty pair. This also includes all the junk logins caused by users that don't log out properly. Change all 3 parameters (npty, nstrtel and nstrpty) to 200, perhaps 500. There is no reason to have the system jam up due to a very small kernel parameter. By changing all 3 to a large value, you won't have this problem in the foreseeable future.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2012 08:44 PM
01-18-2012 08:44 PM
Re: Server refused to allocate pty, ttytype: couldn't open /dev/tty for reading
finally I restore the ignite and not to increase the kernel parms and the problem is solve, before the problem occur my /tmp file going to be 100% and the problem occur after that. It because of full space of tmp folder?