-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Closed
Labels
Description
- Gitea version (or commit ref): 1.11.5
- Git version:git version 2.26.2
- Operating system:Gentoo/Linux (rolling)
- Database (use
[x]):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
- Log gist:
Description
All git push fail with
user@host ~/workspace/myproject $ git push
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 278 bytes | 278.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0), pack reused 0
To ssh://giteahost/srv/gitea/gitea-repositories/user/myproject
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://giteahost/srv/gitea/gitea-repositories/user/myproject'
Moving /srv/gitea/gitea-repositories/user/myproject.git/hooks/pre-receive.d/gitea out of the way to prevent the execution of the hook, then the git push works. So the hook gets executed, but fails.
The hook code is standard; it has been regenerated:
"/usr/bin/gitea" hook --config='/etc/gitea/app.ini' pre-receive
When the pre-receive hook is executed, the gitea web service does not log any activity, despite debug logging is turned on everywhere. Interactions with the Web UI do show activity in the logs.
I therefore assume, that the "gitea hook" is unable to contact the running "gitea web" service instance.
How to diagnose this issue?
How to capture information about the executing "gitea hook"?
Thanks, Patrick