Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#30480 - Can not print.

Attached to Project: Arch Linux
Opened by junmin (junmin) - Friday, 29 June 2012, 04:07 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 30 June 2012, 06:23 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

After upgrade, hp-setup cannot add printer.
I could manually add this printer, but cannot print. you can see the error log.

[root@ThinkStation junmin]# hp-setup -i 10.0.0.1

HP Linux Imaging and Printing System (ver. 3.12.6)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-14 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


Setting up device: hp:/net/Officejet_4500_K710?ip=10.0.0.1



---------------------
| PRINT QUEUE SETUP |
---------------------


Please enter a name for this print queue (m=use model name:'Officejet_4500_K710'*, q=quit) ?
Using queue name: Officejet_4500_K710
Locating PPD file... Please wait.

Found PPD file: drv:///hp/hpcups.drv/hp-officejet_4500_k710.ppd
Enter a location description for this printer (q=quit) ?
Enter additonal information or notes for this printer (q=quit) ?

Adding print queue to CUPS:
Device URI: hp:/net/Officejet_4500_K710?ip=10.0.0.1
Queue name: Officejet_4500_K710
PPD file: drv:///hp/hpcups.drv/hp-officejet_4500_k710.ppd
Location:
Information:
error: Printer queue setup failed. Please restart CUPS and try again.



Additional info:
* package version(s)
* config and/or log files etc.

[junmin@ThinkStation ~]$ pacman -Q foomatic-db hplip cups
foomatic-db 1:4.0.16_20120626-1
hplip 3.12.6-2
cups 1.5.3-5


[root@ThinkStation filter]# tail -f /var/log/cups/error_log

W [28/Jun/2012:22:45:08 -0500] [CGI] Missing NickName and ModelName in /usr/share/cups/model/foomatic-db-ppds/Brother/BR5070DN_GPL.ppd.gz!
W [28/Jun/2012:22:45:08 -0500] [CGI] Missing NickName and ModelName in /usr/share/cups/model/foomatic-db-ppds/KONICA_MINOLTA/KOC451JX.ppd.gz!
E [28/Jun/2012:22:45:08 -0500] [cups-driverd] Bad driver information file "/usr/share/cups/model/foomatic-db-ppds/Kyocera/ReadMe.htm"!
W [28/Jun/2012:22:45:08 -0500] [CGI] Missing NickName and ModelName in /usr/share/cups/model/foomatic-db-ppds/Epson/eplp830c.ppd.gz!
W [28/Jun/2012:22:45:08 -0500] [CGI] Missing NickName and ModelName in /usr/share/cups/model/foomatic-db-ppds/Epson/eplp850c.ppd.gz!
W [28/Jun/2012:22:45:08 -0500] [CGI] Missing NickName and ModelName in /usr/share/cups/model/foomatic-db-ppds/Epson/eplp9100.ppd.gz!
W [28/Jun/2012:22:45:08 -0500] [CGI] Missing NickName and ModelName in /usr/share/cups/model/foomatic-db-ppds/Epson/eplp950c.ppd.gz!
W [28/Jun/2012:22:45:08 -0500] [CGI] Missing NickName and ModelName in /usr/share/cups/model/foomatic-db-ppds/Epson/eplp920c.ppd.gz!
W [28/Jun/2012:22:45:08 -0500] [CGI] Missing NickName and ModelName in /usr/share/cups/model/foomatic-db-ppds/Epson/eplp960s.ppd.gz!
W [28/Jun/2012:22:45:08 -0500] [CGI] Missing NickName and ModelName in /usr/share/cups/model/foomatic-db-ppds/Epson/eplp980c.ppd.gz!
W [28/Jun/2012:22:45:08 -0500] [CGI] Missing NickName and ModelName in /usr/share/cups/model/foomatic-db-ppds/Epson/eplp880c.ppd.gz!


