-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
"pre-receive hook declined" after running Gogs for some time on Windows #6316
Comments
I am currently having the same problem. I need to restart the service each day in order to make push request work. The problem did not occur before updating to 0.12.1. I am also using gogs on Windows. |
Thanks for reporting! I don't have any clue about the root cause top of my head, but I'll take a look during 0.13 dev cycle. |
With the same problem, I even tried to restart the service regularly. I've rolled back to 0.11.91 |
My current guess is that the daily log rotation has problem on Windows, since it seems to often appear in the next day? 🤔 |
@unknwon Maybe, I always thought it was more than 10 hours. When there is a problem, my method is to restart the gogs service every time to solve the problem. After encountering this problem, I tried a lot, including changing different versions of GIT, re covering and installing new ones. All of these problems could not be solved. I manually restart every day for more than 20 days, but I didn't wait for your repair version. I gave up and went back to 0.11 |
This problem is very serious, it reappeared after restarting for 12 hours |
@MooLee89 It's very serious. Every day I restart, I want to write an auxiliary program to help gogs restart automatically. The author hasn't found the reason yet, so I suggest to use the old version. There are more and more users who upgrade to the new version. As long as they use windows, they will encounter this problem. Now, there are 4 or 5 people who are fed back. In fact, hundreds of people may have encountered this problem. Please wait for version 0.13 to be funny,because it could take a year. |
I've set up a 0.13.0+dev on a Windows server see if I can reproduce this problem after few hours. |
Found the cause (by setting
Working on a fix. |
The patch will be included in 0.12.3. |
The 0.12.3 has been released. |
Thank you very much. I often check whether 0.12.3 has been released these days. Last night, I saw that it was released 17 minutes ago, but there was only the source code. I waited for an hour and kept refreshing. At 0:17, I finally got the Windows version. |
Describe the bug
When trying to push some repo to Gogs it throws an error
Gogs version and commit
0.12.1 - 43fc826 (The bug never occurred on 0.11.91)
Git version
git version 2.23.0.windows.1 (Windows Client and Windows Server)
and
git version 2.17.1 (Linux Client)
Operating system
Pushing PC -> Windows 10, Linux
Repo Server -> Windows Server 2016
Database
SQLite3
To Reproduce
Steps to reproduce the behavior:
"C:\gogs\gogs.exe" web --config "C:\gogs\custom\conf\app.ini"
Can you reproduce the bug at https://try.gogs.io?
No
Expected behavior
As there is no pre-receive hook on the repo or something wrong in the local repo to finish the push successfully
Actual behavior
When trying to push some repo to Gogs it throws an error
Screenshots
Error:
Ok (After restarting the service):
Additional context
app.ini.txt
gogs.log
hooks/*.log are empty
The text was updated successfully, but these errors were encountered: