Bug 56454 - printconf-backend fails to create printer when the lpd-spool-directory does not exhist
printconf-backend fails to create printer when the lpd-spool-directory does n...
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: printconf (Show other bugs)
7.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-11-18 20:06 EST by Need Real Name
Modified: 2007-04-18 12:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-01-07 12:17:50 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2001-11-18 20:06:49 EST
[root@daddy /root]# printconf-gui 
Traceback (innermost last):
  File "/usr/sbin/printconf-backend", line 381, in ?
    for i in range(flags.getNumChildren()):
  File "/usr/sbin/printconf-backend", line 625, in rebuild_queues
    for dir in map(lambda x: "%s/%s" % (lpd_spool_dir, x), os.listdir
(lpd_spool_dir)):
OSError: [Errno 2] No such file or directory


[root@daddy /root]# joe /usr/sbin/printconf-backend


        # This scans the spool directory, and distroys any directory 
marked vol
        # valid configuration.
        
--------------># PUT (mkdir lpd_spool_dir) LINE HERE!!!!

        for dir in map(lambda x: "%s/%s" % (lpd_spool_dir, x), os.listdir
(lpd_s
                if os.path.exists("%s/VOLATILE" % dir):
                        try:
                                active_queue_dirs.index(os.path.basename
(dir))
                        except:
                                # Yeah, I could do this in python, but it 
would
                                os.system("rm -rf %s" % dir)


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.Brand new install no previous printer configuration.
2.Try to add and use a printer using printconf-gui,printconf-backend
3.
	

Additional info:
Comment 1 Crutcher Dunnavant 2001-11-26 12:26:39 EST
Why isn't /var/spool/lpd there?

Comment 2 Tim Waugh 2002-02-01 09:05:45 EST
I am closing this bug.  /var/spool/lpd is provided by the 'filesystem' package.

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