Operating System - HP-UX
1833772 Members
2200 Online
110063 Solutions
New Discussion

getty: cannot open "ttyd1p0". errno: 25

 
Joseph Suggs
Occasional Advisor

getty: cannot open "ttyd1p0". errno: 25

HP-UX 11i running on HP C8000. We cannot transfer files to the C8000 using ftp, it is interrupted. File syslog.log has:

ftpd[4923]: FTP session closed
getty: cannot open "ttyd1p0". errno: 25

Device ttyd1p0 does exist in file /etc/inittab, but I believe it does not exist under /dev. If confirmed, what is wrong and how can I fix it ?

Thanks.
10 REPLIES 10
Rasheed Tamton
Honored Contributor

Re: getty: cannot open "ttyd1p0". errno: 25

Can you post the below:

lsdev|grep tty
grep tty /etc/inittab
ll /dev/ttyd*
lssf /dev/ttyd1p0

Regards,
Rasheed Tamton.
Joseph Suggs
Occasional Advisor

Re: getty: cannot open "ttyd1p0". errno: 25

$ ls -l ttyd*
crw--w--w- 1 root bin 1 0x010016 May 18 2007 ttyd1p0


$ lsdev
Character Block Driver Class
0 -1 cn pseudo
1 -1 asio0 tty
2 -1 SCentIf unknown
3 -1 mm pseudo
4 -1 olar_psm_if olar
5 -1 dev_olar olar
6 -1 devkrs pseudo
7 -1 lpr0 unknown
8 0 sioflop unknown
8 0 sioflop unknown
10 -1 hcd usb
11 -1 usbd usbdev
12 -1 hub usbhub
13 -1 hid usbhid
14 -1 btlan lan
15 -1 maclan lan
16 -1 ptym ptym
17 -1 ptys ptys
18 -1 ip pseudo
19 -1 arp pseudo
20 -1 rawip pseudo
21 -1 tcp pseudo
22 -1 udp pseudo
23 -1 stcpmap pseudo
25 -1 nuls pseudo
26 -1 netqa pseudo
27 -1 dmem pseudo
31 -1 tun pseudo
32 -1 telm strtelm
33 -1 tels strtels
36 -1 tlclts pseudo
37 -1 tlcots pseudo
38 -1 iomem pseudo
44 -1 tlcotsod pseudo
45 -1 fcT1_cntl unknown
46 -1 netdiag1 unknown
48 -1 fcp unknown
49 -1 td unknown
50 -1 fcd unknown
51 -1 fddi4 unknown
54 -1 iop_drv unknown
57 -1 ipmi ipmi
58 -1 gvid graf_pseudo
61 1 dmp vxvm
62 2 vol vxvm
63 -1 vols vxvm
64 64 lv lvm
67 -1 mpt ext_bus
68 -1 fddi3 unknown
69 -1 dev_config pseudo
72 -1 clone pseudo
73 -1 strlog pseudo
74 -1 sad pseudo
75 -1 pcitr unknown
76 -1 ciss unknown
77 -1 cxperf pseudo
78 -1 evp pseudo
79 -1 func0 tty
95 -1 krm pseudo
96 -1 gvid_info gvid_pseudo
97 97 vxportal unknown
116 -1 echo pseudo
119 -1 dlpi pseudo
156 -1 ptm strptym
157 -1 pts strptys
164 -1 pipedev unknown
168 -1 beep graf_pseudo
174 -1 framebuf graf_pseudo
183 -1 diag1 diag
188 31 sdisk disk
189 -1 klog pseudo
203 -1 sctl ctl
205 -1 stape tape
207 -1 sy pseudo
227 -1 kepd pseudo
229 -1 ite graf_pseudo
232 -1 diag2 diag

$ lssf ttyd1p0
asio0 card instance 1 port 0 ccitt callin HW flow control at address 18 ttyd1p0

$ grep tty /etc/inittab
stty::sysinit:/sbin/stty 9600 clocal icanon echo opost onlcr ixon icrnl ignpar <
/dev/systty
link::wait:/sbin/sh -c "/sbin/rm -f /dev/syscon; /sbin/ln
/dev/systty /dev/syscon" >/dev/console 2>&1
cons:123456:respawn:/usr/sbin/getty console console # system console
#ttp1:234:respawn:/usr/sbin/getty -h tty0p1 9600
#ttp2:234:respawn:/usr/sbin/getty -h tty0p2 9600
#ttp3:234:respawn:/usr/sbin/getty -h tty0p3 9600
#ttp4:234:respawn:/usr/sbin/getty -h tty0p4 9600
#ttp5:234:respawn:/usr/sbin/getty -h tty0p5 9600
a0:3:respawn:/usr/sbin/getty -h ttyd1p0 9600
Torsten.
Acclaimed Contributor

Re: getty: cannot open "ttyd1p0". errno: 25

How is the getty "listen" on a serial port related to your FTP problem? No clue ...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Joseph Suggs
Occasional Advisor

Re: getty: cannot open "ttyd1p0". errno: 25

Thank you for replying, but I need suggestions to fix, not the causes (I guess some stupid admin was playing with devices).

Thank you.
Torsten.
Acclaimed Contributor

Re: getty: cannot open "ttyd1p0". errno: 25

The only related information you gave us is this:

1)ftpd[4923]: FTP session closed
2)getty: cannot open "ttyd1p0". errno: 25

1) totally normal, just information

2) related to the getty, NOT ftp !



Since the getty is not related to ftp, what exactly is your problem?


If you try from this system

# ftp 127.0.0.1

what happens?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Joseph Suggs
Occasional Advisor

Re: getty: cannot open "ttyd1p0". errno: 25

All FTP transfers to C8000 are interrupted a few seconds after you hit PUT . And for every interrupted transfer I can see the message

getty: cannot open "ttyd1p0". errno: 25

in syslog.log. I know that sounds odd, but it is the only clue I have.
Transfers from C8000 to a external equipment are fine. Thanks.
Rasheed Tamton
Honored Contributor

Re: getty: cannot open "ttyd1p0". errno: 25

What is the output of:
grep ftp /etc/inetd.conf
whereis ftpd
ll /usr/lbin/ftpd

Can you use sftp if you have ssh installed for troubleshooting and see what result you get.

Regards.


Joseph Suggs
Occasional Advisor

Re: getty: cannot open "ttyd1p0". errno: 25

$ grep ftp /etc/inetd.conf
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a -u 002
tftp dgram udp wait root /usr/lbin/tftpd tftpd\


$ whereis ftpd
ftpd: /usr/lbin/ftpd /usr/share/man/man1m.Z/ftpd.1m


$ ll /usr/lbin/ftpd
-r-xr--r-- 1 bin bin 155648 Sep 19 2005 /usr/lbin/ftpd
OldSchool
Honored Contributor

Re: getty: cannot open "ttyd1p0". errno: 25

are the file transfers being done from a command line, or is it a scripted transfer?

If scripted, please post script and how it is being run, ie if from cron, show the crontab entry that's running it
Joseph Suggs
Occasional Advisor

Re: getty: cannot open "ttyd1p0". errno: 25

It is command line.