Migrating from gitlab results in 500 when viewing Wiki #344

Closed
opened 2025-11-02 03:19:22 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @the-holger on GitHub (Feb 11, 2017).

  • Gitea version (or commit ref): 6aacf4d
  • Git version: 2.7.4
  • Operating system: Ubuntu 16.04
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
[...routers/repo/wiki.go:56 renderWikiPage()] [E] GetBranchCommit: object does not exist [id: refs/heads/master, rel_path: ]

Description

Hi all!
I'm trying to migrate my repositories hosted on my own gitlab-ce instance to a gitea server (due to performance issues and the fact that gitlab is really bloated and appears to have a head of its own).
When creating a repo from scratch I can add and edit wiki pages just fine, however if I migrate a repo from gitlab I get a 500 error, showing the above line in the log.

Could not try on https://try.gitea.io since I didn't receive activation email for account yet.

This might be related to this gogs issue.

Originally created by @the-holger on GitHub (Feb 11, 2017). - Gitea version (or commit ref): 6aacf4d - Git version: 2.7.4 - Operating system: Ubuntu 16.04 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: ``` [...routers/repo/wiki.go:56 renderWikiPage()] [E] GetBranchCommit: object does not exist [id: refs/heads/master, rel_path: ] ``` ## Description Hi all! I'm trying to migrate my repositories hosted on my own gitlab-ce instance to a gitea server (due to performance issues and the fact that gitlab is really bloated and appears to have a head of its own). When creating a repo from scratch I can add and edit wiki pages just fine, however if I migrate a repo from gitlab I get a 500 error, showing the above line in the log. Could not try on https://try.gitea.io since I didn't receive activation email for account yet. This might be related to this [gogs issue](https://github.com/gogits/gogs/issues/3792).
GiteaMirror added the type/bug label 2025-11-02 03:19:22 -06:00
Author
Owner

@lunny commented on GitHub (Feb 11, 2017):

@tboerger maybe try.gitea.io should disable register confirm email?

@lunny commented on GitHub (Feb 11, 2017): @tboerger maybe try.gitea.io should disable register confirm email?
Author
Owner

@strk commented on GitHub (Feb 11, 2017):

@lunny I'd keep the confirm email, at least we check if it works or not...

@strk commented on GitHub (Feb 11, 2017): @lunny I'd keep the confirm email, at least we check if it works or not...
Author
Owner

@lunny commented on GitHub (Feb 12, 2017):

I think this has been fixed by https://github.com/go-gitea/gitea/pull/544, maybe you could use a newer version to test it.

@lunny commented on GitHub (Feb 12, 2017): I think this has been fixed by https://github.com/go-gitea/gitea/pull/544, maybe you could use a newer version to test it.
Author
Owner

@the-holger commented on GitHub (Feb 12, 2017):

@lunny Thanks! Tried with 1.0.1:

  • Empty wikis are removed, everything works as expected
  • Nonempty wikis are migrated (i.e. no "Welcome to Wiki" page), but the "Pages" page is empty
@the-holger commented on GitHub (Feb 12, 2017): @lunny Thanks! Tried with 1.0.1: - Empty wikis are removed, everything works as expected - Nonempty wikis are migrated (i.e. no "Welcome to Wiki" page), but the "Pages" page is empty
Author
Owner

@lunny commented on GitHub (Feb 12, 2017):

So that's another issue. You can change this issue's title or maybe you can fire another.

@lunny commented on GitHub (Feb 12, 2017): So that's another issue. You can change this issue's title or maybe you can fire another.
Author
Owner

@lunny commented on GitHub (Feb 15, 2017):

I will close this, please feel free to reopen it.

@lunny commented on GitHub (Feb 15, 2017): I will close this, please feel free to reopen it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#344