{"action":"created","issue":{"url":"https://api.github.com/repos/victorcoder/dkron/issues/202","repository_url":"https://api.github.com/repos/victorcoder/dkron","labels_url":"https://api.github.com/repos/victorcoder/dkron/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/victorcoder/dkron/issues/202/comments","events_url":"https://api.github.com/repos/victorcoder/dkron/issues/202/events","html_url":"https://github.com/victorcoder/dkron/issues/202","id":185204610,"number":202,"title":"\"Invalid memory address or nil pointer dereference\" error","user":{"login":"greggilbert","id":169482,"avatar_url":"https://avatars.githubusercontent.com/u/169482?v=3","gravatar_id":"","url":"https://api.github.com/users/greggilbert","html_url":"https://github.com/greggilbert","followers_url":"https://api.github.com/users/greggilbert/followers","following_url":"https://api.github.com/users/greggilbert/following{/other_user}","gists_url":"https://api.github.com/users/greggilbert/gists{/gist_id}","starred_url":"https://api.github.com/users/greggilbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greggilbert/subscriptions","organizations_url":"https://api.github.com/users/greggilbert/orgs","repos_url":"https://api.github.com/users/greggilbert/repos","events_url":"https://api.github.com/users/greggilbert/events{/privacy}","received_events_url":"https://api.github.com/users/greggilbert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-25T18:59:04Z","updated_at":"2016-10-25T20:37:57Z","closed_at":null,"body":"Hey. I've got a bunch of instances running dkron with a Consul cluster as their backing store. I'm trying to update from Dkron 0.7 to 0.9.1. The instances that are running 0.9.1 throw this error:\r\n\r\n```\r\ntime=\"2016-10-25T14:52:07-04:00\" level=info msg=\"agent: Listen for events\" node=ip-10-0-15-163\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0x0 pc=0x48897c]\r\n\r\ngoroutine 50 [running]:\r\npanic(0xbb9dc0, 0xc820010060)\r\n        /Users/victorcoder/src/github.com/mxcl/homebrew/Cellar/go/1.6.3/libexec/src/runtime/panic.go:481 +0x3e6\r\ngithub.com/victorcoder/dkron/dkron.(*AgentCommand).eventLoop(0xc82000c4e0)\r\n        /Users/victorcoder/src/github.com/victorcoder/dkron/dkron/agent.go:490 +0x1abc\r\ncreated by github.com/victorcoder/dkron/dkron.(*AgentCommand).Run\r\n        /Users/victorcoder/src/github.com/victorcoder/dkron/dkron/agent.go:298 +0x362\r\nStarting Dkron agent...\r\ntime=\"2016-10-25T14:52:07-04:00\" level=info msg=\"agent: Dkron agent starting\" node=ip-10-0-15-163\r\n```\r\n\r\nI'm not doing anything crazy here, I don't think. It's been working for months. Any ideas?\r\n\r\nMore debug:\r\n\r\n\r\n```\r\n// /etc/dkron/dkron.json\r\n{\r\n  \"backend\": \"consul\",\r\n  \"backend_machine\": \"consul.internal:8500\",\r\n  \"keyspace\": \"bkg-process\",\r\n  \"http_addr\": \":8988\",\r\n  \"server\": true,\r\n  \"encrypt\": \"KEY\",\r\n  \"tags\": {\r\n    \"role\": \"background_processing\"\r\n  },\r\n  \"join\": \"background-processing.service.dc1.consul\"\r\n}\r\n```\r\n```\r\n$ curl 127.0.0.1:8988/v1/jobs\r\n[{\"name\":\"cron_job\",\"schedule\":\"0 * * * * *\",\"shell\":false,\"command\":\"/queue.sh\",\"owner\":\"Me,\"owner_email\":\"me@me.com\",\"success_count\":254066,\"error_count\":0,\"last_success\":\"2016-10-25T15:00:00.23316342-04:00\",\"last_error\":\"0001-01-01T00:00:00Z\",\"disabled\":false,\"tags\":{\"role\":\"background_processing:1\"},\"retries\":0,\"dependent_jobs\":null,\"parent_job\":\"\"}]\r\n```"},"comment":{"url":"https://api.github.com/repos/victorcoder/dkron/issues/comments/256168345","html_url":"https://github.com/victorcoder/dkron/issues/202#issuecomment-256168345","issue_url":"https://api.github.com/repos/victorcoder/dkron/issues/202","id":256168345,"user":{"login":"greggilbert","id":169482,"avatar_url":"https://avatars.githubusercontent.com/u/169482?v=3","gravatar_id":"","url":"https://api.github.com/users/greggilbert","html_url":"https://github.com/greggilbert","followers_url":"https://api.github.com/users/greggilbert/followers","following_url":"https://api.github.com/users/greggilbert/following{/other_user}","gists_url":"https://api.github.com/users/greggilbert/gists{/gist_id}","starred_url":"https://api.github.com/users/greggilbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greggilbert/subscriptions","organizations_url":"https://api.github.com/users/greggilbert/orgs","repos_url":"https://api.github.com/users/greggilbert/repos","events_url":"https://api.github.com/users/greggilbert/events{/privacy}","received_events_url":"https://api.github.com/users/greggilbert/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T20:37:57Z","updated_at":"2016-10-25T20:37:57Z","body":"I was on 0.7.1 before, but the changelog note indicates that it should only be an issue in 0.6 -> 0.7. And we were seeing the issue in #204 with version 0.7.1, so I don't think it's totally related."}}
{"actor":{"display_login":"greggilbert"}}