V2 Adapter "adapting config using caddyfile: EOF"

1. My Caddy version (caddy -version):

I just cloned from

git clone -b v2 "https://github.com/caddyserver/caddy.git"

2. How I run Caddy:

a. System environment:

Ubuntu 18.04.3 LTS

b. Command:

(base) willy.aguirre@localhost:~$ touch Caddyfile
(base) willy.aguirre@localhost:~$ caddy run --config Caddyfile --adapter caddyfile
2020/01/21 23:40:51.911	INFO	using provided configuration	{"config_file": "Caddyfile", "config_adapter": "caddyfile"}
run: adapting config using caddyfile: EOF

3. The problem I’m having:

when It tried to read Caddyfile. I think is permission… :thinking:

4. What I already tried:

Config adapters

The Caddyfile is empty? I don’t think that error is surprising then, is it?

1 Like

yep, the Caddyfile is empty

(base) willy.aguirre@localhost:~$ caddy run --config /home/willy.aguirre/Caddyfile --adapter caddyfile
2020/01/22 12:42:50.375	INFO	using provided configuration	{"config_file": "/home/willy.aguirre/Caddyfile", "config_adapter": "caddyfile"}
run: adapting config using caddyfile: EOF

Then that is expected – an empty Caddyfile is invalid and usually the sign of a bug or error at the (file?) system level.

so Is it a bug? yep is a file without extension. if is it a bug?I could open an issue ?

It’s not a bug, the error is that your Caddyfile is empty… so just put something in it. You need at least a site address

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.