Infinite loop push Docker image #13602

Closed
opened 2025-11-02 10:47:46 -06:00 by GiteaMirror · 26 comments
Owner

Originally created by @WangZhongDian on GitHub (Oct 15, 2024).

Description

When I pushed Docker, it was obvious that the upload was already in progress, but there were infinite retries. I tested that uploading Docker to the center was normal

这是日志

2024/10/15 16:23:22 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/ for 218.200.145.67:0, 401 Unauthorized in 0.3ms @ container/container.go:129(container.ReqContainerAccess)
Received disconnect from 172.17.0.1 port 44068:11: Bye Bye [preauth]
Disconnected from invalid user caimingwei 172.17.0.1 port 44068 [preauth]
2024/10/15 16:23:23 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/token?account=youmetme&scope=repository%3Ayoumetme%2Fjre%3Apush%2Cpull&service=container_registry for 218.200.145.67:0, 200 OK in 365.1ms @ container/container.go:152(container.Authenticate)
2024/10/15 16:23:23 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:6889c2fe38979b65070da5912c39951541fa5d00ff1e4316f1246ac0780d5a7b for 218.200.145.67:0, 404 Not Found in 8.5ms @ container/container.go:521(container.GetBlob)
2024/10/15 16:23:23 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:154f02a6f4ff3179213e583eb4776bed04544b929d7c4611e9dd330242b31c70 for 218.200.145.67:0, 200 OK in 51.0ms @ container/container.go:521(container.GetBlob)
2024/10/15 16:23:23 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:8235ecec634f7387ba5f6733f26f8eb8566345fe7648b40a5307f5e2c8dc88ef for 218.200.145.67:0, 200 OK in 34.0ms @ container/container.go:521(container.GetBlob)
2024/10/15 16:23:23 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:43c4264eed91be63b206e17d93e75256a6097070ce643c5e8f0379998b44f170 for 218.200.145.67:0, 200 OK in 85.1ms @ container/container.go:521(container.GetBlob)
2024/10/15 16:23:23 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/youmetme/jre/blobs/uploads/ for 218.200.145.67:0, 202 Accepted in 9.7ms @ container/container.go:234(container.InitiateUploadBlob)
2024/10/15 16:23:23 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for 218.200.145.67:0, 200 OK in 101.6ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
User root from 172.17.0.1 not allowed because not listed in AllowUsers


Gitea Version

1.22.3

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

image

image

Git Version

No response

Operating System

No response

How are you running Gitea?

docker

Database

SQLite

Originally created by @WangZhongDian on GitHub (Oct 15, 2024). ### Description When I pushed Docker, it was obvious that the upload was already in progress, but there were infinite retries. I tested that uploading Docker to the center was normal # 这是日志 ```log 2024/10/15 16:23:22 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/ for 218.200.145.67:0, 401 Unauthorized in 0.3ms @ container/container.go:129(container.ReqContainerAccess) Received disconnect from 172.17.0.1 port 44068:11: Bye Bye [preauth] Disconnected from invalid user caimingwei 172.17.0.1 port 44068 [preauth] 2024/10/15 16:23:23 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/token?account=youmetme&scope=repository%3Ayoumetme%2Fjre%3Apush%2Cpull&service=container_registry for 218.200.145.67:0, 200 OK in 365.1ms @ container/container.go:152(container.Authenticate) 2024/10/15 16:23:23 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:6889c2fe38979b65070da5912c39951541fa5d00ff1e4316f1246ac0780d5a7b for 218.200.145.67:0, 404 Not Found in 8.5ms @ container/container.go:521(container.GetBlob) 2024/10/15 16:23:23 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:154f02a6f4ff3179213e583eb4776bed04544b929d7c4611e9dd330242b31c70 for 218.200.145.67:0, 200 OK in 51.0ms @ container/container.go:521(container.GetBlob) 2024/10/15 16:23:23 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:8235ecec634f7387ba5f6733f26f8eb8566345fe7648b40a5307f5e2c8dc88ef for 218.200.145.67:0, 200 OK in 34.0ms @ container/container.go:521(container.GetBlob) 2024/10/15 16:23:23 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:43c4264eed91be63b206e17d93e75256a6097070ce643c5e8f0379998b44f170 for 218.200.145.67:0, 200 OK in 85.1ms @ container/container.go:521(container.GetBlob) 2024/10/15 16:23:23 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/youmetme/jre/blobs/uploads/ for 218.200.145.67:0, 202 Accepted in 9.7ms @ container/container.go:234(container.InitiateUploadBlob) 2024/10/15 16:23:23 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for 218.200.145.67:0, 200 OK in 101.6ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) User root from 172.17.0.1 not allowed because not listed in AllowUsers ``` ### Gitea Version 1.22.3 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots ![image](https://github.com/user-attachments/assets/45069138-b4b4-4031-a8d7-12ade84d774d) ![image](https://github.com/user-attachments/assets/5915d196-6006-4853-a4fa-f7c9b79277e7) ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? docker ### Database SQLite
GiteaMirror added the issue/confirmedtopic/packagestype/bug labels 2025-11-02 10:47:46 -06:00
Author
Owner

@yp05327 commented on GitHub (Oct 17, 2024):

What does to the center mean?

@yp05327 commented on GitHub (Oct 17, 2024): What does `to the center` mean?
Author
Owner

@WangZhongDian commented on GitHub (Oct 17, 2024):

What does to the center mean?

Sorry, it should be normal to upload to the docker central warehouse. What I want to prove is that it is not a local problem

@WangZhongDian commented on GitHub (Oct 17, 2024): > What does `to the center` mean? Sorry, it should be normal to upload to the docker central warehouse. What I want to prove is that it is not a local problem
Author
Owner

@lunny commented on GitHub (Oct 23, 2024):

What's the demo site url you can reproduce?

@lunny commented on GitHub (Oct 23, 2024): What's the demo site url you can reproduce?
Author
Owner

@WangZhongDian commented on GitHub (Oct 23, 2024):

What's the demo site url you can reproduce?

How can I demonstrate uploading Docker images on demo.gitea.com

$ docker login demo.gitea.com
Username: youmetme
Password: 
Error response from daemon: Get "https://demo.gitea.com/v2/": unauthorized: authGroup.Verify
@WangZhongDian commented on GitHub (Oct 23, 2024): > What's the demo site url you can reproduce? How can I demonstrate uploading Docker images on demo.gitea.com ``` $ docker login demo.gitea.com Username: youmetme Password: Error response from daemon: Get "https://demo.gitea.com/v2/": unauthorized: authGroup.Verify ```
Author
Owner

@yp05327 commented on GitHub (Oct 23, 2024):

IIRC, the password should be a token. You can try it.

@yp05327 commented on GitHub (Oct 23, 2024): IIRC, the password should be a token. You can try it.
Author
Owner

@hiifong commented on GitHub (Nov 25, 2024):

What's the demo site url you can reproduce?

How can I demonstrate uploading Docker images on demo.gitea.com


$ docker login demo.gitea.com

Username: youmetme

Password: 

Error response from daemon: Get "https://demo.gitea.com/v2/": unauthorized: authGroup.Verify

Are you running as root user?

@hiifong commented on GitHub (Nov 25, 2024): > > What's the demo site url you can reproduce? > > > > How can I demonstrate uploading Docker images on demo.gitea.com > > ``` > > $ docker login demo.gitea.com > > Username: youmetme > > Password: > > Error response from daemon: Get "https://demo.gitea.com/v2/": unauthorized: authGroup.Verify > > ``` Are you running as root user?
Author
Owner

@WangZhongDian commented on GitHub (Nov 25, 2024):

What's the demo site url you can reproduce?

How can I demonstrate uploading Docker images on demo.gitea.com


$ docker login demo.gitea.com

Username: youmetme

Password: 

Error response from daemon: Get "https://demo.gitea.com/v2/": unauthorized: authGroup.Verify

Are you running as root user?

The user has joined the docker group and does not need to consider this detail

@WangZhongDian commented on GitHub (Nov 25, 2024): > > > What's the demo site url you can reproduce? > > > > > > How can I demonstrate uploading Docker images on demo.gitea.com > > ``` > > > > $ docker login demo.gitea.com > > > > Username: youmetme > > > > Password: > > > > Error response from daemon: Get "https://demo.gitea.com/v2/": unauthorized: authGroup.Verify > > ``` > > Are you running as root user? The user has joined the `docker` group and does not need to consider this detail
Author
Owner

@WangZhongDian commented on GitHub (Nov 25, 2024):

录屏 2024-11-25 22-07-00.webm
This will never end

@WangZhongDian commented on GitHub (Nov 25, 2024): [录屏 2024-11-25 22-07-00.webm](https://github.com/user-attachments/assets/e9144e7c-094e-49c2-9167-5a3629e9494c) This will never end
Author
Owner

@WangZhongDian commented on GitHub (Nov 25, 2024):

What's the demo site url you can reproduce?

How can I demonstrate uploading Docker images on demo.gitea.com

$ docker login demo.gitea.com
Username: youmetme
Password: 
Error response from daemon: Get "https://demo.gitea.com/v2/": unauthorized: authGroup.Verify

It was successful on demo.gitea.com
But this problem still exists with me. All other software package functions are normal, only Docker

@WangZhongDian commented on GitHub (Nov 25, 2024): > > What's the demo site url you can reproduce? > > How can I demonstrate uploading Docker images on demo.gitea.com > > ``` > $ docker login demo.gitea.com > Username: youmetme > Password: > Error response from daemon: Get "https://demo.gitea.com/v2/": unauthorized: authGroup.Verify > ``` It was successful on `demo.gitea.com` But this problem still exists with me. All other software package functions are normal, only Docker
Author
Owner

@WangZhongDian commented on GitHub (Nov 25, 2024):

The main issue is that Gitea's logs did not provide any critical prompts

@WangZhongDian commented on GitHub (Nov 25, 2024): The main issue is that Gitea's logs did not provide any critical prompts
Author
Owner

@hiifong commented on GitHub (Nov 25, 2024):

录屏 2024-11-25 22-07-00.webm This will never end

Are you using cloudflare tunnel?

@hiifong commented on GitHub (Nov 25, 2024): > [录屏 2024-11-25 22-07-00.webm](https://github.com/user-attachments/assets/e9144e7c-094e-49c2-9167-5a3629e9494c) This will never end Are you using cloudflare tunnel?
Author
Owner

@WangZhongDian commented on GitHub (Nov 25, 2024):

What do you mean?I not

录屏 2024-11-25 22-07-00.webm This will never end

Are you using cloudflare tunnel?

@WangZhongDian commented on GitHub (Nov 25, 2024): What do you mean?I not > > [录屏 2024-11-25 22-07-00.webm](https://github.com/user-attachments/assets/e9144e7c-094e-49c2-9167-5a3629e9494c) This will never end > > Are you using cloudflare tunnel?
Author
Owner

@hiifong commented on GitHub (Nov 25, 2024):

What do you mean?I not

录屏 2024-11-25 22-07-00.webm This will never end

Are you using cloudflare tunnel?

Pretend I didn't ask

@hiifong commented on GitHub (Nov 25, 2024): > What do you mean?I not > > > > [录屏 2024-11-25 22-07-00.webm](https://github.com/user-attachments/assets/e9144e7c-094e-49c2-9167-5a3629e9494c) This will never end > > > > > > Are you using cloudflare tunnel? Pretend I didn't ask
Author
Owner

@WangZhongDian commented on GitHub (Nov 29, 2024):

@yp05327 @hiifong
This is more logs obtained from updating to 1.22.4

2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:43c4264eed91be63b206e17d93e75256a6097070ce643c5e8f0379998b44f170 for 218.200.145.67:0, 404 Not Found in 2.5ms @ container/container.go:521(container.GetBlob)
2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:8235ecec634f7387ba5f6733f26f8eb8566345fe7648b40a5307f5e2c8dc88ef for 218.200.145.67:0, 404 Not Found in 2.8ms @ container/container.go:521(container.GetBlob)
2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:154f02a6f4ff3179213e583eb4776bed04544b929d7c4611e9dd330242b31c70 for 218.200.145.67:0, 404 Not Found in 2.8ms @ container/container.go:521(container.GetBlob)
2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:6889c2fe38979b65070da5912c39951541fa5d00ff1e4316f1246ac0780d5a7b for 218.200.145.67:0, 404 Not Found in 4.0ms @ container/container.go:521(container.GetBlob)
2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/youmetme/jre/blobs/uploads/ for 218.200.145.67:0, 202 Accepted in 7.8ms @ container/container.go:234(container.InitiateUploadBlob)
2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/youmetme/jre/blobs/uploads/ for 218.200.145.67:0, 202 Accepted in 8.1ms @ container/container.go:234(container.InitiateUploadBlob)
2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/youmetme/jre/blobs/uploads/ for 218.200.145.67:0, 202 Accepted in 8.5ms @ container/container.go:234(container.InitiateUploadBlob)
2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/youmetme/jre/blobs/uploads/ for 218.200.145.67:0, 202 Accepted in 14.3ms @ container/container.go:234(container.InitiateUploadBlob)
2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed PATCH /v2/youmetme/jre/blobs/uploads/jw77blr0enfekze8rccqysqyf for 218.200.145.67:0, 202 Accepted in 7.8ms @ container/container.go:344(container.UploadBlob)
2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed PUT /v2/youmetme/jre/blobs/uploads/jw77blr0enfekze8rccqysqyf?digest=sha256%3A8235ecec634f7387ba5f6733f26f8eb8566345fe7648b40a5307f5e2c8dc88ef for 218.200.145.67:0, 201 Created in 45.2ms @ container/container.go:389(container.EndUploadBlob)
2024/11/29 02:11:18 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:8235ecec634f7387ba5f6733f26f8eb8566345fe7648b40a5307f5e2c8dc88ef for 218.200.145.67:0, 200 OK in 6.5ms @ container/container.go:521(container.GetBlob)
2024/11/29 02:11:22 ...eb/routing/logger.go:68:func1() [W] router: slow      PATCH /v2/youmetme/jre/blobs/uploads/kutzafxqv5xwkksriogheo88w for 218.200.145.67:0, elapsed 3342.2ms @ container/container.go:344(container.UploadBlob)
2024/11/29 02:11:22 ...eb/routing/logger.go:68:func1() [W] router: slow      PATCH /v2/youmetme/jre/blobs/uploads/xtb5f72i6rlycdi3bd6qntqlz for 218.200.145.67:0, elapsed 3816.3ms @ container/container.go:344(container.UploadBlob)
2024/11/29 02:11:25 ...eb/routing/logger.go:102:func1() [I] router: completed PATCH /v2/youmetme/jre/blobs/uploads/xtb5f72i6rlycdi3bd6qntqlz for 218.200.145.67:0, 202 Accepted in 6488.7ms @ container/container.go:344(container.UploadBlob)
2024/11/29 02:11:25 ...eb/routing/logger.go:102:func1() [I] router: completed PUT /v2/youmetme/jre/blobs/uploads/xtb5f72i6rlycdi3bd6qntqlz?digest=sha256%3A154f02a6f4ff3179213e583eb4776bed04544b929d7c4611e9dd330242b31c70 for 218.200.145.67:0, 201 Created in 44.7ms @ container/container.go:389(container.EndUploadBlob)
2024/11/29 02:11:26 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:154f02a6f4ff3179213e583eb4776bed04544b929d7c4611e9dd330242b31c70 for 218.200.145.67:0, 200 OK in 17.4ms @ container/container.go:521(container.GetBlob)
2024/11/29 02:11:28 ...eb/routing/logger.go:102:func1() [I] router: completed PATCH /v2/youmetme/jre/blobs/uploads/kutzafxqv5xwkksriogheo88w for 218.200.145.67:0, 202 Accepted in 9144.8ms @ container/container.go:344(container.UploadBlob)
2024/11/29 02:11:28 ...eb/routing/logger.go:102:func1() [I] router: completed PUT /v2/youmetme/jre/blobs/uploads/kutzafxqv5xwkksriogheo88w?digest=sha256%3A43c4264eed91be63b206e17d93e75256a6097070ce643c5e8f0379998b44f170 for 218.200.145.67:0, 201 Created in 42.5ms @ container/container.go:389(container.EndUploadBlob)
2024/11/29 02:11:28 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:43c4264eed91be63b206e17d93e75256a6097070ce643c5e8f0379998b44f170 for 218.200.145.67:0, 200 OK in 28.9ms @ container/container.go:521(container.GetBlob)
2024/11/29 02:11:31 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/youmetme/jre/blobs/uploads/ for 218.200.145.67:0, 202 Accepted in 9.0ms @ container/container.go:234(container.InitiateUploadBlob)
2024/11/29 02:11:49 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/youmetme/jre/blobs/uploads/ for 218.200.145.67:0, 202 Accepted in 6.9ms @ container/container.go:234(container.InitiateUploadBlob)
@WangZhongDian commented on GitHub (Nov 29, 2024): @yp05327 @hiifong This is more logs obtained from updating to 1.22.4 ``` 2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:43c4264eed91be63b206e17d93e75256a6097070ce643c5e8f0379998b44f170 for 218.200.145.67:0, 404 Not Found in 2.5ms @ container/container.go:521(container.GetBlob) 2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:8235ecec634f7387ba5f6733f26f8eb8566345fe7648b40a5307f5e2c8dc88ef for 218.200.145.67:0, 404 Not Found in 2.8ms @ container/container.go:521(container.GetBlob) 2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:154f02a6f4ff3179213e583eb4776bed04544b929d7c4611e9dd330242b31c70 for 218.200.145.67:0, 404 Not Found in 2.8ms @ container/container.go:521(container.GetBlob) 2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:6889c2fe38979b65070da5912c39951541fa5d00ff1e4316f1246ac0780d5a7b for 218.200.145.67:0, 404 Not Found in 4.0ms @ container/container.go:521(container.GetBlob) 2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/youmetme/jre/blobs/uploads/ for 218.200.145.67:0, 202 Accepted in 7.8ms @ container/container.go:234(container.InitiateUploadBlob) 2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/youmetme/jre/blobs/uploads/ for 218.200.145.67:0, 202 Accepted in 8.1ms @ container/container.go:234(container.InitiateUploadBlob) 2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/youmetme/jre/blobs/uploads/ for 218.200.145.67:0, 202 Accepted in 8.5ms @ container/container.go:234(container.InitiateUploadBlob) 2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/youmetme/jre/blobs/uploads/ for 218.200.145.67:0, 202 Accepted in 14.3ms @ container/container.go:234(container.InitiateUploadBlob) 2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed PATCH /v2/youmetme/jre/blobs/uploads/jw77blr0enfekze8rccqysqyf for 218.200.145.67:0, 202 Accepted in 7.8ms @ container/container.go:344(container.UploadBlob) 2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed PUT /v2/youmetme/jre/blobs/uploads/jw77blr0enfekze8rccqysqyf?digest=sha256%3A8235ecec634f7387ba5f6733f26f8eb8566345fe7648b40a5307f5e2c8dc88ef for 218.200.145.67:0, 201 Created in 45.2ms @ container/container.go:389(container.EndUploadBlob) 2024/11/29 02:11:18 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:8235ecec634f7387ba5f6733f26f8eb8566345fe7648b40a5307f5e2c8dc88ef for 218.200.145.67:0, 200 OK in 6.5ms @ container/container.go:521(container.GetBlob) 2024/11/29 02:11:22 ...eb/routing/logger.go:68:func1() [W] router: slow PATCH /v2/youmetme/jre/blobs/uploads/kutzafxqv5xwkksriogheo88w for 218.200.145.67:0, elapsed 3342.2ms @ container/container.go:344(container.UploadBlob) 2024/11/29 02:11:22 ...eb/routing/logger.go:68:func1() [W] router: slow PATCH /v2/youmetme/jre/blobs/uploads/xtb5f72i6rlycdi3bd6qntqlz for 218.200.145.67:0, elapsed 3816.3ms @ container/container.go:344(container.UploadBlob) 2024/11/29 02:11:25 ...eb/routing/logger.go:102:func1() [I] router: completed PATCH /v2/youmetme/jre/blobs/uploads/xtb5f72i6rlycdi3bd6qntqlz for 218.200.145.67:0, 202 Accepted in 6488.7ms @ container/container.go:344(container.UploadBlob) 2024/11/29 02:11:25 ...eb/routing/logger.go:102:func1() [I] router: completed PUT /v2/youmetme/jre/blobs/uploads/xtb5f72i6rlycdi3bd6qntqlz?digest=sha256%3A154f02a6f4ff3179213e583eb4776bed04544b929d7c4611e9dd330242b31c70 for 218.200.145.67:0, 201 Created in 44.7ms @ container/container.go:389(container.EndUploadBlob) 2024/11/29 02:11:26 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:154f02a6f4ff3179213e583eb4776bed04544b929d7c4611e9dd330242b31c70 for 218.200.145.67:0, 200 OK in 17.4ms @ container/container.go:521(container.GetBlob) 2024/11/29 02:11:28 ...eb/routing/logger.go:102:func1() [I] router: completed PATCH /v2/youmetme/jre/blobs/uploads/kutzafxqv5xwkksriogheo88w for 218.200.145.67:0, 202 Accepted in 9144.8ms @ container/container.go:344(container.UploadBlob) 2024/11/29 02:11:28 ...eb/routing/logger.go:102:func1() [I] router: completed PUT /v2/youmetme/jre/blobs/uploads/kutzafxqv5xwkksriogheo88w?digest=sha256%3A43c4264eed91be63b206e17d93e75256a6097070ce643c5e8f0379998b44f170 for 218.200.145.67:0, 201 Created in 42.5ms @ container/container.go:389(container.EndUploadBlob) 2024/11/29 02:11:28 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:43c4264eed91be63b206e17d93e75256a6097070ce643c5e8f0379998b44f170 for 218.200.145.67:0, 200 OK in 28.9ms @ container/container.go:521(container.GetBlob) 2024/11/29 02:11:31 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/youmetme/jre/blobs/uploads/ for 218.200.145.67:0, 202 Accepted in 9.0ms @ container/container.go:234(container.InitiateUploadBlob) 2024/11/29 02:11:49 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/youmetme/jre/blobs/uploads/ for 218.200.145.67:0, 202 Accepted in 6.9ms @ container/container.go:234(container.InitiateUploadBlob) ```
Author
Owner

@yp05327 commented on GitHub (Dec 7, 2024):

After update my gitea from 1.22.1 to 1.22.4, I got the same issue......

@yp05327 commented on GitHub (Dec 7, 2024): After update my gitea from 1.22.1 to 1.22.4, I got the same issue......
Author
Owner

@yp05327 commented on GitHub (Dec 7, 2024):

Upgrade to the nightly version, still get the same issue.

@yp05327 commented on GitHub (Dec 7, 2024): Upgrade to the nightly version, still get the same issue.
Author
Owner

@yp05327 commented on GitHub (Dec 7, 2024):

So some changes in 1.22.2 or 1.22.3 went wrong.

@yp05327 commented on GitHub (Dec 7, 2024): So some changes in 1.22.2 or 1.22.3 went wrong.
Author
Owner

@yp05327 commented on GitHub (Dec 7, 2024):

Found https://github.com/go-gitea/gitea/pull/31967. Maybe related.

@yp05327 commented on GitHub (Dec 7, 2024): Found https://github.com/go-gitea/gitea/pull/31967. Maybe related.
Author
Owner

@yp05327 commented on GitHub (Dec 7, 2024):

That is so strange, not all images can not be pushed.
In my case, I have two container packages in the same organization, using the same token, and one of them can be pushed, but the other one not.

@yp05327 commented on GitHub (Dec 7, 2024): That is so strange, not all images can not be pushed. In my case, I have two container packages in the same organization, using the same token, and one of them can be pushed, but the other one not.
Author
Owner

@yp05327 commented on GitHub (Dec 7, 2024):

I can only see the init request in Gitea side:

POST /v2/xxx/xxx/blobs/uploads/ for xxxxx:0, 202 Accepted

But I CAN NOT see

PATCH /v2/xxx/xxx/blobs/uploads/{id}

and

PUT /v2/xxx/xxx/blobs/uploads/{id}?digest=sha256:{hash}

But docker client will still push the digest and I can see the network trafic. Where does it push data to?
Is this related to my Gitea's network setting? But some layers can be pushed successfully, but some of them can not.

@yp05327 commented on GitHub (Dec 7, 2024): I can only see the init request in Gitea side: > POST /v2/xxx/xxx/blobs/uploads/ for xxxxx:0, 202 Accepted But I CAN NOT see > PATCH /v2/xxx/xxx/blobs/uploads/{id} and > PUT /v2/xxx/xxx/blobs/uploads/{id}?digest=sha256:{hash} But docker client will still push the digest and I can see the network trafic. Where does it push data to? Is this related to my Gitea's network setting? But some layers can be pushed successfully, but some of them can not.
Author
Owner

@yp05327 commented on GitHub (Dec 8, 2024):

I'm using Cloudflare and it limits the max body size to 100M, so some layers uploaded failed.

@yp05327 commented on GitHub (Dec 8, 2024): I'm using Cloudflare and it limits the max body size to 100M, so some layers uploaded failed.
Author
Owner

@hiifong commented on GitHub (Dec 8, 2024):

@WangZhongDian If you use Nginx as a reverse proxy for gitea, please set client_max_body_size to a sufficiently large value (eg. 2048m) and try again.

@hiifong commented on GitHub (Dec 8, 2024): @WangZhongDian If you use Nginx as a reverse proxy for gitea, please set client_max_body_size to a sufficiently large value (eg. 2048m) and try again.
Author
Owner

@ondrejmo commented on GitHub (Dec 17, 2024):

I have a similar issue, some images can be pushed and some cannot. Version 1.22.6. The behavior is similar with reverse proxy (Traefik) and without it.

@ondrejmo commented on GitHub (Dec 17, 2024): I have a similar issue, some images can be pushed and some cannot. Version 1.22.6. The behavior is similar with reverse proxy (Traefik) and without it.
Author
Owner

@agilxpgeoffrey commented on GitHub (Dec 28, 2024):

I'm experiencing the same issue even when pushing the same image to the same repository but from 2 different locations where one has a much better network than the other.
I noticed that, if the PATCH call takes 60s, I get a 500 error

Failing:

[W] router: slow      PATCH /v2/agilxp/mc-lifesteal/blobs/uploads/gdggqnfvukbnn5s85otex8kzn for xxx.xxx.xxx.xxx...
[I] router: completed PATCH /v2/agilxp/mc-lifesteal/blobs/uploads/gdggqnfvukbnn5s85otex8kzn for xxx.xxx.xxx.xxx:0, 500 Internal Server Error in 60000.2ms @ container/container.go:344(container.UploadBlob)

Success:

[I] router: completed PATCH /v2/agilxp/mc-lifesteal/blobs/uploads/breo1onjactaynbdpgxuhsk1r for yyy.yyy.yyy.yyy:0, 202 Accepted in 16.1ms @ container/container.go:344(container.UploadBlob)

I do not get the slow warning when it succeeds and cannot find any other relevant line in the log (no other W nor E and all 200 response)

I am on 1.22.6.

@agilxpgeoffrey commented on GitHub (Dec 28, 2024): I'm experiencing the same issue even when pushing the same image to the same repository but from 2 different locations where one has a much better network than the other. I noticed that, if the PATCH call takes 60s, I get a 500 error Failing: ``` [W] router: slow PATCH /v2/agilxp/mc-lifesteal/blobs/uploads/gdggqnfvukbnn5s85otex8kzn for xxx.xxx.xxx.xxx... [I] router: completed PATCH /v2/agilxp/mc-lifesteal/blobs/uploads/gdggqnfvukbnn5s85otex8kzn for xxx.xxx.xxx.xxx:0, 500 Internal Server Error in 60000.2ms @ container/container.go:344(container.UploadBlob) ``` Success: ``` [I] router: completed PATCH /v2/agilxp/mc-lifesteal/blobs/uploads/breo1onjactaynbdpgxuhsk1r for yyy.yyy.yyy.yyy:0, 202 Accepted in 16.1ms @ container/container.go:344(container.UploadBlob) ``` I do not get the slow warning when it succeeds and cannot find any other relevant line in the log (no other W nor E and all 200 response) I am on 1.22.6.
Author
Owner

@rexjz commented on GitHub (Jan 4, 2025):

I have the same issue. When pushing a docker layer takes over 60 seconds, the connection seems to be dropped.

I am on Gitea version:

Gitea version: 1.24.0+dev-114-g2b064b8637 built with GNU Make 4.4.1, go1.23.4 : bindata, timetzdata, sqlite, sqlite_unlock_notify

image

image

@rexjz commented on GitHub (Jan 4, 2025): I have the same issue. When pushing a docker layer takes over 60 seconds, the connection seems to be dropped. I am on Gitea version: ``` Gitea version: 1.24.0+dev-114-g2b064b8637 built with GNU Make 4.4.1, go1.23.4 : bindata, timetzdata, sqlite, sqlite_unlock_notify ``` ![image](https://github.com/user-attachments/assets/686c559a-40bf-483f-b002-f94ec191c790) ![image](https://github.com/user-attachments/assets/35e62e6c-72db-4529-a48a-e51ada9f192d)
Author
Owner

@wxiaoguang commented on GitHub (Apr 23, 2025):

Some container registry bugs should have been fixed in 1.23. Feel free to reopen if there is still any problem.

@wxiaoguang commented on GitHub (Apr 23, 2025): Some container registry bugs should have been fixed in 1.23. Feel free to reopen if there is still any problem.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13602