Skip to content

"pre-receive hook declined" after running Gogs for some time on Windows #6316

@ZantsuRocks

Description

@ZantsuRocks

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:

  1. Open Gogs Service in services.msc "C:\gogs\gogs.exe" web --config "C:\gogs\custom\conf\app.ini"
  2. Push some data (Push completes)
  3. Let the service run for about 24h
  4. Try to push some data again (Push throw an error)
git: 'credential-cache' is not a git command. See 'git --help'.
remote: Gogs: Internal error        
To https://srvfs01.agst.com.br:3000/AGST/JigaBrise.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://srvfs01.agst.com.br:3000/AGST/JigaBrise.git'
  1. Restart the service on services.msc
  2. Try to push again and it works.

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:
erro
Ok (After restarting the service):
ok

Additional context
app.ini.txt
gogs.log
hooks/*.log are empty

Metadata

Metadata

Assignees

Labels

💊 bugSomething isn't working🔙 regressionDamn, why it stops working?🧗🏾 windowsCategorizes as related to Windows

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions