Need to run systemctl daemon-reload for systemctl reload caddy to work

Hi everyone. Am using caddy server 0.9.4 and every time I need to do

systemctl restart caddy it gives me this error:

Job for caddy.service failed.
See “systemctl status caddy.service” and “journalctl -xe” for details.

I “solve” this by running systemctl daemon-reload

The log output from journalctl -xe is:

Jan 02 18:22:18 DeveloperClub systemd[1]: caddy.service: Start request repeated too quickly.
Jan 02 18:22:18 DeveloperClub systemd[1]: Failed to start Caddy HTTP/2 web server.

Hi Luis,

Caddy is failing to load, and systemd tries to reload it over and over again, till it reaches the limit specified in caddy.service. Are you able to run Caddy manually? You might have a bad Caddyfile.

I used to reboot the whole server in order to be able to start Caddy again. Thanks for the command, it will be useful in the future! :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.