Skip to main content
  1. Posts/

cups.service start operation timed out in Fedora 22

·157 words·1 min·

Applications on my Fedora 22 system kept stalling when I attempted to print. My system journal was full of these log messages:

systemd[1]: cups.service start operation timed out. Terminating.
systemd[1]: Failed to start CUPS Scheduler.
systemd[1]: Unit cups.service entered failed state.
systemd[1]: cups.service failed.
audit[1]: <audit-1130> pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=cups comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'

If I tried to run systemctl start cups, the command would hang for quite a while and then fail. I broke out strace and tried to figure out what was going wrong.

The strace output showed that cups was talking to my local DNS servers and was asking constantly for the IP address of my laptop’s hostname.


Oh, I felt pretty stupid at this point.

I added my laptop’s hostname onto the line starting with in my /etc/hosts and tried to start cups once more. It started up in less than a second and is now working well.