HPLIP not printing, musb.c errors

Bug #600262 reported by Zero Nullity
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

distro: slackware-current
kernel: 2.6.34-smp stable
printer: HP Deskjet 5440 USB

HPLIP installs fine.
Printer is detected fine.
Printer is stuck in spool trying to print with no errors except the following...

In the /var/log/syslog

Jun 28 17:57:16 Raptor hp[2857]: io/hpmud/musb.c 1424: unable to write data hp:/usb/Deskjet_5400_series?serial=TH5741409H047N: Success
Jun 28 17:57:16 Raptor kernel: [ 288.630096] usb 1-4: BOGUS urb flags, 1 --> 0
Jun 28 17:57:16 Raptor hp[2857]: io/hpmud/musb.c 1040: bulk_write failed buf=0xbfcc1f3c size=8192 len=-5: Success

In /var/log/debug

 Raptor kernel: [ 299.409302] usb 1-4: usbfs: usb_submit_urb returned -22

All msgs in both logs files appear to repeat themselves about 30 times or more a second until cupsd is killed.

As far as cups error log /var/log/cups/error_log no problems relating to this issue that I can find.

E [29/Jun/2010:21:07:23 -0500] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
E [30/Jun/2010:03:33:29 -0500] Unable to open listen socket for address :::631 - Address family not supported by protocol.
D [28/Jun/2010:17:57:45 -0500] [Job 202] cups_get_matrix(0x9e1d88c, 0xa14bbf0)
D [28/Jun/2010:17:57:45 -0500] [Job 202] Portrait matrix: XX=+1 XY=0 YX=0 YY=-1
D [28/Jun/2010:17:57:45 -0500] [Job 202] width = 4950, height = 6450
D [28/Jun/2010:17:57:45 -0500] [Job 202] PageSize = [ 612 792 ], HWResolution = [ 600 600 ]
D [28/Jun/2010:17:57:45 -0500] [Job 202] HWMargins = [ 9.000 9.000 9.000 9.000 ]
D [28/Jun/2010:17:57:45 -0500] [Job 202] matrix = [ 8.333 0.000 0.000 -8.333 -75.000 6525.000 ]

Previous kernel versions prior to 2.6.33.5 seem to work fine. Did a side by side comparison of kernel .config files couldn't find any differences that would cause this? No other changes in the operating system... 2.6.33.4 works... 2.6.33.5 doesn't, 2.6.34 doesn't. I'm hoping it's some simple .config issue over looked... but I'm clueless on what it could be. Tried disabling usblp, had no change at all.

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

Basic system information:
Linux Raptor 2.6.34 #4 SMP PREEMPT Tue Jun 29 13:19:00 CDT 2010 i686 Intel(R) Xeon(TM) MP CPU 2.70GHz GenuineIntel GNU/Linux

Distribution:
unknown 0.0

Checking Python version...
OK, version 2.6.4 installed

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

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

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

------------------------------------
| 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 devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: CUPS image - CUPS image 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: 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 devel - Python development files...
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: 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...
OK, found.

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

Currently installed HPLIP version...
HPLIP 3.10.5 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.10.5

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.10.5
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.10.4.16
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=no
hpcups-only-build=no
hpijs-only-build=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:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.10.5

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.10.5
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.10.4.16
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=no
hpcups-only-build=no
hpijs-only-build=no

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

  Device URI Model
  -------------------------------- ----------------------
  hp:/usb/Deskjet_5400_series?seri HP Deskjet 5400 series
  al=TH5741409H047N

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

Deskjet_5400
------------
Type: Printer
Device URI: hp:/usb/Deskjet_5400_series?serial=TH5741409H047N
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 0x8604 at 001:003:
    Device URI: hp:/usb/Deskjet_5400_series?serial=TH5741409H047N
    Device node: /dev/bus/usb/001/003
    Mode: 0660
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/001/003
# owner: root
# group: lp
user::rw-
group::rw-
other::---

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

root bin daemon sys adm disk wheel floppy audio video cdrom tape plugdev

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

No errors or warnings.

Revision history for this message
Zero Nullity (zeronullity) wrote :

I also wanted to say I already tried chmod 666 to /dev/bus/usb/001 etc... And added lp group to /etc/cups/cupsd.conf - When I added lp to cupsd.conf - instead of being stuck in spooling it said hp back end error... something like /usr/bin/hp or w/e defiantly the hp bin file. Security model change in the kernel? Or hp backend code?

Revision history for this message
Zero Nullity (zeronullity) wrote :

I've got a feeling it has something to do with CONFIG_DEFAULT_SECURITY_DAC in the kernel & USB / ACLs ... I've yet to pinpoint the problem. I tried to tmp disable DAC in the kernel but it wouldn't let me. This problem showed up when the CONFIG_DEFAULT_SECURITY_DAC option showed up in the kernel don't know if they are related yet.

Revision history for this message
Zero Nullity (zeronullity) wrote :

Problem is still occurring with the latest kernel 2.6.34.1 & the latest HPLIP driver 3.10.6 also using the current CUPSD version 1.4.4 - Recompiled the kernel to a minimum of options, still no go I'm using OHCI host driver... on what use to be a $15k HP SMP server =) All other USB devices are working correctly as far as I can tell. Any help what so ever would be greatly appreciated.

Revision history for this message
Suma Byrappa (suma-byrappa) wrote :

Hi Derrick,

Could you please confirm if HPLIP driver 3.10.2 worked fine for you on Kernel 2.6.34.1 - this is if you are seeing this problem only from HPLIP 3.10.5.

Thanks,
Suma

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.