[Gutsy] Canon LBP-810 / LBP-1120 : "Can't open FIFO: Permission denied"

Bug #148173 reported by Christophe Giboudeaux
14
Affects Status Importance Assigned to Milestone
cupsys (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: cupsys

Linux mokona 2.6.22-12-generic #1 SMP Sun Sep 23 18:11:30 GMT 2007 i686 GNU/Linux
Bus 002 Device 010: ID 04a9:262b Canon, Inc. LaserShot LBP-1120 Printer

Hello,

I'm testing Gutsy on a fresh partition and tried to reinstall my Canon printer (model LBP-1120) following the same tutorial as the one I used for Feisty : http://v0xel.wordpress.com/2007/04/23/canon-lbp1120-on-ubuntu-704-feisty-fawn/

/etc/cups/printers.conf after installation :

<Printer LBP-1120>
Info LBP-1120
DeviceURI ccp:/var/ccpd/fifo0
State Idle
StateTime 1191341496
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>

The canon monitor (captstatusui) works fine : It detects if I turn the printer OFF.

but it seems cupsys can't communicate with it.

On the html interface (http://localhost:631/printers/LBP-1120) : LBP-1120 "Can't open FIFO: Permission denied"
dmesg output after turning the printer on :

[59232.160000] usb 2-2: new full speed USB device using ohci_hcd and address 11
[59232.372000] usb 2-2: configuration #1 chosen from 1 choice
[59232.384000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 11 if 0 alt 0 proto 2 vid 0x04A9 pid 0x262B
[59232.700000] audit(1191341555.916:117): type=1503 operation="inode_permission" requested_mask="rw" denied_mask="rw" name="/dev/tty" pid=2819 profile="/usr/sbin/cupsd"
[59232.888000] audit(1191341555.916:118): type=1503 operation="inode_permission" requested_mask="rw" denied_mask="rw" name="/dev/tty" pid=2823 profile="/usr/sbin/cupsd"
[59235.796000] audit(1191341558.916:119): type=1503 operation="inode_permission" requested_mask="rw" denied_mask="rw" name="/dev/tty" pid=2827 profile="/usr/sbin/cupsd"

I'll attach the error file and lsusb -v output.

Revision history for this message
Christophe Giboudeaux (krop) wrote :

error log after trying to print some text.

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

Seems to be a problem with the AppArmor config ...

krop, can you do

sudo aa-complain cupsd

and see whether your printer works now?

Changed in cupsys:
assignee: nobody → pitti
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Christophe Giboudeaux (krop) wrote :

Till, one point ! :)

Printer is working.

but the dmesg still shows :

[62822.028000] audit(1191345145.121:141): type=1502 operation="inode_permission" requested_mask="w" denied_mask="w" name="/var/ccpd/fifo0" pid=4376 profile="/usr/sbin/cupsd"

Would adding /var/ccpd/fifo0 rw, to /etc/apparmor.d/usr.sbin.cupsd make it disappear ?

Revision history for this message
Patrickweb (patrick-decodeur) wrote :

same thing here with canon lbp-810, working but dmesg :

[ 7909.084000] audit(1191861958.444:4): type=1503 operation="inode_permission" requested_mask="a" denied_mask="a" name="/dev/tty" pid=16995 profile="/usr/sbin/cupsd"
[ 7972.484000] usb 1-1: new full speed USB device using ohci_hcd and address 4
[ 7972.696000] usb 1-1: configuration #1 chosen from 1 choice
[ 7972.744000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x04A9 pid 0x260A
[ 7972.744000] usbcore: registered new interface driver usblp
[ 7972.744000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
[ 8837.452000] audit(1191862886.996:5): type=1502 operation="inode_permission" requested_mask="w" denied_mask="w" name="/var/ccpd/fifo0" pid=17843 profile="/usr/sbin/cupsd"

# Printer configuration file for CUPS v1.3.2
# Written by cupsd on 2007-10-08 18:45
<Printer LBP-810>
Info Canon LBP-810
DeviceURI ccp:/var/ccpd/fifo0
State Idle
StateTime 1191604118
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>

Revision history for this message
Id2ndR (id2ndr) wrote :

I've got a bluetooth printer. It works with usb, but not with bluetooth (and was working on feisty and a gutsy tribe5).

Errors from dmesg are :
[11557.060000] audit(1192379950.811:16): type=1503 operation="socket_create" family="bluetooth" sock_type="seqpacket" protocol=0 pid=26395 profile="/usr/sbin/cupsd"
[11557.316000] audit(1192379950.811:17): type=1503 operation="inode_permission" requested_mask="rw" denied_mask="rw" name="/dev/tty" pid=26401 profile="/usr/sbin/cupsd"
[11557.356000] audit(1192379950.811:18): type=1503 operation="inode_permission" requested_mask="rw" denied_mask="rw" name="/dev/tty" pid=26404 profile="/usr/sbin/cupsd"

Do you think it's the same problem ? Any solution ?
(See bug #147800 too).

Revision history for this message
Mirr0r (mikele1981) wrote :

Same errors here and printer hp laserjet 1020 DON'T work:

[ 207.530901] usb 4-4: new high speed USB device using ehci_hcd and address 2
[ 207.684599] usb 4-4: configuration #1 chosen from 1 choice
[ 207.805805] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[ 207.806068] usbcore: registered new interface driver usblp
[ 207.806157] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
[ 406.610704] audit(1193301716.204:4): type=1502 operation="sysctl" requested_mask="r" denied_mask="r" name="/proc/sys/dev/parport/parport0/autoprobe" pid=6318 profile="/usr/sbin/cupsd"
[ 406.611483] audit(1193301716.204:5): type=1502 operation="sysctl" requested_mask="r" denied_mask="r" name="/proc/sys/dev/parport/parport0/autoprobe" pid=6318 profile="/usr/sbin/cupsd"
[ 406.653329] audit(1193301716.204:6): type=1502 operation="sysctl" requested_mask="r" denied_mask="r" name="/proc/sys/dev/parport/parport0/autoprobe" pid=6321 profile="/usr/sbin/cupsd"
[ 406.653917] audit(1193301716.204:7): type=1502 operation="sysctl" requested_mask="r" denied_mask="r" name="/proc/sys/dev/parport/parport0/autoprobe" pid=6321 profile="/usr/sbin/cupsd"
[ 458.297285] audit(1193301768.201:8): type=1502 operation="inode_permission" requested_mask="rw" denied_mask="rw" name="/dev/tty" pid=6382 profile="/usr/sbin/cupsd"
[ 458.328260] audit(1193301768.201:9): type=1502 operation="inode_permission" requested_mask="rw" denied_mask="rw" name="/dev/tty" pid=6385 profile="/usr/sbin/cupsd"
[ 735.365360] audit(1193302045.186:10): type=1502 operation="inode_permission" requested_mask="a" denied_mask="a" name="/dev/tty" pid=6586 profile="/usr/sbin/cupsd"

I think numbers after audit are the jobs sent to the printer.

"sudo aa-complain cupsd" don t resolve my problems.. Some days ago, after a fresh install of ubuntu gutsy, the printer worked.

Revision history for this message
Mirr0r (mikele1981) wrote :

Ok, now it works!!

The problem wasn't apparmor, I turned off it ( sudo /etc/init.d/apparmor stop) and printer didn t work again (without any message in dmesg). So I went to:
http://foo2zjs.rkkda.com/
and I have followed the instructions to install the driver.

bye

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

Mirr0r, your problem is described in bug 96454: Your printer needs a proprietary firmware file which cannot be shipped in the Ubuntu distribution. One of the steps in the instructions on http://foo2zjs.rkkda.com/ downloads this file from HP and another step installs it in the correct place so that it gets automatically loaded into the printer whenever the printer is turned on.

HP has started now to officially support this series of printers and for that the hp-setup tool in HPLIP 2.7.10 (http://hplip.sf.net/) also downloads the firmware automatically from the internet. But note that this version of HPLIP got only finished after Gutsy was finished. Perhaps we will backport a newer version of HPLIP from Hardy to Gutsy or I will package HPLIP as distribution-independent LSB package on OpenPrinting (http://www.openprinting.org/). Then you will be able to use the new HPLIP on Hardy.

Revision history for this message
SpookyGhost (francesco-g) wrote :

i had the same problem with an epson stylus color c62 and a GIGBYTE bluetooth print server:

[10406.340000] audit(1194170145.591:15): type=1503 operation="inode_permission" requested_mask="rw" denied_mask="rw" name="/dev/tty" pid=10124 profile="/usr/sbin/cupsd"
[10406.368000] audit(1194170145.591:16): type=1503 operation="inode_permission" requested_mask="rw" denied_mask="rw" name="/dev/tty" pid=10127 profile="/usr/sbin/cupsd"

After the command "sudo aa-complain cupsd" the printer work but in syslog i have 1706 lines like this

type=1502 operation="socket_sendmsg" family="bluetooth" sock_type="seqpacket" protocol=0 pid=10537 profile="/usr/sbin/cupsd"

to print a couple of test page.

Revision history for this message
jdeplaa (jelle-deplaa) wrote :

I used the following command to make the CANON LBP-2900 printer work with Gutsy, which also might do the trick for you:

sudo chown lp:lp /var/ccpd/fifo0

Somehow the file /var/ccpd/fifo0 was set to owner 'root' instead of 'lp' after the update to Gutsy or the new version of CUPS cannot work with device files set to owner 'root'. I'm not sure which one it is. Anyway, the printer works again!

Revision history for this message
Martin Pitt (pitti) wrote :

Do you still have this problem in Ubuntu 8.10 or Jaunty?

Changed in cupsys:
assignee: pitti → nobody
Revision history for this message
Andrew Abogado (andrewabogado) wrote :

I'm experiencing problems in Ubuntu 8.10. Thou I've done successful prints but when I restarted the PC, leaving the printer turned on, the printer cannot process the print.

This guide form Ubuntu ( https://help.ubuntu.com/community/HardwareSupportComponentsPrinters/CanonPrinters/Canon_LBP_2900 ) helped me did the printing. But same problem occurred when after PC restarted.

Revision history for this message
stevr1it (stevr) wrote :

hello I have the same problem with xerox laser phaser 6180 and ubuntu 8.10
syslog give the followng mistake:
Apr 17 13:24:31 stevr1it named[4784]: unexpected RCODE (REFUSED) resolving 'i.creativecommons.org/A/IN': 66.135.32.165#53
Apr 17 13:27:44 stevr1it kernel: [11478.616412] type=1503 audit(1239967664.728:34): operation="inode_permission" requested_mask="::rw" denied_mask="::rw" fsuid=7 name="/dev/tty" pid=28951 profile="/usr/sbin/cupsd"

Apr 18 22:35:07 stevr1it kernel: [76682.323644] type=1502 audit(1240086907.424:34): operation="inode_permission" requested_mask="::rw" denied_mask="::rw" fsuid=7 name="/dev/tty" pid=5892 profile="/usr/sbin/cupsd"

and it does not print the imagine, It does only with pictures bigger than 1mb. and with pdf files, and also with big doc files. Can you help me?

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

Christophe,
Gutsy is no longer supported, therefore closing this bug.
Please upgrade to Hardy or newer, feel free to reopen this bug report if you still have to disable AppArmor then.

Changed in cupsys (Ubuntu):
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.