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

After updating from gogs 0.11.91 to gitea 1.13, can't access my dashboard #11560

Closed
2 of 7 tasks
JellyBrick opened this issue May 22, 2020 · 4 comments
Closed
2 of 7 tasks
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail

Comments

@JellyBrick
Copy link

JellyBrick commented May 22, 2020

  • Gitea version (or commit ref): 1.13.0+dev-37-g6af13dbac
  • Gogs version: 0.11.91
  • Git version: 2.17.1
  • Operating system: Ubuntu 18.10
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

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

...

Screenshots

If I have signed out

image

If I haven't signed out

image

@jolheiser
Copy link
Member

It looks like GetIssueInfos tries to split up content in the action table based on a pipe (|)

Can you check your action table?

@techknowlogick techknowlogick added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Jun 7, 2020
@moepman
Copy link

moepman commented Jun 7, 2020

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?

@moepman
Copy link

moepman commented Jun 8, 2020

I have found a solution to the problem. I cloned my gogs VM again, and went a different route for the upgrade to gitea:

The issue with the dashboard is gone now for my user.

@moepman
Copy link

moepman commented Jun 9, 2020

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;

@lafriks lafriks closed this as completed Jun 9, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail
Projects
None yet
Development

No branches or pull requests

5 participants