f



GNU Screen "No more PTYs" "Sorry can't find a PTY"

I built GNU screen from both GNU source and the source from the HP-UX
port and archive center.  In both cases I get an error on the screen
console that "No more PTYs." and "Sorry can't find a PTY."  Is there a
non-admin user way to fix this issue?

One issue that appears to be showing up with Google is missing PTYs
in /dev.  However there are ones there

> ls /dev/pty
ttya0   ttyae   ttybc   ttyca   ttye8   ttyf6   ttyp4   ttyq2
ttyr0   ttyre   ttysc   ttyta   ttyu8   ttyv6   ttyw4   ttyx2
ttyy0   ttyye   ttyzc
ttya1   ttyaf   ttybd   ttycb   ttye9   ttyf7   ttyp5   ttyq3
ttyr1   ttyrf   ttysd   ttytb   ttyu9   ttyv7   ttyw5   ttyx3
ttyy1   ttyyf   ttyzd
ttya2   ttyb0   ttybe   ttycc   ttyea   ttyf8   ttyp6   ttyq4
ttyr2   ttys0   ttyse   ttytc   ttyua   ttyv8   ttyw6   ttyx4
ttyy2   ttyz0   ttyze
ttya3   ttyb1   ttybf   ttycd   ttyeb   ttyf9   ttyp7   ttyq5
ttyr3   ttys1   ttysf   ttytd   ttyub   ttyv9   ttyw7   ttyx5
ttyy3   ttyz1   ttyzf
ttya4   ttyb2   ttyc0   ttyce   ttyec   ttyfa   ttyp8   ttyq6
ttyr4   ttys2   ttyt0   ttyte   ttyuc   ttyva   ttyw8   ttyx6
ttyy4   ttyz2
ttya5   ttyb3   ttyc1   ttycf   ttyed   ttyfb   ttyp9   ttyq7
ttyr5   ttys3   ttyt1   ttytf   ttyud   ttyvb   ttyw9   ttyx7
ttyy5   ttyz3
ttya6   ttyb4   ttyc2   ttye0   ttyee   ttyfc   ttypa   ttyq8
ttyr6   ttys4   ttyt2   ttyu0   ttyue   ttyvc   ttywa   ttyx8
ttyy6   ttyz4
ttya7   ttyb5   ttyc3   ttye1   ttyef   ttyfd   ttypb   ttyq9
ttyr7   ttys5   ttyt3   ttyu1   ttyuf   ttyvd   ttywb   ttyx9
ttyy7   ttyz5
ttya8   ttyb6   ttyc4   ttye2   ttyf0   ttyfe   ttypc   ttyqa
ttyr8   ttys6   ttyt4   ttyu2   ttyv0   ttyve   ttywc   ttyxa
ttyy8   ttyz6
ttya9   ttyb7   ttyc5   ttye3   ttyf1   ttyff   ttypd   ttyqb
ttyr9   ttys7   ttyt5   ttyu3   ttyv1   ttyvf   ttywd   ttyxb
ttyy9   ttyz7
ttyaa   ttyb8   ttyc6   ttye4   ttyf2   ttyp0   ttype   ttyqc
ttyra   ttys8   ttyt6   ttyu4   ttyv2   ttyw0   ttywe   ttyxc
ttyya   ttyz8
ttyab   ttyb9   ttyc7   ttye5   ttyf3   ttyp1   ttypf   ttyqd
ttyrb   ttys9   ttyt7   ttyu5   ttyv3   ttyw1   ttywf   ttyxd
ttyyb   ttyz9
ttyac   ttyba   ttyc8   ttye6   ttyf4   ttyp2   ttyq0   ttyqe
ttyrc   ttysa   ttyt8   ttyu6   ttyv4   ttyw2   ttyx0   ttyxe
ttyyc   ttyza
ttyad   ttybb   ttyc9   ttye7   ttyf5   ttyp3   ttyq1   ttyqf
ttyrd   ttysb   ttyt9   ttyu7   ttyv5   ttyw3   ttyx1   ttyxf
ttyyd   ttyzb
>



Any help would be appreciated!

uname -a
HP-UX HOST B.11.11 U 9000/800 ############  unlimited-user license
0
Derek
6/23/2009 5:46:58 PM
comp.sys.hp.hpux 4408 articles. 1 followers. dewi.bening (7) is leader. Post Follow

9 Replies
1169 Views

Similar Articles

[PageSpeed] 7

Derek Schrock wrote:
> console that "No more PTYs." and "Sorry can't find a PTY."  Is there a
> non-admin user way to fix this issue?

No, you must have your sysadmin create more.  Here is what I have:
npty                      200  -  200
nstrpty                   200  -  200
nstrtel                    60  -  60

