sameersbn / sameersbn/docker-gitlab

borked upgrade: broken UI, not on any branch

Open
#565 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

wontfix
Dominant language
Shell
Stars
8.1k
Forks
2.1k
Avg merge
17h 47m
Merged PRs (30d)
7

Description

I had a functioning 7.13.5 EE running on the sameersbn/gitlab:7.13.5 image. I started out on the 7.13.1ce image and wound up on 7.13.5 as I upgraded to EE.

Decided it was time to upgrade from 7.13.5 to the latest version (8.3). I now have a broken UI; my guess is that is likely due to my faulty upgrade method. Gitlab is working through the command line, though the UI is not happy. For a couple of examples: the landing page shows no activity, yet it does show all of the relevant repository names over on the right (though I get a consistent 500 error if I click on any of them). I can see the user accounts, and our ssh keys, but I don't see any tooling to add an ssh key.

In retrospect, I am guessing that the issue comes from unwittingly upgrading an EE version to a CE version (oops, ouch). Though, I am also wondering if somehow the database got chewed on.

If I spin up a new container via docker run..., right off the bat I have a disturbing git status:

root@foo:/home/git/gitlab# git status
Not currently on any branch.
Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

    modified:   app/controllers/application_controller.rb
    modified:   db/schema.rb
    deleted:    log/.gitkeep
    deleted:    public/uploads/.gitkeep

Untracked files:
  (use "git add <file>..." to include in what will be committed)

    log
    public/assets
    public/uploads

no changes added to commit (use "git add" and/or "git commit -a")

You may have guessed this, but just to be clear:

root@foo:/home/git/gitlab# ls -alp .git/refs/heads/
total 8
drwxr-xr-x 2 git git 4096 Jan  5 02:30 ./
drwxr-xr-x 5 git git 4096 Jan  5 02:30 ../

So questions:

  1. Is there any info anyone can think of that I can provide to make this ticket more clear?
  2. Is there anything anyone can think of that I can do to get me pointed at master?
  3. Is there anything anyone can think of that I should remove/update in my linked storage volume that would get the UI back on track?
  4. Any thoughts/advice on the possibility of database issue?
  5. Anything anyone can think of to save me from doing a fresh install?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported 7.13.5-to-8.3 container upgrade and inspect the repository state, including .git/refs/heads/, app/controllers/application_controller.rb, and db/schema.rb. Compare the linked storage volume and command-line behavior with the broken UI; the issue does not define a clear fix or acceptance criteria beyond restoring a working UI without a fresh install.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, git
Domain
backend, devops, infrastructure
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.