-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
500 error when accessing repo on web (context deadline exceed, LastCommitCache related) #17314
Comments
This is going to be related to #16467 - something will have changed that that PR relied on and now instead of the error being ignored/expected it's being propagated up. I'll take a look. |
This comment has been minimized.
This comment has been minimized.
There is a slight race in checking of a context deadline exceed in go-gitea#16467 which leads to a 500 on the repository page. The solution is to check the error coming back from `*LogNameStatusRepoParser.Next()` and if it is the `ContextDeadlineExceeded` break from the loop. Fix go-gitea#17314 Signed-off-by: Andrew Thornton <[email protected]>
Figured it out - Bug fix oncoming. Once that's in you should see the benefit of the #16467 on those large repos. |
There is a slight race in checking of a context deadline exceed in #16467 which leads to a 500 on the repository page. The solution is to check the error coming back from `*LogNameStatusRepoParser.Next()` and if it is the `ContextDeadlineExceeded` break from the loop. Fix #17314 Signed-off-by: Andrew Thornton <[email protected]>
Well given a feature I made caused it... Repo view should now be a lot more snappy for big repos. |
right.. still thanks.
it does feel that way. btw I was only getting 500s on larger™ repos and now I'm not so that's great. 🚀 |
There is a slight race in checking of a context deadline exceed in go-gitea#16467 which leads to a 500 on the repository page. The solution is to check the error coming back from `*LogNameStatusRepoParser.Next()` and if it is the `ContextDeadlineExceeded` break from the loop. Fix go-gitea#17314 Signed-off-by: Andrew Thornton <[email protected]>
Gitea Version
commit d47798c
Git Version
2.33.0
Operating System
Debian 11
How are you running Gitea?
built from source with Go 1.17.2, Node 14.17.6 (npm 6.14.15) on Ubuntu 20.04. Running as systemd service on production mode. Connected to a PostgreSQL 14 instance on separate server.
Database
PostgreSQL
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
https://gist.github.com/bagasme/5c5dc41a48d8cea354b0f68fc6d2f6bd
Description
I'm trying to access one of my repo (a local copy of
git.git
) on the web interface (athttps://gitnode.io/bagas/git
). It returns 500 error instead of showing the repo contents. Going through log, the error occurs atrenderDirectoryFiles()
, but before it logsLastCommitCache
stuff.Screenshots
(not relevant, since the 500 error page is generic).
The text was updated successfully, but these errors were encountered: