- Caddy version (
caddy version
):
v2
- How I run Caddy:
Caddyfile in /etc/caddy. caddy run command
a. System environment:
ubuntu 20.04 desktop. repository installation
b. Command:
caddy run
d. My complete Caddyfile or JSON config:
# The Caddyfile is an easy way to configure your Caddy web server.
#
# Unless the file starts with a global options block, the first
# uncommented line is always the address of your site.
#
# To use your own domain name (with automatic HTTPS), first make
# sure your domain's A/AAAA DNS records are properly pointed to
# this machine's public IP, then replace the line below with your
# domain name.
jellymmeirolas.ddnss.de {
reverse_proxy localhost:8096
}
syncmmeirolas.ddnss.de {
reverse_proxy localhost:8384 {
header_up Host localhost
}
}
# Another common task is to set up a reverse proxy:
# reverse_proxy localhost:8080
# Or serve a PHP site through php-fpm:
# php_fastcgi localhost:9000
# Refer to the Caddy docs for more information:
# https://caddyserver.com/docs/caddyfile
- The problem I’m having:
streams randomly exiting. losing connection to sever
Getting a lot of this output with systemctl status caddy:
Mai 27 17:00:06 mmeiraserv caddy[1596]: {"level":"error","ts":1622127606.941126,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","error":"http2: stream closed"}
Mai 27 17:00:06 mmeiraserv caddy[1596]: {"level":"error","ts":1622127606.942183,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","error":"context canceled"}
Mai 27 17:00:07 mmeiraserv caddy[1596]: {"level":"error","ts":1622127607.561407,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","error":"http2: stream closed"}
Mai 27 17:00:07 mmeiraserv caddy[1596]: {"level":"error","ts":1622127607.5617344,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","error":"http2: stream closed"}
Mai 27 17:00:07 mmeiraserv caddy[1596]: {"level":"error","ts":1622127607.6203701,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","error":"http2: stream closed"}
Mai 27 17:00:07 mmeiraserv caddy[1596]: {"level":"error","ts":1622127607.6229143,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","error":"http2: stream closed"}
systemctl status caddy after reloading returns:
Mai 29 02:50:53 mmeiraserv caddy[108520]: {"level":"info","ts":1622249453.032154,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":""}
Mai 29 02:50:53 mmeiraserv caddy[108520]: {"level":"warn","ts":1622249453.0329623,"msg":"input is not formatted with 'caddy fmt'","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":12}
Mai 29 02:50:53 mmeiraserv caddy[1596]: {"level":"info","ts":1622249453.033529,"logger":"admin.api","msg":"received request","method":"POST","host":"localhost:2019","uri":"/load","remote_addr":"127.0.0.1:49718","headers":{"Accept-Encodi
caddy run returns:
2021/05/29 01:16:49.031 INFO using adjacent Caddyfile
2021/05/29 01:16:49.032 WARN input is not formatted with 'caddy fmt' {"adapter": "caddyfile", "file": "Caddyfile", "line": 12}
run: loading initial config: loading new config: starting caddy administration endpoint: listen tcp 127.0.0.1:2019: bind: address already in use
cheers