1. Caddy version (caddy version
):
2.4.6
2. How I run Caddy:
???
a. System environment:
Raspberry OS Systemd
b. Command:
sudo caddy start
c. Service/unit/compose file:
idk
d. My complete Caddyfile or JSON config:
default
3. The problem I’m having:
caddy service doesn’t start
4. Error messages and/or full log output:
I installed caddy and it worked. I tried to make it run self hosted apps with SSL with no DNS, basically when I got to 192.168.1.105:port I wanted it to be ssl’d. encountered many problems and had to restart it several times and then suddenly It doesn’t work anymore, “caddy start” shows no problem but it doesn’t really work (going to local IP doesn’t show anything) and systemctl status show a problem. I messed up with random caddy files and folders (don’t remember what tho) but nothing worked, I did sudo apt purge command and installed caddy again but the problem persists.
this is systemctl status error
● caddy.service - Caddy
Loaded: loaded (/lib/systemd/system/caddy.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2022-04-23 00:16:55 BST; 4s ago
Docs: Welcome — Caddy Documentation
Process: 1185150 ExecStart=/usr/bin/caddy run --environ --config /etc/caddy/Caddyfile (code=exited, status=1/FAILURE)
Main PID: 1185150 (code=exited, status=1/FAILURE)
CPU: 80ms
Apr 23 00:16:55 raspberrypi caddy[1185150]: HOME=/var/lib/caddy
Apr 23 00:16:55 raspberrypi caddy[1185150]: LOGNAME=caddy
Apr 23 00:16:55 raspberrypi caddy[1185150]: USER=caddy
Apr 23 00:16:55 raspberrypi caddy[1185150]: INVOCATION_ID=b62b8b22cfed4928938779bac0b10073
Apr 23 00:16:55 raspberrypi caddy[1185150]: JOURNAL_STREAM=8:2784864
Apr 23 00:16:55 raspberrypi caddy[1185150]: {“level”:“info”,“ts”:1650669415.8768725,“msg”:“using provided configuration”,“config_file”:"/etc/caddy/Caddyfile",“config_adapter”:""}
Apr 23 00:16:55 raspberrypi caddy[1185150]: run: loading initial config: loading new config: starting caddy administration endpoint: listen tcp 127.0.0.1:2019: bind: address already in use
Apr 23 00:16:55 raspberrypi systemd[1]: Started Caddy.
Apr 23 00:16:55 raspberrypi systemd[1]: caddy.service: Main process exited, code=exited, status=1/FAILURE
Apr 23 00:16:55 raspberrypi systemd[1]: caddy.service: Failed with result ‘exit-code’.
5. What I already tried:
I purged caddy and reinstalled it