Hello! I recently installed and deployed gitea on my domain. I used the following Docker image: 1.23-nightly-rootless.
I use Cloudflare and I have Nginx as a reverse proxy. SSL is on with Let’s Encrypt. Everything works smoothly until I try to push my local repository into my newly created gitea repository.
After I authenticate I get the following message:
Enumerating objects: 52, done.
Counting objects: 100% (52/52), done.
Delta compression using up to 8 threads
Compressing objects: 100% (50/50), done.
Writing objects: 100% (52/52), 13.02 KiB | 1.86 MiB/s, done.
Total 52 (delta 17), reused 0 (delta 0), pack-reused 0
remote:
remote: Gitea: Internal Server Error Decoding Failed
To https: <<my remote repository>>
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '<<my remote repository>>'
Docker logs:
2025/04/06 12:29:11 ...eb/routing/logger.go:102:func1() [I] router: completed HEAD / for 108.162.221.93:0, 200 OK in 0.0ms @ misc/misc.go:32(misc.DummyOK)
2025/04/06 12:29:12 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/internal/hook/pre-receive/<<remote repo>> for 127.0.0.1:0, 403 Forbidden in 0.1ms @ private/internal.go:23(private.authInternal)
2025/04/06 12:29:12 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/internal/ssh/log for 127.0.0.1:0, 403 Forbidden in 0.0ms @ private/internal.go:23(private.authInternal)
2025/04/06 12:29:12 ...eb/routing/logger.go:102:func1() [I] router: completed POST /<<remote repo>>/git-receive-pack for 141.101.105.128:0, 200 OK in 222.3ms @ repo/githttp.go:486(repo.ServiceReceivePack)
However I use my admin accounts credentials (repository owner as well), how could I don’t have permission? Is there a way I can generate access token?
I left HTTPS on in the configuration.
What did I miss?