go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.08k stars 5.41k forks source link

Client Closed Request when pushing docker container to gitea #31793

Open TheZoker opened 1 month ago

TheZoker commented 1 month ago

Description

When I try to push a docker image via gitea actions to the gitea container repo, I get this error:

#14 pushing layer 408568b8af61 725.15MB / 725.15MB 358.6s done
#14 pushing layer 0ae121d8b283 358.6s done
#14 pushing layer 5a110aa3f10d 358.6s done
#14 pushing layer ef352e7cbd50 358.6s done
#14 pushing layer 78561cef0761 358.6s done
#14 ERROR: unknown: Client Closed Request
------
 > pushing git.domain.com/user/project:main with docker:
------
ERROR: unknown: Client Closed Request
::group::Reference
default/default/ycrwvrjlj5jflhfak0nmeos96
::endgroup::
::group::Check build summary support
::warning::Build summary is not yet supported on GHES
::endgroup::
::error::buildx failed with: ERROR: unknown: Client Closed Request

Gitea Version

1.22.1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://gist.zkr.dev/FlorianGareis/ef5a9912289743689b72bf949eceba81

Screenshots

image

Git Version

2.45.2

Operating System

Proxmox LXC

How are you running Gitea?

Docker compose file

Database

SQLite

KN4CK3R commented 1 month ago

The log does not contain the Docker requests.

TheZoker commented 1 month ago

Ah sorry, this should include the logs from the gitea runner: https://gist.zkr.dev/FlorianGareis/ac95262431dc41cd9c30d65bf8de11b9

KN4CK3R commented 1 month ago

Need the server log with the docker requests.

heryTz commented 1 month ago

I also encountered the same problem.

The error occurs on all large 400Mb images

2024/08/09 11:53:25 ...ntainer/container.go:90:apiError() [E] unexpected EOF
2024/08/09 11:53:25 ...eb/routing/logger.go:102:func1() [I] router: completed PATCH /v2/agst/front-test-staging/blobs/uploads/174sx9oojjiugutlhrgwog7dr for xx.xxx.xx.xxx:57996, 500 Internal Server Error in 50805.1ms @ container/container.go:328(container.UploadBlob)

Here is the complete log : gitea.log

KN4CK3R commented 1 month ago

Maybe your proxy has a upload limit, not a Gitea problem.