Skip to content

500 Error caused by RecalculateAccesses:"Delete action needs at least one condition" When create a new repo #34654

Closed
@makisekuris

Description

@makisekuris

Description

try to create a new personal repository . Gitea returns a 500 error. the logs show that

gitea  | 2025/06/09 09:41:32 .../context_response.go:70:HTML() [D] Template: repo/create
gitea  | 2025/06/09 09:41:32 ...eb/routing/logger.go:102:func1() [I] router: completed GET /repo/create for 162.248.73.193:0, 200 OK in 18.4ms @ repo/repo.go:152(repo.Create)
gitea  | 2025/06/09 09:41:36 ...eb/routing/logger.go:68:func1() [I] router: polling   GET /user/events for 162.248.73.193:0, elapsed 3366.1ms @ events/events.go:18(events.Events)
gitea  | 2025/06/09 09:41:43 ...eb/routing/logger.go:102:func1() [I] router: completed GET /user/events for 162.248.73.193:0, 200 OK in 9815.6ms @ events/events.go:18(events.Events)
gitea  | 2025/06/09 09:41:43 ...ers/web/repo/repo.go:217:handleCreateError() [E] CreatePost: RecalculateAccesses: delete old accesses: Delete action needs at least one condition
gitea  | 2025/06/09 09:41:43 .../context_response.go:70:HTML() [D] Template: status/500
gitea  | 2025/06/09 09:41:43 ...eb/routing/logger.go:102:func1() [I] router: completed POST /repo/create for 162.248.73.193:0, 500 Internal Server Error in 22.6ms @ repo/repo.go:222(repo.CreatePost)
gitea  | 2025/06/09 09:41:45 .../context_response.go:70:HTML() [D] Template: user/dashboard/dashboard

i tried to update gitea to latest version / use another account / check the database but no way to resolve for it.

i guess it is maybe the problem came from database ? how can i further to check this problem?

Gitea Version

1.23.8

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

Image

Git Version

No response

Operating System

No response

How are you running Gitea?

I run it from docker compose on a local instance

Database

MySQL/MariaDB

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detailissue/not-a-bugThe reported issue is the intended behavior or the problem is not inside Gitea

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions