7.10 /usr/lib/cups/backend/hal failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hal-cups-utils (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: hal-cups-utils
Hi!
My Printer worked fine unter Ubuntu 6.10 and afterwards with debian, but the new automatic detection with hal seems to have some bugs.
Printer is a Kyocera FS-1010, is correctly automatically detected and is listed in cups:
Beschreibung: Kyocera FS-1010
Ort: Local Printer
Marke und Modell: Kyocera FS-1010 - CUPS+Gutenprint v5.0.1
Druckerstatus: frei, Aufträge akzeptieren, publiziert.
Geräte URI: hal:///
But when i try to print anything, cups shows /usr/lib/
And the only message in the cups error log regarding this is:
[Job 19] Backend returned status 1 (failed)
I tried to uninstall the cups-hal package, but then the printer is not recognized any more.
Does anyone know how to fix this?
I also had some error messages in the auth.log, but after i disabled apparmour and SELinux, they are gone, but i still get this message.
Best regards
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Till Kamppeter (till-kamppeter) wrote : | #1 |
Changed in hal-cups-utils: | |
status: | New → Incomplete |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
n0body (teddy-jordanj) wrote : | #2 |
root@desktop:~# usb_printerid /dev/usblp0
GET_DEVICE_ID string:
MFG:Canon;
root@desktop:~# usb_printerid /dev/usblp1
GET_DEVICE_ID string:
ID:FS-1010;
root@desktop:~# usb_printerid /dev/usblp2
Error: No such file or directory: can't open '/dev/usblp2'
root@desktop:~# lsusb -vvv
Bus 007 Device 004: ID 04a9:1717 Canon, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x04a9 Canon, Inc.
idProduct 0x1717
bcdDevice 1.02
iManufacturer 1 Canon
iProduct 2 MP510
iSerial 3 119771
bNumConfigura
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 85
bNumInterfaces 3
bConfigurat
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescript
bInterfac
bAlternat
bNumEndpoints 3
bInterfac
bInterfac
bInterfac
iInterface 0
Endpoint Descriptor:
bLength 7
Transfer Type Bulk
Synch Type None
Usage Type Data
bInterval 0
Endpoint Descriptor:
bLength 7
Transfer Type Bulk
Synch Type None
Usage Type Data
bInterval 0
Endpoint Descriptor:
bLength 7
Transfer Type Interrupt
Synch Type None
Usage Type Data
bInterval 11
Interface Descriptor:
bLength 9
bDescript
bInterfac
bAlternat
bNumEndpoints 2
bInterfac
bInterfac
bInterfac
iInterface 0
Endpoint Descriptor:
bLength 7
bDesc...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
n0body (teddy-jordanj) wrote : | #3 |
BTW, in daemon.log:
Dec 6 23:31:36 desktop NetworkManager: <debug> [1196980296.156671] nm_hal_devic
e_added(): New device added (hal udi is '/org/freedeskt
_4a9_1717_119771').
Dec 6 23:31:36 desktop NetworkManager: <debug> [1196980296.205586] nm_hal_devic
e_added(): New device added (hal udi is '/org/freedeskt
_4a9_1717_
Dec 6 23:31:36 desktop NetworkManager: <debug> [1196980296.230034] nm_hal_devic
e_added(): New device added (hal udi is '/org/freedeskt
_4a9_1717_
Dec 6 23:31:36 desktop NetworkManager: <debug> [1196980296.241040] nm_hal_devic
e_added(): New device added (hal udi is '/org/freedeskt
_4a9_1717_
Dec 6 23:31:36 desktop NetworkManager: <debug> [1196980296.285005] nm_hal_devic
e_added(): New device added (hal udi is '/org/freedeskt
_4a9_1717_
Dec 6 23:31:36 desktop hal_lpadmin: add
Dec 6 23:31:36 desktop hal_lpadmin: URIs: ['usb:/
edesktop/
Dec 6 23:31:36 desktop hal_lpadmin: HPLIP Fax URIs: None
Dec 6 23:31:36 desktop hal_lpadmin: Calling GetReady
Dec 6 23:31:41 desktop NetworkManager: <debug> [1196980301.305889] nm_hal_
Dec 6 23:31:41 desktop NetworkManager: <debug> [1196980301.306937] nm_hal_
Dec 6 23:31:41 desktop NetworkManager: <debug> [1196980301.335447] nm_hal_
Dec 6 23:31:41 desktop NetworkManager: <debug> [1196980301.342669] nm_hal_
Dec 6 23:31:42 desktop hal_lpadmin: Device ID: MFG:Canon;
Dec 6 23:31:43 desktop hal_lpadmin: PPD: gutenprint.
Dec 6 23:31:43 desktop hal_lpadmin: Added printer MP510
Dec 6 23:31:43 desktop NetworkManager: <debug> [1196980303.383453] nm_hal_
Dec 6 23:31:47 desktop NetworkManager: <debug> [1196980307.173104] nm_hal_
Dec 6 23:31:47 desktop NetworkManager: <debug> [1196980307.211975] nm_hal_
Dec 6 23:31:47 desktop NetworkManager: <debug> [1196980307.232916] nm_hal_
Dec 6 23:31:47 desktop hal_lpadmin: add
Dec 6 23:31:47 desktop hal_l...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
cyracks (launchpad-afna) wrote : | #4 |
I have the exact same problem...
$sudo lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 007: ID 045e:00db Microsoft Corp.
Bus 001 Device 008: ID 046d:c00e Logitech, Inc. M-BJ69 Optical Wheel Mouse
Bus 001 Device 006: ID 04b8:0802 Seiko Epson Corp. Stylus CX3200
$ sudo usb_printerid /dev/usblp0
GET_DEVICE_ID string:
MFG:EPSON;
$ sudo usb_printerid /dev/usblp1
Error: No such file or directory: can't open '/dev/usblp1'
$ sudo usb_printerid /dev/usblp2
Error: No such file or directory: can't open '/dev/usblp2'
$ sudo lsusb -vvv
Bus 002 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 1 Single TT
bMaxPacketSize0 64
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.22-14-generic ehci_hcd
iProduct 2 EHCI Host Controller
iSerial 1 0000:00:02.1
bNumConfigura
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurat
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescript
bInterfac
bAlternat
bNumEndpoints 1
bInterfac
bInterfac
bInterfac
iInterface 0
Endpoint Descriptor:
bLength 7
Transfer Type Interrupt
Synch Type None
Usage Type Data
bInterval 12
Hub Descriptor:
bLength 11
bDescriptorType 41
nNbrPorts 10
wHubCharacter
No power switching (usb 1.0)
Per-port overcurrent protection
TT think time 8 FS bits
bPwrOn2PwrGood 10 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00 0x00
PortPwrCtrlMask 0xff 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Port 3: 0000.0100 power
Port 4: 0000.0100 power
Port 5: 0000.0100 power
Port 6: 0000.0100 power
Port 7: 0000.0100 power
Port 8: 0000.0100 power
Port 9: 0000.0100 power
Port 10: 0000.0100 power
Device Status: 0x0003
Self Powered
Remote Wakeup Enabled
Bus 001 Device 009: ID 04b8:0802 Seiko Epson Corp. Stylus CX3200
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
bodescu (bodescu2004) wrote : | #5 |
Same problem here with a Lexmark x1100 series; worked fine on Breezy and dapper, no way to run in Gutsy.
bodescu@
Bus 002 Device 006: ID 043d:007b Lexmark International, Inc.
Bus 002 Device 005: ID 043d:007c Lexmark International, Inc.
Bus 002 Device 004: ID 058f:9254 Alcor Micro Corp. Hub
Bus 002 Device 003: ID 093a:2460 Pixart Imaging, Inc.
Bus 002 Device 002: ID 043d:007a Lexmark International, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 054c:01bd Sony Corp.
sudo usb_printerid /dev/usblp0
GET_DEVICE_ID string:
MFG:Lexmark ;CMD:CPDNPA001;
sudo lsusb -vvv |more
Bus 002 Device 006: ID 043d:007b Lexmark International, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x043d Lexmark International, Inc.
idProduct 0x007b
bcdDevice 1.00
iManufacturer 1 Lexmark
iProduct 2 Lexmark X1100 Series
iSerial 3 2395419
bNumConfigura
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurat
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 4mA
Interface Descriptor:
bLength 9
bDescript
bInterfac
bAlternat
bNumEndpoints 2
bInterfac
bInterfac
bInterfac
iInterface 0
Endpoint Descriptor:
bLength 7
Transfer Type Bulk
Synch Type None
Usage Type Data
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
Transfer Type Bulk
Synch Type None
Usage Type Data
bInterval 0
Device Status: 0x0001
Self Powered
Bus 002 Device 005: ID 043d:007c Lexmark International, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x043d Lexmark International, Inc.
idProduct 0x007c
bcdDevice 1.00
iManufacturer 1 Lexmark
iProduct 2 X1100 Series
iSerial ...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
mark (mt4167) wrote : | #6 |
I'm having similar problems.
Printer: Brother HL-5150D
OS: Fresh install of kubuntu 7.10 from the "alternative" disc (text install method) - as downloaded 2008-02-09.
I'm getting various problems - they seem to be permission related.
The problem goes away when I do the following:
# cd dev
# chmod 777 usb* usb/*
I can now print. I was unable to add the printer until I did this.
As soon as I reboot, the problem returns. The problem must be with hal/dbus setting the permissions wrong, and I'm sure I can fix it with a bit more effort. I'm reporting this as a bug because it's a fresh install, so I assume its not something I've done
Thanks,
Mark
Versions of CUPS programs installed:
ii cups-pdf 2.4.6-3ubuntu10 PDF printer for CUPS
ii cupsys 1.3.2-1ubuntu7.5 Common UNIX Printing System(tm) - server
ii cupsys-bsd 1.3.2-1ubuntu7.5 Common UNIX Printing System(tm) - BSD comman
ii cupsys-client 1.3.2-1ubuntu7.5 Common UNIX Printing System(tm) - client pro
ii cupsys-common 1.3.2-1ubuntu7.5 Common UNIX Printing System(tm) - common fil
ii cupsys-
ii gnome-cups-manager 0.31-3ubuntu5 CUPS printer admin tool for GNOME
ii hal-cups-utils 0.6.13+
ii libcupsimage2 1.3.2-1ubuntu7.5 Common UNIX Printing System(tm) - image libs
ii libcupsys2 1.3.2-1ubuntu7.5 Common UNIX Printing System(tm) - libs
ii libgnomecups1.0-1 0.2.2-5ubuntu1 GNOME library for CUPS interaction
ii libgnomecupsui1
ii python-cups 1.9.27-0ubuntu1 Python bindings for CUPS
ii hal 0.5.9.1-6ubuntu5 Hardware Abstraction Layer
ii hal-info 20070618-1ubuntu3 Hardware Abstraction Layer - fdi files
ii libhal-storage1 0.5.9.1-6ubuntu5 Hardware Abstraction Layer - shared library
ii libhal1 0.5.9.1-6ubuntu5 Hardware Abstraction Layer - shared library
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Peter T Hayward (energonic) wrote : | #7 |
Exactly the same problem as mark above. My printers are Epson DX3800 and Brother HL-1250. Both worked under Feisty. Under Gutsy they are detected and set up. Try to print a test page and I get the error "/usr/lib/
These printers work normally under SUSE 10.3 and MacOSX on the same computer so this is down to Ubuntu software or its configuration.
As Mark says it works if I open up permissions on the usb devices but this is not the full solution.
Printing is a core function, is this going to be addressed soon?
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Peter T Hayward (energonic) wrote : | #8 |
If anyone still has this problem I found the solution in Ubuntu forums (but unfortunately didn't take their name- post appeared during 2006 I think).
The problem is that /dev/usb/lp0 does not have rw permission for logged-on user.
The solution starts by editing /etc/udev/
Under # Printers and Parallel devices, one line must be changed:
BUS=="usb", KERNEL=="lp[0-9]", GROUP="lp"
becomes
BUS=="usb", KERNEL=="lp[0-9]", GROUP="lp", MODE="0666"
It is possible you also need to create the lp group (I did) and put yourself into the lp group.
After this the device is accessible permanently.
Hope this helps someone - and gets the solution into the next release. Why do only a few people post the problem?
Changed in hal-cups-utils: | |
status: | Incomplete → Confirmed |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Michael S Costello (fraterm) wrote : | #9 |
Same problem here on 64 bit 7.10, Brother HL-5150D_series, quite frustrating though as this did *not* fail until a recent update and some hal/dbus updates I saw. Perhaps the problem was fixed and now regressed. Will be trying the workaround mentioned in Peter T Hayward's note. Troubling because printing was so easy before, and this kind of thing gets on my nerves quite a bit when the formerly slick and easy becomes terribly broken, especially when one's art deadline is fast approaching. :(
Seems that the udev configuration file is now 40-permissions.
So, what worked for me... ahem:
SUBSYSTEM=="usb", KERNEL=="lp[0-9]", GROUP="lp"
becomes:
SUBSYSTEM=="usb", KERNEL=="lp[0-9]", GROUP="lp", MODE="0666"
Slightly newer udev and syntax seems to have bit me and maybe many other users, but the effects are quite annoying, the printer will be automatically discovered, added to cups configuration, and promptly indicate readiness, and will defy any attempt to actually print until you add the lp group add your user to lp group, and perform this permissions modification followed by a sudo /etc/init.d/udev restart ; sudo /etc/init.d/cupsys restart. Status: /usr/lib/
Quality control wrt printing is essential, as users get a big throbbing frustration when their printing subsystem dies because of what seems to be a trivial update of core system services. This made ubuntu look bad in front of my pen and paper gaming group, who could formerly print character sheets, and various other nerd etceterata from their windows machines to my box with minimal trouble, and now had to lug their laptops up to my room to attach usb cabling manually.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
mark (mt4167) wrote : | #10 |
I managed to "fix" this one by doing the following (as root or with sudo):
# dpkg -l | grep cups
remove all of the above listed packages with:
# dpkg --purge <package names>
then reinstalling cups:
# apt-get install cups
I think one of the packages I had installed (cupsys-hal perhaps) was causing problems. After removing all packages cups related, and reinstalling the minimum necessary to do the job, things started working again.
I still consider this to be a bug - perhaps there is an undocumented conflict happening.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Till Kamppeter (till-kamppeter) wrote : | #11 |
mark, after removing and reinstalling everything, did you also reinstall hal-cups-utils?
Michael S Costello, does it also work for you if you use
SUBSYSTEM=="usb", KERNEL=="lp[0-9]", GROUP="lp", MODE="0660"
in /etc/udev/
Everyone suffering this bug, can you post the output of
ls -l /dev/usb/lp* /dev/usblp*
and
ls -l /usr/lib/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Till Kamppeter (till-kamppeter) wrote : | #12 |
Can you also try to add the user "haldaemon" to the group "lp" (in /etc/group)?
Changed in hal-cups-utils: | |
status: | Confirmed → Incomplete |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
cyracks (launchpad-afna) wrote : | #13 |
$ ls -l /dev/usb/lp* /dev/usblp*
ls: /dev/usb/lp*: No such file or directory
ls: /dev/usblp*: No such file or directory
$ ls -l /usr/lib/
-rwxr-xr-x 1 root root 8988 2007-09-19 09:01 /usr/lib/
$ ls -l /dev/usb*
crw-rw---- 1 root root 189, 0 2008-03-20 23:32 /dev/usb1
crw-rw---- 1 root root 189, 128 2008-03-20 23:32 /dev/usb2
crw-rw---- 1 root root 189, 256 2008-03-20 23:32 /dev/usb3
crw-rw---- 1 root root 189, 384 2008-03-20 23:32 /dev/usb4
crw-rw---- 1 root root 189, 512 2008-03-20 23:32 /dev/usb5
crw-rw---- 1 root root 254, 0 2008-03-20 23:32 /dev/usbdev1.1_ep00
crw-rw---- 1 root root 254, 1 2008-03-20 23:32 /dev/usbdev1.1_ep81
crw-rw---- 1 root root 254, 2 2008-03-20 23:32 /dev/usbdev2.1_ep00
crw-rw---- 1 root root 254, 3 2008-03-20 23:32 /dev/usbdev2.1_ep81
crw-rw---- 1 root root 254, 11 2008-03-20 22:33 /dev/usbdev2.3_ep00
crw-rw---- 1 root root 254, 13 2008-03-20 22:33 /dev/usbdev2.3_ep02
crw-rw---- 1 root root 254, 12 2008-03-20 22:33 /dev/usbdev2.3_ep81
crw-rw---- 1 root root 254, 15 2008-03-20 22:33 /dev/usbdev2.3_ep83
crw-rw---- 1 root root 254, 4 2008-03-20 23:32 /dev/usbdev3.1_ep00
crw-rw---- 1 root root 254, 5 2008-03-20 23:32 /dev/usbdev3.1_ep81
crw-rw---- 1 root root 254, 12 2008-03-20 23:32 /dev/usbdev3.2_ep00
crw-rw---- 1 root root 254, 13 2008-03-20 23:32 /dev/usbdev3.2_ep81
crw-rw---- 1 root root 254, 9 2008-03-20 22:33 /dev/usbdev3.3_ep00
crw-rw---- 1 root root 254, 10 2008-03-20 22:33 /dev/usbdev3.3_ep81
crw-rw---- 1 root root 254, 6 2008-03-20 23:32 /dev/usbdev4.1_ep00
crw-rw---- 1 root root 254, 7 2008-03-20 23:32 /dev/usbdev4.1_ep81
crw-rw---- 1 root root 254, 14 2008-03-20 23:32 /dev/usbdev5.1_ep00
crw-rw---- 1 root root 254, 8 2008-03-20 23:32 /dev/usbdev5.1_ep81
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Friedrich Strohmaier (bitsfritz) wrote : | #14 |
I got the same problem exactly since Sunday 16th march.
I don't get access to the printers usb device in my case:
Bus 003 Device 008: ID 04e8:3252 Samsung Electronics Co., Lt
not as user (member of groups lp and lpadmin) nor as root!!
I cannot figure out who is blocked using that device for i cannot find a user not beeing member of group lp when i ask lsof.
lsof | grep cups
lsof | grep usb
before sunday I was printing happily beeing member of group lpadmin only
I can solve it by opening permissions to
crw-rw-rw- 1 root lp 180, 0 2008-03-20 21:58 /dev/usb/lp0
either by hand or adding MODE="0666" in
/etc/udev/
as described above .
I added haldaemon to group lp - no effect. This seems not to be a haldaemon problem.
I met this topic because i desperately was installing hal-cups-utils.
Without I get
"Drucker ist nicht verbunden, erneuter Versuch in 30 Sekunden …" which means
"Printer not connected Try again in 30 seconds.."
I'm sure, this is the same problem but perhaps I fail :o))
Ask if you need more details
Friedrich
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Magnus S (magnuss) wrote : | #15 |
Hi,
this bug report looks abandoned and is getting old, so i'm closing it now. If this issue is still affecting you, please reopen.
To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!
Changed in hal-cups-utils: | |
status: | Incomplete → Invalid |
Can you post the output of
sudo usb_printerid /dev/usblp0
sudo usb_printerid /dev/usblp1
sudo usb_printerid /dev/usblp2
sudo lsudb -vvv