{"action":"created","issue":{"url":"https://api.github.com/repos/hockeypuck/hockeypuck/issues/19","labels_url":"https://api.github.com/repos/hockeypuck/hockeypuck/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/hockeypuck/hockeypuck/issues/19/comments","events_url":"https://api.github.com/repos/hockeypuck/hockeypuck/issues/19/events","html_url":"https://github.com/hockeypuck/hockeypuck/issues/19","id":35851901,"number":19,"title":"Corrupt ptree crashes hockeypuck on startup","user":{"login":"cmars","id":23741,"avatar_url":"https://avatars.githubusercontent.com/u/23741?v=3","gravatar_id":"","url":"https://api.github.com/users/cmars","html_url":"https://github.com/cmars","followers_url":"https://api.github.com/users/cmars/followers","following_url":"https://api.github.com/users/cmars/following{/other_user}","gists_url":"https://api.github.com/users/cmars/gists{/gist_id}","starred_url":"https://api.github.com/users/cmars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmars/subscriptions","organizations_url":"https://api.github.com/users/cmars/orgs","repos_url":"https://api.github.com/users/cmars/repos","events_url":"https://api.github.com/users/cmars/events{/privacy}","received_events_url":"https://api.github.com/users/cmars/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hockeypuck/hockeypuck/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-06-17T01:49:31Z","updated_at":"2015-04-28T03:00:52Z","closed_at":"2015-04-28T03:00:52Z","body":"Hockeypuck was down today, could not start due to what looks like a corrupt ptree.\r\n\r\nNeed to:\r\n1) handle this gracefully (disable recon and log a warning)\r\n2) provide a command that can recover the leveldb\r\n\r\n```\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0x1f8 pc=0x6191b5]\r\n\r\ngoroutine 44 [running]:\r\nsync/atomic.LoadUint32()\r\n        /usr/lib/go/src/pkg/sync/atomic/asm_amd64.s:71 +0x5\r\ngithub.com/syndtr/goleveldb/leveldb.(*DB).isClosed(0x0, 0x700c7b720)\r\n        /build/buildd/hockeypuck-1.0.1~a2~dev20140609+8e0dfc6~precise/build/src/github.com/syndtr/goleveldb/leveldb/db_state.go:99 +0x2d\r\ngithub.com/syndtr/goleveldb/leveldb.(*DB).ok(0x0, 0x0, 0x100000001)\r\n        /build/buildd/hockeypuck-1.0.1~a2~dev20140609+8e0dfc6~precise/build/src/github.com/syndtr/goleveldb/leveldb/db_state.go:104 +0x25\r\ngithub.com/syndtr/goleveldb/leveldb.(*DB).Get(0x0, 0xc2002a4724, 0x8, 0x40, 0x0, ...)\r\n        /build/buildd/hockeypuck-1.0.1~a2~dev20140609+8e0dfc6~precise/build/src/github.com/syndtr/goleveldb/leveldb/db.go:459 +0x66\r\ngithub.com/cmars/conflux/recon/leveldb.(*prefixTree).getNode(0xc2001e20f0, 0xc2002a4724, 0x8, 0x40, 0x0, ...)\r\n        /build/buildd/hockeypuck-1.0.1~a2~dev20140609+8e0dfc6~precise/build/src/github.com/cmars/conflux/recon/leveldb/ptree.go:140 +0x85\r\ngithub.com/cmars/conflux/recon/leveldb.(*prefixTree).Node(0xc2001e20f0, 0xc200a98560, 0x0, 0x0, 0x0, ...)\r\n        /build/buildd/hockeypuck-1.0.1~a2~dev20140609+8e0dfc6~precise/build/src/github.com/cmars/conflux/recon/leveldb/ptree.go:162 +0xe7\r\ngithub.com/cmars/conflux/recon.(*Peer).handleReconRqstPoly(0xc2001ced20, 0xc2002abde0, 0xc2002abde0)\r\n        /build/buildd/hockeypuck-1.0.1~a2~dev20140609+8e0dfc6~precise/build/src/github.com/cmars/conflux/recon/gossip.go:195 +0xc5\r\ngithub.com/cmars/conflux/recon.func·002()\r\n        /build/buildd/hockeypuck-1.0.1~a2~dev20140609+8e0dfc6~precise/build/src/github.com/cmars/conflux/recon/gossip.go:170 +0x929\r\ncreated by github.com/cmars/conflux/recon.(*Peer).interactWithServer\r\n        /build/buildd/hockeypuck-1.0.1~a2~dev20140609+8e0dfc6~precise/build/src/github.com/cmars/conflux/recon/gossip.go:185 +0xd4\r\n```"},"comment":{"url":"https://api.github.com/repos/hockeypuck/hockeypuck/issues/comments/96893406","html_url":"https://github.com/hockeypuck/hockeypuck/issues/19#issuecomment-96893406","issue_url":"https://api.github.com/repos/hockeypuck/hockeypuck/issues/19","id":96893406,"user":{"login":"cmars","id":23741,"avatar_url":"https://avatars.githubusercontent.com/u/23741?v=3","gravatar_id":"","url":"https://api.github.com/users/cmars","html_url":"https://github.com/cmars","followers_url":"https://api.github.com/users/cmars/followers","following_url":"https://api.github.com/users/cmars/following{/other_user}","gists_url":"https://api.github.com/users/cmars/gists{/gist_id}","starred_url":"https://api.github.com/users/cmars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmars/subscriptions","organizations_url":"https://api.github.com/users/cmars/orgs","repos_url":"https://api.github.com/users/cmars/repos","events_url":"https://api.github.com/users/cmars/events{/privacy}","received_events_url":"https://api.github.com/users/cmars/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T03:00:52Z","updated_at":"2015-04-28T03:00:52Z","body":"Closing due to inactivity."}}