Canon PIXMA network printer discovery fails

Bug #910151 reported by Josh
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

I'm sorry if this is redundant, since I have already posted information about it here: http://askubuntu.com/questions/75887/how-do-i-add-a-canon-pixma-mx860-network-printer.

I am running Ubuntu Oneiric 11.10 on two computers, one is AMD-64bit architecture, the other i386--same problem on both. In 11.04 I could setup printing and scanning just fine, but after a fresh install of 11.10, adding ppa:michael-gruz/canon, and installing cnijfilter-mx860series version 3.10-2ubuntu4 and scangearmp-common from the PPA, Ubuntu's system-config-printer cannot detect my network printer.

In the previous installation it appeared as cnijnet://printers-mac-address. I know it should be able to see it because I can ping the printer at its IP address, I can browse the printer's web admin page from the computer, and my Windows guest in VirtualBox on the computer has no problem detecting and installing it. It seems like this problem is new to Oneiric.

I found the following work around. The network printer can be installed if you enter the URI manually. When adding a new printer, select 'EnterURI' from the devices list and enter 'cnijnet:/01-23-45-67-89-AB' where 01-23-45-67-89-AB is the MAC address of the printer. You have to manually select the printer model for the driver, but everything prints as it should.

If that doesn't work, follow the manual instructions from http://linux.wikia.com/wiki/Getting_Canon_PIXMA_to_work_on_Linux:

$ cnijnetprn --search auto
<...Wait for system search...>
network cnijnet:/00-1E-8F-B6-E0-1A "Canon MX860 series" "Canon-MX860-series_00-1E-8F-B6-E0-1A"

$ locate mx860.ppd
/usr/share/cups/model/cnmx860.ppd
/usr/share/ppd/cnmx860.ppd
$ sudo /usr/sbin/lpadmin -p CanonMX860 -m cnmx860.ppd -v cnijnet:/00-1E-8F-B6-E0-1A -E

