#836 "fatal: exec hooks/post-update failed" for git push on fedorahosted.org

Created 9 years ago by twaugh
Modified 9 years ago

I'm seeing errors when using 'git push' with fedorahosted.org. For example:

$ git push
Counting objects: 11, done.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (9/9), 1.46 KiB, done.
Total 9 (delta 1), reused 0 (delta 0)
To ssh://twaugh @git.fedorahosted.org/git/expendable.git
e1268a4..6762d70 master -> master
fatal: exec hooks/post-update failed.

ricky suggested this might be because the filesystem is now mounted noexec.

Replying to [ticket:836 twaugh]:

ricky suggested this might be because the filesystem is now mounted noexec.

This also prevents "git clone http://" from working, maybe because the server's not updating the pointers in refs/heads/ and refs/remotes/ :

$ git clone http://git.fedorahosted.org/git/docs/install-guide.git
cat: /home/pfrields/install-guide/.git/refs/remotes/origin/master: No such file or directory
Warning: Remote HEAD refers to nonexistent ref, unable to checkout.

Ricky tried a manual git-update-server-info this morning on a problem repo, and that alleviated this symptom.

Can you verify if this is still happening? we made some changes and it may have fixed it.

18:24:23 < ricky> Also, anybody remember why /srv on hosted1 is mounted noexec?
18:24:34 < ricky> It's causing some hooks to fail, we think: https://fedorahosted.org/fedora-infrastructure/ticket/836
18:24:44 -!- warren [n=warren @redhat/wombat/warren] has quit "Leaving"
18:24:49 < f13> ricky: that was for security reasons IIRC.
18:25:03 < f13> I think there is a new setup solution for hooks
18:25:09 < f13> jeremy set it up IIRC
18:25:18 < mmcgrath> <nod> jeremy did that as we rebuilt.
18:25:46 < mmcgrath> that may be fixed if he tries again
18:25:48 < mmcgrath> maybe not though

Assigning this to jeremy for now.

Still happening occasionally:

[tim @cyberelk expendable]$ git push --tags
Counting objects: 1, done.
Writing objects: 100% (1/1), 304 bytes, done.
Total 1 (delta 0), reused 0 (delta 0)
To ssh://twaugh @git.fedorahosted.org/git/expendable.git
* [new tag] 0.0.4 -> 0.0.4
fatal: exec hooks/post-update failed.
[tim @cyberelk expendable]$ date
Sun Oct 5 14:23:15 BST 2008

"occasionally"? as in you see it some times or are there some things you can do to trigger it every time?

Actually I think it's all the time. I'd missed the fact that the message does not always appear at the end of the output. Sometimes it is a few lines before the end.

I'll look into this one, I seem to remember whats wrong here.

Fixed, for future ref:

find /git/ -name post-update -type f -print -exec ./test.sh '{}' \;

test.sh contained:


rm $1
sudo ln -s /usr/bin/git-update-server-info $1

All git repos fixed

Login to comment on this ticket.