Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CUPS printing to Canon PIXMA stopped working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
marinheiro
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2004
Posts: 140

PostPosted: Thu May 13, 2021 4:05 pm    Post subject: CUPS printing to Canon PIXMA stopped working Reply with quote

CUPS has stopped working with my Canon PIXMA G6500 printer. It will instruct the printer to run a self-test, but that's all. If I try to print anything, including a print page, I get 'state: stopped/filter failed' on the CUPS web interface. My wife's Windows 10 laptop continues to print happily to the printer.

Looking at the CUPS error log the problem sees to be with rastertocanonij and pstocanonij:

Code:

 [13/May/2021:16:27:32 +0100] Discarding unused job-progress event...
D [13/May/2021:16:27:32 +0100] Discarding unused printer-state-changed event...
D [13/May/2021:16:27:33 +0100] [Job 1057] Read 501 bytes of print data...
D [13/May/2021:16:27:33 +0100] [Job 1057] getEndJobCommand Successed
D [13/May/2021:16:27:33 +0100] [Job 1057] Wrote 501 bytes of print data...
D [13/May/2021:16:27:33 +0100] [Job 1057] Read 263 bytes of print data...
D [13/May/2021:16:27:33 +0100] [Job 1057] Wrote 263 bytes of print data...
D [13/May/2021:16:27:33 +0100] [Job 1057] [rastertocanonij] pstocanonij write error,32.
D [13/May/2021:16:27:33 +0100] [Job 1057] PID 1292 (/usr/libexec/cups/filter/rastertocanonij) stopped with status 255 (Unknown error 155)
D [13/May/2021:16:27:33 +0100] [Job 1057] STATE: +cups-waiting-for-job-completed
D [13/May/2021:16:27:33 +0100] cupsdMarkDirty(P----)
D [13/May/2021:16:27:33 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"


I can't find any trace of pstocanonij on my system, though the error message sounds like it has been called ok.

I've reinstalled the PPD file (Canon's own), and re-emerged CUPS itself, which has made no difference. Also cleared the cache and the spool directories.

Now I'm having to beg use of a Windows machine whenever I want to print, which is embarassing. Any suggestions for more diagnosis of the problem?

Thanks
Graham
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2038
Location: United Kingdom

PostPosted: Thu May 13, 2021 11:08 pm    Post subject: Reply with quote

If you have not already tried it, you could install the Gutenprint driver and configure CUPS to use that driver to see if you can get the printer to print correctly.

Code:
emerge net-print/gutenprint

_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC systemd-utils[udev] elogind KDE on both.

My blog
Back to top
View user's profile Send private message
marinheiro
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2004
Posts: 140

PostPosted: Fri May 14, 2021 11:55 am    Post subject: Reply with quote

Gutenprint doesn't include drivers for any of the Canon PIXMA G6xxx series. I've tried randomly picking other Canon PIXMA ppd files from Gutenprint - very oddly with these CUPS thinks a test page has been printed OK, and no errors appear in the CUPS error_log file (even set to debug) - but nothing is produced by the printer.

I'm tending to think gutenprint will just give me another, different set of problems to solve and I should work out why CUPS plus the Canon ppd file used to work but stopped.

Thanks
Graham
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2038
Location: United Kingdom

PostPosted: Fri May 14, 2021 12:43 pm    Post subject: Reply with quote

You mention that you re-installed the PPD file and cleared the cache and spool directories, but have you tried unmerging the cnijfilter2 package and re-merging it? If nothing else has been changed and the driver suddenly stopped working, that's probably worth trying. The PPD file is only one component, so just swapping PPD files won't necessarily solve anything if the driver itself has a problem.
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC systemd-utils[udev] elogind KDE on both.

My blog
Back to top
View user's profile Send private message
marinheiro
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2004
Posts: 140

PostPosted: Fri May 14, 2021 9:52 pm    Post subject: Reply with quote

I recompiled rastertocanonij, tocanonij and tocnpwg from the Canon source package cnijfilter2-source-5.90-1 which is where I got the ppd file from. That didn't change anything.

I've now tried with another couple of machines - one running elementary, one with manjaro. I get the same thing with both of them so its not a gentoo-specific problem. I'm wondering if either the printer has changed - a firmware update I wasn't aware of? - or maybe it might be ghostscript related, I've seen from googling that people have had similar problems with ghostscript updates in the past. I'm a little reluctant to mess with ghostscript blindly at the moment though.

Graham
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum