[x]
):If I have signed out, I can access my dashboard.
If I haven't signed out, an error occurs when accessing my dashboard.
(I followed Upgrade from gogs
doc and #4286)
Error message:
template: user/dashboard/feeds:94:35: executing "user/dashboard/feeds" at <index .GetIssueInfos 1>: error calling index: reflect: slice index out of range
...
It looks like GetIssueInfos
tries to split up content
in the action
table based on a pipe (|
)
Can you check your action
table?
I have the exact same error after upgrading from Gogs 0.11.91 using PostgreSQL to Gitea 1.0.2 -> 1.1.4 -> 1.2.3 -> 1.3.3 -> 1.4.3 -> 1.5.3 -> 1.6.4 -> 1.11.6.
What should I look for in the action table?
I have found a solution to the problem. I cloned my gogs VM again, and went a different route for the upgrade to gitea:
find $REPO_DIR -path \*-receive.d/\*-receive -delete
(see #3558 for Details)The issue with the dashboard is gone now for my user.
If it helps: I have found out that the op_type
(in the action
table) used in gogs 0.11.91 and gitea 1.11.x/1.12.x differ for op_type > 15
.
Will try migration again with the following SQL script (before starting gitea 1.6.4):
-- fix differnt op_type usage between gogs v19 and gitea
UPDATE action SET op_type = 1000 + op_type WHERE op_type > 15;
UPDATE action SET op_type = 16 WHERE op_type = 1018;
UPDATE action SET op_type = 17 WHERE op_type = 1017;
UPDATE action SET op_type = 1 WHERE op_type = 1019;
UPDATE action SET op_type = 18 WHERE op_type = 1020;
UPDATE action SET op_type = 19 WHERE op_type = 1021;
UPDATE action SET op_type = 20 WHERE op_type = 1022;
Most helpful comment
If it helps: I have found out that the
op_type
(in theaction
table) used in gogs 0.11.91 and gitea 1.11.x/1.12.x differ forop_type > 15
.Will try migration again with the following SQL script (before starting gitea 1.6.4):