{"action":"created","issue":{"url":"https://api.github.com/repos/sensu/sensu/issues/1209","repository_url":"https://api.github.com/repos/sensu/sensu","labels_url":"https://api.github.com/repos/sensu/sensu/issues/1209/labels{/name}","comments_url":"https://api.github.com/repos/sensu/sensu/issues/1209/comments","events_url":"https://api.github.com/repos/sensu/sensu/issues/1209/events","html_url":"https://github.com/sensu/sensu/issues/1209","id":146303368,"number":1209,"title":"Sensu 0.23 cannot connect to Redis with same settings as 0.22","user":{"login":"GhostLyrics","id":259911,"avatar_url":"https://avatars.githubusercontent.com/u/259911?v=3","gravatar_id":"","url":"https://api.github.com/users/GhostLyrics","html_url":"https://github.com/GhostLyrics","followers_url":"https://api.github.com/users/GhostLyrics/followers","following_url":"https://api.github.com/users/GhostLyrics/following{/other_user}","gists_url":"https://api.github.com/users/GhostLyrics/gists{/gist_id}","starred_url":"https://api.github.com/users/GhostLyrics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GhostLyrics/subscriptions","organizations_url":"https://api.github.com/users/GhostLyrics/orgs","repos_url":"https://api.github.com/users/GhostLyrics/repos","events_url":"https://api.github.com/users/GhostLyrics/events{/privacy}","received_events_url":"https://api.github.com/users/GhostLyrics/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-06T12:47:22Z","updated_at":"2016-04-06T14:27:11Z","closed_at":null,"body":"Sensu API hangs on reconnect to Redis. Same goes for Sensu-server which also gets stuck reconnecting.\r\n\r\n`/etc/sensu/conf.d/redis.json`:\r\n\r\n```json\r\n{\r\n  \"redis\": {\r\n    \"port\": 6379,\r\n    \"host\": \"localhost\",\r\n    \"reconnect_on_error\": true,\r\n    \"db\": 0,\r\n    \"auto_reconnect\": true\r\n  }\r\n}\r\n```\r\n\r\nLog output with `0.23`, on Ubuntu Trusty, from the sensu repository, `/var/log/sensu/sensu-api.log`:\r\n\r\n```none\r\n{\"timestamp\":\"2016-04-06T14:40:27.949838+0200\",\"level\":\"warn\",\"message\":\"config file does not exist or is not readable\",\"file\":\"/etc/sensu/config.json\"}\r\n{\"timestamp\":\"2016-04-06T14:40:27.950089+0200\",\"level\":\"warn\",\"message\":\"ignoring config file\",\"file\":\"/etc/sensu/config.json\"}\r\n{\"timestamp\":\"2016-04-06T14:40:27.950281+0200\",\"level\":\"warn\",\"message\":\"loading config files from directory\",\"directory\":\"/etc/sensu/conf.d\"}\r\n{\"timestamp\":\"2016-04-06T14:40:27.950347+0200\",\"level\":\"warn\",\"message\":\"loading config file\",\"file\":\"/etc/sensu/conf.d/client.json\"}\r\n{\"timestamp\":\"2016-04-06T14:40:27.950409+0200\",\"level\":\"warn\",\"message\":\"loading config file\",\"file\":\"/etc/sensu/conf.d/redis.json\"}\r\n{\"timestamp\":\"2016-04-06T14:40:27.950513+0200\",\"level\":\"warn\",\"message\":\"config file applied changes\",\"file\":\"/etc/sensu/conf.d/redis.json\",\"changes\":{\"redis\":[null,{\"port\":6379,\"host\":\"localhost\",\"reconnect_on_error\":true,\"db\":0,\"auto_reconnect\":true}]}}\r\n{\"timestamp\":\"2016-04-06T14:40:27.950586+0200\",\"level\":\"warn\",\"message\":\"loading config file\",\"file\":\"/etc/sensu/conf.d/handlers/default.json\"}\r\n{\"timestamp\":\"2016-04-06T14:40:27.950691+0200\",\"level\":\"warn\",\"message\":\"config file applied changes\",\"file\":\"/etc/sensu/conf.d/handlers/default.json\",\"changes\":{\"handlers\":{\"default\":[null,{\"command\":\"cat\",\"type\":\"pipe\",\"filters\":[],\"severities\":[\"ok\",\"warning\",\"critical\",\"unknown\"]}]}}}\r\n{\"timestamp\":\"2016-04-06T14:40:27.950758+0200\",\"level\":\"warn\",\"message\":\"loading config file\",\"file\":\"/etc/sensu/conf.d/api.json\"}\r\n{\"timestamp\":\"2016-04-06T14:40:27.950846+0200\",\"level\":\"warn\",\"message\":\"config file applied changes\",\"file\":\"/etc/sensu/conf.d/api.json\",\"changes\":{\"api\":[null,{\"port\":4567,\"host\":\"localhost\",\"bind\":\"0.0.0.0\"}]}}\r\n{\"timestamp\":\"2016-04-06T14:40:27.950912+0200\",\"level\":\"warn\",\"message\":\"loading config file\",\"file\":\"/etc/sensu/conf.d/checks/check_reboot_required.json\"}\r\n{\"timestamp\":\"2016-04-06T14:40:27.951089+0200\",\"level\":\"warn\",\"message\":\"config file applied changes\",\"file\":\"/etc/sensu/conf.d/checks/check_reboot_required.json\",\"changes\":{\"checks\":{\"check_reboot_required\":[null,{\"command\":\"check-file-exists.rb -w /var/run/reboot-required\",\"handlers\":[\"default\"],\"interval\":60,\"subscribers\":[\"all\"],\"standalone\":true}]}}}\r\n{\"timestamp\":\"2016-04-06T14:40:27.951162+0200\",\"level\":\"warn\",\"message\":\"loading config file\",\"file\":\"/etc/sensu/conf.d/checks/check_puppet_last_run.json\"}\r\n{\"timestamp\":\"2016-04-06T14:40:27.951263+0200\",\"level\":\"warn\",\"message\":\"config file applied changes\",\"file\":\"/etc/sensu/conf.d/checks/check_puppet_last_run.json\",\"changes\":{\"checks\":{\"check_puppet_last_run\":[null,{\"command\":\"sudo /opt/sensu/embedded/bin/check-puppet-last-run.rb --warn-age 600 --crit-age 1200 --summary-file /var/lib/puppet/state/last_run_summary.yaml\",\"handlers\":[\"default\"],\"interval\":60,\"subscribers\":[\"all\"],\"standalone\":true}]}}}\r\n{\"timestamp\":\"2016-04-06T14:40:27.951400+0200\",\"level\":\"warn\",\"message\":\"loading config file\",\"file\":\"/etc/sensu/conf.d/checks/check_disk_usage.json\"}\r\n{\"timestamp\":\"2016-04-06T14:40:27.951499+0200\",\"level\":\"warn\",\"message\":\"config file applied changes\",\"file\":\"/etc/sensu/conf.d/checks/check_disk_usage.json\",\"changes\":{\"checks\":{\"check_disk_usage\":[null,{\"command\":\"check-disk-usage.rb -p '.*gvfs'\",\"handlers\":[\"default\"],\"interval\":60,\"subscribers\":[\"all\"],\"standalone\":true}]}}}\r\n{\"timestamp\":\"2016-04-06T14:40:27.951587+0200\",\"level\":\"warn\",\"message\":\"loading config file\",\"file\":\"/etc/sensu/conf.d/checks/check_ntp_offset.json\"}\r\n{\"timestamp\":\"2016-04-06T14:40:27.951712+0200\",\"level\":\"warn\",\"message\":\"config file applied changes\",\"file\":\"/etc/sensu/conf.d/checks/check_ntp_offset.json\",\"changes\":{\"checks\":{\"check_ntp_offset\":[null,{\"command\":\"check-ntp.rb\",\"handlers\":[\"default\"],\"interval\":60,\"subscribers\":[\"all\"],\"standalone\":true}]}}}\r\n{\"timestamp\":\"2016-04-06T14:40:27.951798+0200\",\"level\":\"warn\",\"message\":\"loading config file\",\"file\":\"/etc/sensu/conf.d/rabbitmq.json\"}\r\n{\"timestamp\":\"2016-04-06T14:40:27.951941+0200\",\"level\":\"warn\",\"message\":\"config file applied changes\",\"file\":\"/etc/sensu/conf.d/rabbitmq.json\",\"changes\":{\"rabbitmq\":[null,{\"port\":5672,\"host\":\"localhost\",\"user\":\"sensu\",\"password\":\"REDACTED\",\"vhost\":\"sensu\",\"reconnect_on_error\":true,\"prefetch\":1}]}}\r\n{\"timestamp\":\"2016-04-06T14:40:28.289889+0200\",\"level\":\"warn\",\"message\":\"reconnecting to redis\"}\r\n{\"timestamp\":\"2016-04-06T14:40:28.296188+0200\",\"level\":\"info\",\"message\":\"api listening\",\"bind\":\"0.0.0.0\",\"port\":4567}\r\n{\"timestamp\":\"2016-04-06T14:40:33.302822+0200\",\"level\":\"info\",\"message\":\"GET /stashes\",\"remote_address\":\"127.0.0.1\",\"user_agent\":\"Go-http-client/1.1\",\"request_method\":\"GET\",\"request_uri\":\"/stashes\",\"request_body\":\"\"}\r\n{\"timestamp\":\"2016-04-06T14:40:36.213250+0200\",\"level\":\"info\",\"message\":\"GET /stashes\",\"remote_address\":\"127.0.0.1\",\"user_agent\":\"Go-http-client/1.1\",\"request_method\":\"GET\",\"request_uri\":\"/stashes\",\"request_body\":\"\"}\r\n// many more GETs\r\n```\r\n\r\nWith `0.22`:\r\n\r\n```none\r\n{\"timestamp\":\"2016-04-06T14:43:56.846987+0200\",\"level\":\"warn\",\"message\":\"config file does not exist or is not readable\",\"file\":\"/etc/sensu/config.json\"}\r\n{\"timestamp\":\"2016-04-06T14:43:56.847271+0200\",\"level\":\"warn\",\"message\":\"ignoring config file\",\"file\":\"/etc/sensu/config.json\"}\r\n{\"timestamp\":\"2016-04-06T14:43:56.847369+0200\",\"level\":\"warn\",\"message\":\"loading config files from directory\",\"directory\":\"/etc/sensu/conf.d\"}\r\n{\"timestamp\":\"2016-04-06T14:43:56.847485+0200\",\"level\":\"warn\",\"message\":\"loading config file\",\"file\":\"/etc/sensu/conf.d/client.json\"}\r\n{\"timestamp\":\"2016-04-06T14:43:56.847583+0200\",\"level\":\"warn\",\"message\":\"loading config file\",\"file\":\"/etc/sensu/conf.d/redis.json\"}\r\n{\"timestamp\":\"2016-04-06T14:43:56.847729+0200\",\"level\":\"warn\",\"message\":\"config file applied changes\",\"file\":\"/etc/sensu/conf.d/redis.json\",\"changes\":{\"redis\":[null,{\"port\":6379,\"host\":\"localhost\",\"reconnect_on_error\":true,\"db\":0,\"auto_reconnect\":true}]}}\r\n{\"timestamp\":\"2016-04-06T14:43:56.847948+0200\",\"level\":\"warn\",\"message\":\"loading config file\",\"file\":\"/etc/sensu/conf.d/handlers/default.json\"}\r\n{\"timestamp\":\"2016-04-06T14:43:56.848089+0200\",\"level\":\"warn\",\"message\":\"config file applied changes\",\"file\":\"/etc/sensu/conf.d/handlers/default.json\",\"changes\":{\"handlers\":{\"default\":[null,{\"command\":\"cat\",\"type\":\"pipe\",\"filters\":[],\"severities\":[\"ok\",\"warning\",\"critical\",\"unknown\"]}]}}}\r\n{\"timestamp\":\"2016-04-06T14:43:56.848189+0200\",\"level\":\"warn\",\"message\":\"loading config file\",\"file\":\"/etc/sensu/conf.d/api.json\"}\r\n{\"timestamp\":\"2016-04-06T14:43:56.848301+0200\",\"level\":\"warn\",\"message\":\"config file applied changes\",\"file\":\"/etc/sensu/conf.d/api.json\",\"changes\":{\"api\":[null,{\"port\":4567,\"host\":\"localhost\",\"bind\":\"0.0.0.0\"}]}}\r\n{\"timestamp\":\"2016-04-06T14:43:56.848418+0200\",\"level\":\"warn\",\"message\":\"loading config file\",\"file\":\"/etc/sensu/conf.d/checks/check_reboot_required.json\"}\r\n{\"timestamp\":\"2016-04-06T14:43:56.848585+0200\",\"level\":\"warn\",\"message\":\"config file applied changes\",\"file\":\"/etc/sensu/conf.d/checks/check_reboot_required.json\",\"changes\":{\"checks\":{\"check_reboot_required\":[null,{\"command\":\"check-file-exists.rb -w /var/run/reboot-required\",\"handlers\":[\"default\"],\"interval\":60,\"subscribers\":[\"all\"],\"standalone\":true}]}}}\r\n{\"timestamp\":\"2016-04-06T14:43:56.848704+0200\",\"level\":\"warn\",\"message\":\"loading config file\",\"file\":\"/etc/sensu/conf.d/checks/check_puppet_last_run.json\"}\r\n{\"timestamp\":\"2016-04-06T14:43:56.849012+0200\",\"level\":\"warn\",\"message\":\"config file applied changes\",\"file\":\"/etc/sensu/conf.d/checks/check_puppet_last_run.json\",\"changes\":{\"checks\":{\"check_puppet_last_run\":[null,{\"command\":\"sudo /opt/sensu/embedded/bin/check-puppet-last-run.rb --warn-age 600 --crit-age 1200 --summary-file /var/lib/puppet/state/last_run_summary.yaml\",\"handlers\":[\"default\"],\"interval\":60,\"subscribers\":[\"all\"],\"standalone\":true}]}}}\r\n{\"timestamp\":\"2016-04-06T14:43:56.849168+0200\",\"level\":\"warn\",\"message\":\"loading config file\",\"file\":\"/etc/sensu/conf.d/checks/check_disk_usage.json\"}\r\n{\"timestamp\":\"2016-04-06T14:43:56.849296+0200\",\"level\":\"warn\",\"message\":\"config file applied changes\",\"file\":\"/etc/sensu/conf.d/checks/check_disk_usage.json\",\"changes\":{\"checks\":{\"check_disk_usage\":[null,{\"command\":\"check-disk-usage.rb -p '.*gvfs'\",\"handlers\":[\"default\"],\"interval\":60,\"subscribers\":[\"all\"],\"standalone\":true}]}}}\r\n{\"timestamp\":\"2016-04-06T14:43:56.849455+0200\",\"level\":\"warn\",\"message\":\"loading config file\",\"file\":\"/etc/sensu/conf.d/checks/check_ntp_offset.json\"}\r\n{\"timestamp\":\"2016-04-06T14:43:56.849677+0200\",\"level\":\"warn\",\"message\":\"config file applied changes\",\"file\":\"/etc/sensu/conf.d/checks/check_ntp_offset.json\",\"changes\":{\"checks\":{\"check_ntp_offset\":[null,{\"command\":\"check-ntp.rb\",\"handlers\":[\"default\"],\"interval\":60,\"subscribers\":[\"all\"],\"standalone\":true}]}}}\r\n{\"timestamp\":\"2016-04-06T14:43:56.849823+0200\",\"level\":\"warn\",\"message\":\"loading config file\",\"file\":\"/etc/sensu/conf.d/rabbitmq.json\"}\r\n{\"timestamp\":\"2016-04-06T14:43:56.849964+0200\",\"level\":\"warn\",\"message\":\"config file applied changes\",\"file\":\"/etc/sensu/conf.d/rabbitmq.json\",\"changes\":{\"rabbitmq\":[null,{\"port\":5672,\"host\":\"localhost\",\"user\":\"sensu\",\"password\":\"REDACTED\",\"vhost\":\"sensu\",\"reconnect_on_error\":true,\"prefetch\":1}]}}\r\n{\"timestamp\":\"2016-04-06T14:43:56.940401+0200\",\"level\":\"info\",\"message\":\"api listening\",\"bind\":\"0.0.0.0\",\"port\":4567}\r\n{\"timestamp\":\"2016-04-06T14:44:01.224244+0200\",\"level\":\"info\",\"message\":\"GET /stashes\",\"remote_address\":\"127.0.0.1\",\"user_agent\":\"Go-http-client/1.1\",\"request_method\":\"GET\",\"request_uri\":\"/stashes\",\"request_body\":\"\"}\r\n{\"timestamp\":\"2016-04-06T14:44:01.246050+0200\",\"level\":\"info\",\"message\":\"GET /checks\",\"remote_address\":\"127.0.0.1\",\"user_agent\":\"Go-http-client/1.1\",\"request_method\":\"GET\",\"request_uri\":\"/checks\",\"request_body\":\"\"}\r\n{\"timestamp\":\"2016-04-06T14:44:01.249213+0200\",\"level\":\"info\",\"message\":\"GET /clients\",\"remote_address\":\"127.0.0.1\",\"user_agent\":\"Go-http-client/1.1\",\"request_method\":\"GET\",\"request_uri\":\"/clients?limit=1000&offset=0\",\"request_body\":\"\"}\r\n{\"timestamp\":\"2016-04-06T14:44:01.259487+0200\",\"level\":\"info\",\"message\":\"GET /events\",\"remote_address\":\"127.0.0.1\",\"user_agent\":\"Go-http-client/1.1\",\"request_method\":\"GET\",\"request_uri\":\"/events\",\"request_body\":\"\"}\r\n{\"timestamp\":\"2016-04-06T14:44:01.281672+0200\",\"level\":\"info\",\"message\":\"GET /info\",\"remote_address\":\"127.0.0.1\",\"user_agent\":\"Go-http-client/1.1\",\"request_method\":\"GET\",\"request_uri\":\"/info\",\"request_body\":\"\"}\r\n{\"timestamp\":\"2016-04-06T14:44:01.286215+0200\",\"level\":\"info\",\"message\":\"GET /aggregates\",\"remote_address\":\"127.0.0.1\",\"user_agent\":\"Go-http-client/1.1\",\"request_method\":\"GET\",\"request_uri\":\"/aggregates\",\"request_body\":\"\"}\r\n// more GET blocks (stashes until aggregates)\r\n```"},"comment":{"url":"https://api.github.com/repos/sensu/sensu/issues/comments/206399274","html_url":"https://github.com/sensu/sensu/issues/1209#issuecomment-206399274","issue_url":"https://api.github.com/repos/sensu/sensu/issues/1209","id":206399274,"user":{"login":"mnellemann","id":5939693,"avatar_url":"https://avatars.githubusercontent.com/u/5939693?v=3","gravatar_id":"","url":"https://api.github.com/users/mnellemann","html_url":"https://github.com/mnellemann","followers_url":"https://api.github.com/users/mnellemann/followers","following_url":"https://api.github.com/users/mnellemann/following{/other_user}","gists_url":"https://api.github.com/users/mnellemann/gists{/gist_id}","starred_url":"https://api.github.com/users/mnellemann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnellemann/subscriptions","organizations_url":"https://api.github.com/users/mnellemann/orgs","repos_url":"https://api.github.com/users/mnellemann/repos","events_url":"https://api.github.com/users/mnellemann/events{/privacy}","received_events_url":"https://api.github.com/users/mnellemann/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T14:27:11Z","updated_at":"2016-04-06T14:27:11Z","body":"I'm using the embedded-ruby, Ubuntu 14.04, Sensu from repo (puppet sensu module)."}}