{"action":"created","issue":{"url":"https://api.github.com/repos/studygolang/studygolang/issues/29","repository_url":"https://api.github.com/repos/studygolang/studygolang","labels_url":"https://api.github.com/repos/studygolang/studygolang/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/studygolang/studygolang/issues/29/comments","events_url":"https://api.github.com/repos/studygolang/studygolang/issues/29/events","html_url":"https://github.com/studygolang/studygolang/issues/29","id":248186533,"number":29,"title":"website_setting方面panic了","user":{"login":"nicle-lin","id":13376924,"avatar_url":"https://avatars3.githubusercontent.com/u/13376924?v=4","gravatar_id":"","url":"https://api.github.com/users/nicle-lin","html_url":"https://github.com/nicle-lin","followers_url":"https://api.github.com/users/nicle-lin/followers","following_url":"https://api.github.com/users/nicle-lin/following{/other_user}","gists_url":"https://api.github.com/users/nicle-lin/gists{/gist_id}","starred_url":"https://api.github.com/users/nicle-lin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicle-lin/subscriptions","organizations_url":"https://api.github.com/users/nicle-lin/orgs","repos_url":"https://api.github.com/users/nicle-lin/repos","events_url":"https://api.github.com/users/nicle-lin/events{/privacy}","received_events_url":"https://api.github.com/users/nicle-lin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-05T13:56:17Z","updated_at":"2017-08-09T03:18:21Z","closed_at":null,"body":"### 我按照你的指南\r\n* 第一，执行db.sql， init.sql\r\n* 第二，设置env.ini中的mysql, redis\r\n* 第三, 执行install.sh(这里有个bug,已解决)\r\n* 第四，执行start.sh, 然后访问http://localhost:8088/，panic了，堆栈信息如下\r\n\r\n### please help me\r\n```\r\n[^[[31mPANIC RECOVER^[[0m] runtime error: invalid memory address or nil pointer dereference goroutine 44 [running]:\r\nvendor/github.com/labstack/echo/middleware.RecoverWithConfig.func1.1.1(0x1000, 0xa10000, 0xeb0420, 0xc42576f200)\r\n        /home/gubl/web/shipyard/src/github.com/studygolang/studygolang/src/vendor/github.com/labstack/echo/middleware/recover.go:64 +0x134\r\n\r\npanic(0xabece0, 0xeed8c0)\r\n        /usr/local/go/src/runtime/panic.go:489 +0x2cf\r\nlogic.IndexLogic.FindData(0x7f285c5136a8, 0xc42576f200, 0xc42190e8b8, 0x2, 0xc42576f200)\r\n        /home/gubl/web/shipyard/src/github.com/studygolang/studygolang/src/logic/index.go:31 +0x282\r\nhttp/controller.IndexController.NewIndex(0xeb0420, 0xc42576f200, 0xb70b3a, 0x5)\r\n        /home/gubl/web/shipyard/src/github.com/studygolang/studygolang/src/http/controller/index.go:48 +0x1d6\r\nhttp/controller.(IndexController).NewIndex-fm(0xeb0420, 0xc42576f200, 0xb70b3a, 0x5)\r\n        /home/gubl/web/shipyard/src/github.com/studygolang/studygolang/src/http/controller/index.go:31 +0x3b\r\nvendor/github.com/labstack/echo.(*Echo).add.func1(0xeb0420, 0xc42576f200, 0x0, 0x0)\r\n        /home/gubl/web/shipyard/src/github.com/studygolang/studygolang/src/vendor/github.com/labstack/echo/echo.go:471 +0x90\r\nhttp/middleware.AutoLogin.func1.1(0xeb0420, 0xc42576f200, 0x0, 0x0)\r\n        /home/gubl/web/shipyard/src/github.com/studygolang/studygolang/src/http/middleware/login.go:61 +0x212\r\nhttp/middleware.HTTPError.func1.1(0xeb0420, 0xc42576f200, 0xc4243d39e8, 0xc431f88348)\r\n        /home/gubl/web/shipyard/src/github.com/studygolang/studygolang/src/http/middleware/http_error.go:22 +0x46\r\nhttp/middleware.Installed.func1.1(0xeb0420, 0xc42576f200, 0x1000, 0xa10000)\r\n        /home/gubl/web/shipyard/src/github.com/studygolang/studygolang/src/http/middleware/installed.go:38 +0x101\r\nvendor/github.com/labstack/echo/middleware.RecoverWithConfig.func1.1(0xeb0420, 0xc42576f200, 0x0, 0x0)\r\n        /home/gubl/web/shipyard/src/github.com/studygolang/studygolang/src/vendor/github.com/labstack/echo/middleware/recover.go:71 +0xa2\r\nvendor/github.com/polaris1119/middleware.EchoLogger.func1.1(0xeb0420, 0xc42576f200, 0x0, 0x0)\r\n        /home/gubl/web/shipyard/src/github.com/studygolang/studygolang/src/vendor/github.com/polaris1119/middleware/logger.go:72 +0x566\r\nvendor/github.com/labstack/echo.(*Echo).ServeHTTP.func1(0xeb0420, 0xc42576f200, 0xc42576f200, 0x40e368)\r\n        /home/gubl/web/shipyard/src/github.com/studygolang/studygolang/src/vendor/github.com/labstack/echo/echo.go:553 +0x157\r\nvendor/github.com/labstack/echo.(*Echo).ServeHTTP(0xc420200280, 0xead420, 0xc429d082c0, 0xeab0e0, 0xc425809da0)\r\n        /home/gubl/web/shipyard/src/github.com/studygolang/studygolang/src/vendor/github.com/labstack/echo/echo.go:562 +0x1cb\r\nvendor/github.com/labstack/echo/engine/standard.(*Server).ServeHTTP(0xc4201dea00, 0xea7880, 0xc4352ae0e0, 0xc4201e0c00)\r\n        /home/gubl/web/shipyard/src/github.com/studygolang/studygolang/src/vendor/github.com/labstack/echo/engine/standard/server.go:138 +0x359\r\nnet/http.serverHandler.ServeHTTP(0xc4202440b0, 0xea7880, 0xc4352ae0e0, 0xc4201e0c00)\r\n        /usr/local/go/src/net/http/server.go:2568 +0x92\r\nnet/http.(*conn).serve(0xc420428320, 0xea8380, 0xc4201169c0)\r\n        /usr/local/go/src/net/http/server.go:1825 +0x612\r\ncreated by net/http.(*Server).Serve\r\n        /usr/local/go/src/net/http/server.go:2668 +0x2ce\r\n\r\ngoroutine 1 [select]:\r\nvendor/github.com/facebookgo/grace/gracehttp.Serve(0xc4201d4500, 0x1, 0x1, 0x0, 0x0)\r\n        /home/gubl/web/shipyard/src/github.com/studygolang/studygolang/src/vendor/github.com/facebookgo/grace/gracehttp/http.go:162 +0x5e6\r\nmain.gracefulRun(0xc4201dea00)\r\n        /home/gubl/web/shipyard/src/github.com/studygolang/studygolang/src/server/studygolang/graceful_unix.go:13 +0x6d\r\nmain.main()\r\n        /home/gubl/web/shipyard/src/github.com/studygolang/studygolang/src/server/studygolang/main.go:79 +0x63e\r\n\r\ngoroutine 17 [syscall, locked to thread]:\r\nruntime.goexit()\r\n        /usr/local/go/src/runtime/asm_amd64.s:2197 +0x1\r\n\r\ngoroutine 5 [syscall]:\r\nos/signal.signal_recv(0x0)\r\n        /usr/local/go/src/runtime/sigqueue.go:116 +0x104\r\nos/signal.loop()\r\n        /usr/local/go/src/os/signal/signal_unix.go:22 +0x22\r\ncreated by os/signal.init.1\r\n        /usr/local/go/src/os/signal/signal_unix.go:28 +0x41\r\n\r\ngoroutine 6 [chan receive]:\r\nvendor/github.com/polaris1119/config.signalReload()\r\n        /home/gubl\r\n{\"time\":\"2017-08-05T21:54:32+08:00\",\"level\":\"ERROR\",\"prefix\":\"echo\",\"file\":\"echo.go\",\"line\":\"230\",\"message\":\"runtime error: invalid memory address or nil pointer dereference\"}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/studygolang/studygolang/issues/comments/321141344","html_url":"https://github.com/studygolang/studygolang/issues/29#issuecomment-321141344","issue_url":"https://api.github.com/repos/studygolang/studygolang/issues/29","id":321141344,"user":{"login":"polaris1119","id":899673,"avatar_url":"https://avatars1.githubusercontent.com/u/899673?v=4","gravatar_id":"","url":"https://api.github.com/users/polaris1119","html_url":"https://github.com/polaris1119","followers_url":"https://api.github.com/users/polaris1119/followers","following_url":"https://api.github.com/users/polaris1119/following{/other_user}","gists_url":"https://api.github.com/users/polaris1119/gists{/gist_id}","starred_url":"https://api.github.com/users/polaris1119/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polaris1119/subscriptions","organizations_url":"https://api.github.com/users/polaris1119/orgs","repos_url":"https://api.github.com/users/polaris1119/repos","events_url":"https://api.github.com/users/polaris1119/events{/privacy}","received_events_url":"https://api.github.com/users/polaris1119/received_events","type":"User","site_admin":false},"created_at":"2017-08-09T03:18:21Z","updated_at":"2017-08-09T03:18:21Z","body":"好的，前段时间刚进行了一个大改版，部署方面确实没有测试。我会尽快补充。"}}
{"actor":{"display_login":"polaris1119"}}