valeriansaliou / vigil

🚦 Microservices Status Page. Monitors a distributed infrastructure and sends alerts (Slack, SMS, etc.).

Home Page:https://crates.io/crates/vigil-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error unclear when server inet is "[::1]:8080" in docker

mjarkk opened this issue · comments

When i start the docker with the example config i get get error:

...
thread 'vigil-responder' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 99, kind: AddrNotAvailable, message: "Address not available" }', src/responder/manager.rs:70:6
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

After some debugging i discovered i needed to change

[server]
inet = "[::1]:8080"

To:

[server]
inet = "0.0.0.0:8080"

But it took me very long to discover what exactly was wrong as the error is unclear.
It would be nice if the error message showed some more context to which line is incorrect.

This address is also used in the example config and i expect i can copy that to get started:

vigil/config.cfg

Lines 7 to 12 in b666b27

[server]
log_level = "debug"
inet = "[::1]:8080"
workers = 4
reporter_token = "REPLACE_THIS_WITH_A_SECRET_KEY"