Closed spikespaz closed 2 years ago
That (misleading) error from Cloudflare means your credentials are wrong; see #27, and probably a duplicate of #38.
I saw the thing in the readme. I tried creating a fresh token, same way as I did originally, by creating a CA API key under my account. It didn't work, and this just happened suddenly. Does my handling of the environment variable look correct?
Hmm. I think so, but:
CLOUDFLARE_API_TOKEN=v1.0-1914e277-e85c-4020-9452-692e114e6446
I don't think I've ever seen my own tokens have v1.0-
prefixed; also, I'm assuming you've obfuscated your actual token right?
(I'm also not super familiar with Docker Compose so I can't verify that for you.)
Running caddy environ
or caddy run --environ
will show you the environment Caddy sees, and should verify for you whether your env is set up properly.
Yeah, that's a fake token. The real one is longer, but it does have the prefix there. And it was working for months, until now.
I don't really know what to tell ya then. Caddy code hasn't changed, the plugin hasn't changed, if it just suddenly stopped and your own network/system/infrastructure didn't change, then something with Cloudflare must have changed. I would ask Cloudflare why your auth token suddenly stopped working.
Hey there,
A little while ago my Vaultwarden instance stopped working. I checked the web frontend and the interface was down with (first a CloudFlare host error, and playing with it made it change into) an invalid SSL certificate.
Here are the logs, truncated for brevity:
The
Caddyfile
:Lastly the
docker-compose.yaml
: