Push ends up with "(bad pack)"

Hello. My setup is quite odd but still.
Andriod → Termux → Debian → Gitea 1.22.3 arm64
Im able to install, login, use web ui, pull/clone/fetch.
But unable to push. Attempts from any client end up with

Pushing to http://some.host:3000/test/test.git
POST git-receive-pack (353 bytes)
To http://some.host:3000/test/test.git
 ! [remote rejected] master -> master (bad pack)
error: failed to push some refs to 'http://some.host:3000/test/test.git'

It seems to me that it is some unmet dependncy.

The change was rejected by the server without a message. Please check Git Hooks.

New message while trying to edit file in web ui.
Where to check theese “Hooks”?

*git.ErrPushRejected PushRejected Error: exit status 1 - error: unpack should have generated a70e511758491b090775831365cbe773a4418827, but I can't find it!

incorrect dir permissions?
which one?

debian does not want to change dir owner. what should i do? is there any way to start gitea from root?

where to

unpack should have generated

?
any help?

I’ve found all packs in /path/to/gitea_repositories/username/reponame.git/objects/ and all of them zero size mode 000 size 0 created 01.01.1970 00:00:00
start from root did not help.
What else can I try?