go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.81k stars 5.47k forks source link

The change was rejected by the server without a message. Please check Git Hooks. #31816

Closed amirad1 closed 1 month ago

amirad1 commented 2 months ago

Description

I have recently upgraded my gitea from 1.17.14 to 1.22.1 with the recommended instructions but I encountered a problem when I am trying to make a new branch or upload any kind of file to the repository, I get this logs error The change was rejected by the server without a message. Please check Git Hooks.

I can not face any error logs in the logs to retrieve more information

Gitea Version

1.22.1

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

image

Git Version

No response

Operating System

Ubuntu 24.04

How are you running Gitea?

linux binary systemd

Database

Mysql

eeyrjmr commented 2 months ago

Could you try Resynchronize pre-receive, update and post-receive hooks of all repositories. , from the admin site configuration page

2024-08-11_14-08-1723382139

amirad1 commented 2 months ago

thanks but it did not work and I am facing the same error

eeyrjmr commented 2 months ago

can you provide full logs please. there will be some information in there

amirad1 commented 2 months ago

The problem was with the repository path permission, unfortunately gitea does not provide any error logs when there is a permission error on repository but I have had to find it out by myself

lunny commented 2 months ago

I don't know whether Gitea caught the error git posted.

GiteaBot commented 1 month ago

We close issues that need feedback from the author if there were no new comments for a month. :tea: