OPNsense Forum

International Forums => German - Deutsch => Topic started by: DerMilderJoghurt on May 18, 2025, 12:40:29 PM

Title: Caddy startet nicht
Post by: DerMilderJoghurt on May 18, 2025, 12:40:29 PM
Ich versuche gerade meinen NGINX Proxy Manager mit Caddy abzulösen.
Wenn ich Caddy starte, bekomme ich folgenden Fehler im Log:
"warn","ts":"2025-05-18T10:38:13Z","logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80}
Title: Re: Caddy startet nicht
Post by: Monviech (Cedrik) on May 18, 2025, 01:30:05 PM
Schau in /var/log/caddy/caddy.log nach.

Halte dich an die Anleitung dann klappt es wahrscheinlich:

https://docs.opnsense.org/manual/how-tos/caddy.html#prepare-opnsense-for-caddy-after-installation
Title: Re: Caddy startet nicht
Post by: DerMilderJoghurt on May 18, 2025, 02:06:33 PM
Im Log steht folgendes:

{"level":"info","ts":1747564888.5042763,"msg":"using config from file","file":"/usr/local/etc/caddy/Caddyfile"}
{"level":"warn","ts":1747564888.504377,"msg":"No files matching import glob pattern","pattern":"/usr/local/etc/caddy/caddy.d/*.layer4listener"}
{"level":"warn","ts":1747564888.5043943,"msg":"No files matching import glob pattern","pattern":"/usr/local/etc/caddy/caddy.d/*.layer4global"}
{"level":"warn","ts":1747564888.5044076,"msg":"No files matching import glob pattern","pattern":"/usr/local/etc/caddy/caddy.d/*.global"}
{"level":"warn","ts":1747564888.5044427,"msg":"No files matching import glob pattern","pattern":"/usr/local/etc/caddy/caddy.d/*.conf"}
{"level":"info","ts":1747564888.5054502,"msg":"adapted config to JSON","adapter":"caddyfile"}
{"level":"info","ts":1747564888.505937,"msg":"redirected default logger","from":"stderr","to":"unixgram//var/run/caddy/log.sock"}
Error: loading initial config: loading new config: http app module: start: listening on :443: listen tcp :443: bind: address already in use
Error: caddy process exited with error: exit status 1
{"level":"info","ts":1747565211.815949,"msg":"using config from file","file":"/usr/local/etc/caddy/Caddyfile"}
{"level":"warn","ts":1747565211.8160388,"msg":"No files matching import glob pattern","pattern":"/usr/local/etc/caddy/caddy.d/*.layer4listener"}
{"level":"warn","ts":1747565211.8160534,"msg":"No files matching import glob pattern","pattern":"/usr/local/etc/caddy/caddy.d/*.layer4global"}
{"level":"warn","ts":1747565211.8160672,"msg":"No files matching import glob pattern","pattern":"/usr/local/etc/caddy/caddy.d/*.global"}
{"level":"warn","ts":1747565211.8160834,"msg":"No files matching import glob pattern","pattern":"/usr/local/etc/caddy/caddy.d/*.conf"}
{"level":"info","ts":1747565211.817014,"msg":"adapted config to JSON","adapter":"caddyfile"}
{"level":"info","ts":1747565211.8173897,"msg":"redirected default logger","from":"stderr","to":"unixgram//var/run/caddy/log.sock"}
Error: loading initial config: loading new config: http app module: start: listening on :80: listen tcp :80: bind: address already in use
Error: caddy process exited with error: exit status 1

Das habe ich mir schon fast gedacht.
Kann ich irgendwie nachgucken was diese Ports benutzt.
Die WebGUI läuft bereits auf einem anderen Port.
Title: Re: Caddy startet nicht
Post by: DerMilderJoghurt on May 18, 2025, 02:19:15 PM
Problem ist gelöst, man sollte die Anleitung richtig lesen.
Enable the checkbox for HTTP Redirect - Disable web GUI redirect rule.
Das hatte ich nicht gemacht.
Title: Re: Caddy startet nicht
Post by: Monviech (Cedrik) on May 18, 2025, 02:38:23 PM
Super :)