-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
frequent error 500 when writing comment on code line in PR #14274
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
Comments
Could you provide an excerpt from your gitea log file, when this happened? |
Every 500 is accompanied by a log.Error - without providing logs we will not be able to debug this at all. Not providing logs is frankly rude and is tantamount to spamming maintainers. I've written multiple times about how to adjust logging configuration to help improve this, and it's in the header, but for completeness here is the link: https://docs.gitea.io/en-us/logging-configuration/#debugging-problems You must give us logs. It is not fair to expect us to guess the cause of your problems. |
I was not expecting someone to guess; but since logs via journalctl turned out to be somewhat tricky (probably not a gitea issue but on NixOS it doesn't use the systemd logging levels for instance) and the symptom (screenshot) is quite peculiar, I posted it just in case it was a known problem. Anyway, sorry for posting a low quality bug report; I got logs now and this seems to be similar to #13581 (but happening more often) and not related to the "weirdness" of the screenshot:
So, migrate to PostgreSQL? |
Oh crap your SQLITE db is locking somehow. But it is weird - because if we have a genuine deadlock we should be seeing your process just get locked up completely - edit: it probably is. Do you have a cluster of multiple gitea processes running at the same time? If so you have to use a real db not sqlite. Are you building gitea yourself? What tags are you building gitea with? |
If it's a real deadlock we'll need more logs - we would need to get all of the logs from just before it was working to just as it stops. That is include at least a few SQL queries that definitely succeed and don't trim anything except confidential data out. Deadlocks are a nightmare we literally need to know exactly what was the causative request for the failure. The notification queries you've shown us will not be the cause - the issue will be earlier. |
Wouldn't there be an error entry in the log about it? I don't see any
No, only one.
No, I am using the Nix package. It is built with the https://github.com/NixOS/nixpkgs/blob/release-20.09/pkgs/applications/version-management/gitea/default.nix
There doesn't seem to be any stopping. The same process has been running for days, and comments still get posted and the rest of the site still operates, the only symptom seems to be the "error 500" screen. |
Ah. That's the problem! You need the |
Thanks, will try :) |
Seems to do the trick :) Thanks again. |
[x]
):Couldn't find anything pertinent in the log so far.
Description
Writing a comment on a source code line in a pull request often causes a weird "Error 500" screen (with multiple top bars, exactly as the screenshot shows). The comment is still posted.
Screenshots
The text was updated successfully, but these errors were encountered: