Since the beginning of September, I encounter an issue with cups-browsed.service on Manjaro 20.0.3 and Manjaro 20.1. I wish to enable this service to automatically configure a printer provides by a CUPS Printer Server on the local network. At this time, I disabled the cups-browsed.service to avoid a timeout of one or two minutes at Manjaro’s shutdown.
I simply use the official CUPS package build by Manjaro Team and I didn’t modify the conf files in “/etc/cups/”.
Here the SystemD log:
[LTC-10AU-E73 ~]# systemctl stop cups-browsed
[LTC-10AU-E73 ~]# systemctl status cups-browsed
● cups-browsed.service - Make remote CUPS printers available locally
Loaded: loaded (/usr/lib/systemd/system/cups-browsed.service; disabled; vendor preset: disabled)
Active: failed (Result: timeout) since Sat 2020-09-12 18:44:22 CEST; 14s ago
Process: 4522 ExecStart=/usr/bin/cups-browsed (code=killed, signal=KILL)
Main PID: 4522 (code=killed, signal=KILL)
Sep 12 18:41:35 LTC-10AU-E73 systemd[1]: Started Make remote CUPS printers available locally.
Sep 12 18:42:52 LTC-10AU-E73 systemd[1]: Stopping Make remote CUPS printers available locally...
Sep 12 18:44:22 LTC-10AU-E73 systemd[1]: cups-browsed.service: State 'stop-sigterm' timed out. Killing.
Sep 12 18:44:22 LTC-10AU-E73 systemd[1]: cups-browsed.service: Killing process 4522 (cups-browsed) with signal SIGKILL.
Sep 12 18:44:22 LTC-10AU-E73 systemd[1]: cups-browsed.service: Killing process 4523 (gmain) with signal SIGKILL.
Sep 12 18:44:22 LTC-10AU-E73 systemd[1]: cups-browsed.service: Killing process 4524 (gdbus) with signal SIGKILL.
Sep 12 18:44:22 LTC-10AU-E73 systemd[1]: cups-browsed.service: Main process exited, code=killed, status=9/KILL
Sep 12 18:44:22 LTC-10AU-E73 systemd[1]: cups-browsed.service: Failed with result 'timeout'.
Sep 12 18:44:22 LTC-10AU-E73 systemd[1]: Stopped Make remote CUPS printers available locally.
Can you take a look at this issue please ?
Tell me what information you need to investigate on this issue.
In the future, when providing code/output, please copy-paste it in-between 3 backticks: ``` at the beginning and end of the code/text so that the output looks like this:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
instead of like this:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
(as that makes our life much easier so you get helped more quickly and efficiently)
You might have to add all your printers again after the above, but before you do, please check whether everything is working this way, but first look if you have any errors after the above…
I regenerated the complete uninstall/install sequence with the missing command. I apologize.
I replaced the log in the previous post with the new report.
Why do you start cups-browsed? Do you have Apple hardware that doesn’t recognize printers after you verified CUPS is working with systemctl status org.cups.cupsd.service?
Effectively, each time I execute the command to remove the cups package, the error of manjaro-printer displays. I didn’t see anything about this by monitoring the execution with journalctl -f beside. If you want to lead me to look for information about this error, I’m ready.
I start cups-browsed because it allows to dynamically add my printer. No action required, no need to open the CUPS Web Interface to manage printers (https://wiki.archlinux.org/index.php/CUPS#cups-browsed). The tree command shows the adding of the ppd file one or two seconds after the cups-browsed.service starts confirming the printer is set up on the system.
I think that was the wrong place/software to open a bug report (for): it’s not systemds fault when cups-browsed doesn’t stop before the configured/default timeout limit is hit.