Operating System - HP-UX
1833784 Members
2511 Online
110063 Solutions
New Discussion

Device is locked when I run pppd

 
SOLVED
Go to solution
Wiboon Tanakitpaisal
Occasional Advisor

Device is locked when I run pppd

How can I solve this problem ?
I can see messages "pppd: Fatal error: Can't open '/dev/ttyd0p4':Device is locked"
in /var/adm/pppd.log after run pppd on server with script below

#!/bin/sh
PATH=/usr/bin:/usr/etc:/etc:/bin
PPPHOME=/home/ppp
export PATH PPPHOME
stty -tostop
exec pppd `hostname` :172.19.31.222 idle 150
Hi everybody
4 REPLIES 4
Alex Glennie
Honored Contributor
Solution

Re: Device is locked when I run pppd

Check the /var/spool/locks directory. You'll most likely find a lock file for the port in question.

Remove the lock file with rm (i.e. rm /var/spool/locks/lockfile).


This lock file is created uugetty.
To prevent this from happening in the future,

replace


/usr/lbin/uucp/uugetty


by

/usr/sbin/getty


in

/etc/inittab


for all PPP ports.
surendhar prakash.J
Frequent Advisor

Re: Device is locked when I run pppd

Hi

Find out any process is runing for the particular device by using "ps -ef|grep ttyd0pX"
if it's running kill it by using "kill -9 PID"

you can try with recreating device file for the serial port by using "insf -e -H H/W PATH"

Find out whether "getty" process is runing or not if it is not runing, See the "respawn" entry is in /etc/inittab file,if not make it respawn for the device.

All the best

suren.
Wiboon Tanakitpaisal
Occasional Advisor

Re: Device is locked when I run pppd

ok it's work no error when I replace uugetty with getty,but after I connected
I can not go any where except server that I dialed to only ,
I can ping only server that I connected.
How can I solve this problem ?

Thank you.
Hi everybody
Alex Glennie
Honored Contributor

Re: Device is locked when I run pppd