这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

bosun becomes unresponsive #1753

@Dieterbe

Description

@Dieterbe
dieter@ziggurat:~$ /usr/sbin/bosun --version
bosun version 0.5.0-rc3 (e69b9e71ad635705370b74000730d3e1a09e6e1d) built 2016-05-16T16:35:48Z

bosun-1
bosun-2

so we have nginx in between, which just has localhost:8070 as an upstream:

2016/05/25 05:34:57 [error] 11207#0: *792732 connect() failed (111: Connection refused) while connecting to upstream, client: 162.243.158.119, server: bosun.raintank.io, request: "GET /api/alerts?filter= HTTP/1.1", upstream: "http://[::1]:8070/api/alerts?filter=", host: "bosun.raintank.io"
2016/05/25 05:34:57 [error] 11216#0: *792727 connect() failed (111: Connection refused) while connecting to upstream, client: 52.63.29.76, server: bosun.raintank.io, request: "GET /api/alerts?filter= HTTP/1.1", upstream: "http://[::1]:8070/api/alerts?filter=", host: "bosun.raintank.io"

it's running:

root@ziggurat:/var/log/nginx# netstat -nlp | grep 8070
tcp        0      0 127.0.0.1:8070          0.0.0.0:*               LISTEN      24887/bosun     

... but this gets "stuck"

root@ziggurat:/var/log/nginx# curl 'http://localhost:8070/api/alerts?filter='

i was able to get a stackdump without a hitch (while the above curl was running):

curl 'http://localhost:8070/debug/pprof/goroutine?debug=1' > goroutines.txt
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 19782    0 19782    0     0   865k      0 --:--:-- --:--:-- --:--:--  878k

i uploaded it to https://gist.github.com/Dieterbe/a86e6907418accf8ec7ef5b2c46732dc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions