Jobs added from Samba unloaded without printing

giuseppe portelli peppe.portelli at tiscali.it
Fri Apr 11 07:01:46 PDT 2008


I installed a Samsung CLP-300 Printer on a Debian machine.

I have 2 problems:

1. I added the Samsung printer using the CUPS admin web page. When I try to print, I get this message: "Printer not connected; will retry in 30 seconds...".
The only workaround I found for this error is changing the Device URI from usb://Samsung/CLP-300 to file:/dev/usb/lp0.
Using the file:/dev/usb/lp0 URI I'm able to print.
Do anyone has any idea why the usb://Samsung/CLP-300 URI doesn't work? Is it a problem using file:/dev/usb/lp0 URI?

2. I've a problem printing from Windows XP using Samba. Looking inside the CUPS error_log, I found that Samba actually sends a new job to CUPS, unfortunately this job is immediately unloaded and no printing is performed.
I compared the error_log of a job added from an application running on the same machine with the log of a job added from Samba. I guess the problem could be the different content types of the two jobs: the samba job (not working) specifies "application/vnd.cups-raw" content type, while the working job has "application/postscript" content type.

Here is the error_log of the job added from Samba (not working):

D [11/Apr/2008:11:34:25 +0200] cupsdAcceptClient: 7 from localhost (Domain)
D [11/Apr/2008:11:34:25 +0200] cupsdReadClient: 7 POST /printers/Samsung HTTP/1.1
D [11/Apr/2008:11:34:25 +0200] cupsdAuthorize: No authentication data provided.
D [11/Apr/2008:11:34:25 +0200] Print-Job ipp://localhost/printers/Samsung
D [11/Apr/2008:11:34:25 +0200] print_job: request file type is application/vnd.cups-raw.
D [11/Apr/2008:11:34:25 +0200] add_job: requesting-user-name="gportelli"
D [11/Apr/2008:11:34:25 +0200] Adding default job-sheets values "none,none"...
I [11/Apr/2008:11:34:25 +0200] Adding start banner page "none" to job 805.
D [11/Apr/2008:11:34:25 +0200] Discarding unused job-created event...
I [11/Apr/2008:11:34:25 +0200] Adding end banner page "none" to job 805.
I [11/Apr/2008:11:34:25 +0200] Job 805 queued on "Samsung" by "gportelli".
D [11/Apr/2008:11:34:25 +0200] Job 805 hold_until = 0
D [11/Apr/2008:11:34:25 +0200] Discarding unused printer-state-changed event...
D [11/Apr/2008:11:34:25 +0200] job-sheets=none,none
D [11/Apr/2008:11:34:25 +0200] banner_page = 0
D [11/Apr/2008:11:34:25 +0200] [Job 805] argv[0]="Samsung"
D [11/Apr/2008:11:34:25 +0200] [Job 805] argv[1]="805"
D [11/Apr/2008:11:34:25 +0200] [Job 805] argv[2]="gportelli"
D [11/Apr/2008:11:34:25 +0200] [Job 805] argv[3]="smbprn.00000017 Remote Downlevel Document"
D [11/Apr/2008:11:34:25 +0200] [Job 805] argv[4]="1"
D [11/Apr/2008:11:34:25 +0200] [Job 805] argv[5]="job-uuid=urn:uuid:1f5b4b7f-7ec8-3576-473c-639ea44b5a23"
D [11/Apr/2008:11:34:25 +0200] [Job 805] argv[6]="/var/spool/cups/d00805-001"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[8]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[9]="SERVER_ADMIN=root at localhost.localdomain"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[10]="SOFTWARE=CUPS/1.2.7"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[11]="TMPDIR=/var/spool/cups/tmp"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[12]="TZ=Europe/Rome"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[13]="USER=root"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[14]="CUPS_SERVER=/var/run/cups/cups.sock"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[15]="CUPS_ENCRYPTION=IfRequested"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[16]="IPP_PORT=631"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[17]="CHARSET=iso-8859-15"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[18]="LANG=C"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[19]="PPD=/etc/cups/ppd/Samsung.ppd"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[20]="RIP_MAX_CACHE=8m"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[21]="CONTENT_TYPE=application/vnd.cups-raw"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[22]="DEVICE_URI=file:/dev/usb/lp0"
D [11/Apr/2008:11:34:25 +0200] [Job 805] envp[23]="PRINTER=Samsung"
D [11/Apr/2008:11:34:25 +0200] Discarding unused job-state event...
D [11/Apr/2008:11:34:25 +0200] cupsdProcessIPPRequest: 7 status_code=0 (successful-ok)
D [11/Apr/2008:11:34:25 +0200] [Job 805] File 0 is complete.
D [11/Apr/2008:11:34:25 +0200] Discarding unused printer-state-changed event...
D [11/Apr/2008:11:34:25 +0200] Discarding unused job-completed event...
D [11/Apr/2008:11:34:25 +0200] cupsdCloseClient: 7
D [11/Apr/2008:11:34:26 +0200] Unloading job 805...





And this is the error_log of a job successfully added and printed from an application running on the Debian machine:

D [11/Apr/2008:11:37:28 +0200] cupsdAcceptClient: 9 from localhost (Domain)
D [11/Apr/2008:11:37:28 +0200] cupsdReadClient: 9 POST /printers/ HTTP/1.1
D [11/Apr/2008:11:37:28 +0200] cupsdAuthorize: No authentication data provided.
D [11/Apr/2008:11:37:28 +0200] Get-Printer-Attributes ipp://localhost:631/printers/Samsung_CLP-300_USB_1
D [11/Apr/2008:11:37:28 +0200] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok)
D [11/Apr/2008:11:37:28 +0200] cupsdCloseClient: 9
D [11/Apr/2008:11:37:28 +0200] cupsdAcceptClient: 9 from localhost (Domain)
D [11/Apr/2008:11:37:28 +0200] cupsdReadClient: 9 POST / HTTP/1.1
D [11/Apr/2008:11:37:28 +0200] cupsdAuthorize: No authentication data provided.
D [11/Apr/2008:11:37:28 +0200] Get-Printer-Attributes ipp://localhost/printers/Samsung_CLP-300_USB_1
D [11/Apr/2008:11:37:28 +0200] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok)
D [11/Apr/2008:11:37:28 +0200] cupsdReadClient: 9 GET /printers/Samsung_CLP-300_USB_1.ppd HTTP/1.1
D [11/Apr/2008:11:37:28 +0200] cupsdAuthorize: No authentication data provided.
D [11/Apr/2008:11:37:28 +0200] write_file: 9 file=10
D [11/Apr/2008:11:37:28 +0200] cupsdAcceptClient: 10 from localhost (Domain)
D [11/Apr/2008:11:37:28 +0200] cupsdReadClient: 10 POST /printers/Samsung_CLP-300_USB_1 HTTP/1.1
D [11/Apr/2008:11:37:28 +0200] cupsdAuthorize: No authentication data provided.
D [11/Apr/2008:11:37:28 +0200] Print-Job ipp://localhost/printers/Samsung_CLP-300_USB_1
D [11/Apr/2008:11:37:28 +0200] print_job: auto-typing file...
D [11/Apr/2008:11:37:28 +0200] print_job: request file type is application/postscript.
D [11/Apr/2008:11:37:28 +0200] add_job: requesting-user-name="root"
D [11/Apr/2008:11:37:28 +0200] Adding default job-sheets values "none,none"...
I [11/Apr/2008:11:37:28 +0200] Adding start banner page "none" to job 807.
D [11/Apr/2008:11:37:28 +0200] Discarding unused job-created event...
I [11/Apr/2008:11:37:28 +0200] Adding end banner page "none" to job 807.
I [11/Apr/2008:11:37:28 +0200] Job 807 queued on "Samsung_CLP-300_USB_1" by "root".
D [11/Apr/2008:11:37:28 +0200] Job 807 hold_until = 0
D [11/Apr/2008:11:37:28 +0200] Discarding unused printer-state-changed event...
D [11/Apr/2008:11:37:28 +0200] job-sheets=none,none
D [11/Apr/2008:11:37:28 +0200] banner_page = 0
D [11/Apr/2008:11:37:28 +0200] [Job 807] argv[0]="Samsung_CLP-300_USB_1"
D [11/Apr/2008:11:37:28 +0200] [Job 807] argv[1]="807"
D [11/Apr/2008:11:37:28 +0200] [Job 807] argv[2]="root"
D [11/Apr/2008:11:37:28 +0200] [Job 807] argv[3]="Senza titolo"
D [11/Apr/2008:11:37:28 +0200] [Job 807] argv[4]="1"
D [11/Apr/2008:11:37:28 +0200] [Job 807] argv[5]="multiple-document-handling=separate-documents-collated-copies orientation-requested=3 job-uuid=urn:uuid:38619426-d46f-3116-5768-acf1a5dbb573"
D [11/Apr/2008:11:37:28 +0200] [Job 807] argv[6]="/var/spool/cups/d00807-001"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[8]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[9]="SERVER_ADMIN=root at localhost.localdomain"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[10]="SOFTWARE=CUPS/1.2.7"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[11]="TMPDIR=/var/spool/cups/tmp"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[12]="TZ=Europe/Rome"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[13]="USER=root"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[14]="CUPS_SERVER=/var/run/cups/cups.sock"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[15]="CUPS_ENCRYPTION=IfRequested"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[16]="IPP_PORT=631"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[17]="CHARSET=utf-8"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[18]="LANG=C"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[19]="PPD=/etc/cups/ppd/Samsung_CLP-300_USB_1.ppd"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[20]="RIP_MAX_CACHE=8m"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[21]="CONTENT_TYPE=application/postscript"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[22]="DEVICE_URI=usb://Samsung/CLP-300"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[23]="PRINTER=Samsung_CLP-300_USB_1"
D [11/Apr/2008:11:37:28 +0200] [Job 807] envp[24]="FINAL_CONTENT_TYPE=printer/Samsung_CLP-300_USB_1"
I [11/Apr/2008:11:37:28 +0200] Started filter /usr/lib/cups/filter/pstops (PID 5335) for job 807.
I [11/Apr/2008:11:37:29 +0200] Started filter /usr/lib/cups/filter/foomatic-rip (PID 5336) for job 807.
I [11/Apr/2008:11:37:29 +0200] Started backend /usr/lib/cups/backend/usb (PID 5337) for job 807.
D [11/Apr/2008:11:37:29 +0200] Discarding unused job-state event...
D [11/Apr/2008:11:37:29 +0200] cupsdProcessIPPRequest: 10 status_code=0 (successful-ok)
D [11/Apr/2008:11:37:29 +0200] PID 5335 (/usr/lib/cups/filter/pstops) exited with no errors.
D [11/Apr/2008:11:37:29 +0200] [Job 807] Page = 595x842; 9,12 to 586,830
D [11/Apr/2008:11:37:29 +0200] [Job 807] slow_collate=0, slow_duplex=0, slow_order=0
D [11/Apr/2008:11:37:29 +0200] [Job 807] Before copy_comments - %!PS-Adobe-1.0
D [11/Apr/2008:11:37:29 +0200] [Job 807] %!PS-Adobe-1.0
D [11/Apr/2008:11:37:29 +0200] [Job 807] %%BoundingBox: 0 0 594 842
D [11/Apr/2008:11:37:29 +0200] [Job 807] %%Creator: Qt 3.3.7
D [11/Apr/2008:11:37:29 +0200] [Job 807] %%Title: Senza titolo
D [11/Apr/2008:11:37:29 +0200] [Job 807] %%CreationDate: ven apr 11 11:37:28 2008
D [11/Apr/2008:11:37:29 +0200] [Job 807] %%Orientation: Portrait
D [11/Apr/2008:11:37:29 +0200] [Job 807] %%Pages: 1
D [11/Apr/2008:11:37:29 +0200] [Job 807] %%DocumentFonts: BitstreamVeraSans-Roman BitstreamVeraSansMono-Roman
D [11/Apr/2008:11:37:29 +0200] [Job 807] Before copy_prolog -
D [11/Apr/2008:11:37:29 +0200] [Job 807] Before copy_setup - %%BeginSetup
D [11/Apr/2008:11:37:29 +0200] [Job 807] Before page loop - %%Page: 1 1
D [11/Apr/2008:11:37:29 +0200] [Job 807] Copying page 1...
D [11/Apr/2008:11:37:29 +0200] [Job 807] pagew = 577.0, pagel = 818.0
D [11/Apr/2008:11:37:29 +0200] [Job 807] bboxw = 595, bboxl = 842
D [11/Apr/2008:11:37:29 +0200] [Job 807] PageLeft = 9.0, PageRight = 586.0
D [11/Apr/2008:11:37:29 +0200] [Job 807] PageTop = 830.0, PageBottom = 12.0
D [11/Apr/2008:11:37:29 +0200] [Job 807] PageWidth = 595.0, PageLength = 842.0
D [11/Apr/2008:11:37:29 +0200] [Job 807] Wrote 1 pages...
D [11/Apr/2008:11:37:29 +0200] Discarding unused printer-state-changed event...
D [11/Apr/2008:11:37:29 +0200] cupsdCloseClient: 10
D [11/Apr/2008:11:37:29 +0200] [Job 807] foomatic-rip version $Revision$ running...
D [11/Apr/2008:11:37:29 +0200] [Job 807] Parsing PPD file ...
D [11/Apr/2008:11:37:29 +0200] [Job 807] *cupsFilter: "application/vnd.cups-postscript 0 foomatic-rip"
D [11/Apr/2008:11:37:29 +0200] [Job 807] Added option ColorSpace
D [11/Apr/2008:11:37:29 +0200] [Job 807] Added option PageSize
D [11/Apr/2008:11:37:29 +0200] [Job 807] Added option PageRegion
D [11/Apr/2008:11:37:29 +0200] [Job 807] Added option Quality
D [11/Apr/2008:11:37:29 +0200] [Job 807] Added option ColorMode
D [11/Apr/2008:11:37:29 +0200] [Job 807] Added option Resolution
D [11/Apr/2008:11:37:29 +0200] [Job 807] Added option ImageableArea




More information about the cups mailing list