You should use SAM so it actually creates the device files with 
insf(1M).  See:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1344064
0
Dennis
6/24/2009 12:36:26 AM
On Jun 23, 8:36=A0pm, Dennis Handly <dhan...@convex.hp.com> wrote:
> Derek Schrock wrote:
> > console that "No more PTYs." and "Sorry can't find a PTY." =A0Is there =
a
> > non-admin user way to fix this issue?
>
> No, you must have your sysadmin create more. =A0Here is what I have:
> npty =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0200 =A0- =A0200
> nstrpty =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 200 =A0- =A0200
> nstrtel =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A060 =A0- =A060
>
> You should use SAM so it actually creates the device files with
> insf(1M). =A0See:http://forums.itrc.hp.com/service/forums/questionanswer.=
do?threadId=3D1...

Looks like ming is 60, 60, and 60.   However, pe -e | grep pts | wc -l
is only 33.  There should be more left?
0
Derek
6/24/2009 1:06:14 PM
On Jun 23, 8:36=A0pm, Dennis Handly <dhan...@convex.hp.com> wrote:
> Derek Schrock wrote:
> > console that "No more PTYs." and "Sorry can't find a PTY." =A0Is there =
a
> > non-admin user way to fix this issue?
>
> No, you must have your sysadmin create more. =A0Here is what I have:
> npty =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0200 =A0- =A0200
> nstrpty =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 200 =A0- =A0200
> nstrtel =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A060 =A0- =A060
>
> You should use SAM so it actually creates the device files with
> insf(1M). =A0See:http://forums.itrc.hp.com/service/forums/questionanswer.=
do?threadId=3D1...

Mine appear to be set 60, 60, and 60 according to kmtune.  However, ps
-e | grep pts | wc -l reports only 33 are in use.  There should be
more left?
0
Derek
6/24/2009 1:17:05 PM
On Jun 24, 9:06=A0am, Derek Schrock <derekschr...@gmail.com> wrote:
> On Jun 23, 8:36=A0pm, Dennis Handly <dhan...@convex.hp.com> wrote:
>
> > Derek Schrock wrote:
> > > console that "No more PTYs." and "Sorry can't find a PTY." =A0Is ther=
e a
> > > non-admin user way to fix this issue?
>
> > No, you must have your sysadmin create more. =A0Here is what I have:
> > npty =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0200 =A0- =A0200
> > nstrpty =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 200 =A0- =A0200
> > nstrtel =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A060 =A0- =A060
>
> > You should use SAM so it actually creates the device files with
> > insf(1M). =A0See:http://forums.itrc.hp.com/service/forums/questionanswe=
r.do?threadId=3D1...
>
> Looks like ming is 60, 60, and 60. =A0 However, pe -e | grep pts | wc -l
> is only 33. =A0There should be more left?

"mine are"
0
Derek
6/24/2009 3:14:12 PM
Derek Schrock wrote:
> Mine appear to be set 60, 60, and 60 according to kmtune.  However, ps
> -e | grep pts | wc -l reports only 33 are in use.  There should be
> more left?

This could be left hand vs right hand.  There are the kernel parms and 
the actual device files.  They can get out of sync.

(Though your /dev/pty listing had 256 files?)
0
Dennis
6/25/2009 6:25:29 AM
On Jun 25, 2:25=A0am, Dennis Handly <dhan...@convex.hp.com> wrote:
> Derek Schrock wrote:
> > Mine appear to be set 60, 60, and 60 according to kmtune. =A0However, p=
s
> > -e | grep pts | wc -l reports only 33 are in use. =A0There should be
> > more left?
>
> This could be left hand vs right hand. =A0There are the kernel parms and
> the actual device files. =A0They can get out of sync.
>
> (Though your /dev/pty listing had 256 files?)

Yes, ls /dev/pty/* | wc -l is 256.  Your recommendation still stands?
Talk to the admin about increasing the ptys from 60?
0
Derek
6/25/2009 12:19:24 PM
Derek Schrock wrote:
> Yes, ls /dev/pty/* | wc -l is 256.  Your recommendation still stands?
> Talk to the admin about increasing the ptys from 60?

Yes, that would be simplest.  If you were on 11.23, kcusage(1m) would 
tell you how many you were using and the max.
0
Dennis
6/25/2009 8:02:21 PM
On Jun 25, 4:02=A0pm, Dennis Handly <dhan...@convex.hp.com> wrote:
> Derek Schrock wrote:
> > Yes, ls /dev/pty/* | wc -l is 256. =A0Your recommendation still stands?
> > Talk to the admin about increasing the ptys from 60?
>
> Yes, that would be simplest. =A0If you were on 11.23, kcusage(1m) would
> tell you how many you were using and the max.

These settings would require a restart right?  None of this can be
done in realtime?
0
Derek
6/26/2009 7:09:01 PM
Derek Schrock wrote:
> These settings would require a restart right?  None of this can be
> done in realtime?

If you were on 11.23, you could change those kernel parms without a 
reboot.  You can call insf(1M) without a reboot.
0
Dennis
6/27/2009 1:32:15 AM
Reply: