Setup issues - debugging after following the manual - Gitea 1.9.1 from binary


I followed this manual to install gitea from binary.

The server comes up fine, but I cannot commit any code to repositories.

Installation from binary - Docs (

git init
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint: 	git config --global init.defaultBranch <name>
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint: 	git branch -m <name>
Initialized empty Git repository in /Users/mc/Source/gist/.git/
git checkout -b main
Switched to a new branch 'main'
git add
fatal: pathspec '' did not match any files
echo "Test" > Readme.txt
git add Readme.txt
git commit -m "first commit"
[main (root-commit) fb17708] first commit
 1 file changed, 1 insertion(+)
 create mode 100644 Readme.txt
git remote add origin
git push -u origin main
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Writing objects: 100% (3/3), 217 bytes | 217.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
remote: fatal: not a git repository: '.'
error: remote unpack failed: unpack-objects abnormal exit
 ! [remote rejected] main -> main (unpacker error)
error: failed to push some refs to ''

On the server:

root@code:/var/log# git --version
git version 2.25.1

root@code:/var/log# ps aux | grep gitea
root         904  0.0  4.3 1689836 174688 ?      Ssl  Apr14   5:19 /usr/local/bin/gitea web --config /etc/gitea/app.ini
root       35779  0.0  0.0   8160  2620 pts/0    S+   14:13   0:00 grep --color=auto gitea

root@code:/var/log# gitea --version
Gitea version 1.19.1 built with GNU Make 4.1, go1.20.3 : bindata, sqlite, sqlite_unlock_notify

root@code:/var/log# id git
uid=997(git) gid=1001(git) groups=1001(git)

root@code:/var/log# cat /etc/lsb-release

I use the systemd unit from here:

gitea/gitea.service at main · go-gitea/gitea (

Is there any way to turn on some debug logs or to find out what’s wrong?

I checked out your server and it looks like that repo has been pushed to since you posted, were you able to resolve your issue?

If not, check logs of gitea by running journalctl -b -u gitea. There should be some related error in there.

1 Like