Docker Community Forums

Share and learn in the Docker community.

Docker Cups Network Printer Problem


(Madog) #1

Hi All:

I am experimenting with Docker and Cups. I can get can linked Firefox and Cup containers to print using a wired network printer (based on https://github.com/ticosax/cups-in-docker), but when I try with a different wireless network printer I get various “filter” errors (see below) in the Cups error_log. FYI I don’t have Cups running on the host. I am guessing this has to do with there not being a USB capability inside of either of the Docker containers which I would prefer not to add. Given that I can with the same containers get one network printer to work and not another, this wouldn’t seem to be an issue with being able to use Docker containers to print, but rather something about the 2nd laser printer (HP Professional P 1102w) which is wireless or perhaps something in addition to the base driver needing to be installed in the container. Suggestions? Thanks.

E [10/Jun/2016:23:49:39 +0000] [CGI] Failed to initialize libusb (-99)
E [10/Jun/2016:23:49:40 +0000] [cups-deviced] PID 26 (gutenprint52+usb) stopped with status 4!
W [10/Jun/2016:23:50:49 +0000] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id ‘HP-P1102w-Gray…’ already exists
W [10/Jun/2016:23:50:49 +0000] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id ‘HP-P1102w-RGB…’ already exists
W [11/Jun/2016:13:20:33 +0000] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id ‘HP-P1102w-Gray…’ already exists
W [11/Jun/2016:13:20:33 +0000] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id ‘HP-P1102w-RGB…’ already exists
E [11/Jun/2016:13:21:12 +0000] [Job 1] Job stopped due to filter errors; please consult the error_log file for details.
D [11/Jun/2016:13:21:12 +0000] [Job 1] The following messages were recorded from 13:21:02 to 13:21:12
D [11/Jun/2016:13:21:12 +0000] [Job 1] Adding start banner page “none”.
D [11/Jun/2016:13:21:12 +0000] [Job 1] Adding end banner page “none”.
D [11/Jun/2016:13:21:12 +0000] [Job 1] File of type application/vnd.cups-pdf-banner queued by “admin”.
D [11/Jun/2016:13:21:12 +0000] [Job 1] hold_until=0
D [11/Jun/2016:13:21:12 +0000] [Job 1] Queued on “HP-P1102w” by “admin”.
D [11/Jun/2016:13:21:12 +0000] [Job 1] time-at-processing=1465651262
D [11/Jun/2016:13:21:12 +0000] [Job 1] 4 filters for job:
D [11/Jun/2016:13:21:12 +0000] [Job 1] bannertopdf (application/vnd.cups-pdf-banner to application/pdf, cost 32)
D [11/Jun/2016:13:21:12 +0000] [Job 1] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66)
D [11/Jun/2016:13:21:12 +0000] [Job 1] gstoraster (application/vnd.cups-pdf to application/vnd.cups-raster, cost 99)
D [11/Jun/2016:13:21:12 +0000] [Job 1] hpcups (application/vnd.cups-raster to printer/HP-P1102w, cost 0)
D [11/Jun/2016:13:21:12 +0000] [Job 1] job-sheets=none,none
D [11/Jun/2016:13:21:12 +0000] [Job 1] argv[0]="HP-P1102w"
D [11/Jun/2016:13:21:12 +0000] [Job 1] argv[1]="1"
D [11/Jun/2016:13:21:12 +0000] [Job 1] argv[2]="admin"
D [11/Jun/2016:13:21:12 +0000] [Job 1] argv[3]="Test Page"
D [11/Jun/2016:13:21:12 +0000] [Job 1] argv[4]="1"
D [11/Jun/2016:13:21:12 +0000] [Job 1] argv[5]=“job-uuid=urn:uuid:6ac84461-e9e9-3afc-6344-844192a7ec91 job-originating-host-name=localhost time-at-creation=1465651262 time-at-processing=1465651262"
D [11/Jun/2016:13:21:12 +0000] [Job 1] argv[6]=”/var/spool/cups/d00001-001"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[8]="HOME=/var/spool/cups/tmp"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[10]="SERVER_ADMIN=root@cups"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[11]="SOFTWARE=CUPS/1.7.5"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[13]="USER=root"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[14]="CUPS_MAX_MESSAGE=2047"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[15]="CUPS_SERVER=/var/run/cups/cups.sock"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[17]="IPP_PORT=631"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[18]="CHARSET=utf-8"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[19]="LANG=en_US.UTF-8"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[20]="PPD=/etc/cups/ppd/HP-P1102w.ppd"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[21]="RIP_MAX_CACHE=128m"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[22]="CONTENT_TYPE=application/vnd.cups-pdf-banner"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[23]="DEVICE_URI=hp:/net/HP_LaserJet_Professional_P_1102w?ip=192.168.1.152"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[24]="PRINTER_INFO="
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[25]="PRINTER_LOCATION="
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[26]="PRINTER=HP-P1102w"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[27]="PRINTER_STATE_REASONS=none"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[28]="CUPS_FILETYPE=document"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[29]="FINAL_CONTENT_TYPE=application/vnd.cups-raster"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[30]="AUTH_I****"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[31]="AUTH_U****"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[32]="AUTH_P****"
D [11/Jun/2016:13:21:12 +0000] [Job 1] Started filter /usr/lib/cups/filter/bannertopdf (PID 112)
D [11/Jun/2016:13:21:12 +0000] [Job 1] Started filter /usr/lib/cups/filter/pdftopdf (PID 113)
D [11/Jun/2016:13:21:12 +0000] [Job 1] Started filter /usr/lib/cups/filter/gstoraster (PID 114)
D [11/Jun/2016:13:21:12 +0000] [Job 1] Started filter /usr/lib/cups/filter/hpcups (PID 115)
D [11/Jun/2016:13:21:12 +0000] [Job 1] Started backend /usr/lib/cups/backend/hp (PID 116)
D [11/Jun/2016:13:21:12 +0000] [Job 1] PDF template file doesn’t have form. It’s okay.
D [11/Jun/2016:13:21:12 +0000] [Job 1] PID 112 (/usr/lib/cups/filter/bannertopdf) exited with no errors.
D [11/Jun/2016:13:21:12 +0000] [Job 1] Color Manager: Calibration Mode/Off
D [11/Jun/2016:13:21:12 +0000] [Job 1] Calling FindDeviceById(cups-HP-P1102w)
D [11/Jun/2016:13:21:12 +0000] [Job 1] Found device /org/freedesktop/ColorManager/devices/cups_HP_P1102w
D [11/Jun/2016:13:21:12 +0000] [Job 1] Calling org.freedesktop.ColorManager.Device.Get(ProfilingInhibitors)
D [11/Jun/2016:13:21:12 +0000] [Job 1] Calling FindDeviceById(cups-HP-P1102w)
D [11/Jun/2016:13:21:12 +0000] [Job 1] Found device /org/freedesktop/ColorManager/devices/cups_HP_P1102w
D [11/Jun/2016:13:21:12 +0000] [Job 1] Calling GetProfileForQualifiers(Gray.Plain…)
D [11/Jun/2016:13:21:12 +0000] [Job 1] Failed to send: org.freedesktop.ColorManager.Device.NothingMatched:nothing matched expression 'Gray.Plain.,Gray.Plain.,Gray..,Gray..,*'
D [11/Jun/2016:13:21:12 +0000] [Job 1] Failed to get profile filename for cups-HP-P1102w
D [11/Jun/2016:13:21:12 +0000] [Job 1] Color Manager: no profiles specified in PPD
D [11/Jun/2016:13:21:12 +0000] [Job 1] Set job-printer-state-message to “Color Manager: no profiles specified in PPD”, current level=INFO
D [11/Jun/2016:13:21:12 +0000] [Job 1] Color Manager: ICC Profile: None
D [11/Jun/2016:13:21:12 +0000] [Job 1] Ghostscript command line: /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -sDEVICE=cups -sstdout=%stderr -sOutputFile=%stdout -sMediaType=Plain -sOutputType=0 -r600x600 -dMediaPosition=7 -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -dcupsBitsPerColor=1 -dcupsColorOrder=0 -dcupsColorSpace=3 -dcupsRowCount=1 -dcupsRowStep=2 -dcupsInteger0=2 -scupsPageSizeName=Letter -I/usr/share/cups/fonts -c ‘<</.HWMargins[12.000000 12.000000 12.000000 12.000000] /Margins[0 0]>>setpagedevice’ -f -_
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[8]="HOME=/var/spool/cups/tmp"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[10]="SERVER_ADMIN=root@cups"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[11]="SOFTWARE=CUPS/1.7.5"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[13]="USER=root"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[14]="CUPS_MAX_MESSAGE=2047"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[15]="CUPS_SERVER=/var/run/cups/cups.sock"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[17]="IPP_PORT=631"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[18]="CHARSET=utf-8"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[19]="LANG=en_US.UTF-8"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[20]="PPD=/etc/cups/ppd/HP-P1102w.ppd"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[21]="RIP_MAX_CACHE=128m"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[22]="CONTENT_TYPE=application/vnd.cups-pdf-banner"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[23]="DEVICE_URI=hp:/net/HP_LaserJet_Professional_P_1102w?ip=192.168.1.152"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[24]="PRINTER_INFO="
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[25]="PRINTER_LOCATION="
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[26]="PRINTER=HP-P1102w"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[27]="PRINTER_STATE_REASONS=none"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[28]="CUPS_FILETYPE=document"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[29]="FINAL_CONTENT_TYPE=application/vnd.cups-raster"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[30]="AUTH_INFO_REQUIRED=none"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[31]="AUTH_USERNAME=admin"
D [11/Jun/2016:13:21:12 +0000] [Job 1] envp[32]="AUTH_PASSWORD="
D [11/Jun/2016:13:21:12 +0000] [Job 1] PID 113 (/usr/lib/cups/filter/pdftopdf) exited with no errors.