the '-p' option specifies printer name, the '-m' option specified ppd file, the ppd file for your printer should be included in your binary driver package and at this point should have been installed in /usr/share/ppd, the '-v' option specifies device uri (copy it from cnijnetprn's output).

Scanning

For scanning, edit /etc/saned/pixma.conf and add the line 'bjnp://10.0.0.20' (the Pixma's IP address). Test to make sure Ubuntu can found it with

$ scanimage -L
device `pixma:MX860_10.0.0.20' is a CANON Canon PIXMA MX860 multi-Function peripheral

You can additionally edit out unnecessary backends (all but pixma) from /etc/sane.d/dll.conf. That should speed the discovery up a bit. For more details, check out 'man sane-pixma'.

Although I couldn't find any documentation as to why or how, the Canon network printer discovery protocol doesn't work right in 11.10 as it does in previous versions--perhaps a discovery timeout issue? Still, everything is up and running now, but it would be nice to work out of box in future releases.
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: josh 20604 F.... pulseaudio
 /dev/snd/controlC0: josh 20604 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'SB'/'HDA ATI SB at 0xfe024000 irq 16'
   Mixer name : 'Realtek ALC888'
   Components : 'HDA:10ec0888,1458e601,00100001'
   Controls : 40
   Simple ctrls : 22
Card1.Amixer.info:
 Card hw:1 'Webcam'/'OmniVision Technologies, Inc.538-2640-09.07.24.1 Monitor Webcam at usb-0000:00:'
   Mixer name : 'USB Mixer'
   Components : 'USB05a9:2649'
   Controls : 4
   Simple ctrls : 3
DistroRelease: Ubuntu 11.10
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
MachineType: Gigabyte Technology Co., Ltd. GA-MA770-DS3
Package: linux (not installed)
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-16-generic root=UUID=6034b4e4-c8dd-4cb3-add2-b314c742fd41 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.0.0-16.28-generic 3.0.17
RelatedPackageVersions:
 linux-restricted-modules-3.0.0-16-generic N/A
 linux-backports-modules-3.0.0-16-generic N/A
 linux-firmware 1.60
RfKill:

Tags: oneiric running-unity
Uname: Linux 3.0.0-16-generic x86_64
UpgradeStatus: Upgraded to oneiric on 2011-10-26 (138 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare vboxusers
WifiSyslog:

dmi.bios.date: 06/24/2008
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F6
dmi.board.name: GA-MA770-DS3
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF6:bd06/24/2008:svnGigabyteTechnologyCo.,Ltd.:pnGA-MA770-DS3:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnGA-MA770-DS3:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: GA-MA770-DS3
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/910151/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → cups (Ubuntu)
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can you run the command

sudo echo x
time sudo /usr/lib/cups/backend/cnijnet
lpinfo -v

and post the output here? Thanks.

Changed in cups (Ubuntu):
status: New → Incomplete
Revision history for this message
Josh (josh-holthaven) wrote :

$ sudo echo x
x
$ time sudo /usr/lib/cups/backend/cnijnet

real 0m5.065s
user 0m0.020s
sys 0m0.124s
$ lpinfo -v
network socket
network ipp
network http
network beh
direct parallel:/dev/lp0
network smb
network lpd
direct hp
direct hpfax

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cups (Ubuntu) because there has been no activity for 60 days.]

Changed in cups (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Sorry for the late reply. For me this looks like a timing issue. Probably /usr/lib/cups/backend/cnijnet has a timeout after 5 seconds but "cnijnetprn --search auto" waits for an answer for more time. It seems that the network broadcasting/scanning in 11.10 is slower than in 11.04, most probably a kernel issue.

Can you run

time cnijnetprn --search auto

and post the output here.

Revision history for this message
Josh (josh-holthaven) wrote :

That would make a lot of sense. Here's the output:

$ time cnijnetprn --search auto
network cnijnet:/00-1E-8F-B6-E0-1A "Canon MX860 series" "Canon-MX860-series_00-1E-8F-B6-E0-1A"

real 1m4.815s
user 0m0.048s
sys 0m0.284s

Revision history for this message
Josh (josh-holthaven) wrote :

Some more notes. I ran the time command from 3 different computers I had available. Here are the results:

#1: Ubuntu 11.10 (GNU/Linux 3.0.0-16-generic x86_64) -- from above comment
$ time cnijnetprn --search auto
network cnijnet:/00-1E-8F-B6-E0-1A "Canon MX860 series" "Canon-MX860-series_00-1E-8F-B6-E0-1A"

real 1m4.815s
user 0m0.048s
sys 0m0.284s

#2: Ubuntu 10.04.4 LTS (2.6.32-38-generic-pae #83-Ubuntu SMP Wed Jan 4 12:11:13 UTC 2012 i686 GNU/Linux)
$ time cnijnetprn --search auto
network cnijnet:/00-1E-8F-B6-E0-1A "Canon MX860 series" "Canon-MX860-series_00-1E-8F-B6-E0-1A"

real 0m4.218s
user 0m0.008s
sys 0m0.044s

#3: Ubuntu 11.10 (GNU/Linux 3.0.0-12-generic i686)
$ time cnijnetprn --search auto
INFO: printer not responding; will retry in 30 seconds...
INFO:
INFO: printer not responding; will retry in 30 seconds...
INFO:
INFO: printer not responding; will retry in 30 seconds...
INFO:
INFO: printer not responding; will retry in 30 seconds...
INFO:
INFO: printer not responding; will retry in 30 seconds...
INFO:
INFO: printer not responding; will retry in 30 seconds...
INFO:
^C

real 8m55.556s
user 0m0.080s
sys 0m0.236s

The funny thing is that I could still set up printing on computer #3 and it works fine, although printing on #3 was configured differently than #1. In fact, the printer drivers are much easier to install on the i686 platform (#3) than the 64 bit platform (#1). For the 64 bit computer, I used ppa:michael-gruz/canon (which uses canonmx860.ppd), whereas for the i686, I downloaded and installed 'cnijfilter-source-3.10' and 'cnijfilter-mx860series-3.10-1-i386-deb' from Canon's website (which uses cnmx860.ppd).

Changed in cups (Ubuntu):
status: Expired → New
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Seems to be a network communication issue of the kernel. 2.6.x kernels do this communication (whetever Canon does here) in much shorter time than 3.0.x kernels.

To the kernel developers: Work with the original reporter on which communication is done here and why it slowed down such a lot.

To Josh: Can you try whether even newer kernels could have the problem solved, for example by running a live CD of Precise or by running your Oneiric system with a Precise kernel?

affects: cups (Ubuntu) → linux (Ubuntu)
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 910151

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Josh (josh-holthaven) wrote : AcpiTables.txt

apport information

tags: added: apport-collected oneiric running-unity
description: updated
Revision history for this message
Josh (josh-holthaven) wrote : AlsaDevices.txt

apport information

Revision history for this message
Josh (josh-holthaven) wrote : AplayDevices.txt

apport information

Revision history for this message
Josh (josh-holthaven) wrote : ArecordDevices.txt

apport information

Revision history for this message
Josh (josh-holthaven) wrote : BootDmesg.txt

apport information

Revision history for this message
Josh (josh-holthaven) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Josh (josh-holthaven) wrote : Card0.Codecs.codec.3.txt

apport information

Revision history for this message
Josh (josh-holthaven) wrote : Card1.Amixer.values.txt

apport information

Revision history for this message
Josh (josh-holthaven) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Josh (josh-holthaven) wrote : Lspci.txt

apport information

Revision history for this message
Josh (josh-holthaven) wrote : Lsusb.txt

apport information

Revision history for this message
Josh (josh-holthaven) wrote : PciMultimedia.txt

apport information

Revision history for this message
Josh (josh-holthaven) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Josh (josh-holthaven) wrote : ProcEnviron.txt

apport information

Revision history for this message
Josh (josh-holthaven) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Josh (josh-holthaven) wrote : ProcModules.txt

apport information

Revision history for this message
Josh (josh-holthaven) wrote : PulseSinks.txt

apport information

Revision history for this message
Josh (josh-holthaven) wrote : PulseSources.txt

apport information

Revision history for this message
Josh (josh-holthaven) wrote : UdevDb.txt

apport information

Revision history for this message
Josh (josh-holthaven) wrote : UdevLog.txt

apport information

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Incomplete → Confirmed
Revision history for this message
Randy Allen (rcallen7957) wrote :

"CUPS server error"
"There was an error during the CUPS
operation:'client-error-not-possible'."

The above comment is as far as I got after serching and finding the drivers.
This printer is attached via wireless through my router.
Laptop is connected through the wired LAN.
Installed on Win7 Ultimate x64.
Dual boot running Ubuntu 13.10 on secondary hard drive.
Intel Core i7 CPU Q820@1.73GHzx8
8GiB RAM
GeForce GT 230M/ICIe/SSE2
Too new at this to get what's happening.
Intuition tells me it at the root level but I lack the knowledge to troubleshoot.
Any help would be greatly appreciated. :-)

Revision history for this message
penalvch (penalvch) wrote :

Josh, this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, could you please test for this with the latest development release of Ubuntu? ISO images are available from http://cdimage.ubuntu.com/daily-live/current/ .

If it remains an issue, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

Also, could you please test the latest upstream kernel available following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Please do not test the daily folder, but the one all the way at the bottom. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-v3.11-rc5

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

As well, please remove the tag:
needs-upstream-testing

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
tags: added: bios-outdated-f7 needs-upstream-testing
removed: canon network pixma printing
Revision history for this message
Josh (josh-holthaven) wrote :

Thank you so much for your attention on this bug, but I'm sorry to say that I cannot test it anymore--the printhead died on my Pixma about two months ago and I no longer have the printer. And Randy, to respond, I never saw a "client-error-not-possible" error before. Good luck! Since there hasn't been activity, should the bug report be closed somehow?

Revision history for this message
penalvch (penalvch) wrote :

Josh, this bug report is being closed due to your last comment https://bugs.launchpad.net/ubuntu/+source/linux/+bug/910151/comments/32 regarding you no longer have the hardware. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

Changed in linux (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Randy Allen (rcallen7957) wrote : Re: [Bug 910151] Re: Canon PIXMA network printer discovery fails
Download full text (7.2 KiB)

Sorry so long responding, but just to let you know, I resorted to enabling
LAN instead of WLAN on the printer, installed USB cable and successfully
installed my Canon Pixma MX860 printer. It seems the only possible bug that
exist is the inability of the software to locate on the network the printer
in wireless mode. Haven't checked yet to see how this will effect my
ability to use the printer in Win 7 but more than likely it will install
drivers and be ok. Sorry I couldn't be of any more help. I'm working on my
knowledge of command line usage. Thank you for your quick responses and I
must say the support appears to me to be incredible. I have been and
continue to be very excited about the learning opportunities I appear to
have been given since deciding to install Ubuntu.
Sincerely,
Randy Allen

On Sun, Aug 18, 2013 at 11:11 PM, Christopher M. Penalver <
<email address hidden>> wrote:

> Josh, this bug report is being closed due to your last comment
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/910151/comments/32
> regarding you no longer have the hardware. For future reference you can
> manage the status of your own bugs by clicking on the current status in
> the yellow line and then choosing a new status in the revealed drop down
> box. You can learn more about bug statuses at
> https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time
> to report this bug and helping to make Ubuntu better. Please submit any
> future bugs you may find.
>
> ** Changed in: linux (Ubuntu)
> Status: Incomplete => Invalid
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/910151
>
> Title:
> Canon PIXMA network printer discovery fails
>
> Status in “linux” package in Ubuntu:
> Invalid
>
> Bug description:
> I'm sorry if this is redundant, since I have already posted
> information about it here: http://askubuntu.com/questions/75887/how-
> do-i-add-a-canon-pixma-mx860-network-printer.
>
> I am running Ubuntu Oneiric 11.10 on two computers, one is AMD-64bit
> architecture, the other i386--same problem on both. In 11.04 I could
> setup printing and scanning just fine, but after a fresh install of
> 11.10, adding ppa:michael-gruz/canon, and installing cnijfilter-
> mx860series version 3.10-2ubuntu4 and scangearmp-common from the PPA,
> Ubuntu's system-config-printer cannot detect my network printer.
>
> In the previous installation it appeared as cnijnet://printers-mac-
> address. I know it should be able to see it because I can ping the
> printer at its IP address, I can browse the printer's web admin page
> from the computer, and my Windows guest in VirtualBox on the computer
> has no problem detecting and installing it. It seems like this problem
> is new to Oneiric.
>
> I found the following work around. The network printer can be
> installed if you enter the URI manually. When adding a new printer,
> select 'EnterURI' from the devices list and enter
> 'cnijnet:/01-23-45-67-89-AB' where 01-23-45-67-89-AB is the MAC
> address of the printer. You have to manually select the printer model
> for the driver...

Read more...

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.