UPDATE: Printer only prints once, then reboot needed
ORIGINAL PROBLEM:
I've got an HP Laserjet 3020 (multifunction) printer to setup under
linux. I run Debian Sarge. The printer is fully supported
by hplip.
I've got the following packages installed: (all stable versions)
hplip v0.9.2-2
hpijs v2.1.2
hplip-data 0.9.2-2
cupsys v1.1.23-10
My printer is hooked up via USB.
Problem:
I setup the printer under cups (web interface). CUPS sees the
printer on the USB bus. I locate my specific printer type (3020),
and install that. Test page prints fine.
If I try to print (say from Openoffice) after this, the job sits in the
queue, with the status "Processing..." Restarting the cups and/or hp
daemons does not do anything. If I reboot, when the system comes back
online and the hp/cups daemons load, the job prints.
I can always print my first print job after rebooting. After this,
nothing I've been able to do will get the printer to print, short of
rebooting. Jobs just sit in the queue until the next reboot. The cups
web interface shows that the printer is "processing, accepting jobs"
when I try to print the 2nd and all subsequent jobs.
Any ideas on where to look to resolve this issue? I'm happy to provide any more info that someone might need.
ADDED INFORMATION:
Ok, here are the results of some test commands, that may help. I am currently in the "I cannot print" state:
~# /usr/lib/cups/backend/hp
direct hp:/usb/hp_LaserJet_3020?device=/dev/usb/lp0 "HP hp_LaserJet_3020" "hp:/usb/hp_LaserJet_3020?device=/dev/usb/lp0"
~$ hp-toolbox -ldebug
toolbox
toolbox HP Linux Imaging and Printing System (ver. 0.9.2)
toolbox HP Device Manager ver. 4.0
toolbox
toolbox Copyright (c) 2003-5 Hewlett-Packard Development Company, LP
toolbox This software comes with ABSOLUTELY NO WARRANTY.
toolbox This is free software, and you are welcome to distribute it
toolbox under certain conditions. See COPYING file for more details.
toolbox
toolbox Listening on localhost port 34200
toolbox [DEBUG]: Initializing toolbox UI
toolbox [DEBUG]: Print command: kprinter -P%PRINTER% --system cups
toolbox [DEBUG]: PCard command: python %HOME%/unload -d %DEVICE_URI%
toolbox [DEBUG]: Fax command:
toolbox [DEBUG]: Copy command:
toolbox [DEBUG]: Scan command: xsane -V %SANE_URI%
toolbox [DEBUG]: Email alerts: False
toolbox [DEBUG]: Email address:
toolbox [DEBUG]: SMTP server:
toolbox [DEBUG]: Auto refresh: True
toolbox [DEBUG]: Auto refresh rate: 30
toolbox [DEBUG]: 'msg=registerguievent\nusername=mike\nadmin-flag=False\nhostname=localhost\npid=6581\nport=34200\n'
toolbox [DEBUG]: pid=6581
toolbox [DEBUG]: Using default 'C' locale
toolbox [DEBUG]: Starting GUI loop...
toolbox [DEBUG]: Rescanning device list...
toolbox [DEBUG]: Refresh: ******************** hp:/usb/hp_LaserJet_3020?device=/dev/usb/lp0 ********************
toolbox [DEBUG]: Update: ******************** hp:/usb/hp_LaserJet_3020?device=/dev/usb/lp0 ********************
toolbox [DEBUG]: Device URI=hp:/usb/hp_LaserJet_3020?device=/dev/usb/lp0
toolbox [DEBUG]: Sending:
'msg=devicequery\ndevice-state-previous=0\ndevice-uri=hp:/usb/hp_LaserJet_3020?device=/dev/usb/lp0\nstatus-code-previous=1000\nmake-history=True\n'
/usr/lib/hplip# python hpssd.py -ldebug -x
hpssd
hpssd HP Linux Imaging and Printing System (ver. 0.9.2)
hpssd Services and Status Daemon ver. 4.2
hpssd
hpssd Copyright (c) 2003-5 Hewlett-Packard Development Company, LP
hpssd This software comes with ABSOLUTELY NO WARRANTY.
hpssd This is free software, and you are welcome to distribute it
hpssd under certain conditions. See COPYING file for more details.
hpssd
hpssd [DEBUG]: <hpssd_server listening on localhost:34207 (fd=4)>
hpssd [DEBUG]: port=34207
hpssd Listening on localhost port 34207
hpssd [DEBUG]: Starting async loop...
hpssd [DEBUG]: <hpssd_handler connected to ('127.0.0.1', 34221) (fd=7)>
hpssd [DEBUG]: Reading data on channel (7)
hpssd [DEBUG]:
************************************************************ event
************************************************************
hpssd [DEBUG]:
'msg=Event\ndevice-uri=hp:/usb/hp_LaserJet_3020?device=/dev/usb/lp0\njob-id=6\nevent-code=500\nevent-type=event\n'
hpssd [DEBUG]: code (type): 500 (event)
hpssd [DEBUG]: String query: 500
hpssd [DEBUG]: String query: 500
hpssd [DEBUG]: short: The printer has started a print job.
hpssd [DEBUG]: long:
hpssd [DEBUG]: username (jobid): mike (6)
hpssd [DEBUG]: String query: 500
hpssd [DEBUG]: String query: 500
hpssd [DEBUG]: Exception: 16 (hpguid not running)
hpssd [WARNING]: No GUI available. (16)
hpssd [DEBUG]: Exception: 16 (hpguid not running)
hpssd [ERROR]: Unhandled exception during processing
hpssd [DEBUG]: Reading data on channel (7)
hpssd [DEBUG]:
************************************************************ modelquery
************************************************************
hpssd [DEBUG]: 'msg=ModelQuery\nmodel=hp_LaserJet_3020\n'
hpssd [DEBUG]: ModelQuery: hp_LaserJet_3020
hpssd [DEBUG]: Sending data on channel (7)
hpssd [DEBUG]:
'msg=modelqueryresult\ncopy-type=0\nio-control=gusher\nfax-type=0\npcard-type=0\ntech-type=3\nembedded-server-type=0\nstatus-type=3\nr0-agent1-type=1\ncolor-cal-type=0\nalign-type=0\nio-mode=mlc\nclean-type=0\nr0-agent1-kind=4\nresult-code=0\npanel-check-type=1\nr0-agent1-sku=Q2612A\nscan-type=2\n'
(^ After running hppsd.py in debug mode, I printed a print job, which
you can see the results of in the output above. That print just
is still sitting in my queue, "Processing.")
>From /var/log/messages:
Dec 10 08:43:55 sundevil kernel: printer.c: usblp0: nonzero read/write bulk status received: -2
Dec 10 08:44:40 sundevil python: hpssd [WARN] HistoryQuery failed: Initializing...
Dec 10 08:47:36 sundevil python: hpssd [WARN] No GUI available. (16)
Any ideas? Please? :)
Reply to: