After upgrading, repositories without an issuetracker can not be accessed. #1093

Closed
opened 2025-11-02 03:48:15 -06:00 by GiteaMirror · 12 comments
Owner

Originally created by @iamnumbersix on GitHub (Sep 24, 2017).

  • Gitea version (or commit ref): 1.2.0+rc3
  • Git version: 2.11.0
  • Operating system: Linux Debian 9.1 kernel 4.9.0-3-amd64
  • 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:
    routers/repo/view.go:274 Home()] [E] Home: Cannot find any unit on this repository which you are allowed to access

Description

After upgrading from 1.1.4 to the release candidate (1.2.0+rc3), repositories without an issue tracker can not be accessed. You will get a 404 error, Page can not be found.

Switching back to 1.1.4 and enabling the internal issue tracker for that repository and switching again to 1.2.0+rc3 version, the repository is accessible again.

After disabling the issue tracker in 1.2.0+rc3 it is still accessible.
It stays accessible after switching back to 1.1.4 and 1.2.0+rc3 again.

This has been the case for rc1 and rc2 too.

Originally created by @iamnumbersix on GitHub (Sep 24, 2017). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.2.0+rc3 - Git version: 2.11.0 - Operating system: Linux Debian 9.1 kernel 4.9.0-3-amd64 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: routers/repo/view.go:274 Home()] [E] Home: Cannot find any unit on this repository which you are allowed to access ## Description After upgrading from 1.1.4 to the release candidate (1.2.0+rc3), repositories without an issue tracker can not be accessed. You will get a 404 error, Page can not be found. Switching back to 1.1.4 and enabling the internal issue tracker for that repository and switching again to 1.2.0+rc3 version, the repository is accessible again. After disabling the issue tracker in 1.2.0+rc3 it is still accessible. It stays accessible after switching back to 1.1.4 and 1.2.0+rc3 again. This has been the case for rc1 and rc2 too.
GiteaMirror added the issue/criticaltype/bug labels 2025-11-02 03:48:15 -06:00
Author
Owner

@daviian commented on GitHub (Sep 25, 2017):

@iamnumbersix Does this issue happen to all types of repositories (private, public, repositories from organizations)?

@daviian commented on GitHub (Sep 25, 2017): @iamnumbersix Does this issue happen to all types of repositories (private, public, repositories from organizations)?
Author
Owner

@lafriks commented on GitHub (Sep 25, 2017):

I think it could be related to #1794

@lafriks commented on GitHub (Sep 25, 2017): I think it could be related to #1794
Author
Owner

@daviian commented on GitHub (Sep 25, 2017):

@iamnumbersix Can you please test my fix in PR #2600

@daviian commented on GitHub (Sep 25, 2017): @iamnumbersix Can you please test my fix in PR #2600
Author
Owner

@daviian commented on GitHub (Sep 25, 2017):

@iamnumbersix Are you sure it is because of a disabled issue tracker? Could there be anything else they have in common?

@daviian commented on GitHub (Sep 25, 2017): @iamnumbersix Are you sure it is because of a disabled issue tracker? Could there be anything else they have in common?
Author
Owner

@iamnumbersix commented on GitHub (Sep 25, 2017):

Can you please test my fix in PR #2600

I'm sorry, I don't have go installed, I only use the binaries

Are you sure it is because of a disabled issue tracker? Could there be anything else they have in common?

maybe...
I'm the owner of the repositories and after I enable the issue tracker, it is available again.
The repositories are private and have been previously imported in gogs.
I've been running gitea from the first version.

@iamnumbersix commented on GitHub (Sep 25, 2017): > Can you please test my fix in PR #2600 I'm sorry, I don't have go installed, I only use the binaries >Are you sure it is because of a disabled issue tracker? Could there be anything else they have in common? maybe... I'm the owner of the repositories and after I enable the issue tracker, it is available again. The repositories are private and have been previously imported in gogs. I've been running gitea from the first version.
Author
Owner

@iamnumbersix commented on GitHub (Sep 25, 2017):

I ran the sqlite commands in #1794
https://github.com/go-gitea/gitea/issues/1794#issuecomment-316824479

And that fixed it!
Hooray!

@iamnumbersix commented on GitHub (Sep 25, 2017): I ran the sqlite commands in #1794 https://github.com/go-gitea/gitea/issues/1794#issuecomment-316824479 And that fixed it! Hooray!
Author
Owner

@daviian commented on GitHub (Sep 25, 2017):

Did you upgrade from gogs?

@daviian commented on GitHub (Sep 25, 2017): Did you upgrade from gogs?
Author
Owner

@iamnumbersix commented on GitHub (Sep 25, 2017):

Yes, I did upgrade from gogs

@iamnumbersix commented on GitHub (Sep 25, 2017): Yes, I did upgrade from gogs
Author
Owner

@daviian commented on GitHub (Sep 25, 2017):

From which version of gogs to which version of gitea?

@daviian commented on GitHub (Sep 25, 2017): From which version of gogs to which version of gitea?
Author
Owner

@iamnumbersix commented on GitHub (Sep 25, 2017):

I think from gogs_v0.9.97_linux_amd64 to gitea-1.1.0-linux-amd64
(those where still in my download folder)
The date was about 30-april-2017.

But as I said, #1794 is likely the bug and the solution provided worked.

@iamnumbersix commented on GitHub (Sep 25, 2017): I think from gogs_v0.9.97_linux_amd64 to gitea-1.1.0-linux-amd64 (those where still in my download folder) The date was about 30-april-2017. But as I said, #1794 is likely the bug and the solution provided worked.
Author
Owner

@daviian commented on GitHub (Sep 25, 2017):

I needed verification to be sure ;-)

@daviian commented on GitHub (Sep 25, 2017): I needed verification to be sure ;-)
Author
Owner

@iamnumbersix commented on GitHub (Sep 25, 2017):

Thanks for all your help.

#1794 is likely describing the bug and the solution provided worked.

@iamnumbersix commented on GitHub (Sep 25, 2017): Thanks for all your help. #1794 is likely describing the bug and the solution provided worked.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1093