{"action":"created","issue":{"url":"https://api.github.com/repos/gogs/gogs/issues/2671","repository_url":"https://api.github.com/repos/gogs/gogs","labels_url":"https://api.github.com/repos/gogs/gogs/issues/2671/labels{/name}","comments_url":"https://api.github.com/repos/gogs/gogs/issues/2671/comments","events_url":"https://api.github.com/repos/gogs/gogs/issues/2671/events","html_url":"https://github.com/gogs/gogs/issues/2671","id":135176716,"node_id":"MDU6SXNzdWUxMzUxNzY3MTY=","number":2671,"title":"Can't push then 500 error (started with docker)","user":{"login":"peez80","id":13281244,"node_id":"MDQ6VXNlcjEzMjgxMjQ0","avatar_url":"https://avatars2.githubusercontent.com/u/13281244?v=4","gravatar_id":"","url":"https://api.github.com/users/peez80","html_url":"https://github.com/peez80","followers_url":"https://api.github.com/users/peez80/followers","following_url":"https://api.github.com/users/peez80/following{/other_user}","gists_url":"https://api.github.com/users/peez80/gists{/gist_id}","starred_url":"https://api.github.com/users/peez80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peez80/subscriptions","organizations_url":"https://api.github.com/users/peez80/orgs","repos_url":"https://api.github.com/users/peez80/repos","events_url":"https://api.github.com/users/peez80/events{/privacy}","received_events_url":"https://api.github.com/users/peez80/received_events","type":"User","site_admin":false},"labels":[{"id":156137697,"node_id":"MDU6TGFiZWwxNTYxMzc2OTc=","url":"https://api.github.com/repos/gogs/gogs/labels/status/needs%20reproduce","name":"status/needs reproduce","color":"eb6420","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":26,"created_at":"2016-02-21T07:56:58Z","updated_at":"2019-01-05T15:45:03Z","closed_at":"2016-03-20T12:17:21Z","author_association":"NONE","body":"I just found gogs and like it.\nI'm running it via Docker but Unfortunately I can't push once I'm using volume mapping - no matter if it's host volume or a data volume.\n\nEverything looks good until I do the first push to the repository.  \n\ngit push fails with this message:\n\n```\n! [remote rejected] master -> master (hook declined)\nerror: failed to push some refs to 'https://git.myurl.de/peez/test10.git'\n```\n\ngogs log looks good in my opinion:\n\n```\n[Macaron] Started GET /peez/test10.git/info/refs?service=git-receive-pack for 82.135.90.50\n2016/02/21 07:44:02 [D] Session ID: bc7a05ec841629d4\n2016/02/21 07:44:02 [D] CSRF Token: bdXzYMyADk7FRdxqDC6wvUh7xz06MTQ1NjA0MDY0Mjc4NzMzMzY1NA==\n[Macaron] Completed /peez/test10.git/info/refs?service=git-receive-pack 401 Unauthorized in 3.69792ms\n[Macaron] Started GET /peez/test10.git/info/refs?service=git-receive-pack for 82.135.90.50\n2016/02/21 07:44:02 [D] Session ID: 7758078be843c370\n2016/02/21 07:44:02 [D] CSRF Token: SPKUnGBgvtlU48qmj9Ev8PicfXQ6MTQ1NjA0MDY0Mjc5NTQyNDQ1NA==\n[Macaron] Completed /peez/test10.git/info/refs?service=git-receive-pack 200 OK in 140.650544ms\n[Macaron] Started POST /peez/test10.git/git-receive-pack for 82.135.90.50\n2016/02/21 07:44:03 [D] Session ID: 312c165b8db1278a\n2016/02/21 07:44:03 [D] CSRF Token: wTLva_S8E7AY5SGty8eAaljIuws6MTQ1NjA0MDY0MzA5NDEyNjA3Ng==\n2016/02/21 07:44:03 [T] DeliverHooks [5]: processing delivery hooks\n2016/02/21 07:44:03 [T] AddTestPullRequestTask[head_repo_id: 5, head_branch: master]: finding pull requests\n[Macaron] Completed /peez/test10.git/git-receive-pack 200 OK in 234.686399ms\n2016/02/21 07:44:03 [T] AddTestPullRequestTask[base_repo_id: 5, base_branch: master]: finding pull requests\n```\n\nAfter this I see a commit at gogs dashboard but when navigating to the repo I get a 500 error. Gogs log says this:\n\n```\n2016/02/21 07:46:44 [...s/middleware/repo.go:198 func1()] [E] GetBranches: exit status 1\n2016/02/21 07:46:44 [D] Template: status/500\n[Macaron] Completed /peez/test10 500 Internal Server Error in 25.735483ms\n```\n\nWhen not using volume mappings at all everything works fine but doing this isn't a good idea when you want to keep your data persistent ;)\n\nAny ideas on this?\n\nRunning on ubuntu 14 host with docker 1.10. This is my start command:\n\n```\ndocker run -itd --name gogs \\\n    -v /mnt/E/dockervolumes/gogs:/data \\\n    -p 44807:3000 \\\n    gogs/gogs:latest\n```\n"},"comment":{"url":"https://api.github.com/repos/gogs/gogs/issues/comments/451665930","html_url":"https://github.com/gogs/gogs/issues/2671#issuecomment-451665930","issue_url":"https://api.github.com/repos/gogs/gogs/issues/2671","id":451665930,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTY2NTkzMA==","user":{"login":"JefferyKu","id":17064535,"node_id":"MDQ6VXNlcjE3MDY0NTM1","avatar_url":"https://avatars1.githubusercontent.com/u/17064535?v=4","gravatar_id":"","url":"https://api.github.com/users/JefferyKu","html_url":"https://github.com/JefferyKu","followers_url":"https://api.github.com/users/JefferyKu/followers","following_url":"https://api.github.com/users/JefferyKu/following{/other_user}","gists_url":"https://api.github.com/users/JefferyKu/gists{/gist_id}","starred_url":"https://api.github.com/users/JefferyKu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JefferyKu/subscriptions","organizations_url":"https://api.github.com/users/JefferyKu/orgs","repos_url":"https://api.github.com/users/JefferyKu/repos","events_url":"https://api.github.com/users/JefferyKu/events{/privacy}","received_events_url":"https://api.github.com/users/JefferyKu/received_events","type":"User","site_admin":false},"created_at":"2019-01-05T15:45:03Z","updated_at":"2019-01-05T15:45:03Z","author_association":"NONE","body":"HI,\r\nI got the similar issue. \r\nDo you use nginx for your server? \r\nI guess the matter is on the path-\"one of a path of nginx configuration different to one of a path of gogs container\".  \r\nAnyway, I give it up. A way is to delete the hooks folder inside of your local repositories(inside of the .git this hidden folder.). Then, you are able to make git push work.  \r\n"}}
{"actor":{"display_login":"JefferyKu"}}