Solved CUPS and networking with FreeBSD and Windows systems

jayrpowell

New Member


Messages: 8

I've been beating my head against the wall for over a month on this, and I hope someone who knows CUPS a bit better than I can tell where I am going wrong. I suspect I have an incorrect permission issue *somewhere*, but I have no idea where.
I have two very similar systems set up with FreeBSD and CUPS, with a HP Photosmart C4180 printer/scanner attached to the first (let's call it the server). This printer is shared on my local network. I can send print jobs to it fine from Windows 7 systems on the network, but all attempts to print from the second FreeBSD system (let's call it the client) fails. Printing to the printer from the server works fine, so I don't think there is anything wrong on the settings there. Sending it a test page from the CUPS web page on the client, it shows the status message “Processing Page 1”, and then a few seconds later: “Filter Failed”.
Here are the basic configuration details from the two systems:
Client System:
Code:
jay@UnixBSD2:~ % uname -a
FreeBSD UnixBSD2.POWELLENT 10.1-RELEASE-p16 FreeBSD 10.1-RELEASE-p16 #0: Tue Jul 28 11:41:12 UTC 2015  root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
jay@UnixBSD2:~ % freebsd-version
10.1-RELEASE-p22
Server System:
Code:
jay@UnixBSD:~ % uname -a
FreeBSD UnixBSD.POWELLENT 10.1-RELEASE-p16 FreeBSD 10.1-RELEASE-p16 #0: Tue Jul 28 11:41:12 UTC 2015  root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
jay@UnixBSD:~ % freebsd-version
10.1-RELEASE-p22
jay@UnixBSD:~ %
After trying to send a test page to the printer from the client system, here is what I found in the client CUPS error log:
Code:
E [25/Oct/2015:08:03:15 -0400] [CGI] Unable to create service connection: No such file or directory
E [25/Oct/2015:08:03:15 -0400] [cups-deviced] PID 1370 (dnssd) stopped with status 1!
And the server CUPS error log shows:
Code:
E [25/Oct/2015:08:04:46 -0400] [Job 118] Job stopped due to filter errors; please consult the error_log file for details.
D [25/Oct/2015:08:04:46 -0400] [Job 118] The following messages were recorded from 08:04:39 to 08:04:46
D [25/Oct/2015:08:04:46 -0400] [Job 118] Adding start banner page "none".
D [25/Oct/2015:08:04:46 -0400] [Job 118] Queued on "HP_Photosmart_C4180" by "remroot".
D [25/Oct/2015:08:04:46 -0400] [Job 118] File of type application/vnd.cups-raster queued by "remroot".
D [25/Oct/2015:08:04:46 -0400] [Job 118] Adding end banner page "none".
D [25/Oct/2015:08:04:46 -0400] [Job 118] time-at-processing=1445774686
D [25/Oct/2015:08:04:46 -0400] [Job 118] 1 filters for job:
D [25/Oct/2015:08:04:46 -0400] [Job 118] hpcups (application/vnd.cups-raster to printer/HP_Photosmart_C4180, cost 0)
D [25/Oct/2015:08:04:46 -0400] [Job 118] job-sheets=none,none
D [25/Oct/2015:08:04:46 -0400] [Job 118] argv[0]="HP_Photosmart_C4180"
D [25/Oct/2015:08:04:46 -0400] [Job 118] argv[1]="118"
D [25/Oct/2015:08:04:46 -0400] [Job 118] argv[2]="remroot"
D [25/Oct/2015:08:04:46 -0400] [Job 118] argv[3]="Test Page"
D [25/Oct/2015:08:04:46 -0400] [Job 118] argv[4]="1"
D [25/Oct/2015:08:04:46 -0400] [Job 118] argv[5]="job-uuid=urn:uuid:2b207521-8d3a-3a68-5308-d8699fccae12 job-originating-host-name=192.168.1.9 time-at-creation=1445774679 time-at-processing=1445774686"
D [25/Oct/2015:08:04:46 -0400] [Job 118] argv[6]="/var/spool/cups/d00118-001"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[0]="CUPS_CACHEDIR=/var/db/cups"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[1]="CUPS_DATADIR=/usr/local/share/cups"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[2]="CUPS_DOCROOT=/usr/local/share/doc/cups"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[3]="CUPS_FONTPATH=/usr/local/share/cups/fonts"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[5]="CUPS_SERVERBIN=/usr/local/libexec/cups"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[6]="CUPS_SERVERROOT=/usr/local/etc/cups"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[8]="HOME=/var/spool/cups/tmp"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[9]="PATH=/usr/local/libexec/cups/filter:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[10]="SERVER_ADMIN=root@UnixBSD.POWELLENT"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[11]="SOFTWARE=CUPS/2.0.3"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[13]="USER=root"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[14]="CUPS_MAX_MESSAGE=2047"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[15]="CUPS_SERVER=/var/run/cups.sock"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[17]="IPP_PORT=631"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[18]="CHARSET=utf-8"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[19]="LANG=en_US.UTF-8"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[20]="PPD=/usr/local/etc/cups/ppd/HP_Photosmart_C4180.ppd"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[21]="RIP_MAX_CACHE=128m"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[22]="CONTENT_TYPE=application/vnd.cups-raster"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[23]="DEVICE_URI=hp:/usb/Photosmart_C4100_series?serial=MY68HF10KK04J7"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[24]="PRINTER_INFO=HP Photosmart C4180 Printer / Scanner"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[25]="PRINTER_LOCATION=Daddy's Office"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[26]="PRINTER=HP_Photosmart_C4180"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[27]="PRINTER_STATE_REASONS=none"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[28]="CUPS_FILETYPE=document"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[29]="FINAL_CONTENT_TYPE=printer/HP_Photosmart_C4180"
D [25/Oct/2015:08:04:46 -0400] [Job 118] envp[30]="AUTH_I****"
D [25/Oct/2015:08:04:46 -0400] [Job 118] Started filter /usr/local/libexec/cups/filter/gziptoany (PID 27724)
D [25/Oct/2015:08:04:46 -0400] [Job 118] Started filter /usr/local/libexec/cups/filter/hpcups (PID 27725)
D [25/Oct/2015:08:04:46 -0400] [Job 118] Started backend /usr/local/libexec/cups/backend/hp (PID 27726)
D [25/Oct/2015:08:04:46 -0400] [Job 118] prnt/hpcups/HPCupsFilter.cpp 530: cupsRasterOpen failed, fd = 0
D [25/Oct/2015:08:04:46 -0400] [Job 118] PID 27724 (/usr/local/libexec/cups/filter/gziptoany) did not catch or ignore signal 13.
D [25/Oct/2015:08:04:46 -0400] [Job 118] PID 27725 (/usr/local/libexec/cups/filter/hpcups) stopped with status 1.
D [25/Oct/2015:08:04:46 -0400] [Job 118] Hint: Try setting the LogLevel to "debug" to find out more.
D [25/Oct/2015:08:04:46 -0400] [Job 118] prnt/backend/hp.c 902: ERROR: null print job total=0
D [25/Oct/2015:08:04:46 -0400] [Job 118] PID 27726 (/usr/local/libexec/cups/backend/hp) exited with no errors.
D [25/Oct/2015:08:04:46 -0400] [Job 118] End of messages
D [25/Oct/2015:08:04:46 -0400] [Job 118] printer-state=3(idle)
D [25/Oct/2015:08:04:46 -0400] [Job 118] printer-state-message="Filter failed"
D [25/Oct/2015:08:04:46 -0400] [Job 118] printer-state-reasons=none
I can see that /usr/local/libexec/cups/filter/hpcups failed on what appears to be a file open, although I can't find any more details. If anyone has encountered this before, your suggestions would be appreciated.
Thank You!
Jay
 

shepper

Aspiring Daemon

Reaction score: 263
Messages: 775

I knew there was a reason I used lpr printing .:)
I have been shopping for a new laser printer and have been looking at ghostscript filters - "cupsRasterOpen failed" caught my eye. A quick search showed a long standing bug that looks similiar to what you describe.
bug 1010580 Looks easy enough to try.
 
OP
OP
jayrpowell

jayrpowell

New Member


Messages: 8

I knew there was a reason I used lpr printing .:)
I have been shopping for a new laser printer and have been looking at ghostscript filters - "cupsRasterOpen failed" caught my eye. A quick search showed a long standing bug that looks similiar to what you describe.
bug 1010580 Looks easy enough to try.
And it was, commented out the offending line from the PPD file and printing is now working from my client. THANKS! As I started out saying, I was looking at permissions of every different part of the two systems, and would not have found that one. For some reason, my searches never brought up the Red Hat site.
 
Top