{"action":"created","issue":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/1598","labels_url":"https://api.github.com/repos/influxdb/influxdb/issues/1598/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/influxdb/issues/1598/comments","events_url":"https://api.github.com/repos/influxdb/influxdb/issues/1598/events","html_url":"https://github.com/influxdb/influxdb/issues/1598","id":57546027,"number":1598,"title":"Panic if admin server already running","user":{"login":"otoolep","id":536312,"avatar_url":"https://avatars.githubusercontent.com/u/536312?v=3","gravatar_id":"","url":"https://api.github.com/users/otoolep","html_url":"https://github.com/otoolep","followers_url":"https://api.github.com/users/otoolep/followers","following_url":"https://api.github.com/users/otoolep/following{/other_user}","gists_url":"https://api.github.com/users/otoolep/gists{/gist_id}","starred_url":"https://api.github.com/users/otoolep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otoolep/subscriptions","organizations_url":"https://api.github.com/users/otoolep/orgs","repos_url":"https://api.github.com/users/otoolep/repos","events_url":"https://api.github.com/users/otoolep/events{/privacy}","received_events_url":"https://api.github.com/users/otoolep/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/influxdb/influxdb/labels/newbie","name":"newbie","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-13T01:19:01Z","updated_at":"2015-02-13T01:20:32Z","closed_at":null,"body":"If a second instance of InfluxDB is started, and both are running the admin server, we get a panic.\r\n```\r\n$ go test ./...\r\nok      github.com/influxdb/influxdb    28.063s\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0x0 pc=0x534fd7]\r\n\r\ngoroutine 6 [running]:\r\nnet/http.(*Server).Serve(0xc20805c420, 0x0, 0x0, 0x0, 0x0)\r\n        /home/philip/.gvm/gos/go1.4/src/net/http/server.go:1725 +0x377\r\nnet/http.Serve(0x0, 0x0, 0x7fd36be7f210, 0xc20800a890, 0x0, 0x0)\r\n        /home/philip/.gvm/gos/go1.4/src/net/http/server.go:1606 +0xa1\r\ngithub.com/influxdb/influxdb/admin.(*Server).ListenAndServe(0xc20803abd0)\r\n        /home/philip/Dropbox/repos/influxdb/src/github.com/influxdb/influxdb/admin/admin.go:38 +0x1b6\r\ngithub.com/influxdb/influxdb/admin_test.func·001()\r\n        /home/philip/Dropbox/repos/influxdb/src/github.com/influxdb/influxdb/admin/admin_test.go:13 +0x2a\r\ncreated by github.com/influxdb/influxdb/admin_test.Test_ServesIndexByDefault\r\n        /home/philip/Dropbox/repos/influxdb/src/github.com/influxdb/influxdb/admin/admin_test.go:13 +0x121\r\n\r\ngoroutine 1 [chan receive]:\r\ntesting.RunTests(0x7b8698, 0xb20c50, 0x1, 0x1, 0x933d373e1dd17a01)\r\n        /home/philip/.gvm/gos/go1.4/src/testing/testing.go:556 +0xad6\r\ntesting.(*M).Run(0xc20802e370, 0xb301e0)\r\n        /home/philip/.gvm/gos/go1.4/src/testing/testing.go:485 +0x6c\r\nmain.main()\r\n        github.com/influxdb/influxdb/admin/_test/_testmain.go:54 +0x1d5\r\n```"},"comment":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/comments/74188588","html_url":"https://github.com/influxdb/influxdb/issues/1598#issuecomment-74188588","issue_url":"https://api.github.com/repos/influxdb/influxdb/issues/1598","id":74188588,"user":{"login":"otoolep","id":536312,"avatar_url":"https://avatars.githubusercontent.com/u/536312?v=3","gravatar_id":"","url":"https://api.github.com/users/otoolep","html_url":"https://github.com/otoolep","followers_url":"https://api.github.com/users/otoolep/followers","following_url":"https://api.github.com/users/otoolep/following{/other_user}","gists_url":"https://api.github.com/users/otoolep/gists{/gist_id}","starred_url":"https://api.github.com/users/otoolep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otoolep/subscriptions","organizations_url":"https://api.github.com/users/otoolep/orgs","repos_url":"https://api.github.com/users/otoolep/repos","events_url":"https://api.github.com/users/otoolep/events{/privacy}","received_events_url":"https://api.github.com/users/otoolep/received_events","type":"User","site_admin":false},"created_at":"2015-02-13T01:20:32Z","updated_at":"2015-02-13T01:20:32Z","body":"cc @toddboom \r\n\r\nProbably an easy fix. Labelled \"newbie\" in case anyone in the community would like to contribute."}}