I updated to caddy 2.8.1 and now I’m running into an error launching it. my configuration was working just fine until I updated it and I don’t really know what to do or what’s going on with why it wont run correctly anymore. I am very new to a lot of this (server hosting, linux, and and networking) and I just was hosting a jellyfin server so I could watch stuff during lunches at work and such. I don’t fully understand a lot of these concepts but I would like to learn about them. I do have xcaddy and go installed because I’m using cloudflare. any Advice, help or just understanding of what’s going on is greatly appreciated.
2. Error messages and/or full log output:
Error: adapting config using caddyfile: parsing caddyfile tokens for 'tls': getting module named 'dns.providers.cloudflare': module not registered: dns.providers.cloudflare, at Caddyfile:4
The issue is you installed Caddy using the apt repo, then built Caddy with the cloudflare plugin and placed the final executable in-place of the plain vanilla Caddy executable. The apt tool doesn’t know that you’ve customized the executable, so it blindly replaced the executable with the new version when it came time to upgrade.
To retain the custom executable, you should follow the steps at the bottom of this page:
Build the custom caddy executable like you did before if you need the Cloudflare plugin.
That said, your Caddyfile seems to not require wildcard certificate, so you don’t need the Cloudflare plugin.
when you say doesn’t require wildcard certificate and that I don’t need the cloudflare plugin, what exactly does that mean? If I can just run it without using cloudflare and only caddy I wouldn’t mind that. Also thank you for the quick reply and help