Closed
Description
Description
I have a new installation using Docker and have imported repositories using unadopted repositories
I'm able to push to most of them, however for a couple of repos I'm getting the following errors, and am unable to rectify:
Output from the push
$ git push origin master
Enumerating objects: 837, done.
Counting objects: 100% (837/837), done.
Delta compression using up to 2 threads
Compressing objects: 100% (439/439), done.
Writing objects: 100% (450/450), 108.70 KiB | 2.42 MiB/s, done.
Total 450 (delta 358), reused 5 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (358/358), completed with 322 local objects.
remote:
remote: Gitea: Internal Server Error Decoding Failed
remote: Gitea: HookPreReceive(last) failed: unable to decode error response "POST http://localhost:3000/api/internal/hook/pre-receive/clients/roadworx": readObjectStart: expect { or n, but found <, error found in #2 byte of ...|
remote: <!DOCTYPE h|..., bigger context ...|
remote: <!DOCTYPE html>
remote: <html lang="en-US" data-theme="gite|...
To ssh://gitea.xxx.xxx:222/clients/roadworx.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://gitea.xxx.xxx:222/clients/roadworx.git'
Logs
2024/06/11 07:14:41 ...eb/routing/logger.go:78:func1() [W] router: failed POST /api/internal/hook/pre-receive/clients/roadworx for 172.27.0.2:0, panic in 8.7ms @ private/hook_pre_receive.go:105(private.HookPreReceive), err=runtime error: invalid memory address or nil pointer dereference
2024/06/11 07:14:41 ...rs/common/errpage.go:26:RenderPanicErrorPage() [E] PANIC: runtime error: invalid memory address or nil pointer dereference
I've looked through all past issues similar to this but couldn't find a solution.
Cheers,
Ryan
Gitea Version
1.22.0
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
Docker
How are you running Gitea?
Using docker
Database
MySQL/MariaDB