{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/2428","repository_url":"https://api.github.com/repos/hashicorp/consul","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/2428/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/2428/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/2428/events","html_url":"https://github.com/hashicorp/consul/issues/2428","id":184494042,"number":2428,"title":"Agent start fails with nil pointer dereference","user":{"login":"pascaldekloe","id":4867072,"avatar_url":"https://avatars.githubusercontent.com/u/4867072?v=3","gravatar_id":"","url":"https://api.github.com/users/pascaldekloe","html_url":"https://github.com/pascaldekloe","followers_url":"https://api.github.com/users/pascaldekloe/followers","following_url":"https://api.github.com/users/pascaldekloe/following{/other_user}","gists_url":"https://api.github.com/users/pascaldekloe/gists{/gist_id}","starred_url":"https://api.github.com/users/pascaldekloe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pascaldekloe/subscriptions","organizations_url":"https://api.github.com/users/pascaldekloe/orgs","repos_url":"https://api.github.com/users/pascaldekloe/repos","events_url":"https://api.github.com/users/pascaldekloe/events{/privacy}","received_events_url":"https://api.github.com/users/pascaldekloe/received_events","type":"User","site_admin":false},"labels":[{"id":64219391,"url":"https://api.github.com/repos/hashicorp/consul/labels/bug","name":"bug","color":"fc2929","default":true},{"id":287599024,"url":"https://api.github.com/repos/hashicorp/consul/labels/crash","name":"crash","color":"f7c6c7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/hashicorp/consul/milestones/5","html_url":"https://github.com/hashicorp/consul/milestones/0.7.1","labels_url":"https://api.github.com/repos/hashicorp/consul/milestones/5/labels","id":2093049,"number":5,"title":"0.7.1","description":null,"creator":{"login":"slackpad","id":673509,"avatar_url":"https://avatars.githubusercontent.com/u/673509?v=3","gravatar_id":"","url":"https://api.github.com/users/slackpad","html_url":"https://github.com/slackpad","followers_url":"https://api.github.com/users/slackpad/followers","following_url":"https://api.github.com/users/slackpad/following{/other_user}","gists_url":"https://api.github.com/users/slackpad/gists{/gist_id}","starred_url":"https://api.github.com/users/slackpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackpad/subscriptions","organizations_url":"https://api.github.com/users/slackpad/orgs","repos_url":"https://api.github.com/users/slackpad/repos","events_url":"https://api.github.com/users/slackpad/events{/privacy}","received_events_url":"https://api.github.com/users/slackpad/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":8,"state":"open","created_at":"2016-10-25T18:14:20Z","updated_at":"2016-11-01T22:31:32Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-10-21T14:07:35Z","updated_at":"2016-11-01T22:32:42Z","closed_at":null,"body":"Current master branch: 104b12040a8fbe6153d1a4f1be1b73d37bf699e5\n\n% ~/repo/consul/bin/consul agent -dev -advertise 127.0.0.1 -config-dir=etc/consul.d\n==> Starting Consul agent...\n==> Starting Consul agent RPC...\n==> Consul agent running!\n           Version: 'v0.7.0-111-g104b120-dev (104b120)'\n         Node name: 'LM-AMS-14500281'\n        Datacenter: 'dc1'\n            Server: true (bootstrap: false)\n       Client Addr: 127.0.0.1 (HTTP: 8500, HTTPS: -1, DNS: 8600, RPC: 8400)\n      Cluster Addr: 127.0.0.1 (LAN: 8301, WAN: 8302)\n    Gossip encrypt: false, RPC-TLS: false, TLS-Incoming: false\n             Atlas: <disabled>\n\n==> Log data will now stream in as it occurs:\n\n```\n2016/10/21 16:00:22 [INFO] raft: Initial configuration (index=1): [{Suffrage:Voter ID:127.0.0.1:8300 Address:127.0.0.1:8300}]\n2016/10/21 16:00:22 [INFO] raft: Node at 127.0.0.1:8300 [Follower] entering Follower state (Leader: \"\")\n2016/10/21 16:00:22 [INFO] serf: EventMemberJoin: LM-AMS-14500281 127.0.0.1\n2016/10/21 16:00:22 [INFO] consul: Adding LAN server LM-AMS-14500281 (Addr: tcp/127.0.0.1:8300) (DC: dc1)\n2016/10/21 16:00:22 [INFO] serf: EventMemberJoin: LM-AMS-14500281.dc1 127.0.0.1\n2016/10/21 16:00:22 [INFO] consul: Adding WAN server LM-AMS-14500281.dc1 (Addr: tcp/127.0.0.1:8300) (DC: dc1)\n2016/10/21 16:00:22 [DEBUG] agent: pausing 50.098827ms before first invocation of redis-cli -p 6379 ping || exit 1\n2016/10/21 16:00:22 [DEBUG] agent: pausing 957.557913ms before first invocation of redis-cli -p 6381 ping || exit 1\n2016/10/21 16:00:22 [DEBUG] agent: pausing 819.904891ms before first invocation of redis-cli -p 6380 ping || exit 1\n```\n\npanic: runtime error: invalid memory address or nil pointer dereference\n[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x140782]\n\ngoroutine 72 [running]:\npanic(0x6f4720, 0xc420012100)\n    /usr/local/go/src/runtime/panic.go:500 +0x1a1\nsync.(_RWMutex).RLock(0x0)\n    /usr/local/go/src/sync/rwmutex.go:41 +0x22\ngithub.com/hashicorp/consul/command/agent.(_CheckMonitor).check(0xc42025c770)\n    /Users/pdekloe/repo/consul/src/github.com/hashicorp/consul/command/agent/check.go:160 +0x62\ngithub.com/hashicorp/consul/command/agent.(_CheckMonitor).run(0xc42025c770)\n    /Users/pdekloe/repo/consul/src/github.com/hashicorp/consul/command/agent/check.go:147 +0x1d0\ncreated by github.com/hashicorp/consul/command/agent.(_CheckMonitor).Start\n    /Users/pdekloe/repo/consul/src/github.com/hashicorp/consul/command/agent/check.go:125 +0xbf\n%\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/consul/issues/comments/257719152","html_url":"https://github.com/hashicorp/consul/issues/2428#issuecomment-257719152","issue_url":"https://api.github.com/repos/hashicorp/consul/issues/2428","id":257719152,"user":{"login":"slackpad","id":673509,"avatar_url":"https://avatars.githubusercontent.com/u/673509?v=3","gravatar_id":"","url":"https://api.github.com/users/slackpad","html_url":"https://github.com/slackpad","followers_url":"https://api.github.com/users/slackpad/followers","following_url":"https://api.github.com/users/slackpad/following{/other_user}","gists_url":"https://api.github.com/users/slackpad/gists{/gist_id}","starred_url":"https://api.github.com/users/slackpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackpad/subscriptions","organizations_url":"https://api.github.com/users/slackpad/orgs","repos_url":"https://api.github.com/users/slackpad/repos","events_url":"https://api.github.com/users/slackpad/events{/privacy}","received_events_url":"https://api.github.com/users/slackpad/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T22:32:42Z","updated_at":"2016-11-01T22:32:42Z","body":"Thanks for opening an issue - can you share any details about what kind of configs you have setup in \"etc/consul.d\"?"}}
{"actor":{"display_login":"slackpad"}}