Create new branch error

Hi All,

I am new to Gitea. I move my local repository to gitea and use SQLite3 as database. But It’s unable to create new remote branch after move. The error is as follows:

$ git push origin dev_query:dev_query
Total 0 (delta 0), reused 0 (delta 0)
remote: Gitea: readObjectStart: expect { or n, but found F, error found in #1 byte of ...|Forbidden
remote: |..., bigger context ...|Forbidden
remote: |...
To git@localhost:spike/EurekaDB.git
 ! [remote rejected] dev_query -> dev_query (pre-receive hook declined)
error: failed to push some refs to 'git@localhost:spike/EurekaDB.git'

This is a new remote branch, so obviously it is unprotected.
I am not sure where to go from here in terms of troubleshooting. Can anyone assist?


Have you got any answer for this? Could you solve the problem? I’ve got exactly the same error.

It turns out for some reason your configuration needs updating i.e LOCAL_ROOT_URL (it should have the hostname as it is accessible on the network)