E [28/Jun/2012:22:50:34 -0500] [Job 20] Job stopped due to filter errors; please consult the error_log file for details.
D [28/Jun/2012:22:50:34 -0500] [Job 20] The following messages were recorded from 10:50:33 PM to 10:50:33 PM
D [28/Jun/2012:22:50:34 -0500] [Job 20] Adding start banner page "none".
D [28/Jun/2012:22:50:34 -0500] [Job 20] Adding end banner page "none".
D [28/Jun/2012:22:50:34 -0500] [Job 20] File of type application/vnd.cups-pdf-banner queued by "root".
D [28/Jun/2012:22:50:34 -0500] [Job 20] hold_until=0
D [28/Jun/2012:22:50:34 -0500] [Job 20] Queued on "Officejet_4500_K710" by "root".
D [28/Jun/2012:22:50:34 -0500] [Job 20] job-sheets=none,none
D [28/Jun/2012:22:50:34 -0500] [Job 20] argv[0]="Officejet_4500_K710"
D [28/Jun/2012:22:50:34 -0500] [Job 20] argv[1]="20"
D [28/Jun/2012:22:50:34 -0500] [Job 20] argv[2]="root"
D [28/Jun/2012:22:50:34 -0500] [Job 20] argv[3]="Test Page"
D [28/Jun/2012:22:50:34 -0500] [Job 20] argv[4]="1"
D [28/Jun/2012:22:50:34 -0500] [Job 20] argv[5]="job-uuid=urn:uuid:f51e0123-7bf6-3ab6-619e-5f19224fc40e job-originating-host-name=localhost time-at-creation=1340941833 time-at-processing=1340941833"
D [28/Jun/2012:22:50:34 -0500] [Job 20] argv[6]="/var/spool/cups/d00020-001"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[8]="HOME=/var/spool/cups/tmp"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[10]="SERVER_ADMIN=root@ThinkStation"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[11]="SOFTWARE=CUPS/1.5.3"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[13]="USER=root"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[14]="CUPS_SERVER=/var/run/cups/cups.sock"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[15]="CUPS_ENCRYPTION=IfRequested"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[16]="IPP_PORT=631"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[17]="CHARSET=utf-8"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[18]="LANG=en_US.UTF-8"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[19]="PPD=/etc/cups/ppd/Officejet_4500_K710.ppd"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[20]="RIP_MAX_CACHE=128m"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[21]="CONTENT_TYPE=application/vnd.cups-pdf-banner"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[22]="DEVICE_URI=hp:/net/Officejet_4500_K710?ip=10.0.0.1"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[23]="PRINTER_INFO=Officejet_4500_K710"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[24]="PRINTER_LOCATION="
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[25]="PRINTER=Officejet_4500_K710"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[26]="PRINTER_STATE_REASONS=none"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[27]="CUPS_FILETYPE=document"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[28]="FINAL_CONTENT_TYPE=printer/Officejet_4500_K710"
D [28/Jun/2012:22:50:34 -0500] [Job 20] envp[29]="AUTH_I****"
D [28/Jun/2012:22:50:34 -0500] [Job 20] Started filter /usr/lib/cups/filter/bannertopdf (PID 26944)
D [28/Jun/2012:22:50:34 -0500] [Job 20] Started filter /usr/lib/cups/filter/pdftopdf (PID 26945)
D [28/Jun/2012:22:50:34 -0500] [Job 20] Started filter /usr/lib/cups/filter/foomatic-rip (PID 26946)
D [28/Jun/2012:22:50:34 -0500] [Job 20] Started backend /usr/lib/cups/backend/hp (PID 26947)
D [28/Jun/2012:22:50:34 -0500] [Job 20] Getting input from file
D [28/Jun/2012:22:50:34 -0500] [Job 20] foomatic-rip version 4.0.16.253 running...
D [28/Jun/2012:22:50:34 -0500] [Job 20] Parsing PPD file ...
D [28/Jun/2012:22:50:34 -0500] [Job 20] Added option ColorSpace
D [28/Jun/2012:22:50:34 -0500] [Job 20] Added option Resolution
D [28/Jun/2012:22:50:34 -0500] [Job 20] Added option PageSize
D [28/Jun/2012:22:50:34 -0500] [Job 20] Added option Model
D [28/Jun/2012:22:50:34 -0500] [Job 20] Added option PrintoutMode
D [28/Jun/2012:22:50:34 -0500] [Job 20] Added option MediaType
D [28/Jun/2012:22:50:34 -0500] [Job 20] Added option InputSlot
D [28/Jun/2012:22:50:34 -0500] [Job 20] Added option Quality
D [28/Jun/2012:22:50:34 -0500] [Job 20] Added option Duplex
D [28/Jun/2012:22:50:34 -0500] [Job 20] Added option DryTime
D [28/Jun/2012:22:50:34 -0500] [Job 20] Added option ImageableArea
D [28/Jun/2012:22:50:34 -0500] [Job 20] Added option PaperDimension
D [28/Jun/2012:22:50:34 -0500] [Job 20] Added option Font
D [28/Jun/2012:22:50:34 -0500] [Job 20]
D [28/Jun/2012:22:50:34 -0500] [Job 20] Parameter Summary
D [28/Jun/2012:22:50:34 -0500] [Job 20] -----------------
D [28/Jun/2012:22:50:34 -0500] [Job 20]
D [28/Jun/2012:22:50:34 -0500] [Job 20] Spooler: cups
D [28/Jun/2012:22:50:34 -0500] [Job 20] Printer: Officejet_4500_K710
D [28/Jun/2012:22:50:34 -0500] [Job 20] Shell: /bin/bash
D [28/Jun/2012:22:50:34 -0500] [Job 20] PPD file: /etc/cups/ppd/Officejet_4500_K710.ppd
D [28/Jun/2012:22:50:34 -0500] [Job 20] ATTR file:
D [28/Jun/2012:22:50:34 -0500] [Job 20] Printer model: HP Officejet 4500 k710 hpijs, 3.12.6
D [28/Jun/2012:22:50:34 -0500] [Job 20] Job title: Test Page
D [28/Jun/2012:22:50:34 -0500] [Job 20] File(s) to be printed:
D [28/Jun/2012:22:50:34 -0500] [Job 20] <STDIN>
D [28/Jun/2012:22:50:34 -0500] [Job 20]
D [28/Jun/2012:22:50:34 -0500] [Job 20] Ghostscript extra search path ('GS_LIB'): /usr/share/cups/fonts
D [28/Jun/2012:22:50:34 -0500] [Job 20] Printing system options:
D [28/Jun/2012:22:50:34 -0500] [Job 20] Pondering option 'job-uuid=urn:uuid:f51e0123-7bf6-3ab6-619e-5f19224fc40e'
D [28/Jun/2012:22:50:34 -0500] [Job 20] Unknown option job-uuid=urn:uuid:f51e0123-7bf6-3ab6-619e-5f19224fc40e.
D [28/Jun/2012:22:50:34 -0500] [Job 20] Pondering option 'job-originating-host-name=localhost'
D [28/Jun/2012:22:50:34 -0500] [Job 20] Unknown option job-originating-host-name=localhost.
D [28/Jun/2012:22:50:34 -0500] [Job 20] Pondering option 'time-at-creation=1340941833'
D [28/Jun/2012:22:50:34 -0500] [Job 20] Unknown option time-at-creation=1340941833.
D [28/Jun/2012:22:50:34 -0500] [Job 20] Pondering option 'time-at-processing=1340941833'
D [28/Jun/2012:22:50:34 -0500] [Job 20] Unknown option time-at-processing=1340941833.
D [28/Jun/2012:22:50:34 -0500] [Job 20] Options from the PPD file:
D [28/Jun/2012:22:50:34 -0500] [Job 20]
D [28/Jun/2012:22:50:34 -0500] [Job 20] ================================================
D [28/Jun/2012:22:50:34 -0500] [Job 20]
D [28/Jun/2012:22:50:34 -0500] [Job 20] File: <STDIN>
D [28/Jun/2012:22:50:34 -0500] [Job 20]
D [28/Jun/2012:22:50:34 -0500] [Job 20] ================================================
D [28/Jun/2012:22:50:34 -0500] [Job 20]
D [28/Jun/2012:22:50:34 -0500] [Job 20] Filetype: PDF
D [28/Jun/2012:22:50:34 -0500] [Job 20] Storing temporary files in /var/spool/cups/tmp
D [28/Jun/2012:22:50:34 -0500] [Job 20] File contains 1 pages


Steps to reproduce:
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Saturday, 30 June 2012, 06:23 GMT
Reason for closing:  None
Comment by Andreas Radke (AndyRTR) - Friday, 29 June 2012, 15:38 GMT
You don't need foomatic-db when you want to use a ppd driver provided by hplip.

Please set log level to debug or even debug2 in cups to get more useful output. I guess the true error msg is not covered by the lines you have posted.
What upgrade made it break? What was the last know set of packages?
Comment by junmin (junmin) - Saturday, 30 June 2012, 03:52 GMT
Hi Andreas,

Problema resoved you can say, It's the old hpijs driver. I had to use the hpcups one. thank you for your help

[junmin@ThinkStation ~]$ gs -dFirstPage=1 -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="HP Color LaserJet 2600n" -dDuplex=false -r300 -sIjsParams=Quality:Quality=4,Quality:ColorMode=0,Quality:MediaType=0,Quality:PenSet=2,Quality:SpeedMech=1,PS:MediaPosition=7 -dIjsUseOutputFD -sOutputFile=- /var/spool/cups/tmp/foomatic-OGS5wf
prnt/hpijs/hpijs.cpp 268: unable to set device=HP Color LaserJet 2600n, err=48
prnt/hpijs/hpijs.cpp 289: unable to set device=HP Color LaserJet 2600n, err=48
**** Unable to open the initial device, quitting.

Loading...