panto-agent quits after failing to send results
Problem description
After executing a Probe, if panto-agent
fails to send the Results, it exits.
14:26:40.428 [ERRO] run: could not send results: rpc error: code = Unavailable desc = transport is closing (main.go:301)
14:26:40.429 [INFO] run: Panto server could not be reached, spooling 1 results (main.go:306)
14:26:40.430 [WARN] dump: Can't dump spooler to file: no path specified (spooler.go:128)
14:26:40.447 [ERRO] RequestConfiguration: could not receive configuration: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: Error while dialing dial tcp [::1]:7575: connect: connection refused" (client.go:232)
14:26:40.447 [INFO] localConfigurationLoad: trying to load configuration from dump: (client.go:292)
14:26:40.447 [CRIT] RequestConfiguration: could not load configuration from dump: Path for the dump file is not set (see configuration-dump setting) (client.go:235)
14:26:40.447 [CRIT] run: failed to get agent configuration: Path for the dump file is not set (see configuration-dump setting) (main.go:292)
Environment
Panto versions
Local environment
- Operating system: macOS High Sierra 10.13.6 17G3025
- Browser and version: N/A
Reproduction
- Run
panto
&panto-web
- Setup an agent with 2 probe configurations
- Run
panto-agent
with the agent name - Let
panto-agent
run for 10 minutes and collect some metrics - Kill
panto
Expected behavior
panto-agent
notices the server is not answering and spools the results.
Observed behavior
panto-agent
outputs some logs and quits.