Bug 33518 - Printer Test Page not working
Summary: Printer Test Page not working
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-04 21:36 CEST by alben roland
Modified: 2024-09-10 05:07 CEST (History)
3 users (show)

See Also:
Source RPM: system-config-printer
CVE:
Status comment: Reproduced (issue present on 3 different systems)


Attachments

Description alben roland 2024-09-04 21:36:25 CEST
I just changed from Mageia 9 to Cauldron because I want to run a later version of Cinnamon. The upgrade ran fine and everything is working very well (so far) but I had one small problem with printing. The printer was set up correctly and everything works, but apparently, somewhere in a configuration file the printer test page image location must have changed because when I try to print the test page while setting up a printer, an error message is returing stating "There was an error during the CUPS operation. 'No such file or directory". Please fix and roll out a patch such that "Print Test Page" is found and works correctly.
Comment 1 alben roland 2024-09-04 21:38:58 CEST
Just to add, the printers are being set up correctly and work fine when printing from browsers, apps, etc.
Comment 2 Marja Van Waes 2024-09-06 22:24:29 CEST
In an older, but up-to-date cauldron, I now get a different test page than I used to. I used to get the one that 

/usr/share/cups/data/testprint-mga.ps links to, so I used to get
/usr/share/printer-testpages/testprint.ps

What I now get is the Mageia testpage, which is much better, of course :-) :
/usr/share/printer-testpages/testprint-a4.ps

This revision caused the improvement:

https://svnweb.mageia.org/packages?view=revision&revision=2081835

However I don't have a clue why you can't print a test page.

Please do, in a konsole/terminal:

   rpm -qa | grep system-config-printer

and copy the output into a comment here.

CC'ing daviddavid

Source RPM: (none) => system-config-printer
CC: (none) => geiger.david68210, marja11

Marja Van Waes 2024-09-06 22:25:53 CEST

Status: NEW => NEEDINFO

Comment 3 alben roland 2024-09-07 01:55:25 CEST
The following is the output:

[root@localhost alben]# rpm -qa | grep system-config-printer
system-config-printer-libs-1.5.18-3.mga10
system-config-printer-udev-1.5.18-3.mga10
system-config-printer-1.5.18-3.mga10
[root@localhost alben]# 

I double checked and the "print test page" still isn't working.  It did before I updated to Cauldron.  The printer does work and I can print test pages from web sites but something seems to be pointing to a non-existing file.

This is what happens.

1.  Go to Mageia Control Center
2.  Select "Hardware" from the left panel
3.  From right side, select under *Configure printing and scanning "Set up the printer(s), the print job queues..."
4.  After adding the printer (that part works fine), opening the printer icon
5.  Select "Print test page"

The above steps give a popup that says "CUPS server error" followed by "There was an error during the CUPS operation: 'No such file or directory'

Again, the printer works fine when I print to it but since I had received the error, I was worried and thought printing was broken and it was a problem with the CUPS server.  Then it occurred to me that since the setup process worked fine I should just try to print something and it worked but I wanted to report it.  The same thing happened on two different computers I updated from Mageia 9.  One is an old 3rd generation i5 HP laptop and the other is an old Chromebook I converted using mrchromebox.tech that has a ntel© Celeron© 3205U @ 1.50GHz × 2 processor.  You may want to ask someone on the Cauldron team to update from a Mageia 9 installation to see if you can replicate the problem since it could become a problem in Mageia 10.
Comment 4 Marja Van Waes 2024-09-08 16:12:33 CEST
@ alben

Thanks for your reply! I had hoped to do some testing, but am too short on time and energy.

Please give the output of:

   ls -al /usr/share/printer-testpages/

If there is nothing there, then please install

   printer-testpages-2024-1.mga10.noarch.

Status comment: (none) => Reproduced (issue present on 3 different systems)

Comment 5 Marja Van Waes 2024-09-08 16:15:25 CEST
(In reply to Marja Van Waes from comment #4)
> @ alben
> 
> Thanks for your reply! I had hoped to do some testing, but am too short on
> time and energy.
> 
> Please give the output of:
> 
>    ls -al /usr/share/printer-testpages/
> 
> If there is nothing there, then please install
> 
>    printer-testpages-2024-1.mga10.noarch.

Also install that package if testpage-a4.ps is missing in that directory
Comment 6 alben roland 2024-09-08 19:28:23 CEST
The files are there.  Below is the output:

[alben@localhost ~]$ ls -al /usr/share/printer-testpages/
total 1184
drwxr-xr-x   2 root root   4096 Sep  4 17:41 ./
drwxr-xr-x 342 root root  12288 Sep  4 17:48 ../
-rw-r--r--   1 root root 598930 Jul 17 00:32 photo-testpage.jpg
-rw-r--r--   1 root root 192256 Jul 17 00:32 testpage-a4.ps
-rw-r--r--   1 root root    626 Jul 17 00:32 testpage.asc
-rw-r--r--   1 root root 192028 Jul 17 00:32 testpage.ps
-rw-r--r--   1 root root 200973 Jul 17 00:32 testprint.ps
[alben@localhost ~]$ 

Thank you, Maria.  Still not sure what's happening, here.  Any other suggestions?
Comment 7 Morgan Leijström 2024-09-09 18:12:21 CEST
* I am on mga9 only, but anyway: *

(In reply to Marja Van Waes from comment #2)
> What I now get is the Mageia testpage, which is much better, of course :-) :
> /usr/share/printer-testpages/testprint-a4.ps

Um.. on mga9 that page is written "Mandriva" !
And it is not used when doing test print.
I believe the package printer-testpages and these files are never used on mga9?

Actually I renamed /usr/share/printer-testpages to something else and still same CUPS test page is printed OK. 

But, if I rename /usr/share/cups/data/default-testpage.pdf to something else, test print fails with lots of messages from cups in system journal.

But I get no error message popup, just the normal message that test page was sent...

@ Alben, do you have /usr/share/cups/data/default-testpage.pdf ?
From package cups-filters.
The page is used as a template and CUPS fill in printer details text.



(In reply to alben roland from comment #3)
> The above steps give a popup that says "CUPS server error" followed by
> "There was an error during the CUPS operation: 'No such file or directory'

In an attempt to get more info:

In a terminal, launch 
  journalctl -f
and keep terminal open to see system log messages in real time.

In another terminal start system-config-printer and try to print the test page. 

- Do there appear some interesting messages in system log or terminal?

CC: (none) => fri

Comment 8 Morgan Leijström 2024-09-09 18:21:31 CEST
(In reply to alben roland from comment #0)
> when I try to print the test page while setting up a printer, an
> error message is returing stating "There was an error during the CUPS
> operation. 'No such file or directory".

Is that a pop up message, or where is it output?

I wonder if it could be specific to the printer.
Please try the virtual printer, our package boomaga, to see if it shows the same behaviour.
Comment 9 alben roland 2024-09-09 18:28:54 CEST
Hi Morgan,

In response to the following:

> @ Alben, do you have /usr/share/cups/data/default-testpage.pdf ?
> From package cups-filters.

No, that file is missing.  There are only two files in the folder:

self-portrait.out.gz

and 

testprint-mga.ps

Thanks,
Alben
Comment 10 alben roland 2024-09-09 18:35:40 CEST
I opened the journal and and did the printer config.  The same error came up but no error message appeared in the journal so there's nothing to report, there.  Maybe it is the missing default-testpage.pdf ?
Comment 11 Morgan Leijström 2024-09-09 18:36:46 CEST
Do you have the package cups-filters installed?
If not, install it and see if that helps.
If not, some on mga10, or know what changed from mga9 to 10 need to help out
Comment 12 alben roland 2024-09-09 18:47:26 CEST
Yes, cups-filters is installed.
Comment 13 alben roland 2024-09-09 18:54:45 CEST
I copied a default-testpage.pdf file from another distro and added it to the folder and I still get the same error so it's more than just the missing file.  But if I understand correctly, that file is supposed to be generated when I click "print test page".
Comment 14 Morgan Leijström 2024-09-09 19:01:11 CEST
At least on mga9, default-testpage.pdf is like a blanket (open and see for yourself), and cups add text regarding printer and settings.

Seems something have been intentionally altered but is not working/finished.

(In reply to alben roland from comment #0)
> I just changed from Mageia 9 to Cauldron because I want to run a later
> version of Cinnamon. The upgrade ran fine and everything is working

So before we hand it to cups maintainers/packagers, (daviddavid per c2?) just to be sure no old files/packages interfere:

Have you verified this problem on a clean Cauldron install?

Almost as good, you can execute a distro sync, see
https://wiki.mageia.org/en/Using_DNF#Synchronize_with_repos
Comment 15 alben roland 2024-09-10 00:44:02 CEST
Whoever rolled out some patches, thank you!!!  I just saw that there were updates related to CUPS.  I insalled them on both computers and now "print test page" works.

Alben
Comment 16 Morgan Leijström 2024-09-10 01:00:03 CEST
Great then :)

Resolution: (none) => FIXED
Component: Installer => RPM Packages
Status: NEEDINFO => RESOLVED

Comment 17 David GEIGER 2024-09-10 05:07:37 CEST
Yes it is fixed with cups-2.4.10-4.mga10!

Note You need to log in before you can comment on or make changes to this bug.