<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.12.3">
</HEAD>
<BODY>
On Thu, 2007-05-10 at 16:13 +0100, Anne Wilson wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">On Thursday 10 May 2007, Aaron Konstam wrote:</FONT>
<FONT COLOR="#000000">&gt; On Thu, 2007-05-10 at 10:11 +0100, Anne Wilson wrote:</FONT>
<FONT COLOR="#000000">&gt; &gt; On Wednesday 09 May 2007, Aaron Konstam wrote:</FONT>
<FONT COLOR="#000000">&gt; &gt; &gt; On Wed, 2007-05-09 at 20:45 +0100, Anne Wilson wrote:</FONT>
<FONT COLOR="#000000">&gt; &gt; &gt; &gt; I sent a large print job to my file/print server, but unfortunately I</FONT>
<FONT COLOR="#000000">&gt; &gt; &gt; &gt; had a paper jam after page 1.  Since then I have not been able to</FONT>
<FONT COLOR="#000000">&gt; &gt; &gt; &gt; print anything to that printer.  The localhost:631 interface shows</FONT>
<FONT COLOR="#000000">&gt; &gt; &gt; &gt; the printer as stopped, but I am not allowed to re-start it, despite</FONT>
<FONT COLOR="#000000">&gt; &gt; &gt; &gt; the fact that I entered root's password.</FONT>
<FONT COLOR="#000000">&gt; &gt; &gt; &gt;</FONT>
<FONT COLOR="#000000">&gt; &gt; &gt; &gt; Is there any way out of this, or will I have to remove the printer</FONT>
<FONT COLOR="#000000">&gt; &gt; &gt; &gt; and re-install it?</FONT>
<FONT COLOR="#000000">&gt; &gt; &gt; &gt;</FONT>
<FONT COLOR="#000000">&gt; &gt; &gt; &gt; Anne</FONT>
<FONT COLOR="#000000">&gt; &gt; &gt;</FONT>
<FONT COLOR="#000000">&gt; &gt; &gt; Have you tried lprm to remove the print file from the printer's queue?</FONT>
<FONT COLOR="#000000">&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt; &gt; I'd removed the print job,  no problem with that, but the printer</FONT>
<FONT COLOR="#000000">&gt; &gt; remains 'stopped' and cannot be re-started, because root doesn't have the</FONT>
<FONT COLOR="#000000">&gt; &gt; permission to do that!</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; Here is an abstract from the man lpadmin page. Maybe that info is</FONT>
<FONT COLOR="#000000">&gt; relevant to your problem.</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;  -E</FONT>
<FONT COLOR="#000000">&gt;             Enables the printer and accepts jobs; this is the same as</FONT>
<FONT COLOR="#000000">&gt; running</FONT>
<FONT COLOR="#000000">&gt;             the accept(8) or cupsaccept(8) and enable(8) or</FONT>
<FONT COLOR="#000000">&gt; cupsenable(8) programs on the printer.</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">So, working as root, on the server:</FONT>

<FONT COLOR="#000000">lpadmin [ -E ] [ -h server ] -p printer option(s)</FONT>

<FONT COLOR="#000000">lpadmin -E -p Photo</FONT>
<FONT COLOR="#000000">lpadmin: Unable to connect to server: Bad file descriptor</FONT>

<FONT COLOR="#000000">and trying it on the local box:</FONT>

<FONT COLOR="#000000">lpadmin -E -h borg.lydgate.lan -p Photo</FONT>
<FONT COLOR="#000000">lpadmin: Unable to connect to server: Bad file descriptor</FONT>

<FONT COLOR="#000000">Ideas?</FONT>

<FONT COLOR="#000000">Anne</FONT>
</PRE>
</BLOCKQUOTE>
Hi, Anne,<BR>
&nbsp;&nbsp;&nbsp; This happened to me after an update.&nbsp; I had to delete and recreate the printer to get it working again, and even then I had to reboot to make it start working... <BR>
<BR>
&nbsp;&nbsp;&nbsp; Who knows.&nbsp; I got no useful messages from the logs other that messages about the bad file descriptor like you have here.&nbsp; I suspect that a change in CUPS <BR>
forced a modification to the file descriptor that CUPS uses to identify the printer, but the update never updated the description file.&nbsp; Deleting and recreating the printer entry did.<BR>
<BR>
&nbsp;&nbsp;&nbsp; I don't even know where the printer descriptions are held, and never thought to look.<BR>
<BR>
Regards,<BR>
Les H
</BODY>
</HTML>