Hi list
I have two very similar printers set up on CUPS and Samba is configured
to share the drivers. I had been playing around with setting up a RAW
printer queue with native Windows drivers but eventually gave up on
that. I deleted all printers and redid them from scratch and now only
one of them works.
Setup:
Ubuntu Karmic 2.6.31-15-server #50-Ubuntu SMP Tue Nov 10 15:50:36 UTC
2009 x86_64 GNU/Linux
Samba Version 3.4.0
rpcclient $> enumprinters
flags:[0x800000]
name:[\\freud\gyldendal]
description:[\\freud\gyldendal,gyldendal,]
comment:[gyldendal]
flags:[0x800000]
name:[\\freud\goethe]
description:[\\freud\goethe,goethe,]
comment:[goethe]
rpcclient $> enumdrivers
[Windows NT x86]
Printer Driver Info 1:
Driver Name: [goethe]
Printer Driver Info 1:
Driver Name: [gyldendal]
rpcclient $> getdriver gyldendal
[Windows NT x86]
Printer Driver Info 3:
Version: [3]
Driver Name: [gyldendal]
Architecture: [Windows NT x86]
Driver Path: [\\LOCALHOST\print$\W32X86\3\pscript5.dll]
Datafile: [\\LOCALHOST\print$\W32X86\3\gyldendal.ppd]
Configfile: [\\LOCALHOST\print$\W32X86\3\ps5ui.dll]
Helpfile: [\\LOCALHOST\print$\W32X86\3\pscript.hlp]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\pscript5.dll]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\gyldendal.ppd]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\ps5ui.dll]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\pscript.hlp]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\pscript.ntf]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\cups6.ini]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\cupsps6.dll]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\cupsui6.dll]
Monitorname: []
Defaultdatatype: [RAW]
rpcclient $> getdriver goethe
[Windows NT x86]
Printer Driver Info 3:
Version: [3]
Driver Name: [goethe]
Architecture: [Windows NT x86]
Driver Path: [\\LOCALHOST\print$\W32X86\3\pscript5.dll]
Datafile: [\\LOCALHOST\print$\W32X86\3\goethe.ppd]
Configfile: [\\LOCALHOST\print$\W32X86\3\ps5ui.dll]
Helpfile: [\\LOCALHOST\print$\W32X86\3\pscript.hlp]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\pscript5.dll]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\goethe.ppd]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\ps5ui.dll]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\pscript.hlp]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\pscript.ntf]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\cups6.ini]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\cupsps6.dll]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\cupsui6.dll]
Monitorname: []
Defaultdatatype: [RAW]
root at freud:/var/lib/samba/printers/W32X86/3# ls -la
total 1524
drwxrwxrwx 2 root root 4096 2009-12-04 10:52 .
drwxrwxrwx 3 root root 4096 2009-12-03 13:46 ..
-rwxrwxrwx 1 root root 72 2009-12-03 15:30 cups6.ini
-rwxrwxrwx 1 root root 12568 2009-12-03 12:50 cupsps6.dll
-rwxrwxrwx 1 root root 13672 2009-12-03 12:50 cupsui6.dll
-rwxrwxrwx 1 root root 24131 2009-12-03 15:30 goethe.ppd
-rwxrwxrwx 1 root root 77452 2009-12-03 15:19 gyldendal.ppd
-rwxrwxrwx 1 root root 130048 2009-12-03 12:50 ps5ui.dll
-rwxrwxrwx 1 root root 455168 2009-12-03 12:50 pscript5.dll
-rwxrwxrwx 1 root root 26192 2009-12-03 15:30 pscript.hlp
-rwxrwxrwx 1 root root 792644 2009-12-03 15:30 pscript.ntf
Connecting to goethe from Windows XP works and it copies the driver
files. Connection to gyldendal does not, it doesn't copy the files.
Looking in the log file, this is what appears when I try to connect to
the printer that doesn't work:
[2009/12/04 10:16:05, 2]
rpc_server/srv_spoolss_nt.c:234(find_printer_index_by_hnd)
find_printer_index_by_hnd: Printer handle not found:
find_printer_index_by_hnd: Printer handle not found:
close_printer_handle: Invalid handle (OTHER:18607:4256)
I'm guessing some sort of internal list is messed up maybe? Any ideas?
Thanks,
Torkil