Internal error: Could not read from remote repository

gitea 运行好久了,一直正常,直到昨天我把它迁移到了新服务器上,所有文件和数据库都是直接复制过来的。

gitea 版本:1.41.1

执行 git push 或者 clone 报错:

Cloning into 'xxx'...
Gitea: Internal error
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

ssh 是正常的:

➜  ~ ssh git@xxx
PTY allocation request failed on channel 0
Hi there, seahi! You've successfully authenticated with the key named cyril@DESKTOP-NULHFE4, but Gitea does not provide shell access.
If this is unexpected, please log in with password and setup Gitea under another user.
Connection to closed.