You are not logged in.

#1 2017-07-11 23:37:37

JesseMeyer
Member
Registered: 2017-07-11
Posts: 2

Gitea configuration woes

I've installed Gitea from https://aur.archlinux.org/packages/gitea/ following the following article https://wiki.archlinux.org/index.php/Gitea

I have the server up and running. Via the web interface everything seems to respond appropriately. I've had Gitea used in product on a Debian box before so I am familiar with it.

The problem comes when I push to a repository. Via the command line, the server responds with:

Counting objects: 9, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (9/9), 4.93 KiB | 0 bytes/s, done.
Total 9 (delta 0), reused 0 (delta 0)
remote: Gitea: Hook pre-receive init failed
remote: setup: Failed to connect to database: Failed to create directories: mkdir data: permission denied
To REDACTED.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'REDACTED.git'

The error message looks like the process doesn't have write access to the database's data path.

My assumption is the setup process configured everything correctly, but left a step or two up to me to finish. I could be mistaken.

in /etc/group, git is setup as git:x:996. As a smoke test I added git to root's line but that did not help.

I did the normal stuff - check user and folder permissions - re-read the install guide for missing steps - check the AUR page is anyone else suffered the same setup problem, but to no avail. I must be missing something obvious. I am not an Arch pro, so if there are hidden assumptions about package / server management that may not be explicitly on those two wiki pages, I probably don't know it.

Looking for guidance!

Thanks!

Jesse

Last edited by JesseMeyer (2017-07-11 23:44:58)

Offline

#2 2017-07-12 01:20:14

JesseMeyer
Member
Registered: 2017-07-11
Posts: 2

Re: Gitea configuration woes

If anyone knows what is likely the problem, I'll still appreciate feedback - but I just switched to Debian 9 again and it just works. So I'm not suffering from this no more!

Offline

Board footer

Powered by FluxBB