{"action":"opened","issue":{"url":"https://api.github.com/repos/sensu/sensu-go/issues/2545","repository_url":"https://api.github.com/repos/sensu/sensu-go","labels_url":"https://api.github.com/repos/sensu/sensu-go/issues/2545/labels{/name}","comments_url":"https://api.github.com/repos/sensu/sensu-go/issues/2545/comments","events_url":"https://api.github.com/repos/sensu/sensu-go/issues/2545/events","html_url":"https://github.com/sensu/sensu-go/issues/2545","id":391813227,"node_id":"MDU6SXNzdWUzOTE4MTMyMjc=","number":2545,"title":"panic: non-positive interval for NewTicker","user":{"login":"ccressent","id":1267940,"node_id":"MDQ6VXNlcjEyNjc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/1267940?v=4","gravatar_id":"","url":"https://api.github.com/users/ccressent","html_url":"https://github.com/ccressent","followers_url":"https://api.github.com/users/ccressent/followers","following_url":"https://api.github.com/users/ccressent/following{/other_user}","gists_url":"https://api.github.com/users/ccressent/gists{/gist_id}","starred_url":"https://api.github.com/users/ccressent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccressent/subscriptions","organizations_url":"https://api.github.com/users/ccressent/orgs","repos_url":"https://api.github.com/users/ccressent/repos","events_url":"https://api.github.com/users/ccressent/events{/privacy}","received_events_url":"https://api.github.com/users/ccressent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-17T17:22:25Z","updated_at":"2018-12-17T17:22:25Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Sometimes the backend crashes soon after starting up with the following trace:\r\n\r\n```\r\n{\"component\":\"monitor\",\"level\":\"info\",\"msg\":\"monitor timed out, for /sensu.io/monitors/default/keepalived/fc3cca518056, handling failure\",\"time\":\"2018-12-14T22:18:41-08:00\"}\r\n{\"component\":\"keepalived\",\"entity\":\"fc3cca518056\",\"level\":\"info\",\"msg\":\"keepalive timed out, creating keepalive event for entity\",\"time\":\"2018-12-14T22:18:41-08:00\"}\r\npanic: non-positive interval for NewTicker\r\n\r\ngoroutine 265 [running]:\r\ntime.NewTicker(0x0, 0xc420a3cb40)\r\n\t/usr/lib/go/src/time/tick.go:23 +0x1a1\r\ngithub.com/sensu/sensu-go/backend/monitor.(*EtcdSupervisor).Monitor.func1(0x18fbb60, 0xc420d780c0, 0x0)\r\n\t/home/cyril/go/src/github.com/sensu/sensu-go/backend/monitor/supervisor.go:140 +0x115\r\ncreated by github.com/sensu/sensu-go/backend/monitor.watchMon.func1\r\n\t/home/cyril/go/src/github.com/sensu/sensu-go/backend/monitor/supervisor.go:206 +0x1a8\r\n[etcd-snapshot.zip](https://github.com/sensu/sensu-go/files/2687114/etcd-snapshot.zip)\r\n\r\n\r\n```\r\n\r\nI suspect this is due to previous entity/keepalive state in my local etcd.\r\nThis is concerning because after GA, I do not expect users to potentially have to completely erase their etcd store between sensu version updates.\r\n\r\n## Expected Behavior\r\n\r\nNo panic.\r\n\r\n## Steps to Reproduce (for bugs)\r\n1. (maybe optional) unzip load the attached etcd state with `etcdctl snapshot restore`\r\n2. start the backend\r\n3. if the panic doesn't occur within a few seconds, stop the backend and try to start it again. It can take 10+ tries to trigger\r\n\r\n## Your Environment\r\n\r\n* Sensu version: c4373a6aece87679d225829160c6fd19fb14c20a\r\n* Installation method: git\r\n* Operating System and version: Arch Linux, kernel 4.19.4\r\n"}}
{"actor":{"display_login":"ccressent"}}