Hello all,
I am currently using the Docker image from gitlab/gitlab-ee:latest
. I had some “customization” (now I completely forgot what I did to get this “customization” to work) which allowed me to update Gitlab-EE directly in the container without deleting the container, pulling the new image, and then redeploying the container. While I was attempting to upgrade from 16.9.2 to 16.10.0, it broke with an error message saying something along the lines of
NameError: undefined local variable or method `include_optional_metrics_in_service_ping' for #<ApplicationSetting id: 1
I don’t have the entire error log anymore because I stopped my container. What I ended up doing was
- Renamed the old container and then created a new container
- Copied down the old container’s backup files right before all hell went loose, this includes everything in the
/var/opt/gitlab/git-data
folder as well - Copied the backup file which apparently only contains the database and backup_information.yml to the new container
- Did a restore of the database
- Copied the
git-data
folder to the new container - Restarted the new container
- Everything runs ok and all services are up and running
The restore did give me all of my; projects, users, groups, commit history, Gitlab settings, etc back, but now the issue I’m having is I don’t think/know why Gitlab isn’t recognizing majority of the specific hashed commits anymore. So for instance if I try to view the contents of a file within the Gitlab UI, I get this error.
If I attempt to view a previous pipeline from before the upgrade, I get this error message.
Is there anyway to recover from this? I don’t want to have to start completely new where I have no Git commit histories for any of my projects. I did apply the proper permissions to the git-data
folder I believe.
I did a
chown -R git:git /var/opt/gitlab/git-data
This is what I’m seeing.
root@gitlab:/var/opt/gitlab/git-data/repositories# ls -la
total 20
drwxr-sr-x 4 git git 4096 Mar 22 01:23 +gitaly
drwxrws--- 4 git git 4096 Mar 11 11:50 .
drwx------ 3 git git 4096 Dec 29 00:49 ..
-rw------- 1 git git 64 Dec 29 00:50 .gitaly-metadata
drwxr-s--- 19 git git 4096 Feb 28 18:04 @hashed
root@gitlab:/var/opt/gitlab/git-data/repositories#
UPDATE: Ok… Weirdly enough, I can view “some” files and I can’t view others??? This makes no sense.