cannot print to Canon MX860 after upgrade to Ubuntu 18.04

Bug #1808581 reported by Kim Eckert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
New
Undecided
Unassigned

Bug Description

After upgrading to Ubuntu 18.04, I can no longer print to my Canon MX860. It is connected to my WiFi network.
- I can successfully ping the printer.
- I can connect to the printer via the printer web server.
- When I try to print, it just hangs: no error messages, no printing.
Additional information was submitted with 'ubuntu-bug cups'

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: cups 2.2.7-1ubuntu2.2
ProcVersionSignature: Ubuntu 4.15.0-42.45-generic 4.15.18
Uname: Linux 4.15.0-42-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.5
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri Dec 14 13:30:40 2018
InstallationDate: Installed on 2015-01-10 (1434 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
KernLog:

Lpstat: device for MX860: cnijnet:/00:1E:8F:74:5A:78
MachineType: MSI MS-7865
Papersize: letter
PpdFiles: Error: command ['fgrep', '-H', '*NickName', '/etc/cups/ppd/MX860.ppd'] failed with exit code 2: grep: /etc/cups/ppd/MX860.ppd: Permission denied
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-42-generic root=UUID=c7580c78-9be5-43e5-8256-d02dd697238b ro plymouth:debug drm.debug=0xe
SourcePackage: cups
UpgradeStatus: Upgraded to bionic on 2018-08-16 (120 days ago)
dmi.bios.date: 02/21/2014
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: V10.0
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: AM1I (MS-7865)
dmi.board.vendor: MSI
dmi.board.version: 2.0
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: MSI
dmi.chassis.version: 2.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrV10.0:bd02/21/2014:svnMSI:pnMS-7865:pvr2.0:rvnMSI:rnAM1I(MS-7865):rvr2.0:cvnMSI:ct3:cvr2.0:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: MS-7865
dmi.product.version: 2.0
dmi.sys.vendor: MSI

Revision history for this message
Kim Eckert (kimeckert) wrote :
Revision history for this message
brian_p (claremont102) wrote :

Please supply the output of 'lpinfo -v'

--
Brian.

Revision history for this message
Kim Eckert (kimeckert) wrote :

kim@kim-MS-7865:~$ lpinfo -v
network lpd
direct hp
network ipps
network http
network https
network ipp
file cups-brf:/
network beh
network socket
serial serial:/dev/ttyS0?baud=115200
network smb
network bjnp
direct hpfax
kim@kim-MS-7865:~$

Thank you for your help.

Revision history for this message
brian_p (claremont102) wrote :

I'm a little perplexed, Kim, because CUPS appears not to detect your printer. Anyway, we'll leave that on one side and look at the error_log and at the line

  "DEVICE_URI=cnijnet:/00:1E:8F:74:5A:78"

I am not familiar with Canon printers, but this looks like a misconfiguration. From what I see elsewhere, it should be

  "DEVICE_URI=cnijnet:/00-1E-8F-74-5A-78"

I would expect this (ofter called JetDirect) to work too:

  "DEVICE_URI=socket://<IP_address_of_printer:9100>"

There should be a PPD for the print queue in /etc/cups/pppd. What does its *cupsFilter line show?

--
Brian.

Revision history for this message
Kim Eckert (kimeckert) wrote :

/etc/cups/ppd/MX860.ppd:
*cupsFilter: "application/vnd.cups-raster 100 rastertogutenprint.5.2"

Revision history for this message
Kim Eckert (kimeckert) wrote :

There was an error above:
PpdFiles: Error: command ['fgrep', '-H', '*NickName', '/etc/cups/ppd/MX860.ppd'] failed with exit code 2: grep: /etc/cups/ppd/MX860.ppd: Permission denied

Is there an error with the permissions on this file?
-rw-r----- 1 root lp 131822 Dec 14 13:17 MX860.ppd

Revision history for this message
brian_p (claremont102) wrote :

> -rw-r----- 1 root lp 131822 Dec 14 13:17 MX860.ppd

There is nothing wrong here. A PPD is not readable by a user process, only by one with root privileges. Whatever you ran did not have root privileges.

You are using the gutenprint PPD for MX860; no problem there.

Now do

 lpadmin -p mx860 -v socket://<IP_address_of_printer:9100> -E -P /etc/cups/ppd/MX860.ppd

and print with

 lp -d mx860 /etc/nsswitch.conf

I am guessing that the Canon printer accepts jobs on port 9100 - most printers do.

You could also set up lpadmin with -v cnijnet:/00-1E-8F-74-5A-78 and see how you go on.

--
Brian.

Revision history for this message
Kim Eckert (kimeckert) wrote :

Print job submitted and hung:

kim@kim-MS-7865:/etc/cups/ppd$ lpq
MX860 is ready and printing
Rank Owner Job File(s) Total Size
active kim 479 nsswitch.conf 1024 bytes

kim@kim-MS-7865:/etc/cups/ppd$ lpstat -t
scheduler is running
system default destination: MX860
device for MX860: socket://192.168.1.87:9100
MX860 accepting requests since Sat 15 Dec 2018 01:34:45 PM CST
printer MX860 now printing MX860-479. enabled since Sat 15 Dec 2018 01:34:45 PM CST
 The printer is not responding.
MX860-479 kim 1024 Sat 15 Dec 2018 01:34:45 PM CST

Revision history for this message
Kim Eckert (kimeckert) wrote :

The printer continues to be connectable via the printer web host.
http://192.168.1.87/English/pages_WinUS/_top.html

Revision history for this message
Kim Eckert (kimeckert) wrote :

I ran commands:
sudo lpadmin -p mx860 -v socket://192.168.1.87:9100 -E -P /etc/cups/ppd/MX860.ppd
and
lp -d mx860 /etc/nsswitch.conf

Revision history for this message
brian_p (claremont102) wrote :

> I ran commands:
> sudo lpadmin -p mx860 -v socket://192.168.1.87:9100 -E -P /etc/cups/ppd/MX860.ppd
> and lp -d mx860 /etc/nsswitch.conf

Looks good. But nothing printed, eh.

What do we have for

  nmap 192.168.1.87 ?

--
Brian.

Revision history for this message
Kim Eckert (kimeckert) wrote :

kim@kim-MS-7865:/etc/cups/ppd$ nmap 192.168.1.87

Starting Nmap 7.60 ( https://nmap.org ) at 2018-12-15 14:12 CST
Nmap scan report for unknown001e8f745a78.attlocal.net (192.168.1.87)
Host is up (0.086s latency).
Not shown: 998 closed ports
PORT STATE SERVICE
80/tcp open http
139/tcp open netbios-ssn

Nmap done: 1 IP address (1 host up) scanned in 1.17 seconds

Revision history for this message
Kim Eckert (kimeckert) wrote :

I think my only other option is to de-install and re-install the printer driver. That is a pain because Canon does not support Linux drivers. I have to search the web for the latest version from a hopefully reliable source. It takes a day. Doing this always results in inconsistent results for print and scan function on the printer. Sometimes only print works, other times only scan. Since this happened when I upgraded my machine to 18.04, re-installing may be the best answer.

Revision history for this message
brian_p (claremont102) wrote :

Thanks.

Ok, there is no port 9100, so socket:// will not work. One lives and learns!

Looking at the error_log again all the filters complete successfully:

D [14/Dec/2018:13:16:23 -0600] [Job 478] 4 filters for job:
D [14/Dec/2018:13:16:23 -0600] [Job 478] bannertopdf (application/vnd.cups-pdf-banner to application/pdf, cost 32)
D [14/Dec/2018:13:16:23 -0600] [Job 478] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66)
D [14/Dec/2018:13:16:23 -0600] [Job 478] gstoraster (application/vnd.cups-pdf to application/vnd.cups-raster, cost 99)
D [14/Dec/2018:13:16:23 -0600] [Job 478] rastertogutenprint.5.2 (application/vnd.cups-raster to printer/MX860, cost 100)

Search for "exited" and "normally".

All that cnijnet:/ does is transport what rastertogutenprint.5.2 produces to the printer. Perhaps the printer is unhappy with the input from gutenprint? I cannot test this.

I can only suggest you use the Canon drivers.

--
Brian.

Revision history for this message
Kim Eckert (kimeckert) wrote :

Let me know if you agree.

Revision history for this message
Kim Eckert (kimeckert) wrote :

Thank you. It may be a week or two until I have time to reinstall drivers. I will repost if that helps. Let me know if I should do anything else today.

Revision history for this message
brian_p (claremont102) wrote :

It seems that the only way to contact the printer is with the cnijjet backend. One last last thing if you would: execute

/usr/lib/cups/backend/cnijet

and give us the output.

Thanks for your co-operation.

Brian.

Revision history for this message
Kim Eckert (kimeckert) wrote :

I get no output. It runs for about 5 seconds and returns to the prompt:
kim@kim-MS-7865:/usr/lib/cups/backend$ /usr/lib/cups/backend/cnijnet
kim@kim-MS-7865:/usr/lib/cups/backend$

Note that I changed the executable file name. I could not fine either cnijjet or cnijet.

Revision history for this message
brian_p (claremont102) wrote :

Apologies for the typos.

The error_log has

  [Job 477] PID 5588 (/usr/lib/cups/backend/cnijnet) exited with no errors.

But you get no output. What is your CUPS version?

--
Brian.

Revision history for this message
brian_p (claremont102) wrote :

Forget the last post, please. It's in the error_log.

--
Brian.

Revision history for this message
Kim Eckert (kimeckert) wrote :

Oops. I had previously turned off my printer. Now, with the printer on:

kim@kim-MS-7865:/usr/lib/cups/backend$ /usr/lib/cups/backend/cnijnet
network cnijnet:/00-1E-8F-74-5A-78 "Canon MX860 series" "Canon-MX860-series_00-1E-8F-74-5A-78"
kim@kim-MS-7865:/usr/lib/cups/backend$

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.