# Backup/Restore to new version -\> Internal Server Error

**URL:** <https://forum.gitea.com/t/backup-restore-to-new-version-internal-server-error/2149>\
**Category:** General\
**Created:** [May 12, 2020, 10:44am UTC](https://forum.gitea.com/t/backup-restore-to-new-version-internal-server-error/2149 "2020-05-12T10:44:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![David](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@David](https://forum.gitea.com/u/David)\
**Post date:** [May 12, 2020, 10:44am UTC](https://forum.gitea.com/t/backup-restore-to-new-version-internal-server-error/2149/1 "2020-05-12T10:44:43Z")

</div>

Hi,

I just tried to move gitea from a docker env to a kubernetes env using the newest version. Gitea is runing, I can login with my know users, I can pull a repository, I can create a repository and I can search through repositories.

But trying to push changes to gitea to an existing repository gives me the following error:

```
Total 38 (delta 17), reused 0 (delta 0)
remote: Gitea: Internal Server Error
remote: Unable to contact gitea: Post http://0.0.0.0:3000/api/internal/hook/pre-receive/sys/k8s: net/http: invalid header field value "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE1MjI3NTE0NTR9.4W2_i5BAvlHoSWQxzLLHRrgnYWY4h_M3AYa45q3v204\n" for key Authorization
To http://gitea.velo/sys/k8s.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'http://gitea.velo/sys/k8s.git'

```

gitea itself has nothing in it’s logs regarding this error

Creating a new repository and trying the same again (pull, make some local changes, and push) will throw the exact same error.

I also executed:  
app/gitea$ ./gitea admin regenerate hooks -c /data/gitea/conf/app.ini  
to regenerate the hooks → no change, still the same error

What am I missing here?

Thanks,  
David
