[Samba] Error Printing Using Samba

John Frankish j-frankish at slb.com
Sun Feb 28 15:43:06 MST 2010


Although I can print locally on a linux machine running samba-3.4.5, cups-1.4.1, hplip-3.9.12 without errors, when any windows machines try to print to a printer connected to the Linux machine, the job prints, but gives the following error:

"/usr/local/lib/cups/filter/pstoraster failed"

..and the job remains in the print queue on both the local and remote machines. This error occurs even when printing the same pdf file that prints without errors on the linux machine

Is this something to do with smb.conf? It used to work fine on the same setup with samba-3.4.1, cups-1.3.8 and hplip-3.9.8

Regards
John


/var/log/samba-log.192.168.1.1
------------------------------
[2010/02/28 18:38:38,  1] libsmb/cliconnect.c:2039(cli_start_connection)
  cli_start_connection: failed to connect to JACK-PC<20> (192.168.1.1). Error NT_STATUS_CONNECTION_REFUSED
[2010/02/28 18:38:38,  1] libsmb/cliconnect.c:2039(cli_start_connection)
  cli_start_connection: failed to connect to JACK-PC<20> (192.168.1.1). Error NT_STATUS_CONNECTION_REFUSED
[2010/02/28 19:02:47,  0] lib/util_sock.c:539(read_fd_with_timeout)
[2010/02/28 19:02:47,  0] lib/util_sock.c:1491(get_peer_addr_internal)
  getpeername failed. Error was Transport endpoint is not connected
  read_fd_with_timeout: client 0.0.0.0 read error = Connection reset by peer.

/var/log/messages
------------------
Feb 28 18:39:20 (none) user.err OfficeJetG85: prnt/hpijs/hpcups.cpp 681: hpcups: returning status 0 from main
Feb 28 18:39:29 (none) daemon.err hp[17826]: io/hpmud/mlc.c 135: unexpected MLCCreditRequest: cmd=4, hid=2, pid=2, credit=65535

/var/log/cups/error_log
-----------------------
I [28/Feb/2010:18:38:06 +0400] Started "/usr/local/lib/cups/cgi-bin/jobs.cgi" (pid=17820)
I [28/Feb/2010:18:38:09 +0400] Started "/usr/local/lib/cups/cgi-bin/jobs.cgi" (pid=17821)
I [28/Feb/2010:18:38:38 +0400] [Job ???] Request file type is application/postscript.
I [28/Feb/2010:18:39:08 +0400] Saving job cache file "/var/cache/cups/job.cache"...
I [28/Feb/2010:18:39:20 +0400] Hint: Try setting the LogLevel to "debug" to find out more.
E [28/Feb/2010:18:39:30 +0400] [Job 4] Job stopped due to filter errors; please consult the error_log file for details.
D [28/Feb/2010:18:39:30 +0400] [Job 4] The following messages were recorded from 18:39:20 to 18:39:29
...
D [28/Feb/2010:18:39:30 +0400] [Job 4] Error in .trysetparams!
D [28/Feb/2010:18:39:30 +0400] [Job 4] /rangecheck
D [28/Feb/2010:18:39:30 +0400] [Job 4] /GrayValues
D [28/Feb/2010:18:39:30 +0400] [Job 4] -mark-
D [28/Feb/2010:18:39:30 +0400] [Job 4] true
D [28/Feb/2010:18:39:30 +0400] [Job 4] null
D [28/Feb/2010:18:39:30 +0400] [Job 4] -device-
D [28/Feb/2010:18:39:30 +0400] [Job 4] null
D [28/Feb/2010:18:39:30 +0400] [Job 4] -dict-
D [28/Feb/2010:18:39:30 +0400] [Job 4] -save-
D [28/Feb/2010:18:39:30 +0400] [Job 4] Putting.
D [28/Feb/2010:18:39:30 +0400] [Job 4] GPL Ghostscript 8.70: Unrecoverable error, exit code 1
D [28/Feb/2010:18:39:30 +0400] [Job 4] cups_close(0x9dfe564)
D [28/Feb/2010:18:39:30 +0400] [Job 4] prnt/hpijs/hpcups.cpp 681: hpcups: returning status 0 from mainINFO: ready to print
D [28/Feb/2010:18:39:30 +0400] [Job 4] End of messages
D [28/Feb/2010:18:39:30 +0400] [Job 4] printer-state=3(idle)
D [28/Feb/2010:18:39:30 +0400] [Job 4] printer-state-message="/usr/local/lib/cups/filter/pstoraster failed"
D [28/Feb/2010:18:39:30 +0400] [Job 4] printer-state-reasons=none
I [28/Feb/2010:18:39:31 +0400] Started "/usr/local/lib/cups/cgi-bin/jobs.cgi" (pid=19402)
I [28/Feb/2010:18:40:01 +0400] Saving job cache file "/var/cache/cups/job.cache"...
I [28/Feb/2010:18:41:19 +0400] Started "/usr/local/lib/cups/cgi-bin/admin.cgi" (pid=19409)


smb.conf
--------
[global]
        workgroup = WORKGROUP
        netbios name = DSLKAYAK
        hosts allow = 192.168.1.*
        security = share
        client ntlmv2 auth = no
        load printers = yes
        printing = cups
        printcap = cups
        path = /mnt/sdb4/dslshare
        read only = no
        browseable = yes
        guest ok = yes
[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = yes
        public = yes
        guest ok = yes
        writable = no
        printable = yes
[print$]
        comment = Printer Drivers
        path = /usr/local/share/cups/drivers
        browseable = yes
        guest ok = no
        read only = yes
        write list = root


More information about the samba mailing list