Skip to content

Error running vigil #158

@liork200

Description

@liork200

Getting error while running vigil docker

/home/e100894>docker run -p 8080:8080 -e RUST_BACKTRACE=full -v ~/.vigil/config.cfg:/etc/vigil.cfg valeriansaliou/vigil:v1.27.0
(INFO) - starting up
(DEBUG) - prober store: got service web
(DEBUG) - prober store: got node web:google
(DEBUG) - prober store: got replica web:google:http://www.google.com
(INFO) - initialized prober store
(DEBUG) - spawn managed thread: prober-poll
(DEBUG) - spawn managed thread: prober-script
(DEBUG) - spawn managed thread: responder
(DEBUG) - running a poll probe operation...
(DEBUG) - spawn managed thread: aggregator
(DEBUG) - replicas will get probed in 1/4 threads, on 1 total replicas and chunk size of 1
(DEBUG) - will probe replica: HTTP("http://www.google.com/") with retry count: 0
(DEBUG) - running an aggregate operation...
(DEBUG) - aggregate probe: web
(DEBUG) - aggregate node: web:google
(DEBUG) - aggregated status for replica: web:google:http://www.google.com => Healthy
(DEBUG) - aggregated status for node: web:google => Healthy
(DEBUG) - aggregated status for probe: web => Healthy
(INFO) - ran aggregate operation (notified: false)
(DEBUG) - running a script probe operation...
(INFO) - ran script probe operation
(DEBUG) - glob converted to regex: Glob { glob: "", re: "(?-u)^[^/]$", opts: GlobOptions { case_insensitive: false, literal_separator: true, backslash_escape: true, empty_alternates: false }, tokens: Tokens([ZeroOrMore]) }
(DEBUG) - built glob set; 0 literals, 0 basenames, 0 extensions, 0 prefixes, 0 suffixes, 0 required extensions, 1 regexes
thread 'vigil-responder' panicked at src/responder/manager.rs:113:6:
called Result::unwrap() on an Err value: Os { code: 99, kind: AddrNotAvailable, message: "Address not available" }
stack backtrace:
0: 0x7f05a2779554 -
1: 0x7f05a25ead2b -
2: 0x7f05a274b67e -
3: 0x7f05a277e6a9 -
4: 0x7f05a277df9b -
5: 0x7f05a277f0d8 -
6: 0x7f05a277ea15 -
7: 0x7f05a277e979 -
8: 0x7f05a277e964 -
9: 0x7f05a252bc82 -
10: 0x7f05a252c095 -
11: 0x7f05a28ba46b -
12: 0x7f05a285a73f -
13: 0x7f05a28b2b92 -
14: 0x7f05a278012b -

Using follow config file

Vigil

Microservices Status Page

Configuration file

Example: https://github.com/valeriansaliou/vigil/blob/master/config.cfg

[server]

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

manager_token = "REPLACE_THIS_WITH_A_VERY_SECRET_KEY"
reporter_token = "REPLACE_THIS_WITH_A_SECRET_KEY"

[assets]

path = "./res/assets/"

[branding]

page_title = "Crisp Status"
page_url = "https://status.crisp.chat/"
company_name = "Algo Infra"
icon_color = "#1972F5"
icon_url = "https://valeriansaliou.github.io/vigil/images/crisp-icon.png"
logo_color = "#1972F5"
logo_url = "https://valeriansaliou.github.io/vigil/images/crisp-logo.svg"
website_url = "https://crisp.chat/"
support_url = "mailto:support@crisp.chat"
custom_html = ""

[metrics]

poll_interval = 120
poll_retry = 2

poll_http_status_healthy_above = 200
poll_http_status_healthy_below = 400

poll_delay_dead = 10
poll_delay_sick = 5

poll_parallelism = 4

push_delay_dead = 20

push_system_cpu_sick_above = 0.90
push_system_ram_sick_above = 0.90

script_interval = 300

script_parallelism = 2

local_delay_dead = 40

[probe]

[[probe.service]]

id = "web"
label = "Web nodes"

[[probe.service.node]]

id = "google"
label = "Google"
mode = "poll"
replicas = ["http://www.google.com"]

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