marti1125
(Willy Aguirre)
1
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…
4. What I already tried:
Config adapters
matt
(Matt Holt)
2
The Caddyfile is empty? I don’t think that error is surprising then, is it?
1 Like
marti1125
(Willy Aguirre)
3
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
matt
(Matt Holt)
4
Then that is expected – an empty Caddyfile is invalid and usually the sign of a bug or error at the (file?) system level.
marti1125
(Willy Aguirre)
5
so Is it a bug? yep is a file without extension. if is it a bug?I could open an issue ?
matt
(Matt Holt)
6
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
system
(system)
Closed
7
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.