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.6k stars 5.45k forks source link

(pre-receive hook declined) on push #4868

Closed Cetino closed 6 years ago

Cetino commented 6 years ago

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

Cetino commented 6 years ago

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