Error 500 when removing repo #632

Closed
opened 2022-06-03 12:12:15 +02:00 by fnetX · 7 comments
Owner

We sometimes see error 500 screens when removing repos. Log:

2022/06/03 12:06:05 .../web/repo/setting.go:722:SettingsPost() [E] DeleteRepository: repository does not exist [id: 37385, uid: 39959, owner_name: , name: ]
2022/06/03 12:06:05 .../web/repo/setting.go:722:SettingsPost() [E] DeleteRepository: repository does not exist [id: 37385, uid: 39959, owner_name: , name: ]

...

We sometimes see error 500 screens when removing repos. Log: ~~~ 2022/06/03 12:06:05 .../web/repo/setting.go:722:SettingsPost() [E] DeleteRepository: repository does not exist [id: 37385, uid: 39959, owner_name: , name: ] 2022/06/03 12:06:05 .../web/repo/setting.go:722:SettingsPost() [E] DeleteRepository: repository does not exist [id: 37385, uid: 39959, owner_name: , name: ] ~~~ ...
Owner

when removing repos

How? Via the API? Via the moderation tool? Via the Web UI?

> when removing repos How? Via the API? Via the moderation tool? Via the Web UI?
Author
Owner

web ui

web ui
Owner

The code itself looks good(no codeberg-specific code 😄) is there anything special with these repositories?

The code itself looks good(no codeberg-specific code :smile:) is there anything special with these repositories?
Owner

No, I had error 500 with (IIRC) empty repos also. also with some of mine.

All are gone afterwards though.
Seems random.

I am not sure if @fnetX pasted the "correct" log - there might have been a 404 afterwards.

No, I had error 500 with (IIRC) empty repos also. also with some of mine. All are gone afterwards though. Seems random. I am not sure if @fnetX pasted the "correct" log - there might have been a 404 afterwards.
Owner

Maybe the request is made twice? There are some issues with Gitea of that happening.

Maybe the request is made twice? There are some issues with Gitea of that happening.
Owner

@Gusted

When I double click I get 404 at least ;)

But good point about a maybe even almost simultanious request.

We had a race condition and random 500 when adding muliple labels to issues before. So maybe something similar.

@Gusted When I double click I get 404 at least ;) But good point about a maybe even almost simultanious request. We had a race condition and random 500 when adding muliple labels to issues before. So maybe something similar.
6543 closed this issue 2022-08-09 19:18:19 +02:00

repo actions now have a lock ...

repo actions now have a lock ...
Sign in to join this conversation.
No milestone
No project
No assignees
4 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#632
No description provided.