Skip to content

Kapacitor 401 unautherized #76

@Mair

Description

@Mair

Hi,

I'm trying to follow the getting started documentation. I followed the instructions and ran ./sandbox up
the web site start up OK but then when navigating to the "Hosts Lists" I get an "Unable to get hosts error"

Looking at the containers I see sandbox_kapacitor_1 has stopped.
looking at the logs I see the following

2021/02/28 23:26:25 Using configuration at: /etc/kapacitor/kapacitor.conf
ts=2021-02-28T23:26:25.666Z lvl=info msg="kapacitor starting" service=run version=1.5.8 branch=HEAD commit=873d93b7377bf1c7bfbcd508e4ea6a6213997aff
ts=2021-02-28T23:26:25.666Z lvl=info msg="go version" service=run version=go1.15.5
ts=2021-02-28T23:26:25.666Z lvl=info msg="listing Kapacitor hostname" source=srv hostname=a727262bc6f9
ts=2021-02-28T23:26:25.670Z lvl=info msg="listing ClusterID and ServerID" source=srv cluster_id=cd642cef-dbc1-4d4b-901d-6a4bb6b5f67d server_id=3dcab9b5-011c-40aa-bc28-f7243de239fc
ts=2021-02-28T23:26:25.670Z lvl=info msg="opened task master" service=kapacitor task_master=main
ts=2021-02-28T23:26:25.677Z lvl=error msg="failed to connect to InfluxDB, retrying..." service=influxdb cluster=default err="Get \"http://influxdb:8086/ping\": dial tcp 172.20.0.3:8086: connect: connection refused"
ts=2021-02-28T23:26:26.340Z lvl=error msg="failed to connect to InfluxDB, retrying..." service=influxdb cluster=default err="Get \"http://influxdb:8086/ping\": dial tcp 172.20.0.3:8086: connect: connection refused"
ts=2021-02-28T23:26:26.904Z lvl=error msg="failed to connect to InfluxDB, retrying..." service=influxdb cluster=default err="Get \"http://influxdb:8086/ping\": dial tcp 172.20.0.3:8086: connect: connection refused"
ts=2021-02-28T23:26:27.783Z lvl=error msg="failed to connect to InfluxDB, retrying..." service=influxdb cluster=default err="Get \"http://influxdb:8086/ping\": dial tcp 172.20.0.3:8086: connect: connection refused"
ts=2021-02-28T23:26:30.239Z lvl=info msg="closed HTTP service" service=http
ts=2021-02-28T23:26:30.239Z lvl=info msg="closed HTTP service" service=http
ts=2021-02-28T23:26:30.239Z lvl=info msg="closed task master" service=kapacitor task_master=main
ts=2021-02-28T23:26:30.239Z lvl=error msg="encountered error" service=run err="open server: open service *influxdb.Service: failed to link subscription on startup: invalid response: code 401: body: {\"code\":\"unauthorized\",\"message\":\"unauthorized access\"}"

run: open server: open service *influxdb.Service: failed to link subscription on startup: invalid response: code 401: body: {"code":"unauthorized","message":"unauthorized access"}

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