Sensu Uchiwa Dashboard “Internal 500 error”

Recently had an issue with ruby resolving to IPV6 resulting in failed login attempts for Uchiwa dashboard with Sensu-API.

Uchiwa was reporting “Internal 500 error” and Sensu Log Message showed the following

{"timestamp":"2017-06-21T19:17:36.362831-0400","level":"warn","message":"transport connection error","reason":"possible authentication failure. wrong credentials?","user":"sensu"}

 

This magical line helped troubleshoot the issue.

IPV6 Example

## /opt/sensu/embedded/bin/ruby -rresolv -e 'puts Resolv.getaddress "localhost"'
::1
IPV4 Example
## /opt/sensu/embedded/bin/ruby -rresolv -e 'puts Resolv.getaddress "localhost"'

127.0.0.1