{"action":"created","issue":{"url":"https://api.github.com/repos/abiosoft/caddy-git/issues/17","labels_url":"https://api.github.com/repos/abiosoft/caddy-git/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/abiosoft/caddy-git/issues/17/comments","events_url":"https://api.github.com/repos/abiosoft/caddy-git/issues/17/events","html_url":"https://github.com/abiosoft/caddy-git/issues/17","id":126501130,"number":17,"title":"App running by plugin crashed & not restart","user":{"login":"pavlik","id":96294,"avatar_url":"https://avatars.githubusercontent.com/u/96294?v=3","gravatar_id":"","url":"https://api.github.com/users/pavlik","html_url":"https://github.com/pavlik","followers_url":"https://api.github.com/users/pavlik/followers","following_url":"https://api.github.com/users/pavlik/following{/other_user}","gists_url":"https://api.github.com/users/pavlik/gists{/gist_id}","starred_url":"https://api.github.com/users/pavlik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavlik/subscriptions","organizations_url":"https://api.github.com/users/pavlik/orgs","repos_url":"https://api.github.com/users/pavlik/repos","events_url":"https://api.github.com/users/pavlik/events{/privacy}","received_events_url":"https://api.github.com/users/pavlik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-01-13T20:02:56Z","updated_at":"2016-01-14T21:39:00Z","closed_at":null,"body":"Hi! Application runned by Git add-on goes down after several hours & don't restart.\r\n\r\nThis is error log of application (created by caddy)\r\n`13/Jan/2016:19:57:22 +0300 [ERROR 502 /] unreachable backend`\r\n\r\nThis is few strings from caddy.log\r\n```\r\n[GIN-debug] Listening and serving HTTP on :9000\r\n[GIN-debug] [ERROR] listen tcp :9000: bind: address already in use\r\n```\r\n\r\nThis is Caddyfile\r\n```\r\nmimozaflowers.ru, www.mimozaflowers.ru {\r\n        root /root/gocode/src/github.com/pavlik/mimozaflowers\r\n        gzip\r\n        log /var/log/mimoza_access.log\r\n\r\n        errors {\r\n                log /var/log/mimoza_error.log\r\n                #404 404.html # Not Found\r\n        }\r\n\r\n        git {\r\n                path ./\r\n                repo https://github.com/pavlik/mimozaflowers\r\n                hook /webhook secret\r\n                then go install\r\n                then_long /root/gocode/bin/mimozaflowers\r\n        }\r\n\r\n        proxy / localhost:9000\r\n}\r\n```\r\n\r\nThis is my app `https://github.com/pavlik/mimozaflowers/blob/master/server.go`\r\n\r\nI would appreciate if you help to understand what is the reason off app shutdown...\r\n"},"comment":{"url":"https://api.github.com/repos/abiosoft/caddy-git/issues/comments/171788556","html_url":"https://github.com/abiosoft/caddy-git/issues/17#issuecomment-171788556","issue_url":"https://api.github.com/repos/abiosoft/caddy-git/issues/17","id":171788556,"user":{"login":"pavlik","id":96294,"avatar_url":"https://avatars.githubusercontent.com/u/96294?v=3","gravatar_id":"","url":"https://api.github.com/users/pavlik","html_url":"https://github.com/pavlik","followers_url":"https://api.github.com/users/pavlik/followers","following_url":"https://api.github.com/users/pavlik/following{/other_user}","gists_url":"https://api.github.com/users/pavlik/gists{/gist_id}","starred_url":"https://api.github.com/users/pavlik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavlik/subscriptions","organizations_url":"https://api.github.com/users/pavlik/orgs","repos_url":"https://api.github.com/users/pavlik/repos","events_url":"https://api.github.com/users/pavlik/events{/privacy}","received_events_url":"https://api.github.com/users/pavlik/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T21:39:00Z","updated_at":"2016-01-14T21:39:00Z","body":"I think caddygoes into an infinite loop restart, because can't init mimozaflowers app:\r\na piece of caddy.log:\r\n```\r\nFrom https://github.com/pavlik/mimozaflowers\r\n * branch            master     -> FETCH_HEAD\r\nAlready up-to-date.\r\n2016/01/15 00:33:12 https://github.com/pavlik/mimozaflowers.git pulled.\r\n2016/01/15 00:33:12 Command 'go install' successful.\r\n2016/01/15 00:33:12 Command '/root/gocode/bin/mimozaflowers ' successful.\r\n9000\r\n[GIN-debug] [WARNING] Running in \"debug\" mode. Switch to \"release\" mode in production.\r\n - using env:   export GIN_MODE=release\r\n - using code:  gin.SetMode(gin.ReleaseMode)\r\n\r\n[GIN-debug] GET   /js/*filepath             --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (5 handlers)\r\n[GIN-debug] HEAD  /js/*filepath             --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (5 handlers)\r\n[GIN-debug] GET   /css/*filepath            --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (5 handlers)\r\n[GIN-debug] HEAD  /css/*filepath            --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (5 handlers)\r\n[GIN-debug] GET   /                         --> main.recentMedia (5 handlers)\r\n[GIN-debug] Listening and serving HTTP on :9000\r\n[GIN-debug] [ERROR] listen tcp :9000: bind: address already in use\r\n```"}}