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.42k stars 5.43k forks source link

I tried to delete a repository, but it failed. #31347

Open Hourunze1997 opened 3 months ago

Hourunze1997 commented 3 months ago

Description

log: 500 Internal Server Error in 17479.3ms @ repo/repo.go:1089(repo.Delete)

Gitea Version

1.22.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

run from docker

Database

None

lunny commented 3 months ago

Please give more details

Hourunze1997 commented 3 months ago

Before this timeout log, gitea also reported an error [E] DeleteRepository: context canceled

Under what circumstances does this happen? Is it interrupted by handleReadError in net.http.server? Is this related to the timeout?

yp05327 commented 3 months ago

request was canceled by user or some errors happened

Hourunze1997 commented 3 months ago

Is this related to the timeout?

Hourunze1997 commented 3 months ago

500 Internal Server Error in 17479.3ms @ repo/repo.go:1089(repo.Delete) it took a long time

Hourunze1997 commented 3 months ago

After the error context canceled was reported, 500 Internal Server Error in 17479.3ms was immediately returned. Is this cancellation an interruption of gitea timeout?

Hourunze1997 commented 3 months ago

I uploaded a dataset with a size of 66G, and then failed to upload more than 30G. Then I try to delet it, this problem occurred.