[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#311774: marked as done (lprng: Fails to print to localhost when named pipe is missing)



Your message dated Fri, 26 Aug 2005 14:15:04 +1000
with message-id <20050826041504.GB22445@enc.com.au>
and subject line socket paramter
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at maintonly) by bugs.debian.org; 3 Jun 2005 08:45:48 +0000
>From anders@netinsight.se Fri Jun 03 01:45:47 2005
Return-path: <anders@netinsight.se>
Received: from ernst.netinsight.se [212.247.11.2] 
	by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
	id 1De7oJ-0007j7-00; Fri, 03 Jun 2005 01:45:47 -0700
Received: from sid.netinsight.se (unverified [10.100.1.25]) by ernst.netinsight.se
 (EMWAC SMTPRS 0.83) with SMTP id <B0005046312@ernst.netinsight.se>;
 Fri, 03 Jun 2005 10:45:07 +0200
Received: from localhost ([127.0.0.1] ident=anders)
	by sid.netinsight.se with esmtp (Exim 4.50)
	id 1De7ne-0006ka-Uq
	for maintonly@bugs.debian.org; Fri, 03 Jun 2005 10:45:06 +0200
Date: Fri, 03 Jun 2005 10:45:06 +0200 (CEST)
Message-Id: <20050603.104506.-905402539.anders@netinsight.se>
To: Debian Bug Tracking System <maintonly@bugs.debian.org>
Subject: lprng: Fails to print to localhost when named pipe is missing
X-Debbugs-CC: Anders =?iso-8859-1?Q?Bostr=F6m?= <anders@netinsight.se>
From: Anders =?iso-8859-1?Q?Bostr=F6m?= <anders@netinsight.se>
X-Mailer: Mew version 3.3 on Emacs 21.4 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Delivered-To: maintonly@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-11.0 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	X_DEBBUGS_CC autolearn=ham version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: lprng
Version: 3.8.28-2
Severity: minor

All client tools, such as lpr and lpq, fails to connect to a local
server if the named pipe /var/run/lprng/socket is missing. Connection
from other hosts works fine at the same time. This typically occur
when you try to print from a chroot:

sid:/home/anders>env -u LC_ALL lpq 
Printer 'sda4_local@localhost' - cannot open connection - No such file or directory
Make sure the remote host supports the LPD protocol
and accepts connections from this host and from non-privileged (>1023) ports
sid:/home/anders>

The tools fails even if you try to use the hostname:

sid:/home/anders>env -u LC_ALL lpq -Psda4_local@sid
Printer 'sda4_local@sid' - cannot open connection - No such file or directory
Make sure the remote host supports the LPD protocol
and accepts connections from this host and from non-privileged (>1023) ports
sid:/home/anders>

If /var/run/lprng/socket doesn't exist should lpq and lpr try to use
the normal network socket instead.

The work-around is to make sure that /var/run/lprng/socket exists in
the chroot by adding the following to the fstab:

/var/run   /your-chroot/var/run none bind	0	0

/ Anders

-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.11.11
Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to sv_SE)

Versions of packages lprng depends on:
ii  debconf                     1.4.30.13    Debian configuration management sy
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libcomerr2                  1.37-2sarge1 common error description library
ii  libkrb53                    1.3.6-2      MIT Kerberos runtime libraries
ii  libssl0.9.7                 0.9.7e-3     SSL shared libraries

-- debconf information:
* lprng/start_lpd: true
  lprng/twolpd_perms:
  lprng/twolpd_conf:
  lprng/setuid_tools: false

---------------------------------------
Received: (at 311774-done) by bugs.debian.org; 26 Aug 2005 04:15:06 +0000
>From csmall@enc.com.au Thu Aug 25 21:15:06 2005
Return-path: <csmall@enc.com.au>
Received: from ppp114-209.static.internode.on.net (mail.enc.com.au) [150.101.114.209] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1E8VcQ-0003wE-00; Thu, 25 Aug 2005 21:15:06 -0700
Received: from localhost (localhost [127.0.0.1])
	by mail.enc.com.au (Postfix) with ESMTP id 2773DB7F17
	for <311774-done@bugs.debian.org>; Fri, 26 Aug 2005 14:15:05 +1000 (EST)
Received: from mail.enc.com.au ([127.0.0.1])
	by localhost (gonzo [127.0.0.1]) (amavisd-new, port 10024) with LMTP
	id 21388-03-2 for <311774-done@bugs.debian.org>;
	Fri, 26 Aug 2005 14:15:05 +1000 (EST)
Received: by mail.enc.com.au (Postfix, from userid 1000)
	id 081FAB9BD4; Fri, 26 Aug 2005 14:15:05 +1000 (EST)
Date: Fri, 26 Aug 2005 14:15:04 +1000
To: 311774-done@bugs.debian.org
Subject: socket paramter
Message-ID: <20050826041504.GB22445@enc.com.au>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.6+20040907i
From: csmall@enc.com.au (Craig Small)
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at enc.com.au
Delivered-To: 311774-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02


Anders asked:
> What option should I use in lpd.conf?
> 
> I don't want to connect directly to a remote printer. I want to
> connect to the local lpd-server, but not by using
> /var/run/lprng/socket (as it is absent in the chroot), so
> force_localhost don't work.

lpd.conf in examples has:

# Purpose: path for UNIX socket for localhost connections
#   default unix_socket_path= /var/run/lprng/socket  (STRING)

-- 
Craig Small      GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE         Debian developer
csmall at : enc.com.au                      ieee.org           debian.org



Reply to: