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) #12603

Closed
opened 2025-11-02 10:15:47 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @SunRain on GitHub (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

Originally created by @SunRain on GitHub (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](https://github.com/go-gitea/gitea/assets/864544/a087abcf-3f27-4717-84a2-0d8001d2418e) ### 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
GiteaMirror added the type/bugissue/workaround labels 2025-11-02 10:15:47 -06:00
Author
Owner

@wxiaoguang commented on GitHub (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")

@wxiaoguang commented on GitHub (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")
Author
Owner

@wxiaoguang commented on GitHub (Mar 6, 2024):

-> Avoid issue info panic #29625

@wxiaoguang commented on GitHub (Mar 6, 2024): -> Avoid issue info panic #29625
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12603