Epson USB printer backend fails

Bug #183110 reported by Ondine Green
4
Affects Status Importance Assigned to Milestone
cupsys (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: cupsys

My Epson Stylus C41-UX USB printer worked (eventually) in Feisty, but was broken in the Gutsy upgrade. The CUPS error message is: "/usr/lib/cups/backend/epson failed". I've seen many similar bugs, but none of the suggested fixes have worked - not changing the permissions on /dev/usb/lp0, not switching off apparmor.

Revision history for this message
Ondine Green (doloras) wrote :
Revision history for this message
Ondine Green (doloras) wrote :
Revision history for this message
Ondine Green (doloras) wrote : More possibly relevant information

Following https://wiki.ubuntu.com/DebuggingPrintingProblems:

Sebastienne:~$ lsmod | grep usb
usb_storage 73536 1
libusual 18704 1 usb_storage
usblp 15616 0
scsi_mod 148844 4 sg,sd_mod,usb_storage,libata
ide_core 118980 4 usb_storage,ide_cd,ide_disk,via82cxxx
usbcore 139912 6 usb_storage,libusual,usblp,uhci_hcd,ehci_hcd
Sebastienne:~$ lpinfo -v
network socket
network beh
direct epson:/dev/usblp0
direct hpfax
direct hp
network http
network ipp
network lpd
direct parallel:/dev/lp0
direct scsi
network smb
Sebastienne:~$ tail -f /var/log/messages
Jan 15 20:17:32 Sebastienne kernel: [ 911.953159] audit(1200381452.243:4): type=1502 operation="inode_permission" requested_mask="a" denied_mask="a" name="/dev/tty" pid=5947 profile="/usr/sbin/cupsd"
Jan 15 20:43:31 Sebastienne -- MARK --
Jan 15 21:01:24 Sebastienne kernel: [ 3540.235118] audit(1200384084.341:5): type=1502 operation="inode_permission" requested_mask="a" denied_mask="a" name="/dev/tty" pid=6792 profile="/usr/sbin/cupsd"
Jan 15 21:05:51 Sebastienne kernel: [ 3806.483982] audit(1200384351.301:6): type=1502 operation="inode_permission" requested_mask="rw" denied_mask="rw" name="/dev/tty" pid=6889 profile="/usr/sbin/cupsd"
Jan 15 21:05:51 Sebastienne kernel: [ 3806.578494] audit(1200384351.301:7): type=1502 operation="sysctl" requested_mask="r" denied_mask="r" name="/proc/sys/dev/parport/parport0/autoprobe" pid=6894 profile="/usr/sbin/cupsd"
Jan 15 21:05:51 Sebastienne kernel: [ 3806.578751] audit(1200384351.301:8): type=1502 operation="sysctl" requested_mask="r" denied_mask="r" name="/proc/sys/dev/parport/parport0/autoprobe" pid=6894 profile="/usr/sbin/cupsd"
Jan 15 21:05:52 Sebastienne kernel: [ 3807.719527] audit(1200384352.300:9): type=1502 operation="sysctl" requested_mask="r" denied_mask="r" name="/proc/sys/dev/parport/parport0/autoprobe" pid=6899 profile="/usr/sbin/cupsd"
Jan 15 21:05:52 Sebastienne kernel: [ 3807.719775] audit(1200384352.300:10): type=1502 operation="sysctl" requested_mask="r" denied_mask="r" name="/proc/sys/dev/parport/parport0/autoprobe" pid=6899 profile="/usr/sbin/cupsd"
Jan 15 21:07:43 Sebastienne kernel: [ 3918.845979] usb 2-2: USB disconnect, address 2
Jan 15 21:07:43 Sebastienne kernel: [ 3918.846638] /build/buildd/linux-source-2.6.22-2.6.22/debian/build/custom-source-rt/drivers/usb/class/usblp.c: usblp0: removed

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can you test the fixed CUPS version of bug 147800?

Revision history for this message
Ondine Green (doloras) wrote :

Still no good. Here's some interesting output from after I updated to the gutsy-proposed cupsys:

Sebastienne:~$ tail -f /var/log/messages
Jan 16 17:33:55 Sebastienne kernel: [ 90.761266] agpgart: Putting AGP V2 device at 0000:01:00.0 into 0x mode
Jan 16 17:53:47 Sebastienne -- MARK --
Jan 16 18:13:47 Sebastienne -- MARK --
Jan 16 18:17:56 Sebastienne kernel: [ 2729.068682] audit(1200460676.861:4): type=1503 operation="inode_permission" requested_mask="a" denied_mask="a" name="/dev/tty" pid=6519 profile="/usr/sbin/cupsd"
Jan 16 18:18:06 Sebastienne kernel: [ 2738.752964] Failure registering capabilities with primary security module.

Revision history for this message
Chris Kälin (ck1) wrote :

Confirmed (Epson Stylus Color 600 on my dad's Gutsy Machine)

operation="inode_permission" requested_mask="a" denied_mask="a" name="/dev/tty" pid=5149 profile="/usr/sbin/cupsd"

The first time I plugged the usbcable, I could select the first option (local printer) in KDE's printer-configuration tool. Did not work anyway. Interstinlgy after reboot and many replugs, I was never again able to select the first box in that tool. But eventhogh it's possible to set the printer up with correct drivers (chose the last box there).

In any case, I was never able to print (see errors above).
It worked flawlessly in Feisty. Such things make me change more an more to Fedora (as even with SELinux-related stuff, you're still able to fix it using the sealert-helper).

Changed in cupsys:
status: New → Confirmed
Revision history for this message
Caroline Ford (secretlondon) wrote :

Does disabling apparmor with sudo aa-complain cupsd make any difference?

Could you *attach* (not copy and paste) your var/log/messages.

Thanks

Revision history for this message
Caroline Ford (secretlondon) wrote :

confirmed ->incomplete

(the confirmation could be something different)

Changed in cupsys:
status: Confirmed → Incomplete
Revision history for this message
Ondine Green (doloras) wrote :

Here is my /var/log/messages, after trying sudo aa-complain cupsd and then trying the "Printer configuration" window's test page button . CUPS is still coming up with "/usr/lib/cups/backend/epson failed".

Revision history for this message
Ondine Green (doloras) wrote :

I don't think the duplicate status is correct. The problem with inode_permission is only part of the problem, and the fix (reinstalling gs and restarting cupsys) doesn't work for me. The readout of the cupsys admin/log/error_log is:

"E [06/Mar/2008:18:50:42 +0000] [Job 119] Unable to open parallel port device file: No such file or directory
E [06/Mar/2008:18:50:42 +0000] PID 6537 (/usr/lib/cups/backend/epson) stopped with status 1!"

...and no-one suggested anything for that.

I'm a real n00b, so anyone who needs any more information, just tell me where to find it.

Revision history for this message
cleary (bernard-gray) wrote :

I was receiving very similar error messages on debian sid.
I found the issue was that /etc/cups/cupsd.conf went through a significant change at some stage in the last ~3 months and requires a refresh.

Try replacing your /etc/cups/cupsd.conf with the one attached (default package version), reinstall your printers and see if it resolves your issue

Revision history for this message
Ondine Green (doloras) wrote :

This did nothing for my case. The status is still: ""/usr/lib/cups/backend/epson failed"

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Removed the duplicate mark.

Changed in cupsys:
status: Incomplete → New
Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 or 9.04?

Changed in cupsys:
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. 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 cupsys:
status: Incomplete → 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.