Error 500 when removing repo #632

Open
opened 1 month ago by fnetX · 6 comments
fnetX commented 1 month ago
Collaborator

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: ] ~~~ ...
fnetX added the
bug
gitea-related
labels 1 month ago
Collaborator

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?
Poster
Collaborator

web ui

web ui
Collaborator

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.
Collaborator

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.
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.