-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
(pre-receive hook declined) error on windows #22381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
With a clean reinstall operation can reproduce this error on my VM (win7-x64), even the new project only has a file readme.md and made a small change cannot push to server side. |
@sinotaotao are you able to try with gogit version of the windows binary? |
Please look at the logs for the Gitea server which should help further explain what the error is. |
same error + |
|
@zeripath About logs The logs in the first post are from server side. When the (pre-receive hook declined) error occurred, there was a |
First off I suspect this is going to have the same underlying issue as in #22370 and in #22293 so I'm explicitly mentioning them here. It may be simply that adding the following setting to the app.ini [server]
LOCAL_ROOT_URL = http://127.0.0.1:3000/
...
You have not given us all the logs that we need. You have not turned on DEBUG logging and not given us the router logs. I know that you've not given me all of the logs because there will be at least one call to /api/internal that is not in the logs. If you have turned on DEBUG logging there will be some logging before the log line that you have pasted. I shouldn't have to keep saying this, PLEASE READ https://docs.gitea.io/en-us/logging-configuration/#debugging-problems |
Add the config item [server]
LOCAL_ROOT_URL = http://127.0.0.1:3000/ solved the problem thanks very much @zeripath @techknowlogick |
Duplicate of #22370. Users affected should set LOCAL_ROOT_URL as their hosts file most likely doesn't contain a valid alias for localhost. I don't understand why go has suddenly broke this but it's not our fault - we'll investigate more in the other issue. |
On windows7. There is a main (pre-receive hook declined) error on my PC.
Both git cli and browser pushes were refused. Currently I go back to use v1.17.4.
The Gitea version is 1.18.0, but v1.18.0 on linux x86_64 is ok.
Logs when the (pre-receive hook declined) error occurred:
Originally posted by @sinotaotao in #22293 (comment)
The text was updated successfully, but these errors were encountered: