Codeberg/Community
54
325
Fork
You've already forked Community
12

500 errors, skipped issue numbers when creating issues #743

Closed
opened 2022年10月03日 20:51:23 +02:00 by aral · 14 comments

I just created an issue (worked). Then I created a second one and got a 500 error.

Waited a bit and tried again and it worked but I saw that the previous attempt also worked.

(I’m not going to delete the dupliate issue so you can see it when looking into it.)

Interestingly, the previous issue was #10. The one after that was #14. Not sure where #11, #12, and #13 went.

Just opened another one after that it was correctly created with the correct number (#15).

Repo: https://codeberg.org/domain/app/issues

I just created an issue (worked). Then I created a second one and got a 500 error. Waited a bit and tried again and it worked but I saw that the previous attempt also worked. (I’m not going to delete the dupliate issue so you can see it when looking into it.) Interestingly, the previous issue was #10. The one after that was #14. Not sure where #11, #12, and #13 went. Just opened another one after that it was correctly created with the correct number (#15). Repo: https://codeberg.org/domain/app/issues

@fnetX Are you able to find the relevant logs for this 500 error?

@fnetX Are you able to find the relevant logs for this 500 error?
Owner
Copy link

There is a simple rate limit which is not gracefully displayed and returns err 500. This could be an issue, but I somehow think it's unrelated (should not cause the issue number mismatch and shouldn't have it created).

There is a simple rate limit which is not gracefully displayed and returns err 500. This could be an issue, but I somehow think it's unrelated (should not cause the issue number mismatch and shouldn't have it created).
Author
Copy link

I’ve run into the 500 error before when creating issues one after the other but it was around the time Codeberg was experiencing some other downtime so I attributed it to that.

Will see if I can reliably reproduce. It did initially feel like a rate limit to me too.

(If that’s the case, the rate limit for creating new issues should allow for issues to be created one after another. It’s something that’s commonly done.)

Should I open a separate issue for rate limits being presented as 500 errors or is that being tracked somewhere already? (I can’t find a public issue on it.)

I’ve run into the 500 error before when creating issues one after the other but it was around the time Codeberg was experiencing some other downtime so I attributed it to that. Will see if I can reliably reproduce. It did initially feel like a rate limit to me too. (If that’s the case, the rate limit for creating new issues should allow for issues to be created one after another. It’s something that’s commonly done.) Should I open a separate issue for rate limits being presented as 500 errors or is that being tracked somewhere already? (I can’t find a public issue on it.)

Saw the same issue today when creating issues. Creating an issue returned a 500 server error. Hitting "back" and trying again eventually succeeded on average on the 7th attempt. My colleague had the same issue when she tried.

Unlikely relevant, but all issues had only a subject and no description (these were just placeholders for a kanban).

Saw the same issue today when creating issues. Creating an issue returned a 500 server error. Hitting "back" and trying again eventually succeeded on average on the 7th attempt. My colleague had the same issue when she tried. Unlikely relevant, but all issues had only a subject and no description (these were just placeholders for a kanban).
Owner
Copy link

Hmm, if you're creating placeholder issues one after another, it's indeed likely that you have triggered the rate limit ...

Hmm, if you're creating placeholder issues one after another, it's indeed likely that you have triggered the rate limit ...
Owner
Copy link

It's very likely that this is the rate limit. I'll try to push a dirty patch.

#425 tracks a proper solution, contributions welcome.

Regarding the issue numbers being out of sync, I still don't understand this.

It's very likely that this is the rate limit. I'll try to push a dirty patch. #425 tracks a proper solution, contributions welcome. Regarding the issue numbers being out of sync, I still don't understand this.

Regarding the issue numbers being out of sync, I still don't understand this.

Gitea updates the "highest" index in the database, but doesn't revert this update if an error has occured. It seems like this needs to be an atomic operation to avoid out-of-sync, but there is no trival way to do this revert... (it might be via some SQL magic).

> Regarding the issue numbers being out of sync, I still don't understand this. Gitea updates the "highest" index in the database, but doesn't revert this update if an error has occured. It seems like this needs to be an atomic operation to avoid out-of-sync, but there is no trival way to do this revert... (it might be via some SQL magic).

Opened a pull request upstream to fix the skipped issue numbers: https://github.com/go-gitea/gitea/pull/21362

Opened a pull request upstream to fix the skipped issue numbers: https://github.com/go-gitea/gitea/pull/21362
Author
Copy link

@fnetX @Gusted Thanks folks :)

@fnetX @Gusted Thanks folks :)
Owner
Copy link

Codeberg/gitea@c2c42bc741 rate limit patch, awaiting approval and deployment. Only a workaround, but will relax the issue a little.

https://codeberg.org/Codeberg/gitea/commit/c2c42bc7412ba5d18b975390cd8b146a076937fa rate limit patch, awaiting approval and deployment. Only a workaround, but will relax the issue a little.

This will be fixed once Gitea 1.18 is released, which can take a while. Will leave it open for now and close it when Gitea 1.18 will be deployed on Codeberg.

This will be fixed once Gitea 1.18 is released, which can take a while. Will leave it open for now and close it when Gitea 1.18 will be deployed on Codeberg.

Hi @rachelgomez123,

Thank you for informative comment, but the 500 error was causing a bug which is OP's issue.

Hi @rachelgomez123, Thank you for informative comment, but the 500 error was causing a bug which is OP's issue.

v1.18 has been deployed. Feel free to re-open if this issue persists.

v1.18 has been deployed. Feel free to re-open if this issue persists.

Hi @rachelgomez123,

Thank you for informative comment, but the 500 error was causing a bug which is OP's issue.

A bit late to the party, but just wanted to point out that the comment you answered to is definitely generated by an LLM, like ChatGPT. The Internet is doomed 🥲

> Hi @rachelgomez123, > > Thank you for informative comment, but the 500 error was causing a bug which is OP's issue. A bit late to the party, but just wanted to point out that the comment you answered to is definitely generated by an LLM, like ChatGPT. The Internet is doomed 🥲
Sign in to join this conversation.
No Branch/Tag specified
main
No results found.
Labels
Clear labels
accessibility

Reduces accessibility and is thus a "bug" for certain user groups on Codeberg.
bug

Something is not working the way it should. Does not concern outages.
bug
infrastructure

Errors evidently caused by infrastructure malfunctions or outages
Codeberg

This issue involves Codeberg's downstream modifications and settings and/or Codeberg's structures.
contributions welcome

Please join the discussion and consider contributing a PR!
docs

No bug, but an improvement to the docs or UI description will help
duplicate

This issue or pull request already exists
enhancement

New feature
infrastructure

Involves changes to the server setups, use `bug/infrastructure` for infrastructure-related user errors.
legal

An issue directly involving legal compliance
licence / ToS

involving questions about the ToS, especially licencing compliance
please chill
we are volunteers

Please consider editing your posts and remember that there is a human on the other side. We get that you are frustrated, but it's harder for us to help you this way.
public relations

Things related to Codeberg's external communication
question

More information is needed
question
user support

This issue contains a clearly stated problem. However, it is not clear whether we have to fix anything on Codeberg's end, but we're helping them fix it and/or find the cause.
s/Forgejo

Related to Forgejo. Please also check Forgejo's issue tracker.
s/Forgejo/migration

Migration related issues in Forgejo
s/Pages

Issues related to the Codeberg Pages feature
s/Weblate

Issue is related to the Weblate instance at https://translate.codeberg.org
s/Woodpecker

Woodpecker CI related issue
security

involves improvements to the sites security
service

Add a new service to the Codeberg ecosystem (instead of implementing into Gitea)
upstream

An open issue or pull request to an upstream repository to fix this issue (partially or completely) exists (i.e. Gitea, Forgejo, etc.)
wontfix

Codeberg's current set of contributors are not planning to spend time on delegating this issue.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Codeberg/Community#743
Reference in a new issue
Codeberg/Community
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?