# Internal error: Could not read from remote repository

**URL:** <https://forum.gitea.com/t/internal-error-could-not-read-from-remote-repository/3226>\
**Category:** 中文求助(Chinese Only)\
**Created:** [May 1, 2021, 2:54am UTC](https://forum.gitea.com/t/internal-error-could-not-read-from-remote-repository/3226 "2021-05-01T02:54:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![seahime](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/seahime/32/1286_2.png) [@seahime](https://forum.gitea.com/u/seahime)\
**Post date:** [May 1, 2021, 2:54am UTC](https://forum.gitea.com/t/internal-error-could-not-read-from-remote-repository/3226/1 "2021-05-01T02:54:25Z")

</div>

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

gitea 版本：1.41.1

执行 git push 或者 clone 报错：

```auto
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 是正常的：

```auto
➜ ~ 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 git.seahi.me closed.

```
