hplip 'unable to connect to dbus session bus' & 'no devices found' and USBDEVFS_CONTROL problem on plugging in prntr

Bug #277295 reported by Amorphous

This bug report was converted into a question: question #51821: hplip 'unable to connect to dbus session bus' & 'no devices found' and USBDEVFS_CONTROL problem on plugging in prntr.

2
Affects Status Importance Assigned to Milestone
HPLIP
Invalid
Undecided
Unassigned

Bug Description

I'm on a dual core machine running 8.04(64bit) and am having problems with a HP P1005 printer connected via usb.

The printer has been working fine for a few days (it's a new install) but has stopped printing.
This is the second time. I went through loads of howto's bug reports etc to get it working and eventually it started printing again. Part of what I did was to remove all the files in:

          /usrshare/hplip/data/plugins/
          /usrshare/hplip/data/firmware/
          /usrshare/hplip/prnt/plugins/

& restart.

the printer worked again, but I had been so disorganised I'm not sure what all the other things were I had done (although I'd been round & round 100's of times doing them... flatspin sorry :(

Here's what may be some useful info:

[code]
amorphous@fino-1:~$ lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 004: ID 03f0:3d17 Hewlett-Packard
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

amorphous@fino-1:~$ hp-check

HP Linux Imaging and Printing System (ver. 2.8.7)
Dependency/Version Check Utility ver. 14.0

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

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

Basic system information:
Linux fino-1 2.6.24-19-generic #1 SMP Wed Aug 20 17:53:40 UTC 2008 x86_64 GNU/Linux

Distribution:
ubuntu 8.04

HPOJ running?
No, HPOJ is not running (OK).

Checking Python version...
OK, version 2.5.2 installed

Checking PyQt version...
OK, version 3.17 installed.

Checking SIP version...
error: SIP not installed or version not found.

Checking for CUPS...
Status: scheduler is running
Version: 1.3.7
error_log is set to level: warn
note: For troubleshooting printing issues, it is best to have the CUPS 'LogLevel'
note: set to 'debug'. To set the LogLevel to debug, edit the file /etc/cups/cupsd.conf (as root),
note: and change the line near the top of the file that begins with 'LogLevel' to read:
note: LogLevel debug
note: Save the file and then restart CUPS (see your OS/distro docs on how to restart CUPS).
note: Now, when you print, helpful debug information will be saved to the file:
note: /var/log/cups/error_log
note: You can monitor this file by running this command in a console/shell:
note: tail -f /var/log/cups/error_log

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

------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

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

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

Checking for dependency: cups-devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: dbus - Message bus system...
OK, found.

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

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

Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.

Checking for dependency: libjpeg - JPEG library...
OK, found.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
OK, found.

Checking for dependency: libpthread - POSIX threads library...
OK, found.

Checking for dependency: libtool - Library building support services...
OK, found.

Checking for dependency: libusb - USB library...
OK, found.

Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.

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

Checking for dependency: ppdev - Parallel port support kernel module....
OK, found.

Checking for dependency: PyQt - Qt interface for Python...
OK, found.

Checking for dependency: python-ctypes - A foreign function library for Python...
OK, found.

Checking for dependency: python-dbus - Python bindings for dbus...
OK, found.

Checking for dependency: python-devel - Python development files...
OK, found.

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

Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.

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

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

Checking for dependency: SANE - Scanning library development files...
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:
sudo apt-get install --yes --force-yes xsane

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

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

Current contents of '/etc/hp/hplip.conf' file:
[dirs]
run = /var/run
cupsbackend = /usr/lib/cups/backend
ppd = /usr/share/ppd/hpijs/HP
doc = /usr/share/doc/hplip-2.8.7
drv = /usr/share/cups/drv/hp/
ppdbase = /usr/share/ppd/hpijs
home = /usr/share/hplip
icon = /usr/share/applications
cupsfilter = /usr/lib/cups/filter

[hplip]
version = 2.8.7
plugin = 1

[configure]
foomatic-rip-hplip-install = yes
doc-build = yes
cups11-build = no
gui-build = yes
internal-tag = 2.8.7.3
foomatic-ppd-install = no
network-build = yes
pp-build = no
fax-build = no
scanner-build = yes
restricted-build = no
dbus-build = no
shadow-build = no
foomatic-drv-install = yes

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

No devices found.

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

HP_LaserJet_P1005
-----------------
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/usb/HP_LaserJet_P1005?serial=BC0GCGP
PPD: /etc/cups/ppd/HP_LaserJet_P1005.ppd
PPD Description: HP LaserJet P1005 Foomatic/hpijs-ZJS (recommended)
Printer status: printer HP_LaserJet_P1005 is idle. enabled since Thu 02 Oct 2008 19:33:42 BST
error: Unable to connect to dbus session bus.
error: Required plug-in status: Not installed
Communication status: Good

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

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

Checking output of 'scanimage -L'...

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

---------------------
| 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 0x3d17 at 002:004:
    Device URI: hp:/usb/HP_LaserJet_P1005?serial=BC0GCGP
    Device node: /dev/bus/usb/002/004
    Mode: 0666
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/002/004
# owner: root
# group: lp
user::rw-
user:manager:rw-
group::rw-
mask::rw-
other::rw-

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

error: 3 errors and/or warnings.

Summary of needed commands to run to satisfy missing dependencies:
sudo apt-get install --yes --force-yes xsane

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

Done.

HP Linux Imaging and Printing System (ver. 2.8.7)
Printer/Fax Setup Utility ver. 7.2

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

error: You must be root to run this utility.
amorphous@fino-1:~$ sudo hp-setup
[sudo] password for amorphous:

HP Linux Imaging and Printing System (ver. 2.8.7)
Printer/Fax Setup Utility ver. 7.2

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

^[Oerror: No devices found. Please make sure your printer is properly connected and powered-on.
\
Done.

...in the gui it said 'no devices found', so i went for 'manually' & entered the printers bus:device #

amorphous@fino-1:~$ hp-toolbox

HP Linux Imaging and Printing System (ver. 2.8.7)
HP Device Manager ver. 14.0

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

error: Unable to connect to dbus session bus. Exiting.
Killed

[/code]

... can't get this to run :(

I read somewhere that this could have to do with 2 lots of firmware, i had firmware from foo2xjx homepage (from linuxprinting) and later from hp-setup itself. the later is the one that seemed to work, but now, 2 days later... printer has stopped again & these are the same symptoms as before.

is this a bug? the system is pretty much default.

Also - and i dont know if this is relevant, the machine keeps losing the ability to resolve site names online ie google etc... reason i mention it is because it's happened both times the printer gave up.

hopeful,

M.

in addition, after having rebooted the printer, dmesg gives me...

amorphous@fino-1:~$ dmesg |tail
[28287.332193] ppdev0: unregistered pardevice
[28287.617946] ppdev0: registered pardevice
[28287.666157] ppdev0: unregistered pardevice
[28327.089432] audit(1223027116.831:23): type=1503 operation="file_lock" requested_mask="wk::" denied_mask="k::" name="/var/cache/cups/help.index" pid=15629 profile="/usr/sbin/cupsd" namespace="default"
[29273.197018] usb 2-2: USB disconnect, address 5
[29322.581547] usb 2-2: new high speed USB device using ehci_hcd and address 6
[29322.733423] usb 2-2: configuration #1 chosen from 1 choice
[29322.736362] usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x03F0 pid 0x3D17
[29328.078539] usb 2-2: usbfs: USBDEVFS_CONTROL failed cmd python rqt 128 rq 6 len 255 ret -110
[29333.075850] usb 2-2: usbfs: USBDEVFS_CONTROL failed cmd python rqt 128 rq 6 len 255 ret -110

I'm sorry to have to admit that I have no idea what this means, but post it out of relevance from the fact that it's when I plug the printer in & it's failed.

ALSO - I have the same symptoms as bug#210738 https://bugs.launchpad.net/ubuntu/+source/system-config-printer/+bug/210738 but no stackless python.

Amorphous (amorphous)
description: updated
Amorphous (amorphous)
description: updated
Revision history for this message
Amorphous (amorphous) wrote :

With regards to the dbus error, I'm also having issues with epiphany browser having problems with dbus sessions.

Could this be caused by the Gnome bug http://bugzilla.gnome.org/show_bug.cgi?id=395488 ?

Im checking it out, but thought I'd get it down here in the name of trying to learn to do it so you guys know where I'm headed & in case i dont do it later and it dissapears into the ether - after all, it could save some messing about later (i live in hope that one day I will supply something useful to someone...)

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) wrote :

Converting to question.

Aaron

Changed in hplip:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.