# Unable to push after restart

**URL:** <https://forum.gitea.com/t/unable-to-push-after-restart/8752>\
**Category:** Install/Maintain/Configure\
**Created:** [March 11, 2024, 6:47pm UTC](https://forum.gitea.com/t/unable-to-push-after-restart/8752 "2024-03-11T18:47:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tlaugier](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@tlaugier](https://forum.gitea.com/u/tlaugier)\
**Post date:** [March 11, 2024, 6:47pm UTC](https://forum.gitea.com/t/unable-to-push-after-restart/8752/1 "2024-03-11T18:47:15Z")

</div>

After rebooting the server hosting our Gitea instance (version 1.21.1), we are unable to push to any existing repository. When trying to push we have this error:

```auto
Enumerating objects: 30, done.
Counting objects: 100% (30/30), done.
Delta compression using up to 12 threads
Compressing objects: 100% (18/18), done.
Writing objects: 100% (18/18), 12.48 KiB | 4.16 MiB/s, done.
Total 18 (delta 13), reused 0 (delta 0), pack-reused 0
remote: Gogs: Internal error
To https://git.articque.com/tlaugier/sauvegarde
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.articque.com/tlaugier/sauvegarde'

```

I don’t have any errors in the logs even when starting Gitea in dev mode. I’ve tried a lot of solutions I found on this forum for similar issues but so far none have worked.  
As stated before the issue only occurs on existing repositories, I created a new repository after the issue was found and I can push to it without any issue. The logs are not different wether I try to do a push to this new repository or an existing one where I encounter an error.

Does anyone have an idea of what I could try to fix this issue? Since I don’t have logs indicating a precise issue I find myself at a loss here.

---

<div class="post-metadata">

**Author:** ![jolheiser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/jolheiser/32/4807_2.png) [@jolheiser](https://forum.gitea.com/u/jolheiser)\
**Post date:** [March 11, 2024, 6:53pm UTC](https://forum.gitea.com/t/unable-to-push-after-restart/8752/2 "2024-03-11T18:53:08Z")

</div>

It sounds like you may need to re-sync your git hooks. Do you have admin access?

---

<div class="post-metadata">

**Author:** ![tlaugier](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@tlaugier](https://forum.gitea.com/u/tlaugier)\
**Post date:** [March 12, 2024, 7:50am UTC](https://forum.gitea.com/t/unable-to-push-after-restart/8752/3 "2024-03-12T07:50:09Z")

</div>

Yeah I found that on another thread and I already re-synced them but no luck it doesn’t change anything. I tried via the admin panel and the command line, no errors but still cannot push.
