Skip to content
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

Crash when starting the server #26

Open
ydemartino opened this issue Apr 17, 2024 · 0 comments
Open

Crash when starting the server #26

ydemartino opened this issue Apr 17, 2024 · 0 comments
Assignees

Comments

@ydemartino
Copy link

Hi,

I'm very interested in your module, but I'm getting a crash when starting the server:

{"level":"info","ts":1713386974.230629,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
{"level":"info","ts":1713386974.2570424,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
{"level":"info","ts":1713386974.2582517,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0x40005fb180"}
{"level":"info","ts":1713386974.258622,"logger":"http.auto_https","msg":"server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS","server_name":"srv0","https_port":443}
{"level":"info","ts":1713386974.2587116,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x10b7920]

I'm using the following Docker file

FROM caddy:builder-alpine AS builder

RUN xcaddy build \
    --with github.com/dulli/caddy-wol

FROM caddy:alpine

COPY --from=builder /usr/bin/caddy /usr/bin/caddy

Any idea how I can fix this?
Thanks

@dulli dulli self-assigned this Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants