-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print jobs get canceled at printer #1092
Comments
Ok, Can you try editing the PPD and reinstalling printer with the edited PPD? Like you change in the PPD (/etc/cups/ppd/HL-L2325DW.ppd) the line:
to
and then reinstall the printer this way:
and try to print? Ad the problem itself - does it happen even for the same file? First print goes well, but the next of the same file does not print? (from the same application) Additionally, can you check if you get the same situation if you print the same file from command line? The command is:
|
Okay, I changed the line in the ppd, ran the install line, then tried to print with two-sided, 9-up (what I used when producing the logs). Printing canceled at printer. I tried again with two-sided, 1-up and it went through. (This and above with Firefox.) Tried to print two-sided, 9-up for consistency with: lp -d HL-L2325DW -o number-up=9 -o sides=two-sided-long-edge ~/downloads/printing.pdf Canceled at printer. Tried two-sided, 1-up (what worked in FF): lp -d HL-L2325DW-2 -o sides=two-sided-long-edge ~/downloads/printing.pdf Canceled at printer. Tried the above line again to try to rule out "luck of the draw". Canceled at printer. |
Did you need me to explicitly remove the printer before running the |
What is "HL-L2325DW"? The reinstalled printer with the updated PPD? There is no need to restart the service or remove the original printer - cupsd should update the cache and files accordingly asap. However, cupsd might rewrite the PPD to incorrect form again, but since even the first printing was cancelled, it might be red herring. So to simplify this and rule out any possible divergences, stick with CUPS utils and no options from now (so no Gnome, no Firefox, no additional options, until we found out what triggers it):
and print to it twice the same file (choose of course some one page PDF, so you don't get swarmed by papers and we can rule out this possibility):
If those two print okay, try larger file and add options with lp - if that prints ok, try printing to the queue from Firefox or other app you use. If all this work, we can say the issue is related to driverless driver and not to IPP Everywhere. If it does not, then the issue might be in cups in general or in cups-filters, or in printer itself - so type of no-driver solution does not matter.
then try print twice with lp again, first one page PDF without options, then multipage pdf and options, and in the end via Firefox. I'm sorry for lot of printing, but there can be different things in play, so I need to find out the minimal reproducer which triggers the issue - especially the fact it shows only after first printing is tricky. |
No worries about the printing. This problem costs me a considerable amount of time and focus so fixing it is well worth the additional time and resources expended. I appreciate your help.
Regarding HL-L2325DW vs HL-L2325DW-2. That is a very good catch. Sorry for the confusion. From what I recall, there is only HL-L2325DW-2 and I was listing it here without the two to avoid added complexity. I understand that in doing so I made things more complicated. I will not modify anything from here on out. To answer your question, both are the reinstalled printer with updated PPD. Reinstalled as instructed without removing the original.
Perfect, got it! I'm going to list what I do so you can validate each step. 1. Check if the issue happens with IPP EverywhereFinding URI:$ lpinfo -v
file cups-brf:/
network beh
network https
network http
network ipps
network ipp
direct hp
network socket
network lpd
network smb
direct hpfax
network dnssd://Brother%20HL-L2325DW._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-00410ef027f1
network lpd://BRW00410EF027F1/BINARY_P1
network ipp://Brother%20HL-L2325DW._ipp._tcp.local/ Installing:$ lpadmin -p ipp_everywhere -v ipp://Brother%20HL-L2325DW._ipp._tcp.local/ipp/print -m everywhere -E Printing twice:$ lp -d ipp_everywhere printing.pdf
request id is ipp_everywhere-647 (1 file(s)) Success! $ lp -d ipp_everywhere printing.pdf
request id is ipp_everywhere-648 (1 file(s)) Success! Printing large file with options:$ lp -d ipp_everywhere -o number-up=9 -o sides=two-sided-long-edge printing_full.pdf
request id is ipp_everywhere-649 (1 file(s)) Success! Trying same file (webpage) from Firefox with same options:Success! Trying same downloaded file from PDF Viewer with same options:Canceled at printer. Tried from commandline again to see if any settings were overwritten by PDF Viewer:$ lp -d ipp_everywhere -o number-up=9 -o sides=two-sided-long-edge printing_full.pdf
request id is ipp_everywhere-654 (1 file(s)) Success! Tried from PDF Viewer again while checking journal:(The evince line is not part of the log, but instead something that gets printed to stdout by the PDF Viewer. It printed out while logs were printing.) 2. If everything works we can say it's related to driverlessSince the only thing that failed is PDF Viewer, I will move forward and test driverless. Re-installing:$ lpadmin -p driverless -v ipp://Brother%20HL-L2325DW._ipp._tcp.local/ipp/print -m driverless:ipp://Brother%20HL-L2325DW._ipp._tcp.local/ipp/print -E
lpadmin: Unable to open PPD "/tmp/71d2967280f8c": Missing PPD-Adobe-4.x header on line 0. Tried:$ lpadmin -p driverless -v ipp://Brother%20HL-L2325DW._ipp._tcp.local/ipp/print -m driverless -E
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
lpadmin: cups-driverd failed to get PPD file - see error_log for details. Tried first install line again:$ lpadmin -p driverless -v ipp://Brother%20HL-L2325DW._ipp._tcp.local/ipp/print -m driverless:ipp://Brother%20HL-L2325DW._ipp._tcp.local/ipp/print -E Oddly, now it installed. Testing one page twice:$ lp -d driverless printing.pdf
request id is driverless-656 (1 file(s)) Success! $ lp -d driverless printing.pdf
request id is driverless-657 (1 file(s)) Success! Trying with options twice:$ lp -d driverless -o number-up=9 -o sides=two-sided-long-edge printing_full.pdf
request id is driverless-658 (1 file(s)) Canceled at printer. $ lp -d driverless -o number-up=9 -o sides=two-sided-long-edge printing_full.pdf
request id is driverless-658 (1 file(s)) Canceled at printer. Trying with Firefox with options:Success! Trying with PDF Viewer with options:Canceled at printer. |
I highly suspect this has something to do with print scaling. Scaling options are not present in the GUI system print when using an IPP Everywhere printer. But are for driverless. This alone is not enough evidence. I wonder if it has anything to do with OpenPrinting/cups-filters#108 and its PR. |
Let me know if you need me to try anything else. |
@mcp292 thank you very much for the detailed testing! And I'm sorry for delay, I was stuck with other things :( So I guess we can rule out the fact the PPD change would make a difference, since repeated printing brought the same results, and the issue is probably in filter chain, since both models fail when printing from PDF viewer, but driverless model seems to be more prone to the cancellation. I wonder about print-scaling - it is a good find that the setting is not present in GUI of PDF viewer, but I don't see the setting in the previous logs from driverless either (there is only the default one applied in the filter, which happens for both prints, successful and failed). So based on your findings, let's see the logs where those two models started to differ:
and
Please provide me logs for both jobs, and both PPDs. If there is any change in behavior in comparison to the past, do let me know - I count on it will behave the same - everywhere prints, driverless gets canceled. Hopefully it will give us some ideas which will lead even to fixing PDF viewer printing. |
No apology needed. I appreciate your help. ipp_everywherelp -d ipp_everywhere -o number-up=9 -o sides=two-sided-long-edge printing_full.pdf Printing succeeded. driverlesslp -d driverless -o number-up=9 -o sides=two-sided-long-edge printing_full.pdf Printing canceled. |
Bumping, in case it fell off your radar. Still having issues daily. |
@mcp292 I'm sorry, I was focused on my work and just tried to answer on the new issues, so I missed the backlog :( . I've checked the logs now and it looks to be connected to print quality. IPP Everywhere:
driverless
Only the highest resolution matches, draft and normal have a different numbers and "normal" is used by default. So it looks like the printer somehow manages to process smaller files with higher resolution (like it influences the Apple raster file generation at the end of filtering), but fails for larger ones if the job is set as resolution 600x600. Can you get attrs.txt file with output from ipptool command:
it will get us IPP attributes from the printer, so we will see what resolutions it reports so we can track what driverless PPD generator did wrong, or if there is discrepancy on the printer side. You can try taking driverless PPD, change the normal quality resolution, create a new queue with it (the same connection as before) and see if the testing command passes. In general you:
If the suspicion is correct, new-driverless should now print. |
Purpose
This issue is being made at the request of @zdohnal in #1090.
Have
I have a Brother HL-L2325DW. I set it up as a driverless network printer through the GNOME settings using add printer and leaving defaults.
Running Fedora 40 (Workspace Edition) with GNOME on a Thinkpad T14s laptop. OpenPrinting CUPS 2.4.11.
Problem
Print jobs get canceled at printer repeatedly. Usually the first print after powering on the printer goes through, and anything else gets canceled.
Tried
I've tried to remove the printer and re-add, change settings, print from different places (lp, lpr, firefox, document viewer), factory reset printer, reset printer network settings.
Logs
Unable to add document to print job.
which appears in red in my terminal. Sorry I cannot preserve the color coding. There's some odd stuff about "cropping" near the end. These were set to print from Firefox.DirtyCleanInterval 0
tocupsd.conf
, issuedsudo systemctl restart cups
, removed printer, re-added printer, copied/etc/cups/ppd
. (Removed and added printer through GNOME settings.)The text was updated successfully, but these errors were encountered: