-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: ambiguous config file format; please specify adapter (use --adapter)
since 2.8.2
#6363
Comments
I have the same issue, but creating a system override file "fixed" it as a workaround for now: # /etc/systemd/system/caddy.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/bin/caddy run --adapter caddyfile --environ --config /etc/caddy/Caddyfile
ExecReload=
ExecReload=/usr/bin/caddy reload --adapter caddyfile --config /etc/caddy/Caddyfile --force |
I though about it, but I would prefer not creating an override, because it would also override any future way of starting Caddy. I'll go that way if there's no alternative, but I'd like to be sure there isn't one before ;) |
This will be fixed by #6362 |
Thanks! I'll do the override in the meantime. Keeping the issue open for others till it's fixed |
This just hit me on Ubuntu 24.04 LTS. I noticed Caddy was no longer running after the (automated) update of the pkg. |
Affected here as well, Caddy stopped starting suddenly after package updates |
Same Problem here, dont want to override so ich will stay at 2.7.6 - hope it get fixed as soon as possible |
2.8.2 Same startup failure |
Those of you experiencing it, you can test the fix by downloading the CI artifacts from here: https://github.com/caddyserver/caddy/actions/runs/9337830397 |
I observed the same yesterday on Debian 12, after simple apt update / upgrade. This morning,"apt upgrade" brought the 2.8.4:
Thanks for the quick fix (and the overall nice work)!! |
Hello,
Since 2.8.2 my Caddy doesn't starts with the error
Error: ambiguous config file format; please specify adapter (use --adapter)
I get the meaning of the error and why I get it (Caddy couldn't detect the language without ambiguities). What I'm not getting is how I can pass the Adapter option.
I'm running Caddy on debian through systemd, and is there a way to pass this adatper without having to override the systemd unit file (for exemple an entry in the Caddyfile itself) ?
Thanks for your help. Here is my current very simple Caddyfile :
The text was updated successfully, but these errors were encountered: