LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-16-2021, 10:25 AM   #1
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,070

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
Cups printing failure


I don't send print jobs from my laptop very often, but today I tried and failed (although printing worked about a month ago).

My printer (Canon TS8350) seems to be recognised, but print jobs just stops after "rendering completed".

CUPS' own debug output (see https://pastebin.com/N6xYYtdh ) contains the surprising information (lines 525-533) that cups, gutenprint and system-config-printer cannot be verified (not installed) although they are.

A failure message in line 576:
Code:
'job-printer-state-message': 'Filter failed'
Don't know if that's crucial and if so, how to fix.

I've reinstalled cups, cups-filters, and cnijfilter2 but no changes.

Thanks in advance for proposals how to solve.

Last edited by kgha; 09-16-2021 at 10:55 AM.
 
Old 09-16-2021, 06:51 PM   #2
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
heh. just deleted the Canon TR8250 from CUPS, since I got rid of that printer, literally a few minutes before reading your post - so can't look to see how I had it configured. You can double check
1. ping printer IP address? Access the printers built in web page (there are often recommended URI there)?
2. printer URI: looks like yours is set for socket://<ip adress>:9100 but I think mine was set up as ipp://<ip address>...
3. delete the printer in CUPS and run through the setup in http://localhost:631/admin again. Maybe the CUPS settings got buggered. Sometimes the fix is not to reinstall the software but to just repeat the configuration
4. what does 'lpinfo -v' show?
 
Old 09-16-2021, 08:25 PM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
How did you install the printer?

I have looked at the cnijfilter2-5.90-1-rpm.tar.gz package from Canon
Extracting the package shows a subdirectory 'packages' with two rpm packages for 32bit and 64bit architectures. Extracting the 64bit cnijfilter2-5.90-1.x86_64.rpm gives a directory 'usr' with both 'lib' and 'lib64' subdirectories. Only the 'lib64' subdirectory contains additional binaries. The binaries in the 'cups/filter' subdirectory have a dependency on one of those, namely 'libcnbpcnclapicom2.so'.
 
Old 09-17-2021, 07:06 AM   #4
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,070

Original Poster
Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
Thanks for the interest and input.

As said in my first post, everything worked fine a month ago. There have of course been a lot of upgrades to -current, since then, but cups-filters is the only obviously relevant package upgraded since then, and I've tried downgrading to the previous version - no difference. cups and ghostscript are the same as when printing last worked, as is the cnijfilter2 package (built from source with ponce's buildscript for current) which contains all relevant files including libcnbpcnclapicom2.so

The printer is definitely recognized and connected. In the print settings GUI I have a "Print Self-Test Page" button, hitting that produces a self-test printout. But if I hit the "Print Test Page" button (cups' own test page), printing stops after rendering.

I found another and probably more informative debug file in the /tmp folder:
https://pastebin.com/R6jbB4VU

Here's the lines that seem to be important, even if I can't figure out what to do.

Lines 1-2:
Code:
E [17/Sep/2021:12:31:27 +0200] [Job 127] Unable to open raster stream - : Broken pipe
E [17/Sep/2021:12:31:27 +0200] [Job 127] Job stopped due to filter errors; please consult the /var/log/cups/error_log file for details.
Lines 157-160:
Code:
D [17/Sep/2021:12:31:27 +0200] [Job 127] Last OS error: Broken pipe
D [17/Sep/2021:12:31:27 +0200] [Job 127] GPL Ghostscript 9.54.0: Unrecoverable error, exit code 1
D [17/Sep/2021:12:31:27 +0200] [Job 127] Rendering completed
D [17/Sep/2021:12:31:27 +0200] [Job 127] PID 8187 (/usr/lib64/cups/filter/gstoraster) stopped with status 1.
Don't know what the "Broken pipe" message means. Line 158 suggests a ghostscript related error, but ghostscript hasn't changed since printing worked a month ago.

I'll continue fiddling around, emptying /var/cache/cups and /var/spool/cups and maybe downgrade ghostscript.

Might be a driver issue, but the source file for my cnijfilter2 package is the latest available and again, it worked a month ago.
 
Old 09-17-2021, 10:01 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
I don't think it's a ghostscript problem. You can see from the last few errors that GS has done its work and produced a rendered postscript document. The problem lies in the conversion of that into a raster image for printing. Perhaps you should downgrade cups-filters.
 
Old 09-17-2021, 10:23 AM   #6
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,070

Original Poster
Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
Quote:
Originally Posted by hazel View Post
Perhaps you should downgrade cups-filters.
Been there, done that (mentioned in post #4)... sadly no difference.
 
Old 09-23-2021, 05:04 AM   #7
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,070

Original Poster
Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
Got the printer working again, although I still haven't got a clue to why it stopped working, nor why my actions solved my issue. Here's what happened:

I decided to try if I could get the printer to work with my old Asus eee running slackware-14.2 (32bit). Had to get a 32bit cnijfilter2 package, and for some reason the slackbuild script failed when I tried building from source. Hadn't the time and energy to dig into that, instead I found a rpm package of the same version (5.90.1) and repackaded it.

When testing, cups complained about insecure file ownership affecting three files. After chowning them to root:root everything worked.

I then repackaged the corresponding 64bit rpm package and installed it on my everyday laptop with 64bit -current. Same complaints about ownership, solved in the same way. And printing works.

I can't explain what happened. Files in my old SBo package and the new one seem identical. Package tree structure differs (some files now in /usr/local/ instead of /usr/) but I can't see how this should affect functionality.

Well, it works. I'm satisfied with that.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Failure after failure after failure.....etc 69Rixter Linux - Laptop and Netbook 5 04-14-2015 09:58 AM
Printing Problem (cups / cups-lpd) daleman Linux - Software 3 04-08-2005 08:01 AM
PostScript failure result in printing failure cawwt Linux - General 2 10-01-2004 01:06 PM
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 08:31 AM
Slackware 9 and CUPS (CUPS=crap) - printing carboncopy Slackware 21 07-29-2003 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration