(pre-receive hook declined) on push #2294

Closed
opened 2025-11-02 04:31:34 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @Cetino on GitHub (Sep 4, 2018).

  • Gitea version (or commit ref): 1.5.1
  • Git version: 2.18.0.windows.1
  • Operating system: Windows Server 2012
  • 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:
    Console:
    [Macaron] 2018-09-04 10:37:02: Started GET /GitAdmin/Cpp_Projects.git/info/refs?
    service=git-receive-pack for 192.168.178.147
    [Macaron] 2018-09-04 10:37:02: Completed GET /GitAdmin/Cpp_Projects.git/info/ref
    s?service=git-receive-pack 401 Unauthorized in 4.9439ms
    [Macaron] 2018-09-04 10:37:02: Started GET /GitAdmin/Cpp_Projects.git/info/refs?
    service=git-receive-pack for 192.168.178.147
    [Macaron] 2018-09-04 10:37:03: Completed GET /GitAdmin/Cpp_Projects.git/info/ref
    s?service=git-receive-pack 200 OK in 218.4254ms
    [Macaron] 2018-09-04 10:37:03: Started POST /GitAdmin/Cpp_Projects.git/git-recei
    ve-pack for 192.168.178.147
    [Macaron] 2018-09-04 10:37:03: Completed POST /GitAdmin/Cpp_Projects.git/git-rec
    eive-pack 200 OK in 507.53ms

Logfile:
2018/09/04 10:37:02 [D] Session ID: 991275353023b5d2
2018/09/04 10:37:02 [D] CSRF Token: qVUWLYu7wo0G7y5tHBM_r5VtJJY6MTUzNjA1MDIyMjc3NTg1OTkwMA==
2018/09/04 10:37:03 [D] Session ID: 50203e9464c452d5
2018/09/04 10:37:03 [D] CSRF Token: y754F5qRAyft-FjsyND0f9_ni5A6MTUzNjA1MDIyMjk1MzE5NzcwMA==
2018/09/04 10:37:03 [D] Session ID: 982a37bd1ed5f1db
2018/09/04 10:37:03 [D] CSRF Token: D3_wIozqXwnS3WIlJxv6j14i9ww6MTUzNjA1MDIyMzM2OTY4NzIwMA==

Description

I just set up a fresh gitea instance but i can't get it to work. Every time i try to push on the remote repo i get ! [remote rejected] master -> master (pre-receive hook declined).

Gitea is installed on a local Windows Server 2012 server called "hotdogserver".

Serverconfig:
[server]
SSH_DOMAIN = hotdogserver
DOMAIN = hotdogserver
HTTP_PORT = 8085
ROOT_URL = http://hotdogserver:8085/
DISABLE_SSH = true
SSH_PORT = 22
LFS_START_SERVER = true
LFS_CONTENT_PATH = C:/Users/Administrator/Desktop/data/lfs
LFS_JWT_SECRET = [some random string]
OFFLINE_MODE = false

I tried also DOMAIN with localhost or 127.0.0.1 or LAN IP Adress but nothing helpes :(

local repository config:
[core]
bare = false
filemode = false
symlinks = false
ignorecase = true
logallrefupdates = true
[core]
repositoryformatversion = 0
[remote "origin"]
url = http://hotdogserver:8085/GitAdmin/Cpp_Projects.git
[remote "origin"]
fetch = +refs/heads/:refs/remotes/origin/
[branch "master"]
remote = origin
[branch "master"]
merge = refs/heads/master
[credential]
username=GitAdmin
helper = store

Screenshots

Originally created by @Cetino on GitHub (Sep 4, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.5.1 - Git version: 2.18.0.windows.1 - Operating system: Windows Server 2012 - Database (use `[x]`): - [ ] PostgreSQL - [X] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [X] Not relevant - Log gist: Console: [Macaron] 2018-09-04 10:37:02: Started GET /GitAdmin/Cpp_Projects.git/info/refs? service=git-receive-pack for 192.168.178.147 [Macaron] 2018-09-04 10:37:02: Completed GET /GitAdmin/Cpp_Projects.git/info/ref s?service=git-receive-pack 401 Unauthorized in 4.9439ms [Macaron] 2018-09-04 10:37:02: Started GET /GitAdmin/Cpp_Projects.git/info/refs? service=git-receive-pack for 192.168.178.147 [Macaron] 2018-09-04 10:37:03: Completed GET /GitAdmin/Cpp_Projects.git/info/ref s?service=git-receive-pack 200 OK in 218.4254ms [Macaron] 2018-09-04 10:37:03: Started POST /GitAdmin/Cpp_Projects.git/git-recei ve-pack for 192.168.178.147 [Macaron] 2018-09-04 10:37:03: Completed POST /GitAdmin/Cpp_Projects.git/git-rec eive-pack 200 OK in 507.53ms Logfile: 2018/09/04 10:37:02 [D] Session ID: 991275353023b5d2 2018/09/04 10:37:02 [D] CSRF Token: qVUWLYu7wo0G7y5tHBM_r5VtJJY6MTUzNjA1MDIyMjc3NTg1OTkwMA== 2018/09/04 10:37:03 [D] Session ID: 50203e9464c452d5 2018/09/04 10:37:03 [D] CSRF Token: y754F5qRAyft-FjsyND0f9_ni5A6MTUzNjA1MDIyMjk1MzE5NzcwMA== 2018/09/04 10:37:03 [D] Session ID: 982a37bd1ed5f1db 2018/09/04 10:37:03 [D] CSRF Token: D3_wIozqXwnS3WIlJxv6j14i9ww6MTUzNjA1MDIyMzM2OTY4NzIwMA== ## Description I just set up a fresh gitea instance but i can't get it to work. Every time i try to push on the remote repo i get ! [remote rejected] master -> master (pre-receive hook declined). Gitea is installed on a local Windows Server 2012 server called "hotdogserver". Serverconfig: [server] SSH_DOMAIN = hotdogserver DOMAIN = hotdogserver HTTP_PORT = 8085 ROOT_URL = http://hotdogserver:8085/ DISABLE_SSH = true SSH_PORT = 22 LFS_START_SERVER = true LFS_CONTENT_PATH = C:/Users/Administrator/Desktop/data/lfs LFS_JWT_SECRET = [some random string] OFFLINE_MODE = false I tried also DOMAIN with localhost or 127.0.0.1 or LAN IP Adress but nothing helpes :( local repository config: [core] bare = false filemode = false symlinks = false ignorecase = true logallrefupdates = true [core] repositoryformatversion = 0 [remote "origin"] url = http://hotdogserver:8085/GitAdmin/Cpp_Projects.git [remote "origin"] fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin [branch "master"] merge = refs/heads/master [credential] username=GitAdmin helper = store ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
Author
Owner

@Cetino commented on GitHub (Sep 16, 2018):

Solved by uninstalling gitea and using SCM-Manager instead. It may does look not so nice but most importantly it WORKS !

@Cetino commented on GitHub (Sep 16, 2018): Solved by uninstalling gitea and using [SCM-Manager](https://www.scm-manager.org/) instead. It may does look not so nice but most importantly it WORKS !
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2294