Bug 50896

Summary: unable to declare local printer
Product: [Retired] Red Hat Public Beta Reporter: LENHOF <lenh_jea>
Component: printconfAssignee: Crutcher Dunnavant <crutcher>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: roswellCC: cbagwell
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-08-06 22:43:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description LENHOF 2001-08-04 16:04:07 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010725

Description of problem:
A popup always appears saying choose a printer model...but the list is empty

How reproducible:
Always

Steps to Reproduce:
1.Try to declare a local printer
2.
3.
	

Additional info:

Go back to the version included in RH 7.1 is ok

Comment 1 cbagwell 2001-08-04 18:07:18 UTC
Perhaps this is related.  When I attempt to create a new local printer, I get
the following dumped to the terminal screen:

Traceback (innermost last):
  File "/usr/lib/python1.5/site-packages/libglade.py", line 28, in __call__
    ret = apply(self.func, a)
  File "/usr/share/printconf/util/printconf_gui.py", line 471, in
nqd_handle_next
    printer = dev["printer"]
KeyError: printer

This occurs while I'm using the GUI after selecting Local Printer and adding
Queue name, hitting Next, selecting /dev/usb/lp0 as the device to use, and
hitting Next.  A strange sideeffect from this bug is that it then takes me to
the "Unix Printer" screen and asks for server name and Queue.

Also, before upgrading to roswell, I had a USB local printer defined that worked
fine.  I can no longer use it.  I get the following from lpq:

Printer: epson@brew4me
 Queue: no printable jobs in queue
 Status: epson: Open_dgbm: open of DB file 'db.epson' failed, File write error
at 23:26:22.967

The file db.epson does exist.  Trying to use printconf to edit the screen fails
because it also gets confused by the device name to use.


Comment 2 Crutcher Dunnavant 2001-08-04 22:31:16 UTC
The first problem is fixed already. The second problem sounds unpleasant. Try
running:

 /usr/sbin/printconf-backend --force-rebuild

and then restart lpd. That might fix it.

Comment 3 Crutcher Dunnavant 2001-08-04 22:32:15 UTC
wait, delete the printer's spool directory, THEN run rebuild to, then restart.

Comment 4 cbagwell 2001-08-05 18:13:47 UTC
I was able to work around the problem but I don't really understand why the
problem occured.  I reviewed my /tmp/upgrade.log to see if I saw anthing. I
found the following:

Upgrading printconf.
/etc/alchemist/namespace/printconf/local.adl created as
/etc/alchemist/namespace/printconf/local.adl.rpmnew

I hadn't manually modified that file so I assume running printconf did somehow. 
Anyways, the new version was quite a bit simpiler then the old version.  I
replace the old version with the new version and was able to run printconf-gui
and create new local printers.

For some reason, my old printers were not displayed any more but I was able to
recreate them.

"lpq" started working for these newly created printers.


Comment 5 Glen Foster 2001-08-06 22:43:15 UTC
We (Red Hat) should try to fix this for the next release.

Comment 6 Crutcher Dunnavant 2001-08-07 08:30:25 UTC
this is fixed. was just hopping this guy'd get up and going again.