Unable to login to WebUI with set credentials

Setup

  • OS: CentOS 8
  • Docker
  • Sensu:6.1.0
  • Sensu-backend

I’ve stopped and deleted the container and reinitialised it, but I’m still facing the same issue.

Below, I’ve included what I ran to initialese the container and well as some stats and info on the health

Any help is greatly appreciated.

docker run -v /var/lib/sensu:/var/lib/sensu \
-d --name sensu-backend \
-p 3000:3000 -p 8080:8080 -p 8081:8081 \
-e SENSU_BACKEND_CLUSTER_ADMIN_USERNAME=sysadmin \
-e SENSU_BACKEND_CLUSTER_ADMIN_PASSWORD=myStronGPa33word \
sensu/sensu:6.1.0 \
sensu-backend start --state-dir /var/lib/sensu/sensu-backend --log-level debug
```

```

 ### Container Stats
 CONTAINER ID        NAME                CPU %               MEM USAGE / LIMIT     
 MEM %               NET I/O             BLOCK I/O           PIDS
 e59e18653356        sensu-backend       0.36%               33.62MiB / 1.787GiB   
 1.84%               32.9kB / 33.1kB     0B / 2.69MB         11

 ### Health Check
 [root@sensu ~]# curl http://localhost:3000/health
Client sent an API request to the web application port!
[root@sensu ~]#
[root@sensu ~]# curl http://localhost:8080/health
{"Alarms":null,"ClusterHealth": [{"MemberID":16982492749978847057,"MemberIDHex":"ebadef2dd322c751","Name":"default","Err":"context deadline exceeded","Healthy":false}],"Header":{"cluster_id":1441647427769989970,"member_id":16982492749978847057,"raft_term":4}}

I just copied and pasted your exact example and it worked for me.

$ docker run -v /var/lib/sensu:/var/lib/sensu \
> -d --name sensu-backend \
> -p 3000:3000 -p 8080:8080 -p 8081:8081 \
> -e SENSU_BACKEND_CLUSTER_ADMIN_USERNAME=sysadmin \
> -e SENSU_BACKEND_CLUSTER_ADMIN_PASSWORD=myStronGPa33word \
> sensu/sensu:6.1.0 \
> sensu-backend start --state-dir /var/lib/sensu/sensu-backend --log-level debug
0f2dd5300df5e6253efa820659d7fcd233cb66c507076c7079a059c9186a91d2

$ curl http://localhost:8080/health
{"Alarms":null,"ClusterHealth":[{"MemberID":2384853838778559171,"MemberIDHex":"2118b3ee4d9f6ac3","Name":"default","Err":"","Healthy":true}],"Header":{"cluster_id":9252069468072445177,"member_id":2384853838778559171,"raft_term":2}}
1 Like