You are not logged in.

#1 2011-12-12 23:17:45

stefano
Member
Registered: 2011-04-09
Posts: 269

[SOLVED] USB printer stopped working: "/usr/lib/cups/backend/hp failed

Yesterday, I did a general update (-Syu) and since then my printer stopped working.

The error message I get in CUPS web interface is "/usr/lib/cups/backend/hp failed"

I tried all the remedies on the forums and the wiki, including changing the cups.conf file, removing the printer/re-adding it, installing avahi-daemon.
Nothing seems to be working.

The printer worked perfectly until yesterday, so I am inclined to think the update changed something, perhaps a permission, perhaps a new driver.

Has anyone experienced similar problems? The printer is a HP Laserjet 1320, connected to the USB port. I tried different drivers, such as Hp and foomatic.

Any help is appreciated

Stefano

Last edited by stefano (2011-12-16 22:46:43)

Offline

#2 2011-12-13 15:45:43

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [SOLVED] USB printer stopped working: "/usr/lib/cups/backend/hp failed

Is /usr/lib/cups/backend/hp runable? Maybe there is a dependency problem:

ldd /usr/lib/cups/backend/hp | grep 'not found'

Try as root to run /usr/lib/cups/backend/hp and see what happens.

Offline

#3 2011-12-14 14:14:12

stefano
Member
Registered: 2011-04-09
Posts: 269

Re: [SOLVED] USB printer stopped working: "/usr/lib/cups/backend/hp failed

/usr/lib/cups/backend/hp seems to be runnable. This is what I get if I run either as as regular user or as root:

direct hp:/usb/hp_LaserJet_1320_series?serial=00CNDC521161 "HP LaserJet 1320 series" "HP LaserJet 1320 series USB 00CNDC521161 HPLIP" "MFG:Hewlett-Packard;MDL:hp LaserJet 1320 series;CLS:PRINTER;DES:hp LaserJet 1320 series;SN:00CNDC521161;"

Unfortunately, I have no idea what that means

Stefano

Offline

#4 2011-12-16 22:45:45

stefano
Member
Registered: 2011-04-09
Posts: 269

Re: [SOLVED] USB printer stopped working: "/usr/lib/cups/backend/hp failed

[SOLVED]

I think the problem was with the permission on the device file associated with the printer.

After a lot of googling around, I found this page on the Debian site: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=556406 which explained how to diagnose the problem by looking at CUPS' error log

Arch's wiki page on CUPS, at the section CUPS 1.4 (https://wiki.archlinux.org/index.php/CU … CUPS_1.4.x) , in turn, explained how to find out the usb node for the printer (lsusb) and what to do. Notice that the wiki page is partially misleading since it has a different section on  "HPLIP printer sends /usr/lib/cups/backend/hp failed". But the suggestions mentioned there did not help.

As soon as I changed the permission to 666 the printer started working again (even though the device file was set to root:lp with permissions 664, and that should have worked).

Caveat: I had previously installed hp-plugin from AUR and installed the correct (latest) plugin for hplip. Even though that, by itself, did not help, it may have contributed to the final solution.

Offline

Board footer

Powered by FluxBB