Bug 2027037

Summary: the pdf file is not generated
Product: [Fedora] Fedora Reporter: cornosier
Component: cups-pdfAssignee: Robert Marcano <robert>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 35CC: robert
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-03 16:29:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description cornosier 2021-11-27 10:05:06 UTC
Since version cups-pdf-3.0.1-17.5, a 2kb file remains in the /var/spool folder whatever the original file is. 
Printing with cups-pdf-3.0.1-14 is done normally, the file is in the expected location
Thank you for your attention

Translated with www.DeepL.com/Translator

Comment 1 cornosier 2021-11-29 07:22:11 UTC
The cups-pdf-3.0.1-17.6.x86_64 version contains the same defect

Comment 2 Robert Marcano 2021-11-29 13:53:33 UTC
Greetings. Are you using the default cups-pdf configuration? or in other words, have you modified the file /etc/cups/cups-pdf.conf?

Please run the command:

  journalctl -u cups -e

after printing in order to see if an error is being registered and please attach it to the bug report.

Note: Check if some personal information is present and obfuscate it before uploading.

Comment 3 cornosier 2021-12-03 10:50:53 UTC
Sorry, I didn't see your answer.

I use the default setting

I just tested with cups-pdf-3.0.1-17.8.x86_64, it does not work.

Here is the result of journalctl -u cups -e an aborted print
Dec 03 09:33:29 fedora systemd[1]: Started CUPS Scheduler.
Dec. 03 09:33:58 fedora cupsd[878]: REQUEST localhost - - "POST / HTTP/1.1" 200 563 Create-Printer-Subscriptions successful-ok
Dec 03 12:09:59 fedora cupsd[878]: REQUEST localhost - - "POST / HTTP/1.1" 200 184 Renew-Subscription client-error-not-found
Dec 03 12:09:59 fedora cupsd[878]: [Client 35] Returning IPP client-error-bad-request for Create-Printer-Subscriptions (/) from localhost.
Dec 03 12:09:59 fedora cupsd[878]: REQUEST localhost - - "POST / HTTP/1.1" 200 214 Create-Printer-Subscriptions client-error-bad-request
Dec 03 12:09:59 fedora cupsd[878]: REQUEST localhost - - "POST / HTTP/1.1" 200 563 Create-Printer-Subscriptions successful-ok

and for successful printing with cups-pdf-3.0.1-14.

déc. 03 12:35:31 fedora cupsd[878]: REQUEST localhost - - "POST /printers/Cups-PDF HTTP/1.1" 200 542 Create-Job successful-ok
déc. 03 12:35:31 fedora cupsd[878]: REQUEST localhost - - "POST /printers/Cups-PDF HTTP/1.1" 200 10427015 Send-Document successful-ok
déc. 03 12:35:31 fedora cupsd[878]: Cups-PDF utilisateur 335 [03/Dec/2021:12:35:31 +0200] total 21 1 localhost fichier.pdf A4 one-sided
déc. 03 12:37:05 fedora cupsd[878]: REQUEST localhost - - "POST /printers/Cups-PDF HTTP/1.1" 200 542 Create-Job successful-ok
déc. 03 12:37:05 fedora cupsd[878]: REQUEST localhost - - "POST /printers/Cups-PDF HTTP/1.1" 200 10427015 Send-Document successful-ok
déc. 03 12:37:09 fedora cupsd[878]: Cups-PDF utilisateur 336 [03/Dec/2021:12:37:09 +0200] total 21 1 localhost fichier.pdf A4 one-sided


Translated with www.DeepL.com/Translator

Comment 4 Robert Marcano 2021-12-03 12:54:25 UTC
From where is that cups-pdf-3.0.1-17.8.x86_64 release, the latest Fedora 35 packaged version is cups-pdf-3.0.1-14.fc35. 

I think you have another version installed form another origin. Can you attach the output of `rpm -qi cups-pdf` when that version is installed?

Comment 5 cornosier 2021-12-03 16:19:15 UTC
You are right, cups-pdf-3.0.1-17.8.x86_64 comes from a third party repository which is used by another program.
Sorry for the inconvenience

Gérard

Comment 6 Robert Marcano 2021-12-03 16:29:35 UTC
(In reply to cornosier from comment #5)
> You are right, cups-pdf-3.0.1-17.8.x86_64 comes from a third party
> repository which is used by another program.
> Sorry for the inconvenience
> 
> Gérard

No problem, you could try to exclude cups-pdf on that repo file with the excludepkgs option so the Fedora version isn't overridden.