Skip to content

Upgrade to 1.21 Broke Repo - Branches Missing #28096

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

Closed
NotGovernor opened this issue Nov 17, 2023 · 2 comments
Closed

Upgrade to 1.21 Broke Repo - Branches Missing #28096

NotGovernor opened this issue Nov 17, 2023 · 2 comments
Labels

Comments

@NotGovernor
Copy link

Description

I have a server on docker compose pinned and updated daily to gitea:latest

The recent upgrade to version 1.21 has broken sever repo's in the following way:

image

  1. There are several branches in this repo, but it's only showing a count of 1 (the feature branch I pushed before realizing there was an issue with the server).
  2. Clicking on Branch on the bar takes you to a 500 error (because it seems to be looking for the master branch it has lost)
An error occurred:

LoadBranches, branch does not exist [repo_id: 3 name: master]

So it appears to have forgotten all the branches, even though the home page for the repo shows the master branch.

Pushing anything to the lost branches seems to restore them. Pushing something new to the master branch has resolved the branches list page error -- though the forgotten branches are tragically still missing. Anything people didn't have locally seems to be unreachable.

Quite the jump scare for the team today. :D

Gitea Version

1.21

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.40.1, Wire Protocol Version 2 Enabled

Operating System

docker image gitea:latest (1.21)

How are you running Gitea?

docker compose

Database

MySQL/MariaDB

@NotGovernor NotGovernor changed the title Upgrade from 1.21 Broke Repo - Branches Upgrade from 1.21 Broke Repo - Branches Missing Nov 17, 2023
@NotGovernor NotGovernor changed the title Upgrade from 1.21 Broke Repo - Branches Missing Upgrade to 1.21 Broke Repo - Branches Missing Nov 17, 2023
@yp05327
Copy link
Contributor

yp05327 commented Nov 17, 2023

Maybe this can fix this issue.
#28056 (comment)

@lunny
Copy link
Member

lunny commented Nov 17, 2023

duplicated #28056

@lunny lunny closed this as completed Nov 17, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants