HP Linux Imaging and Printing

LaserJet 3330, Debian Testing: error: Device busy

Asked by Yigal on 2009-08-19

I've installed the latest hplip 3.9.8 (automatic installation).
After re-plugin the printer, hp-setup recognized it but on next step there was "communication error". On Windows (I have dual boot) printer works normally.
I runned hp-setup, steps 2 and 3 taked long time, but finally the printer was added. But it's status is "busy":

HP Linux Imaging and Printing System (ver. 3.9.8)
HP Device Manager ver. 15.0

Copyright (c) 2001-9 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.

Xlib: extension "RANDR" missing on display ":0.0".
error: Device busy: hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W
error: Unable to open device hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W.

There is hp-check info:
Desktop$ hp-check -r

HP Linux Imaging and Printing System (ver. 3.9.8)
Dependency/Version Check Utility ver. 14.3

Copyright (c) 2001-9 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: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine
if the proper dependencies are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built
HPLIP supplied tarball has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and
run-time dependencies).

Saving output in log file: hp-check.log

Initializing. Please wait...
-Xlib: extension "RANDR" missing on display ":0.0".

---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux yigal 2.6.30-1-686 #1 SMP Mon Aug 3 16:18:30 UTC 2009 i686 GNU/Linux

Distribution:
debian testing

Checking Python version...
OK, version 2.5.4 installed

Checking PyQt 4.x version...
OK, version 4.4.4 installed.

Checking for CUPS...
Status: scheduler is running
Version: 1.3.11
error_log is set to level: warn

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.0

------------------------
| RUNTIME DEPENDENCIES |
------------------------

Checking for dependency: CUPS - Common Unix Printing System...
OK, found.

Checking for dependency: CUPS DDK - CUPS driver development kit...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
OK, found.

Checking for dependency: PolicyKit - Administrative policy framework...
OK, found.

Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
OK, found.

Checking for dependency: Python DBus - Python bindings for DBus...
OK, found.

Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...
OK, found.

Checking for dependency: Python XML libraries...
OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.

Checking for dependency: Reportlab - PDF library for Python...
OK, found.

Checking for dependency: SANE - Scanning library...
OK, found.

Checking for dependency: scanimage - Shell scanning program...
OK, found.

Checking for dependency: xsane - Graphical scanner frontend for SANE...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
To install this dependency, execute this command:
su -c "apt-get install --force-yes -y sane"

----------------------
| HPLIP INSTALLATION |
----------------------

Currently installed HPLIP version...
HPLIP 3.9.8 currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.9.8

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.9.8
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=no
cups-ppd-install=yes
internal-tag=3.9.8.36
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=no

Current contents of '/var/lib/hp/hplip.state' file:
# hplip.state - HPLIP runtime persistent variables.

[plugin]
installed=0
eula=0

Current contents of '~/.hplip/hplip.conf' file:
[last_used]
printer_name = HP_LaserJet_3330_USB_00SGL35C0X9W_HPLIP
working_dir = .
device_uri = "hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W"

[commands]
scan = /usr/bin/xsane -V %SANE_URI%

[installation]
version = 3.9.8.36
date_time = 08/19/2009 10:22:09

[settings]
systray_messages = 0
systray_visible = 0

[fax]
email_address =
voice_phone =

[refresh]
rate = 30
enable = true
type = 1

[polling]
enable = false
device_list =
interval = 5

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

  Device URI Model
  -------------------------------------------- --------------------------
  hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W HP LaserJet 3330

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

HP_LaserJet_3330
----------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W
PPD: /etc/cups/ppd/HP_LaserJet_3330.ppd
PPD Description: HP LaserJet 3330, hpcups 3.9.8.36
Printer Processing page 1...aserJet_3330 is idle. enabled since Wed 19 Aug 2009 10:21:40 AM IDT
error: Device busy: hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W
error: Device not found
error: Communication status: Failed

HP_LaserJet_3330_fax
--------------------
Type: Fax
Device URI: hpfax:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W
PPD: /etc/cups/ppd/HP_LaserJet_3330_fax.ppd
PPD Description: HP Fax hpcups
Printer status: printer HP_LaserJet_3330_fax is idle. enabled since Wed 19 Aug 2009 10:19:00 AM IDT
error: Device busy: hpfax:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W
error: Device not found
error: Communication status: Failed

----------------------
| SANE CONFIGURATION |
----------------------

'hpaio' in '/etc/sane.d/dll.conf'...
OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...
device `hpaio:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W' is a Hewlett-Packard HP_LaserJet_3330 all-in-one

---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.

Checking 'pcardext' Photocard extension...
OK, found.

Checking 'hpmudext' I/O extension...
OK, found.

Checking 'scanext' SANE scanning extension...
OK, found.

-----------------
| USB I/O SETUP |
-----------------

Checking for permissions of USB attached printers...

HP Device 0x917 at 006:005:
    Device URI: hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W
    Device node: /dev/bus/usb/006/005
    Mode: 0664
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/006/005
# owner: lp
# group: lp
user::rw-
user:yigal:rw-
group::rw-
mask::rw-
other::r--

---------------
| USER GROUPS |
---------------

yigal adm lp dialout fax cdrom floppy audio video plugdev netdev lpadmin powerdev scanner vboxusers

-----------
| SUMMARY |
-----------

error: 3 errors and/or warnings.

Summary of needed commands to run to satisfy missing dependencies:
su -c "apt-get install --force-yes -y sane"

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html

Done.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Yigal
Solved:
2009-09-01
Last query:
2009-09-01
Last reply:
2009-08-30

Run:

/usr/lib/cups/backend/hp

and

su
tail -f /var/log/syslog

and hp-info

and post the output from all three commands.

Thanks!

Aaron

Yigal (yigala) said : #2

Hi, here it is:

xxxxx$ /usr/lib/cups/backend/hp
direct hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W "HP LaserJet 3330" "HP LaserJet 3330 USB 00SGL35C0X9W HPLIP" "MFG:Hewlett-Packard;MDL:HP LaserJet 3330;CLS:PRINTER;DES:HP LaserJet 3330;SN:00SGL35C0X9W;"

xxxxx$tail -f /var/log/syslog
Aug 20 07:40:01 xxxxx anacron[4554]: Normal exit (1 job run)
Aug 20 07:49:38 xxxxx dhclient: DHCPREQUEST on eth0 to 132.64.102.16 port 67
Aug 20 07:49:38 xxxxx dhclient: DHCPACK from 132.64.102.16
Aug 20 07:49:38 xxxxx dhclient: bound to 132.64.102.9 -- renewal in 3241 seconds.
Aug 20 08:00:01 xxxxx /USR/SBIN/CRON[5123]: (root) CMD (ntpdate-debian)
Aug 20 08:17:01 xxxxx /USR/SBIN/CRON[5226]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Aug 20 08:42:52 xxxxx -- MARK --
Aug 20 08:43:39 xxxxx dhclient: DHCPREQUEST on eth0 to 132.64.102.16 port 67
Aug 20 08:43:39 xxxxx dhclient: DHCPACK from 132.64.102.16
Aug 20 08:43:39 xxxxx dhclient: bound to 132.64.102.9 -- renewal in 3215 seconds.

xxxxx$ hp-info

HP Linux Imaging and Printing System (ver. 3.9.8)
Device Information Utility ver. 5.2

Copyright (c) 2001-9 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.

Using device: hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W

Xlib: extension "RANDR" missing on display ":0.0".

HP Linux Imaging and Printing System (ver. 3.9.8)
System Tray Status Service ver. 2.0

Copyright (c) 2001-9 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.

Xlib: extension "RANDR" missing on display ":0.0".
error: Device busy: hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W
error: Unable to open device hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W.

Done.

Okay lets try running:

hp-info -i

and post that output.

Aaron

Yigal (yigala) said : #4

Hi, here it is:

$ hp-info -i

HP Linux Imaging and Printing System (ver. 3.9.8)
Device Information Utility ver. 5.2

Copyright (c) 2001-9 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.

Using device: hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W

HP Linux Imaging and Printing System (ver. 3.9.8)
System Tray Status Service ver. 2.0

Copyright (c) 2001-9 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.

warning: Unable to connect to dbus. Is hp-systray running?

hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W

error: Device busy: hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W
error: Error opening device (Device not found).
Device Parameters (dynamic data):
  Parameter Value(s)
  ---------------------------- ----------------------------------------------------------
  back-end hp
  cups-printers HP_LaserJet_3330
  cups-uri hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W
  dev-file
  device-state -1
  device-uri hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W
  deviceid
  error-state 101
  fax-uri hpfax:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W
  host
  is-hp True
  panel 0
  panel-line1
  panel-line2
  port 1
  scan-uri hpaio:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W
  serial 00SGL35C0X9W
  status-code 5002
  status-desc

Model Parameters (static data):
  Parameter Value(s)
  ---------------------------- ----------------------------------------------------------
  align-type 0
  clean-type 0
  color-cal-type 0
  copy-type 1
  embedded-server-type 1
  fax-type 1
  fw-download False
  icon HP_LaserJet_3300_3310_3320.png
  io-mfp-mode 3
  io-mode 1
  io-support 2
  job-storage 0
  linefeed-cal-type 0
  model HP_LaserJet_3330
  model-ui HP LaserJet 3330
  model1 HP LaserJet 3330 Multifunction Printer
  monitor-type 0
  panel-check-type 1
  pcard-type 0
  plugin 0
  plugin-reason 0
  power-settings 0
  pq-diag-type 0
  r-type 0
  r0-agent1-kind 4
  r0-agent1-sku C7115A/C7115X
  r0-agent1-type 1
  scan-style 1
  scan-type 2
  status-battery-check 0
  status-dynamic-counters 0
  status-type 9
  support-released True
  support-subtype 0
  support-type 2
  support-ver 0.9.5
  tech-class ['LJMono']
  tech-subclass ['Normal']
  tech-type 3
  usb-pid 2327
  usb-vid 1008
  wifi-config 0

Done.

Okay lets try one more:

hp-info -ig

thanks!

A

Yigal (yigala) said : #6

OK,

$ hp-info -ig

HP Linux Imaging and Printing System (ver. 3.9.8)
Device Information Utility ver. 5.2

Copyright (c) 2001-9 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.

hp-info[25566]: debug: getDeviceUri(None, None, ('hp',), None, , True)
hp-info[25566]: debug: Mode=0
hp-info[25566]: debug: hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W: back_end:hp is_hp:True bus:usb model:HP_LaserJet_3330 serial:00SGL35C0X9W dev_file: host: zc: port:1
hp-info[25566]: debug: Cache miss: hp_laserjet_3330
hp-info[25566]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-info[25566]: debug: Searching for section [hp_laserjet_3330] in file /usr/share/hplip/data/models/models.dat
hp-info[25566]: debug: Found section [hp_laserjet_3330] in file /usr/share/hplip/data/models/models.dat
hp-info[25566]: debug: {'hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W': ['HP_LaserJet_3330']}
Using device: hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W

hp-info[25566]: debug: Device URI: hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W
hp-info[25566]: debug: Printer: None
hp-info[25566]: debug: Connecting to com.hplip.StatusService (try #1)...
hp-info[25566]: debug: Running hp-systray: /usr/bin/hp-systray --force-startup
hp-info[25566]: debug: Waiting for hp-systray to start...

HP Linux Imaging and Printing System (ver. 3.9.8)
System Tray Status Service ver. 2.0

Copyright (c) 2001-9 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.

Xlib: extension "RANDR" missing on display ":0.0".
hp-info[25566]: debug: Connecting to com.hplip.StatusService (try #2)...
hp-info[25566]: debug: Connected.
hp-info[25566]: debug: hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W: back_end:hp is_hp:True bus:usb model:HP_LaserJet_3330 serial:00SGL35C0X9W dev_file: host: zc: port:1
hp-info[25566]: debug: URI: backend=hp, is_hp=True, bus=usb, model=HP_LaserJet_3330, serial=00SGL35C0X9W, dev=, host=, port=1
hp-info[25566]: debug: Model/UI model: HP_LaserJet_3330/HP LaserJet 3330
hp-info[25566]: debug: hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W: back_end:hp is_hp:True bus:usb model:HP_LaserJet_3330 serial:00SGL35C0X9W dev_file: host: zc: port:1
hp-info[25566]: debug: Re-reading CUPS printer queue information.

hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W

hp-info[25566]: debug: Opening device: hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W (not for printing)
hp-info[25566]: debug: I/O mode=3
hp-info[25566]: debug: Sending event 5021 to hpssd...
error: Device busy: hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W
hp-info[25566]: debug: Exception: 2 (Device not found)
error: Error opening device (Device not found).
Device Parameters (dynamic data):
  Parameter Value(s)
  ---------------------------- ----------------------------------------------------------
  back-end hp
  cups-printers HP_LaserJet_3330
  cups-uri hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W
  dev-file
  device-state -1
  device-uri hp:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W
  deviceid
  error-state 101
  fax-uri hpfax:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W
  host
  is-hp True
  panel 0
  panel-line1
  panel-line2
  port 1
  scan-uri hpaio:/usb/HP_LaserJet_3330?serial=00SGL35C0X9W
  serial 00SGL35C0X9W
  status-code 5002
  status-desc

Model Parameters (static data):
  Parameter Value(s)
  ---------------------------- ----------------------------------------------------------
  align-type 0
  clean-type 0
  color-cal-type 0
  copy-type 1
  embedded-server-type 1
  fax-type 1
  fw-download False
  icon HP_LaserJet_3300_3310_3320.png
  io-mfp-mode 3
  io-mode 1
  io-support 2
  job-storage 0
  linefeed-cal-type 0
  model HP_LaserJet_3330
  model-ui HP LaserJet 3330
  model1 HP LaserJet 3330 Multifunction Printer
  monitor-type 0
  panel-check-type 1
  pcard-type 0
  plugin 0
  plugin-reason 0
  power-settings 0
  pq-diag-type 0
  r-type 0
  r0-agent1-kind 4
  r0-agent1-sku C7115A/C7115X
  r0-agent1-type 1
  scan-style 1
  scan-type 2
  status-battery-check 0
  status-dynamic-counters 0
  status-type 9
  support-released True
  support-subtype 0
  support-type 2
  support-ver 0.9.5
  tech-class ['LJMono']
  tech-subclass ['Normal']
  tech-type 3
  usb-pid 2327
  usb-vid 1008
  wifi-config 0

Status History (most recent first):
  Date/Time Code Status Description User Job ID
  -------------------- ----- ---------------------------------------- -------- --------
  08/28/09 10:44:24 5021 Device is busy xxxxx 0

Done.

Yigal

It still says the device is busy. Is the device in an error state? If not try power cycling the printer. If that still doesn't work try the printer on a windows system and make sure that the printer is working correctly.

Thanks.

Aaron

Yigal (yigala) said : #8

It was really stupid issue:
I'm running VirtualBox (with virtual Windows machine) and the printer was connected (as USB device) to the virtual Windows machine.
When I disconnected the printer from VirtualBox, it started to work properly.
Sorry for the mess,
Yigal