Skip to content

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

@mjarkk

Description

@mjarkk

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions