Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
cupsserver use drivers:
Generic PCL 6/PCL XL Printer - CUPS+Gutenprint v5.2.10 for bl/wh printing
Generic PCL 6/PCL XL Printer Foomatic/pxlcolor for color printing.
Classes are defined with two printers, one primary printer and one secondary.
Printing comes randomly to each printer, practically there are no default printer.
I see in the printer list that the printers after a print job has the tag 'idle-"waiting for the printer to finnish"'.
The panel on the printer shows 'ready to print'. The tag 'idle-"waiting for the printer to finnish"' stays for hours.
My question is, is it the tag "waiting for the printer to finnish"' that makes the printer-class print randomly to primary or secondary printer?
And if so, how can I get rid of the tag?
By restarting the cups server /etc/init.d/cups retart, the tags disappear.
In the morning before the print jobs start, the tags has disappeared as well without restarting.
Yes, sometimes it seems that even though the job has been processed, the local machine is not aware that the job is complete. You can examine /etc/cups/printers.conf to get the status. Not sure why it occurs.
I did in advance of making this thread go through all of what I could find on the net concerning the tag 'idle-"waiting for the printer to finnish"'. Most of them were unsolved, and those who had a solution did not match my enviroment. Some suggestions about changing drivers, but I am reluctant to do that, as the generic driver I use prints very well to a range of different models.
The error_log does not make any statements concerning the tag, and the printers.conf does not tell anything.
My key question is if this tag makes the first printer in the class unavailable. If I pause the secondary printer, the primary printer handle the jobs perfect, even with the tag 'idle-"waiting for the printer to finnish"' present.
Or is a random use of defined printers what I have to expect using classes?
It seems so. Printing to class makes jobs go to random of the two printers defined. In practice there is no default printer.
But I do not know the core of CUPS well enough to determine if the tag "waiting printer to finish" redirect the job to next printer in the class. But this is what I suspect.
I think you're correct about that. In any case, I note that this BSD bug report claims to have a patch for CUPS to correct this, but doesn't appear to have been fixed upstream yet.
Well, for HP printers we rely on the half-close mechanism to wait for the job to complete. The socket backend closes the outbound socket as soon as all data is sent, then we wait for the printer to close the other side, indicating that it has finished all pages.
PJL and other mechanisms do not scale and suffer from versioning and communication issues. And quite frankly AppSocket (and LPD) are dead as far as future development goes. All modern (since 2010) network printers support IPP and IPP's rich job monitoring, even for (legacy) PostScript jobs. Prior to then you might have issues with PostScript printing over IPP...
Following the discussion there, it seems they're only interested in supporting IPP backend as most modern printers support that protocol now.
I have changed one of the printers from socket:// to ipp:// and ran a test page from the server.
The tag showing up now has changed from 'Idle-"waiting for the printer to finish"
to Idle - "Waiting for job to complete." And has been there for at last 10 hours now.
So I am back to square one.
Just to make clear, by directing the jobs to the printer it works just fine. It is as members of class the problem occures that there is no default printer.
have changed one of the printers from socket:// to ipp:// and ran a test page from the server.
The tag showing up now has changed from 'Idle-"waiting for the printer to finish"
to Idle - "Waiting for job to complete."
Yes, one would hope that the printer status is cleaned up properly after the successful completion of the job.
Quote:
Just to make clear, by directing the jobs to the printer it works just fine. It is as members of class the problem occurs that there is no default printer.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.