#3699 Remote rejecting git push with a legacy hook error
Closed: Fixed 5 years ago Opened 5 years ago by jhrozek.

This is the error:

git push origin master
Counting objects: 119, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (119/119), done.
Writing objects: 100% (119/119), 23.11 KiB | 2.31 MiB/s, done.
Total 119 (delta 97), reused 0 (delta 0)
remote: Changes: {u'refs/heads/master': (u'10fa27eddb9bbe135277d587c6a2de4b311da6df', u'657f3b89bca9adfb13f0867c91f1d76845d2d6dd')}
remote: Auth backend <class 'pagure.lib.git_auth.Gitolite3Auth'> is static-only
remote: Running plugin default
remote: ('jhrozek', 'pre-receive', <pagure.lib.model.Project object at 0x7f91efa8a5d0>, u'main', {u'refs/heads/master': (u'10fa27eddb9bbe135277d587c6a2de4b311da6df', u'657f3b89bca9adfb13f0867c91f1d76845d2d6dd')})
remote: Running legacy hooks with args: [], stdin: 10fa27eddb9bbe135277d587c6a2de4b311da6df 657f3b89bca9adfb13f0867c91f1d76845d2d6dd refs/heads/master
remote:
remote: Running legacy hook pre-receive.pagureforcecommit. Please ask your admin to port this to the new plugin format, as the current system will cease functioning in a future Pagure release
remote: Traceback (most recent call last):
remote:   File "hooks/pre-receive", line 24, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python2.7/site-packages/pagure/hooks/__init__.py", line 502, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python2.7/site-packages/pagure/hooks/__init__.py", line 422, in run_project_hooks
remote:     [hookfile] + args, cwd=repodir, stdin=subprocess.PIPE
remote:   File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
remote:     errread, errwrite)
remote:   File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
remote:     raise child_exception
remote: OSError: [Errno 2] No such file or directory
To ssh://pagure.io/SSSD/sssd.git
 ! [remote rejected]     master -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://git@pagure.io/SSSD/sssd.git'

We were just talking about this in #pagure. I've manually fixed things on the server for now but we need a proper fix for 5.1 :)

Metadata Update from @pingou:
- Issue set to the milestone: 5.1
- Issue tagged with: bug

5 years ago

Thanks, this helps, now I'm seeing issue #3692, but at least the push works now.

Thanks for confirming :)

Metadata Update from @pingou:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata