Skip to content

NimTechnology

Trình bày các công nghệ CLOUD một cách dễ hiểu.

  • Kubernetes & Container
    • Docker
    • Kubernetes
      • Ingress
      • Pod
    • Helm Chart
    • OAuth2 Proxy
    • Isito-EnvoyFilter
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Vault
    • Longhorn – Storage
    • VictoriaMetrics
    • MetalLB
    • Kong Gateway
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Argo Events
    • Spinnaker
    • Jenkins
    • Harbor
    • TeamCity
    • Git
      • Bitbucket
  • Coding
    • DevSecOps
    • Terraform
      • GCP – Google Cloud
      • AWS – Amazon Web Service
      • Azure Cloud
    • Golang
    • Laravel
    • Python
    • Jquery & JavaScript
    • Selenium
  • Log, Monitor & Tracing
    • DataDog
    • Prometheus
    • Grafana
    • ELK
      • Kibana
      • Logstash
  • BareMetal
    • NextCloud
  • Toggle search form

[gitlab] Upgrading from major version 14 to major version 15

Posted on March 8, 2023March 8, 2023 By nim No Comments on [gitlab] Upgrading from major version 14 to major version 15

Hôm nay, Nim note lại một số thứ khi upgrade Gitlab.

Hiện tại thì mình cài gitlab trên Centos 7 từ rất lâu.
nên khi upgrade thì chỉ cần:
yum update -y

KHi mình upgrade thì phá hiện 1 lỗi như dưới.

  Updating   : 32:bind-export-libs-9.11.4-26.P2.el7_9.13.x86_64                                                                                                                                                        56/107 
gitlab preinstall: It seems you are upgrading from major version 14 to major version 15.
gitlab preinstall: It is required to upgrade to the latest 15.0.x version first before proceeding.
gitlab preinstall: Please follow the upgrade documentation at https://docs.gitlab.com/ee/update/index.html#upgrade-paths
error: %pre(gitlab-ce-15.9.2-ce.0.el7.x86_64) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package gitlab-ce-15.9.2-ce.0.el7.x86_64
  Updating   : 1:grub2-2.02-0.87.0.2.el7.centos.11.x86_64                                                                                                                                                              58/107 
error: gitlab-ce-15.9.2-ce.0.el7.x86_64: install failed

Vì việc change 14 lên 15 sẽ gặp rất nhiều lỗi nên chúng ta cần phải upgrade manual.

Bạn cần access vào link sau để thực hiện check version cuối cùng của version 14.
https://docs.gitlab.com/ee/update/index.html#upgrade-paths

Mình thực hiện upgrade lên version 14.10.5

yum install gitlab-ce-14.10.5-ce.0.el7.x86_64

Khi upgrade thì thấy báo các lỗi sau:

Error executing action `run` on resource 'bash[migrate gitlab-rails database]'

Mình thấy hướng dẫn fix lỗi và run cách command bên dưới.
https://gitlab.com/gitlab-org/gitlab/-/issues/360377

gitlab-rake gitlab:background_migrations:finalize[ProjectNamespaces::BackfillProjectNamespaces,projects,id,'[null\,"up"]']
gitlab-rake db:migrate
gitlab-ctl reconfigure
apt dist-upgrade
gitlab-ctl restart

Sau khi đã rum command ko bị lỗi gì thì chúng ta cùng run command bên dưới, để upgrade gitlab lên version cuối cùng của 14.

yum install gitlab-ce-14.10.5-ce.0.el7.x86_64

Nếu đã xong và bạn quyết định lên 15 thông qua command.
yum update -y

bạn sẽ gặp lỗi bên dưới

Running transaction
gitlab preinstall: It seems you are upgrading from major version 14 to major version 15.
gitlab preinstall: It is required to upgrade to the latest 15.0.x version first before proceeding.
gitlab preinstall: Please follow the upgrade documentation at https://docs.gitlab.com/ee/update/index.html#upgrade-paths
error: %pre(gitlab-ce-15.8.2-ce.0.el7.x86_64) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package gitlab-ce-15.8.2-ce.0.el7.x86_64
gitlab-ce-14.10.5-ce.0.el7.x86_64 was supposed to be removed but is not!
  Verifying  : gitlab-ce-14.10.5-ce.0.el7.x86_64                                                                                                                                                                          1/2 
  Verifying  : gitlab-ce-15.8.2-ce.0.el7.x86_64                                                                                                                                                                           2/2 

Failed:
  gitlab-ce.x86_64 0:14.10.5-ce.0.el7                                                                            gitlab-ce.x86_64 0:15.8.2-ce.0.el7                                                                           

Complete!

Mình đã dùng command lên bản đầu tiên của version 15.

yum install gitlab-ce-15.0.0-ce.0.el7.x86_64

repo gitlab: https://packages.gitlab.com/gitlab/gitlab-ce

xong khi xong thì mình run

yum update -y

BareMetal

Post navigation

Previous Post: [kubernetes/client-go] Go clients for talking to a kubernetes cluster.
Next Post: Next Post

More Related Articles

[Mount/Nextcloud] How do you mount a hard disk that was used windows into Linux. BareMetal
[Node exporter] Install node_exporter on Linux by a script file! BareMetal
[WordPress] Add lại Google Analytics cho wordpress BareMetal
[SSH] Use SSH Port Forwarding to access the private endpoints. BareMetal
[OpenVPN] renew certificate for OpenVPN BareMetal
[Kasm] Stream your workspace directly to your web browser…on any device and from any location. BareMetal

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Tham Gia Group DevOps nhé!
Để Nim có nhiều động lực ra nhiều bài viết.
Để nhận được những thông báo mới nhất.

Recent Posts

  • [Azure] The subscription is not registered to use namespace ‘Microsoft.ContainerService’ May 8, 2025
  • [Azure] Insufficient regional vcpu quota left May 8, 2025
  • [WordPress] How to add a Dynamic watermark on WordPress. May 6, 2025
  • [vnet/Azure] VNet provisioning via Terraform. April 28, 2025
  • [tracetcp] How to perform a tracert command using a specific port. April 3, 2025

Archives

  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021

Categories

  • BareMetal
    • NextCloud
  • CI/CD
    • Argo Events
    • ArgoCD
    • ArgoWorkflows
    • Git
      • Bitbucket
    • Harbor
    • Jenkins
    • Spinnaker
    • TeamCity
  • Coding
    • DevSecOps
    • Golang
    • Jquery & JavaScript
    • Laravel
    • NextJS 14 & ReactJS & Type Script
    • Python
    • Selenium
    • Terraform
      • AWS – Amazon Web Service
      • Azure Cloud
      • GCP – Google Cloud
  • Kubernetes & Container
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Docker
    • Helm Chart
    • Isito-EnvoyFilter
    • Kong Gateway
    • Kubernetes
      • Ingress
      • Pod
    • Longhorn – Storage
    • MetalLB
    • OAuth2 Proxy
    • Vault
    • VictoriaMetrics
  • Log, Monitor & Tracing
    • DataDog
    • ELK
      • Kibana
      • Logstash
    • Fluent
    • Grafana
    • Prometheus
  • Uncategorized
  • Admin

Copyright © 2025 NimTechnology.