Bug 186687 - Printers aren't configured
Summary: Printers aren't configured
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-printer
Version: rawhide
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2006-03-25 12:24 UTC by Bart Vanbrabant
Modified: 2007-11-30 22:11 UTC (History)
0 users

Clone Of:
Last Closed: 2006-06-07 10:06:56 UTC

Attachments (Terms of Use)
The cupsd.conf file where I manually added the Inkjet and LaserJet entries. After that I removed them and added the HP printern. (22.04 KB, application/octet-stream)
2006-03-27 12:04 UTC, Bart Vanbrabant
no flags Details
The current printers.conf (2.83 KB, application/octet-stream)
2006-03-27 12:08 UTC, Bart Vanbrabant
no flags Details
The original file (2.99 KB, application/octet-stream)
2006-03-27 12:10 UTC, Bart Vanbrabant
no flags Details

Description Bart Vanbrabant 2006-03-25 12:24:11 UTC
Description of problem:
system-config-printer shows the all my configured printers but they don't apear
in the print-dialog. They also aren't usable by lpr on the commandline.
In /etc/cups I moved the config from /etc/cups/printers.conf.rpmsave to the
/etc/cups/cupsd.conf file. After that my printers work again.
The file /etc/cups/printer.conf doesn't exist.

Version-Release number of selected component (if applicable):
I noticed this the first time with yesterday's rawhide (24/03/2006)

Comment 1 Tim Waugh 2006-03-27 10:31:21 UTC
What architecture?

Comment 2 Bart Vanbrabant 2006-03-27 10:34:41 UTC

Comment 3 Tim Waugh 2006-03-27 11:44:15 UTC
Please attach:

1. the output of 'lpstat -s'
2. the output of 'printconf-tui --Xexport', making sure to replace any passwords
for remote printers with '***'
3. /etc/cups/cupsd.conf
4. /etc/cups/printers.conf if it exists (note: printers.conf not printer.conf)


Comment 4 Bart Vanbrabant 2006-03-27 12:02:34 UTC
output of lpstat -s

system default destination: HP
device for HP: socket://

printconf-tui --Xexport

<?xml version="1.0"?>
<adm_context VERSION="0">
  <id NAME="local" SERIAL="1143274336">
    <printconf TYPE="LIST">
      <print_queues TYPE="LIST">
          <alias_list ANONYMOUS="TRUE" TYPE="LIST">
          <queue_description TYPE="STRING" VALUE=""/>
          <queue_type TYPE="STRING" VALUE="JETDIRECT"/>
          <queue_data TYPE="LIST">
            <jetdirect_ip TYPE="STRING" VALUE=""/>
            <jetdirect_port TYPE="STRING" VALUE="9100"/>
          <filter_data TYPE="LIST">
            <print_header_page TYPE="BOOL" VALUE="FALSE"/>
            <flags TYPE="LIST">
              <convert_text_to_Postscript TYPE="BOOL" VALUE="TRUE"/>
              <rerender_Postscript TYPE="BOOL" VALUE="FALSE"/>
              <send_EOT TYPE="BOOL" VALUE="FALSE"/>
              <assume_data_is_text TYPE="BOOL" VALUE="FALSE"/>
              <send_FF TYPE="BOOL" VALUE="FALSE"/>
            <mf_type TYPE="STRING" VALUE="MFOMATIC"/>
            <filter_locale TYPE="STRING" VALUE="C"/>
            <printer_id TYPE="STRING" VALUE="HP-LaserJet_1200"/>
            <gs_driver TYPE="STRING" VALUE="pxlmono"/>
            <foomatic_defaults ANONYMOUS="TRUE" TYPE="LIST">
              <option_default TYPE="LIST">
                <name TYPE="STRING" VALUE="PageSize"/>
                <type TYPE="STRING" VALUE="enum"/>
                <default TYPE="STRING" VALUE="A4"/>
          <filter_type TYPE="STRING" VALUE="MAGICFILTER"/>
          <jobsheets TYPE="LIST">
            <start TYPE="STRING" VALUE="none"/>
            <end TYPE="STRING" VALUE="none"/>
          <margins TYPE="LIST">
            <top TYPE="INT" VALUE="36"/>
            <right TYPE="INT" VALUE="36"/>
            <bottom TYPE="INT" VALUE="36"/>
            <left TYPE="INT" VALUE="36"/>
          <lpoptions TYPE="LIST">
            <cpi TYPE="STRING" VALUE="12"/>
            <fitplot TYPE="STRING" VALUE="true"/>
            <lpi TYPE="STRING" VALUE="7"/>
            <page-bottom TYPE="STRING" VALUE="86"/>
            <page-left TYPE="STRING" VALUE="57"/>
            <page-right TYPE="STRING" VALUE="57"/>
            <page-top TYPE="STRING" VALUE="72"/>
            <scaling TYPE="STRING" VALUE="100"/>
            <wrap TYPE="STRING" VALUE="true"/>
      <sharing_globals TYPE="LIST">
        <browsing TYPE="BOOL" VALUE="TRUE"/>

I've also attached the other two files. Please note that this is the ouput after
I've manualy added the printer from /etc/cups/printers.conf.rpmsave

Comment 5 Bart Vanbrabant 2006-03-27 12:04:33 UTC
Created attachment 126810 [details]
The cupsd.conf file where I manually added the Inkjet and LaserJet entries. After that I removed them and added the HP printern.

Comment 6 Bart Vanbrabant 2006-03-27 12:08:25 UTC
Created attachment 126811 [details]
The current printers.conf

This file didn't exist. I copied it from the .rpmsave file, this is the file
after removing the *Jet printers and added the HP printer

Comment 7 Bart Vanbrabant 2006-03-27 12:10:00 UTC
Created attachment 126812 [details]
The original file

This is the file that was created after installing cups from rawhide.

Comment 8 Tim Waugh 2006-03-27 14:39:30 UTC
My theory is that the SELinux policy prevents printconf-backend from creating
/etc/cups/printers.conf.  It only has the ability to modify the existing file. 
I'm building a CUPS package that ships an empty printers.conf file, so we'll see
if that helps.

Comment 9 Bart Vanbrabant 2006-03-27 14:48:37 UTC
I have SELinux disabled. 

Comment 10 Tim Waugh 2006-03-27 15:15:12 UTC
Ah, in that case it's just this bug in printconf-backend:

Traceback (most recent call last):
  File "/usr/sbin/printconf-backend", line 7, in ?
    import backend
  File "/usr/share/printconf/util/backend.py", line 808, in ?
    printers_conf_lines = file (printers_conf).readlines ()
IOError: [Errno 2] No such file or directory: '/etc/cups/printers.conf'

In any case, cups-1.2-0.2.rc1.1 should fix it.

Thanks for the report!

Comment 11 Bart Vanbrabant 2006-06-06 18:14:20 UTC
This seems fixed. This bug can be closed for me!

Note You need to log in before you can comment on or make changes to this bug.