Skip to content
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

HTTP 500 when displaying runner management #30378

Closed
vanyle opened this issue Apr 9, 2024 · 1 comment · Fixed by #30406
Closed

HTTP 500 when displaying runner management #30378

vanyle opened this issue Apr 9, 2024 · 1 comment · Fixed by #30406
Labels
topic/gitea-actions related to the actions of Gitea type/bug
Milestone

Comments

@vanyle
Copy link

vanyle commented Apr 9, 2024

Description

When accessing https://mygiteaurl.com/admin/actions/runners/ I get a 500 error.

An error occurred:

Render failed, failed to render template: admin/actions, error: template error: builtin(bindata):shared/actions/runner_list:76:40 : executing "shared/actions/runner_list" at <.BelongsToOwnerName>: error calling BelongsToOwnerName: runtime error: invalid memory address or nil pointer dereference
----------------------------------------------------------------------
						<td><span data-tooltip-content="{{.BelongsToOwnerName}}">{{.BelongsToOwnerType.LocaleString ctx.Locale}}</span></td>
						                                  ^
----------------------------------------------------------------------

The issue persist after restarting Gitea. I think my database is in an incorrect state.
It occured after messing with creating Gitea Runners.

Gitea Version

1.21.10

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://gist.github.com/vanyle/9a2bcdc8da1a17d2c692ebe8965de8b7

Screenshots

image

Git Version

2.40.1

Operating System

Linux (Ubuntu)

How are you running Gitea?

I am using Docker.
sudo docker compose up

Database

SQLite

@vanyle vanyle added the type/bug label Apr 9, 2024
@Zettat123
Copy link
Contributor

Steps to reproduce the bug:

  1. Create a repo. Copy the runner registration token of the repo.
  2. Delete the repo.
  3. Use the token copied in step 1 to register a runner. The runner can be successfully registered.
  4. Visit the runner list page then the error will appear.

@Zettat123 Zettat123 added the topic/gitea-actions related to the actions of Gitea label Apr 11, 2024
@lunny lunny added this to the 1.21.11 milestone Apr 11, 2024
silverwind pushed a commit that referenced this issue Apr 11, 2024
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Jul 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/gitea-actions related to the actions of Gitea type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants