Ticket #836 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

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

Reported by: twaugh Owned by: jeremy
Priority: minor Milestone:
Component: Hosted Projects Version:
Severity: Normal Keywords:
Cc: nigelj Blocked By:
Blocking: Sensitive:

Description

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.

Change History

comment:1 in reply to: ↑ description Changed 6 years ago by pfrields

Replying to 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 [...snip...] 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.

comment:2 Changed 6 years ago by mmcgrath

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

comment:3 Changed 6 years ago by ricky

  • Owner changed from sysadmin-hosted-members@… to jeremy
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.

comment:4 Changed 6 years ago by twaugh

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

comment:5 Changed 6 years ago by mmcgrath

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

comment:6 Changed 6 years ago by twaugh

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.

comment:7 Changed 6 years ago by nigelj

  • Cc nigelj added

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

comment:8 Changed 6 years ago by nigelj

  • Status changed from new to closed
  • Resolution set to fixed

Fixed, for future ref:

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

test.sh contained:

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

All git repos fixed

Note: See TracTickets for help on using tickets.