trouble starting diald
I've been having some trouble getting diald to work. It connects to
the remote system fine, but when pppd runs it attempts to open
/dev/cua2 (which is where my modem is) and gets EBUSY.
Feb 2 20:38:03 sfere diald[9242]: Running connect (pid = 9249).
Feb 2 20:38:03 sfere chat[9249]: abort on (BUSY)
Feb 2 20:38:03 sfere chat[9249]: abort on (NO CARRIER)
Feb 2 20:38:03 sfere chat[9249]: abort on (VOICE)
Feb 2 20:38:03 sfere chat[9249]: send (ATM2DT576815^M)
Feb 2 20:38:04 sfere chat[9249]: expect (ogin)
Feb 2 20:38:20 sfere chat[9249]: ^M
Feb 2 20:38:20 sfere chat[9249]: CONNECT/ARQ^M
Feb 2 20:38:20 sfere chat[9249]: ^M
Feb 2 20:38:20 sfere chat[9249]: tlingit login -- got it
Feb 2 20:38:20 sfere chat[9249]: send (sfere^M)
Feb 2 20:38:21 sfere chat[9249]: expect (word)
Feb 2 20:38:21 sfere chat[9249]: : sfere^M
Feb 2 20:38:21 sfere chat[9249]: Password -- got it
Feb 2 20:38:21 sfere chat[9249]: send (??????)
Feb 2 20:38:22 sfere pppd[9250]: pppd 2.2.0 started by root, uid 0
Feb 2 20:38:22 sfere pppd[9250]: Failed to open /dev/cua2: Device or resource busy
Feb 2 20:38:22 sfere pppd[9250]: Exit.
Feb 2 20:38:24 sfere diald[9242]: Delaying 30 seconds before clear to dial.
I've tried doing this with nothing in /etc/ppp/options at all; the
above was tried with exactly the following active:
asyncmap 0
lcp-echo-interval 30
lcp-echo-failure 4
I've tried adding `passive' to that but it made no difference.
I'm at a loss as to where pppd gets `/dev/cua2' from; I refer to it in
all configuration files and scripts as /dev/modem, which is a symlink
to it on my system. The first reference to it in strace is as
follows:
9090 SYS_136(0, 0x6, 0x18, 0x40001fb0, 0x80016e8) = 0
9090 ioctl(0, TCGETS, {c_iflags=0x5, c_oflags=0, c_cflags=0x800004bf, c_lflags=0, c_line=0, c_cc[VMIN]=1, c_cc[VTIME]=0, c_cc="\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}) = 0
9090 fstat(0, {st_dev=makedev(3, 2), st_ino=11339, st_mode=S_IFCHR|0660, st_nlink=1, st_uid=0, st_gid=20, st_blksize=4096, st_blocks=0, st_rdev=makedev(5, 66), st_atime=96/02/02-20:21:25, st_mtime=96/02/02-20:21:25, st_ctime=96/01/24-01:09:40}) = 0
9090 stat("/dev", {st_dev=makedev(3, 2), st_ino=11042, st_mode=S_IFDIR|0755, st_nlink=2, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=14, st_size=7168, st_atime=96/02/02-20:17:13, st_mtime=96/02/02-20:11:17, st_ctime=96/02/02-20:11:17}) = 0
9090 open("/dev", O_RDONLY) = 7
9090 fcntl(7, F_SETFD, FD_CLOEXEC) = 0
9090 brk(0x801803c) = 0x801803c
9090 brk(0x8019000) = 0x8019000
9090 brk(0x801a000) = 0x801a000
9090 brk(0x801b000) = 0x801b000
9090 SYS_141(0x7, 0x801a000, 0x1000, 0x7, 0x8019000) = 1272
9090 SYS_141(0x7, 0x801a000, 0x1000, 0x7, 0x8019000) = 1184
9090 SYS_141(0x7, 0x801a000, 0x1000, 0x7, 0x8019000) = 1056
9090 SYS_141(0x7, 0x801a000, 0x1000, 0x7, 0x8019000) = 1024
9090 SYS_141(0x7, 0x801a000, 0x1000, 0x7, 0x8019000) = 1212
9090 stat("/dev/cua2", {st_dev=makedev(3, 2), st_ino=11339, st_mode=S_IFCHR|0660, st_nlink=1, st_uid=0, st_gid=20, st_blksize=4096, st_blocks=0, st_rdev=makedev(5, 66), st_atime=96/02/02-20:21:25, st_mtime=96/02/02-20:21:25, st_ctime=96/01/24-01:09:40}) = 0
I'm using kernel 1.3.59, ppp 2.2.0e-2, diald 0.10-2, netbase 1.22-1,
netstd 1.25-1. Ordinary ppp connections work just fine.
Does anyone have any ideas?
ttfn/rjk
Reply to: