From owner-freebsd-questions Fri Jun 21 12:10:55 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.melim.com.br (salseiros.melim.com.br [200.215.110.23]) by hub.freebsd.org (Postfix) with ESMTP id D912037B426 for ; Fri, 21 Jun 2002 12:10:01 -0700 (PDT) Received: from praiadosamores.melim.com.br (praiadosamores.melim.com.br [200.215.110.20]) by mail.melim.com.br (Postfix) with SMTP id 067FBBA10 for ; Fri, 21 Jun 2002 16:09:56 -0300 (BRT) Date: Fri, 21 Jun 2002 16:09:57 -0300 From: Ronan Lucio To: freebsd-questions@freebsd.org Subject: LPD Error Message-Id: <20020621160957.5be7daff.ronanl@melim.com.br> Organization: Melim Internet X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i386-portbld-freebsd4.5) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I have the follow situation: ------------------- ------------ --------- -------------- | FreeBSD-4.5 | | Internet | --------- | Users |--| AIX Server |--| Internet Server |--| Server |--| Users | --------- -------------- | City 1 | | City 2 | --------- ------------------- ------------ The users from City2 access The FBSD on City1 via ssh that execute a telnet to the AIX Server and executes a shell program. When the users sends a print job, the AIX Server sends the print job to FBSD Server that sends a print job to City2 where it is printed. Until last week, everything worked fine on a FreeBSD-3.2 server, but now, after we reinstalled the FreeBSD server to 4.5-RELEASE (it was a new installation, not a upgrade or a cvsup), this service stoped working. To do so, I just copied the configuration from the old server to the new server. Now, when a user sends a print job, the first job is printed perfectly but after that, it doesn't print anything more. If I just remove the file /var/spool/lpd/spo/lock file, it prints perfectly and stop printing again until I remove the lock file. For debug purposes, I'm executing lpd with the -c -l -d parameteres /var/log/messages file shows the follow messages: ================================================ Jun 20 14:29:36 server lpd[19583]: f50 requests recvjob spo Jun 20 14:29:48 server lpd[19586]: f50 requests displayq short spo Jun 20 14:30:42 server lpd[19599]: f50 requests displayq short spo Jun 20 14:31:23 server lpd[19601]: f50 requests displayq short spo Jun 20 14:33:41 server lpd[19627]: f50 requests displayq short spo Jun 20 14:35:11 server lpd[19635]: f50 requests recvjob spo Jun 20 14:35:18 server lpd[19646]: f50 requests displayq short spo ================================================ /var/log/lpd-errs file shows the follow messages: ================================================ Jun 17 12:14:39 server lpd[100]: lpd startup: logging=1 dbg Jun 17 12:14:40 server lpd[100]: lpd startup: ready to accept requests Jun 17 15:36:28 server lpd[719]: f50 requests displayq short spo Jun 20 14:25:10 server lpd[19567]: f50 requests displayq short spo Jun 20 14:25:28 server lpd[19569]: f50 requests displayq short spo Jun 20 14:25:35 server lpd[19570]: f50 requests displayq short spo Jun 20 14:29:36 server lpd[19583]: f50 requests recvjob spo Jun 20 14:29:48 server lpd[19586]: f50 requests displayq short spo Jun 20 14:30:42 server lpd[19599]: f50 requests displayq short spo Jun 20 14:31:23 server lpd[19601]: f50 requests displayq short spo Jun 20 14:33:41 server lpd[19627]: f50 requests displayq short spo Jun 20 14:35:11 server lpd[19635]: f50 requests recvjob spo Jun 20 14:35:18 server lpd[19646]: f50 requests displayq short spo ================================================ /etc/rc.conf ================================================ nfs_reserved_port_only="YES" lpd_enable="YES" lpd_flags="-c -l -d" nfs_client_enable="YES" portmap_enable="YES" inetd_enable="YES" ================================================ /etc/printcap ================================================ lp|local line printer:\ :lp=/dev/lpt0:sd=/var/spool/lpd/lp: \ :mx#0:so:sh:sb:of=/usr/lib/lp/filters/filter:sf ra1-16|ra1 printer:\ :lp=/dev/null:sd=/var/spool/lpd/ra1-16: \ :mx#0:so:sh:sb:of=/usr/lib/lp/filters/ra1-16:sf spo:\ :mx#0:rm=spo:rp=lp:sd=/var/spool/lpd/spo:lf=/var/log/lpd-errs ================================================ /etc/hosts.equiv ================================================ 192.168.61.1 server.fischer.com.br 192.168.61.200 f50 192.168.61.2 r250 ================================================ /etc/hosts.lpd ================================================ 192.168.61.1 server 192.168.61.2 r250 192.198.61.100 ra1 192.168.61.200 f50 spo ================================================ # ls -l /var/spool/lpd/ total 10 drwxr-xr-x 2 root daemon 512 Jun 7 16:51 lp drwxr-xr-x 2 root daemon 512 Jun 7 17:51 ra1-14 drwxr-xr-x 2 root daemon 512 Jun 7 16:51 ra1-15 drwxr-xr-x 2 root daemon 512 Jun 7 17:04 ra1-16 drwxr-xr-x 2 root daemon 512 Jun 21 09:01 spo # ls -l /usr/lib/lp/filters/filter -rwxr-xr-x 1 root wheel 8847 Oct 10 1999 /usr/lib/lp/filters/filter # ls -l /var/spool/output/ total 4 drwxr-xr-x 2 root daemon 512 Jan 28 11:10 lpd -rw-rw-r-- 1 root daemon 4 Jun 17 17:12 lpd.lock # ls -l /dev/lp* crw------- 1 root wheel 16, 128 May 22 11:26 /dev/lpctl0 crw------- 1 root wheel 16, 129 May 22 11:26 /dev/lpctl1 crw------- 1 root wheel 16, 130 May 22 11:26 /dev/lpctl2 crw------- 1 root wheel 16, 0 May 22 11:26 /dev/lpt0 crw------- 1 root wheel 16, 1 May 22 11:26 /dev/lpt1 crw------- 1 root wheel 16, 2 May 22 11:26 /dev/lpt2 Could anyone help me to solve such problem? I know almost nothing about lpd and I have already read all man pages about it (lpd, printcap, hosts.lpd, hosts.equiv) but I still didn't get to solve it... :-/ Thank's a lot, Ronan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message