1. My Caddy version (caddy version
):
v2.0.0-beta.19 h1:6kbQ5jf/lWjD+o3uuq7rnfrvw+x5UU3tuwGpZsLKr7M=
2. How I run Caddy:
Followed this guide exactly: Install — Caddy Documentation
Did the manually install as a service
a. System environment:
Ubuntu 16.04, using systemd
b. Command:
/usr/bin/caddy run --config /etc/caddy/Caddyfile --resume --environ
c. Service/unit/compose file:
# This service file requires the following:
#
# 1) Group named caddy:
# $ groupadd --system caddy
#
# 2) User named caddy, with a writeable home folder:
# $ useradd --system \
# --gid caddy \
# --create-home \
# --home-dir /var/lib/caddy \
# --shell /usr/sbin/nologin \
# --comment "Caddy web server" \
# caddy
#
# 3) Caddyfile at /etc/caddy/Caddyfile that is
# readable by the caddy user
#
[Unit]
Description=Caddy Web Server
Documentation=https://caddyserver.com/docs/
After=network.target
[Service]
User=caddy
Group=caddy
ExecStart=/usr/bin/caddy run --config /etc/caddy/Caddyfile --resume --environ
ExecReload=/usr/bin/caddy reload --config /etc/caddy/Caddyfile
TimeoutStopSec=5s
LimitNOFILE=1048576
LimitNPROC=512
PrivateTmp=true
ProtectSystem=full
AmbientCapabilities=CAP_NET_BIND_SERVICE
[Install]
WantedBy=multi-user.target
d. My complete Caddyfile or JSON config:
http://met-zoom-test.bu.edu:80 {
reverse_proxy / localhost:9009
}
3. The problem I’m having:
At first I tried the Caddyfile without the http:// and port 80. However, whenever I would try going to the domain, nothing would load. But I checked and port 80 was open so I figured the issue was with Caddy. Somewhere along the way Caddy started auto switching to HTTPS, and this was an issue as the certificate never went through because of the ACME error. So first I tried disabling https in the caddyfile, but that did nothing and kept trying to do https (I flushed the DNS on my side to make sure it wasn’t my computer). Now I’m completely stuck as I can’t get it to stop forcing HTTPS, and I keep getting errors about must agree to terms.
4. Error messages and/or full log output:
Mar 25 12:28:42 MET-ZOOM caddy[10297]: 2020/03/25 12:28:42 [ERROR] Making new ACME client: acme: error: 400 :: POST :: https://acme-v02.api.letsencrypt.org/acme/new-acct :: urn:ietf:params:acme:error:malformed :: must agree to terms of seMar 25 12:28:43 MET-ZOOM caddy[10297]: 2020/03/25 12:28:43 [ERROR] Making new ACME client: acme: error: 400 :: POST :: https://acme-v02.api.letsencrypt.org/acme/new-acct :: urn:ietf:params:acme:error:malformed :: must agree to terms of seMar 25 12:28:44 MET-ZOOM caddy[10297]: 2020/03/25 12:28:44 [ERROR] attempt 1: [met-zoom-test.bu.edu] Obtain: acme: error: 400 :: POST :: https://acme-v02.api.letsencrypt.org/acme/new-acct :: urn:ietf:params:acme:error:malformed :: must agMar 25 12:29:11 MET-ZOOM caddy[10297]: 2020/03/25 12:29:11 http: TLS handshake error from 168.122.70.188:59635: no certificate available for 'met-zoom-test.bu.edu'
Mar 25 12:29:14 MET-ZOOM caddy[10297]: 2020/03/25 12:29:14 http: TLS handshake error from 168.122.70.188:59644: no certificate available for 'met-zoom-test.bu.edu'
Mar 25 12:29:17 MET-ZOOM caddy[10297]: 2020/03/25 12:29:17 http: TLS handshake error from 168.122.70.188:59653: no certificate available for 'met-zoom-test.bu.edu'
Mar 25 12:29:37 MET-ZOOM caddy[10297]: 2020/03/25 12:29:37 http: TLS handshake error from 168.122.70.188:59786: no certificate available for 'met-zoom-test.bu.edu'
Mar 25 12:29:45 MET-ZOOM caddy[10297]: 2020/03/25 12:29:45 [ERROR] Making new ACME client: acme: error: 400 :: POST :: https://acme-staging-v02.api.letsencrypt.org/acme/new-acct :: urn:ietf:params:acme:error:malformed :: must agree to terMar 25 12:29:46 MET-ZOOM caddy[10297]: 2020/03/25 12:29:46 [ERROR] Making new ACME client: acme: error: 400 :: POST :: https://acme-staging-v02.api.letsencrypt.org/acme/new-acct :: urn:ietf:params:acme:error:malformed :: must agree to terMar 25 12:29:47 MET-ZOOM caddy[10297]: 2020/03/25 12:29:47 [ERROR] attempt 2: [met-zoom-test.bu.edu] Obtain: acme: error: 400 :: POST :: https://acme-staging-v02.api.letsencrypt.org/acme/new-acct :: urn:ietf:params:acme:error:malformed ::Mar 25 12:30:11 MET-ZOOM caddy[10297]: 2020/03/25 12:30:11 http: TLS handshake error from 168.122.70.188:59907: no certificate available for 'met-zoom-test.bu.edu'
Mar 25 12:30:34 MET-ZOOM caddy[10297]: 2020/03/25 12:30:34 http: TLS handshake error from 168.122.70.188:59970: no certificate available for 'met-zoom-test.bu.edu'
Mar 25 12:30:52 MET-ZOOM caddy[10297]: 2020/03/25 12:30:52 http: TLS handshake error from 168.122.70.188:60023: no certificate available for 'met-zoom-test.bu.edu'
Mar 25 12:31:47 MET-ZOOM caddy[10297]: 2020/03/25 12:31:47 [ERROR] Making new ACME client: acme: error: 400 :: POST :: https://acme-staging-v02.api.letsencrypt.org/acme/new-acct :: urn:ietf:params:acme:error:malformed :: must agree to terMar 25 12:31:48 MET-ZOOM caddy[10297]: 2020/03/25 12:31:48 [ERROR] Making new ACME client: acme: error: 400 :: POST :: https://acme-staging-v02.api.letsencrypt.org/acme/new-acct :: urn:ietf:params:acme:error:malformed :: must agree to terMar 25 12:31:49 MET-ZOOM caddy[10297]: 2020/03/25 12:31:49 [ERROR] attempt 3: [met-zoom-test.bu.edu] Obtain: acme: error: 400 :: POST :: https://acme-staging-v02.api.letsencrypt.org/acme/new-acct :: urn:ietf:params:acme:error:malformed ::Mar 25 12:33:49 MET-ZOOM caddy[10297]: 2020/03/25 12:33:49 [ERROR] Making new ACME client: acme: error: 400 :: POST :: https://acme-staging-v02.api.letsencrypt.org/acme/new-acct :: urn:ietf:params:acme:error:malformed :: must agree to terMar 25 12:33:50 MET-ZOOM caddy[10297]: 2020/03/25 12:33:50 [ERROR] Making new ACME client: acme: error: 400 :: POST :: https://acme-staging-v02.api.letsencrypt.org/acme/new-acct :: urn:ietf:params:acme:error:malformed :: must agree to terMar 25 12:33:51 MET-ZOOM caddy[10297]: 2020/03/25 12:33:51 [ERROR] attempt 4: [met-zoom-test.bu.edu] Obtain: acme: error: 400 :: POST :: https://acme-staging-v02.api.letsencrypt.org/acme/new-acct :: urn:ietf:params:acme:error:malformed ::Mar 25 12:38:51 MET-ZOOM caddy[10297]: 2020/03/25 12:38:51 [ERROR] Making new ACME client: acme: error: 400 :: POST :: https://acme-staging-v02.api.letsencrypt.org/acme/new-acct :: urn:ietf:params:acme:error:malformed :: must agree to terMar 25 12:38:53 MET-ZOOM caddy[10297]: 2020/03/25 12:38:53 [ERROR] Making new ACME client: acme: error: 400 :: POST :: https://acme-staging-v02.api.letsencrypt.org/acme/new-acct :: urn:ietf:params:acme:error:malformed :: must agree to terMar 25 12:38:54 MET-ZOOM caddy[10297]: 2020/03/25 12:38:54 [ERROR] attempt 5: [met-zoom-test.bu.edu] Obtain: acme: error: 400 :: POST :: https://acme-staging-v02.api.letsencrypt.org/acme/new-acct :: urn:ietf:params:acme:error:malformed ::Mar 25 12:41:11 MET-ZOOM systemd[1]: Stopping Caddy Web Server...
5. What I already tried:
I’ve tried googling this error for hours, and everything I’ve found has been for Caddy v1 (tls off, or -agree flag, etc.) I have no clue where to go from here other than switching to another web server. (I do remember at some point trying caddy v1 but some other issues came up that I don’t remember too clearly, honestly after looking at this for 2 days I just need some clear guidance before I try anything else)