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

500 error while upgrade from 1.6.x to 1.21.7 (Render failed, failed to render template: user/dashboard/dashboard, error: template error: builtin(bindata):user/dashboard/feeds:107:19) #29624

Closed
SunRain opened this issue Mar 6, 2024 · 2 comments · Fixed by #29625
Labels
issue/workaround it is or has a workaround type/bug
Milestone

Comments

@SunRain
Copy link

SunRain commented Mar 6, 2024

Description

After upgrading from 1.6.x to 1.21.7, this error appears on my Index page

Render failed, failed to render template: user/dashboard/dashboard, error: template error: builtin(bindata):user/dashboard/feeds:107:19 : executing "user/dashboard/feeds" at <index .GetIssueInfos 1>: error calling index: reflect: slice index out of range
----------------------------------------------------------------------
					{{$comment := index .GetIssueInfos 1}}
					              ^

Gitea Version

1.21.7

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

Screenshot_20240306_153025

Git Version

2.40.1

Operating System

Docker with unraid 6.12.4

How are you running Gitea?

Docker with unraid 6.12.4

Database

SQLite

@wxiaoguang
Copy link
Contributor

wxiaoguang commented Mar 6, 2024

You could bypass the error by truncating (delete all) your "action" table (or backup it first before emptying it)

(update: it is safe to truncate the action table, because it only saves the "activities")

@SunRain SunRain changed the title 500 error while upgrade from 1.6.x to 1.21.7 500 error while upgrade from 1.6.x to 1.21.7 (Render failed, failed to render template: user/dashboard/dashboard, error: template error: builtin(bindata):user/dashboard/feeds:107:19) Mar 6, 2024
@wxiaoguang
Copy link
Contributor

-> Avoid issue info panic #29625

@wxiaoguang wxiaoguang added the issue/workaround it is or has a workaround label Mar 6, 2024
@wxiaoguang wxiaoguang added this to the 1.21.8 milestone Mar 6, 2024
wxiaoguang added a commit that referenced this issue Mar 6, 2024
GiteaBot pushed a commit to GiteaBot/gitea that referenced this issue Mar 6, 2024
wxiaoguang added a commit that referenced this issue Mar 6, 2024
Backport #29625 by wxiaoguang

Fix #29624

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/workaround it is or has a workaround type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants