Closed isgroup-srl closed 7 years ago
OK, what you have provided so far shows that cupsd is idle exiting, as designed.
If you want to keep cupsd running all the time, do one of the following:
(a pending job will also keep cupsd running)
Thanks @michaelrsweet for the answer!
The web interface is running on port 631 as usual and the printer is shared.
(server)$ lpstat -t
scheduler is running
no system default destination
device for ricoh: socket://print:9100
ricoh accepting requests since Mon 19 Dec 2016 06:56:37 PM CET
printer ricoh is idle. enabled since Mon 19 Dec 2016 06:56:37 PM CET
Also by modifying the printer I see the Sharing: Share This Printer
already ticked. As further confirmation we already configured the printer on our clients and sent some jobs to it that printed successfully.
(client)$ lpstat -t
scheduler is running
system default destination: ricoh
device for QL-570: usb://Brother/QL-570?serial=M3Z198620
device for ricoh: ipp://print:631/printers/ricoh
[...]
printer ricoh is idle. enabled since Mon 19 Dec 2016 06:56:36 PM CET
Should I set the printer as system default on the server? Would it help?
Testing the system with a default printer, maybe it helps. Before:
(server)$ lpstat -t
scheduler is running
no system default destination
device for ricoh: socket://print:9100
ricoh accepting requests since Mon 19 Dec 2016 06:56:37 PM CET
printer ricoh is idle. enabled since Mon 19 Dec 2016 06:56:37 PM CET
After:
(server)$ lpstat -t
scheduler is running
system default destination: ricoh
device for ricoh: socket://print:9100
ricoh accepting requests since Mon 19 Dec 2016 06:56:37 PM CET
printer ricoh is idle. enabled since Mon 19 Dec 2016 06:56:37 PM CET
Also noticed that under System Settings
the setting Share printers connected to this system
is unticked, still the ricoh
is shared and works. Should Share printers connected to this system
be on to disable idle timeout?
Not doing this for now to test if setting a system default printer fix the issue.
Cups daemon exited again, now trying with Share printers connected to this system
in Server Settings
.
In addition to sharing the printer, you need to enable printer sharing on the system (from the main admin tab), otherwise cupsd will idle exit.
Thanks @michaelrsweet testing this config and will report back. Feeling like a regression test script ^_^
@michaelrsweet I can confirm that the only setting who prevents cups going idle and exiting is Share printers connected to this system
in Server Settings
. Thanks!
TLTR; Just installed a new print server and
cupsd
dies with no logged errors :\LONG; Ubuntu 16.04.1 LTS, fresh install plus:
Configuration seems fine:
cupsd -t
"/etc/cups/cups-files.conf" is OK. "/etc/cups/cupsd.conf" is OK.
Printing too, no issues in log files AFAIK but the process disappear after overnight. I attached a strace to figure out and it revealed.. nothing ^_^
A simple
service cups restart
bring back to life the daemon, pretty annoying for a print server.