Hi team 👋
We run a small local forgejo instance and we mirror some of those repos to codeberg with SSH authentication. This works very well for us, however after we took down that instance and restored it from backups we are no longer able to sync the mirror repos and get the error:
[remote rejected] refs/pull/3/ head (hook declined) ! [remote rejected] refs/pull/4/head (hook declined) error: failed to push some refs to 'ssh://codeberg.org/my-org/my-repo.git' : Failed to add the host to the list of known hosts (/data/ gitea/git/.ssh/known_hosts). remote: remote: Forgejo: The deletion of refs/pull/3/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/3/head remote: remote: Forgejo: The deletion of refs/pull/4/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/4/head To ssh://codeberg.org/my-org/my-repo.git !
Screenshot from the admin UI attached.
I haven't been able to find any relevant documentation on how to clear the offending fingerprint and am hoping someone may be able to point me in the right direction.
Thanks!
### Comment
Hi team 👋
We run a small local forgejo instance and we mirror some of those repos to codeberg with SSH authentication. This works very well for us, however after we took down that instance and restored it from backups we are no longer able to sync the mirror repos and get the error:
```
[remote rejected] refs/pull/3/ head (hook declined) ! [remote rejected] refs/pull/4/head (hook declined) error: failed to push some refs to 'ssh://codeberg.org/my-org/my-repo.git' : Failed to add the host to the list of known hosts (/data/ gitea/git/.ssh/known_hosts). remote: remote: Forgejo: The deletion of refs/pull/3/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/3/head remote: remote: Forgejo: The deletion of refs/pull/4/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/4/head To ssh://codeberg.org/my-org/my-repo.git !
```
Screenshot from the admin UI attached.
I haven't been able to find any relevant documentation on how to clear the offending fingerprint and am hoping someone may be able to point me in the right direction.
Thanks!