Caddy only returns 404 Not Found
Opened this issue · 5 comments
First of all, thank you for providing this helpful script!
However, I'm only getting a 404 error from Caddy:
* Trying 192.168.3.17...
* TCP_NODELAY set
* Connected to 192.168.3.17 (192.168.3.17) port 80 (#0)
> GET / HTTP/1.1
> Host: 192.168.3.17
> User-Agent: curl/7.64.1
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Server: Caddy
< Date: Tue, 24 Nov 2020 13:01:50 GMT
< Content-Length: 0
<
* Connection #0 to host 192.168.3.17 left intact
* Closing connection 0
Any ideas on how can I investigate further where the problem is? Opening the jail's URL in the browser only shows a white (blank) page.
I'm running FreeNAS 11.3-RELEASE-p14 and as far as I could see the installation went through without any errors.
From inside the jail, what's the output of caddy --version
?
root@heimdall:~ # caddy version
(devel)
root@heimdall:~ # caddy build-info
path: github.com/caddyserver/caddy/v2/cmd/caddy
main: github.com/caddyserver/caddy/v2 (devel)
dependencies:
(devel)
It seems like it is not a release, but the development branch from Github?
Looks like the package maintainers have upgraded the caddy
package to Caddy v2. Somewhat unfortunate given its lack of backward-compatibility--I'd thought they were going to use a new caddy2
package instead. If you look at the caddyv2
branch of this script, you can pull the updated Caddyfile from there.
A little progress… Caddy now returns 200 OK
, but still no heimdall page…
* Trying 192.168.3.17...
* TCP_NODELAY set
* Connected to 192.168.3.17 (192.168.3.17) port 80 (#0)
> GET / HTTP/1.1
> Host: 192.168.3.17
> User-Agent: curl/7.64.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: Caddy
< Date: Wed, 25 Nov 2020 06:52:12 GMT
< Content-Length: 0
<
* Connection #0 to host 192.168.3.17 left intact
* Closing connection 0
Inside the jail, curl -v localhost:9000
only returns an empty response:
* Connected to localhost (127.0.0.1) port 9000 (#0)
> GET / HTTP/1.1
> Host: localhost:9000
> User-Agent: curl/7.72.0
> Accept: */*
>
* Empty reply from server
* Connection #0 to host localhost left intact
curl: (52) Empty reply from server
Maybe heimdall itself isn't running correctly?