{"action":"created","issue":{"url":"https://api.github.com/repos/gogits/gogs/issues/2428","labels_url":"https://api.github.com/repos/gogits/gogs/issues/2428/labels{/name}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/2428/comments","events_url":"https://api.github.com/repos/gogits/gogs/issues/2428/events","html_url":"https://github.com/gogits/gogs/issues/2428","id":127122340,"number":2428,"title":"post-receive hook: remote: fatal: cannot exec 'hooks/post-receive': Exec format error","user":{"login":"CloudSurgeon","id":12521930,"avatar_url":"https://avatars.githubusercontent.com/u/12521930?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudSurgeon","html_url":"https://github.com/CloudSurgeon","followers_url":"https://api.github.com/users/CloudSurgeon/followers","following_url":"https://api.github.com/users/CloudSurgeon/following{/other_user}","gists_url":"https://api.github.com/users/CloudSurgeon/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudSurgeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudSurgeon/subscriptions","organizations_url":"https://api.github.com/users/CloudSurgeon/orgs","repos_url":"https://api.github.com/users/CloudSurgeon/repos","events_url":"https://api.github.com/users/CloudSurgeon/events{/privacy}","received_events_url":"https://api.github.com/users/CloudSurgeon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-17T20:36:50Z","updated_at":"2016-01-17T21:23:45Z","closed_at":null,"body":"Using the gogs/gogs:latest container. I have logged into the container and successfully executed the hook via bash shell. I cannot find anything in any of the logs to help me diagnose where the issue lies. I have also successfully tested this hook in my other git repository.\r\n\r\ndocker logs -f gogs:\r\nJan 17 20:28:48 sshd[1144]: Accepted publickey for git from 192.168.2.192 port 53500 ssh2: RSA SHA256:XuSh2jyPuIrLTJHslMpGVic/KEhXICEPkB/jnhGLRmg\r\n[Macaron] Started HEAD /user/test_repo/tasks/trigger?branch=master&secret=0900438ecdff1a910fdca275d53c4dda for [::1]\r\n2016/01/17 20:28:48 [D] Session ID: 1a1a7ea8ef494935\r\n2016/01/17 20:28:48 [D] CSRF Token: 63OV5qfXSUhjh1J_l0V65xt1Xx46MTQ1MzA2MjUyODU4MzYyOTg3MA==\r\n[Macaron] Completed /user/test_repo/tasks/trigger?branch=master&secret=0900438ecdff1a910fdca275d53c4dda 202 Accepted in 1.236294ms\r\n2016/01/17 20:28:48 [T] TriggerTask [1].(new request): master\r\n2016/01/17 20:28:48 [T] AddTestPullRequestTask[head_repo_id: 1, head_branch: master]: finding pull requests\r\n2016/01/17 20:28:48 [T] DeliverHooks [1]: processing delivery hooks\r\nJan 17 20:28:48 sshd[1144]: Received disconnect from 192.168.2.192: 11: disconnected by user\r\nJan 17 20:28:48 sshd[1144]: Disconnected from 192.168.2.192\r\n2016/01/17 20:28:49 [T] AddTestPullRequestTask[base_repo_id: 1, base_branch: master]: finding pull requests\r\n\r\nlocal Git commit:\r\n[user@linuxtarget testrepo]$ echo `date` >> README.md; git add README.md;git commit -m \"third commit\"; git push -u origin master\r\n[master 726111d] third commit\r\n 1 files changed, 1 insertions(+), 0 deletions(-)\r\nCounting objects: 5, done.\r\nDelta compression using up to 2 threads.\r\nCompressing objects: 100% (2/2), done.\r\nWriting objects: 100% (3/3), 284 bytes, done.\r\nTotal 3 (delta 1), reused 0 (delta 0)\r\nremote: fatal: cannot exec 'hooks/post-receive': Exec format error\r\nTo ssh://git@linuxtarget:10022/user/test_repo.git\r\n   237746f..726111d  master -> master\r\nBranch master set up to track remote branch master from origin.\r\n\r\npost-receive hook:\r\ncurl http://linuxtarget.delphix.local:8080/git/notifyCommit?url=ssh://git@linuxtarget:10022/user/test_repo.git"},"comment":{"url":"https://api.github.com/repos/gogits/gogs/issues/comments/172384556","html_url":"https://github.com/gogits/gogs/issues/2428#issuecomment-172384556","issue_url":"https://api.github.com/repos/gogits/gogs/issues/2428","id":172384556,"user":{"login":"bkcsoft","id":4726179,"avatar_url":"https://avatars.githubusercontent.com/u/4726179?v=3","gravatar_id":"","url":"https://api.github.com/users/bkcsoft","html_url":"https://github.com/bkcsoft","followers_url":"https://api.github.com/users/bkcsoft/followers","following_url":"https://api.github.com/users/bkcsoft/following{/other_user}","gists_url":"https://api.github.com/users/bkcsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/bkcsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkcsoft/subscriptions","organizations_url":"https://api.github.com/users/bkcsoft/orgs","repos_url":"https://api.github.com/users/bkcsoft/repos","events_url":"https://api.github.com/users/bkcsoft/events{/privacy}","received_events_url":"https://api.github.com/users/bkcsoft/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T21:23:45Z","updated_at":"2016-01-17T21:23:45Z","body":"Can you post the contents of the post-recieve-hook?"}}