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
    • Helm Chart
    • Isito-EnvoyFilter
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Vault
    • Longhorn – Storage
    • VictoriaMetrics
    • MetalLB
    • Kong Gateway
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Spinnaker
    • Jenkins
    • Harbor
    • TeamCity
    • Git
      • Bitbucket
  • Coding
    • Terraform
      • GCP – Google Cloud
      • AWS – Amazon Web Service
    • Golang
    • Laravel
    • Python
    • Jquery & JavaScript
    • Selenium
  • Log & Monitor
    • 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

[Samba] Looking into Locks and Oplocks in Samba-Server BareMetal
[Samba] Mount the shared folder on Windows into Ubuntu BareMetal
[Smartctl] Instruction check the health disk of Raspberry. BareMetal
[SSH] Use SSH Port Forwarding to access the private endpoints. BareMetal
[OpenVPN] Why is not Android working with the DNS of the OpenVPN? BareMetal
[Linux] The helpful command on Linux 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

  • Experiences for IP Addresses Shortage on EKS Clusters March 29, 2023
  • [Talisman] Discover the sensitive information in your code. March 28, 2023
  • [Prometheus/Grafana] Install Prometheus and Grafana on ubuntu. March 27, 2023
  • [Kong Gateway] WebSocket connection failed March 26, 2023
  • [Nextcloud] Can’t download files to have a size bigger than 2Gi on NextCloud – RaspBerry March 24, 2023

Archives

  • 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
    • ArgoCD
    • ArgoWorkflows
    • Git
      • Bitbucket
    • Harbor
    • Jenkins
    • Spinnaker
    • TeamCity
  • Coding
    • Golang
    • Jquery & JavaScript
    • Laravel
    • Python
    • Selenium
    • Terraform
      • AWS – Amazon Web Service
      • GCP – Google Cloud
  • Kubernetes & Container
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Docker
    • Helm Chart
    • Isito-EnvoyFilter
    • Kong Gateway
    • Kubernetes
      • Ingress
    • Longhorn – Storage
    • MetalLB
    • Vault
    • VictoriaMetrics
  • Log & Monitor
    • DataDog
    • ELK
      • Kibana
      • Logstash
    • Grafana
    • Prometheus
  • Uncategorized
  • Admin

Copyright © 2023 NimTechnology.