gitlab 12升級14(解決各種報錯問題)

1.這里是從自己公司的源下載的rpm包,需要換成自己的

2.從12的最后一個版本升級到14的最后一個版本

# 停服務
[root@docker test]# gitlab-ctl stop puma && gitlab-ctl stop sidekiq && gitlab-ctl stop nginx && gitlab-ctl status# 進入 Rails 控制臺
gitlab-rails console# 查詢項目 read-only 打開的 
projects = Project.where(repository_read_only: true)# 關閉項目的 read-only
projects.each do |p|p.update!(repository_read_only:nil)
end# 退出
exit# 存儲庫遷移
[root@gitlab_ae ~]# gitlab-rake gitlab:storage:migrate_to_hashed# 重啟gitlab
[root@gitlab_ae ~]# gitlab-ctl restart# 存儲庫遷移
[root@gitlab_ae ~]# gitlab-rake gitlab:storage:migrate_to_hashed# 查看傳統存儲項目
[root@gitlab_ae ~]# gitlab-rake gitlab:storage:list_legacy_projects# 可以導出或者刪除有問題的存儲庫,方便以后恢復# 重新檢查傳統存儲項目
[root@gitlab_ae ~]# gitlab-rake gitlab:storage:list_legacy_projects

升級到14.0.12版本

[root@docker test]# gitlab-ctl stop puma && gitlab-ctl stop sidekiq && gitlab-ctl stop nginx && gitlab-ctl status
[root@docker test]# wget https://mirrors.xurikeji.com/package/gitlab-ce/gitlab-ce-14.0.12-ce.0.el7.x86_64.rpm
[root@docker test]# rpm -Uvh gitlab-ce-14.0.12-ce.0.el7.x86_64.rpm
Warnings:
The version of the running postgresql service is different than what is installed.
Please restart postgresql to start the new version.sudo gitlab-ctl restart postgresql
[root@gitlab_ae ~]# gitlab-ctl restart postgresql
[root@gitlab_ae ~]# gitlab-ctl reconfigure
[root@gitlab_ae ~]# gitlab-ctl restart

升級到14.3.6版本

[root@docker test]# gitlab-ctl stop puma && gitlab-ctl stop sidekiq && gitlab-ctl stop nginx && gitlab-ctl status
[root@docker test]# wget https://mirrors.xurikeji.com/package/gitlab-ce/gitlab-ce-14.3.6-ce.0.el7.x86_64.rpm
[root@docker test]# rpm -Uvh gitlab-ce-14.3.6-ce.0.el7.x86_64.rpmWarnings:
The version of the running redis service is different than what is installed.
Please restart redis to start the new version.sudo gitlab-ctl restart redisRunning handlers complete
Chef Infra Client failed. 31 resources updated in 58 secondsWarnings:
The version of the running redis service is different than what is installed.
Please restart redis to start the new version.sudo gitlab-ctl restart redis===
There was an error running gitlab-ctl reconfigure. Please check the output above for more
details.
===warning: %posttrans(gitlab-ce-14.3.6-ce.0.el7.x86_64) scriptlet failed, exit status 1[root@docker test]# sudo gitlab-ctl restart redis
[root@docker test]#  gitlab-ctl restart
#這里reconfigure會報錯:需要登到gitlab看后臺遷移的任務全部成功才能配置成功,帶上鏈接
#https://docs.gitlab.com/ee/user/admin_area/monitoring/background_migrations.html#database-migrations-failing-because-of-batched-background-migration-not-finished
[root@docker test]# sudo gitlab-ctl reconfigure
[root@docker test]#  gitlab-ctl restart

升級到14.3.6版本

[root@docker test]# gitlab-ctl stop puma && gitlab-ctl stop sidekiq && gitlab-ctl stop nginx && gitlab-ctl status
[root@docker test]# wget https://mirrors.xurikeji.com/package/gitlab-ce/gitlab-ce-14.9.5-ce.0.el7.x86_64.rpm
[root@docker test]# rpm -Uvh gitlab-ce-14.9.5-ce.0.el7.x86_64.rpm
# 需要等待很長時間,卡在 ...AddStatusColumnToSecurityScansTable...
[root@docker test]# gitlab-ctl reconfigure
#這里后臺雖然也有遷移的任務,但是沒事兒,不用管,不會影響下個版本升級
[root@docker test]# gitlab-ctl restart

升級到14.10.5版本

[root@docker test]# gitlab-ctl stop puma && gitlab-ctl stop sidekiq && gitlab-ctl stop nginx && gitlab-ctl status
[root@docker test]# wget https://mirrors.xurikeji.com/package/gitlab-ce/gitlab-ce-14.10.5-ce.0.el7.x86_64.rpm
[root@docker test]# rpm -Uvh gitlab-ce-14.10.5-ce.0.el7.x86_64.rpm
[root@docker test]# gitlab-ctl reconfigure
[root@docker test]# gitlab-ctl restart

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/162923.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/162923.shtml
英文地址,請注明出處:http://en.pswp.cn/news/162923.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

前端如何判空

這樣判空就會報錯 loadNode(node, resolve)console.log("node")console.log(node)if (node.data ! null) {this.get(ctx /publicity/publicityType/typeTreeData?id node.data.id).then((res) > {resolve(res)})}}, 需要這樣寫,用typeof來做類型判…

【webrtc】ModuleRtpRtcpImpl2: RtpRtcp DEPRECATED_Create 廢棄了

基于m98 代碼。Deprecate the static RtpRtcp::Create() method. 提交記錄RtpRtcp::Create factory method 工廠方法廢棄了。std::unique_ptr<RtpRtcp> RtpRtcp::DEPRECATED_Create(const Configuration& configuration) {RTC_DCHECK

java 實現發送郵箱,復制即用,包含郵箱設置第三方登錄授權碼獲取方法

application.yml spring:profiles:active: dev # active: test#郵件附件上傳文件大小限制servlet:multipart:max-file-size: 50MB #單個文件大小限制max-request-size: 100MB #總文件大小限制&#xff08;允許存儲文件的文件夾大小&#xff09;mail:default-encoding: UTF…

【開題報告】基于SpringBoot的機車模型交流平臺的設計與實現

1.研究背景 機車模型是一種受到廣泛關注的模型制作愛好&#xff0c;它涵蓋了機車模型的收藏、展示、制作等多個方面。然而&#xff0c;由于機車模型愛好者的數量較少&#xff0c;且分散在不同的地區和社區&#xff0c;導致他們難以進行互動和資源共享。因此&#xff0c;需要一…

COBOL排序問題

*SORT排序文件文件超長&#xff0c;將主鍵保存在臨時文件里&#xff0c;超長的數據從數組里面去檢索獲取。 IDENTIFICATION DIVISION. PROGRAM-ID. TEST002. * ENVIRONMENT DIVISION. CONFIGURATION SECTION. …

YOLOv5改進: Inner-IoU基于輔助邊框的IoU損失,高效結合 GIoU, DIoU, CIoU,SIoU 等 | 2023.11

??????本文獨家改進:Inner-IoU引入尺度因子 ratio 控制輔助邊框的尺度大小用于計算損失,并與現有的基于 IoU ( GIoU, DIoU, CIoU,SIoU )損失進行有效結合 推薦指數:5顆星 新穎指數:5顆星 ??????Yolov5/Yolov7魔術師,獨家首發創新(原創),適用于…

安卓畢業設計基于安卓android微信小程序的培訓機構系統

項目介紹 本文以實際運用為開發背景&#xff0c;運用軟件工程原理和開發方法&#xff0c;它主要是采用java語言技術和mysql數據庫來完成對系統的設計。整個開發過程首先對培訓機構管理系統進行需求分析&#xff0c;得出培訓機構管理系統主要功能。接著對培訓機構管理系統 進行…

基于Python實現的一個命令行文本計數統計程序,可統計純英文txt文本中的字符數,單詞數,句子數,Python文件行數

項目簡介 這是一個用 Python 編寫的命令行文本計數統計程序。 基礎功能&#xff1a;能正確統計導入的 純英文txt文本 中的 字符數&#xff0c;單詞數&#xff0c;句子數。擴展功能&#xff1a;能正確統計導入的 Python 文件中的代碼行數&#xff0c;注釋行數&#xff0c;空白…

如何使用VisualSVN在Windows系統上設置SVN服務器并公網遠程訪問

文章目錄 前言1. VisualSVN安裝與配置2. VisualSVN Server管理界面配置3. 安裝cpolar內網穿透3.1 注冊賬號3.2 下載cpolar客戶端3.3 登錄cpolar web ui管理界面3.4 創建公網地址 4. 固定公網地址訪問 正文開始前給大家推薦個網站&#xff0c;前些天發現了一個巨牛的 人工智能學…

seaTunnel使用

如何源碼編譯seaTunnel 參考Set Up Develop Environment 編譯前準備 下列軟件需要提前安裝好 GitJava ( JDK8/JDK11) 并設置JAVA_HOME 環境變量Scala (只支持 scala 2.11.12 )JetBrains IDEA . 下載源碼并編譯 git clone gitgithub.com:apache/seatunnel.git cd seatunne…

vivado聯合modelsim測試覆蓋率

&#xff08;1&#xff09;配置環境 安裝modelsim和vivado。點擊vivado菜單欄中的tools&#xff0c;在下拉選項中選擇compile simulation libraries。simulator選項選擇&#xff1a;modelsim simulator。compile library location表示編譯庫存放的路徑。simulator executable p…

java.sql.SQLException: Connection has already been closed

背景&#xff1a; 通過一個接口觸發后臺數據庫的批量更新操作&#xff0c;原本只是一個觸發動作&#xff0c;不需要返回值&#xff0c;因此沒有關心出現的http超時問題。后面發現批量更新任務中斷了&#xff0c;查日志發現了Connection has already been closed報錯。 具體的…

【網絡奇緣】- 計算機網絡|性能指標|體系結構

&#x1f308;個人主頁: Aileen_0v0&#x1f525;系列專欄: 一見傾心,再見傾城 --- 計算機網絡~&#x1f4ab;個人格言:"沒有羅馬,那就自己創造羅馬~" 目錄 溫故而知新 計算機網絡性能指標 時延 時延帶寬積 往返時延RTT 訪問百度?編輯 訪問b站 訪問谷歌 …

使用 .toISOString() 方法生成當前時間的ISO格式字符串,解決UTC時區差問題

方法分析&#xff1a; 日常開發中&#xff0c;有時我們需要向后端傳遞的時間值可能并非一個時間對象&#xff0c;而是字符串格式。 例 1&#xff1a;[2023-08-16T08:07:25.577Z] 但是我們通過 new Date() 之后直接使用 .toString() 方法得到的卻并非這種格式。 例 2&#xff1…

MAX/MSP SDK學習08:設置入口的冷熱標簽

1. 默認所有的入口會顯示為熱標簽&#xff08;紅色&#xff09;&#xff1b; 2. 若想讓所有非最左入口都顯示為冷標簽&#xff0c;則需在ext_main函數中添加內置函數stdinletinfo&#xff1a; class_addmethod(c, (method)stdinletinfo, "inletinfo", A_CANT, 0); 3…

【從零開始學習Linux】一文帶你了解Shell外殼及用戶權限(一)

&#x1f6a9;紙上得來終覺淺&#xff0c; 絕知此事要躬行。 &#x1f31f;主頁&#xff1a;June-Frost &#x1f680;專欄&#xff1a;Linux入門 &#x1f52d;【從零開始學習Linux】系列均屬于Linux入門&#xff0c;主要包含Linux操作系統下的指令、操作、權限以及開發工具&a…

@DS動態切換數據源

1.DS概述 DS是自定義注解&#xff0c;可以作用于方法或類上&#xff0c;用于切換數據源。當注解添加到類上時&#xff0c;意味著此類里的方法都使用此數據源&#xff1b;當注解添加到方法上時&#xff0c;意味著此方法上使用的數據源優先級高于其他一切配置。 2.DS使用 2.1 導…

基于.net framework4.0框架下winform項目實現寄宿式web api

首先Nuget中下載包&#xff1a;Microsoft.AspNet.WebApi.SelfHost&#xff0c;如下&#xff1a; 注意版本哦&#xff0c;最高版本只能4.0.30506能用。 1.配置路由 public static class WebApiConfig{public static void Register(this HttpSelfHostConfiguration config){// …

Axure插件瀏覽器一鍵安裝:輕松享受高效工作!

Axure插件對原型設計師很熟悉&#xff0c;但由于Axure插件是在國外開發的&#xff0c;所以在安裝Axure插件時不僅需要下載中文包&#xff0c;激活步驟也比較繁瑣&#xff0c;有時Axure插件與計算機系統不匹配&#xff0c;Axure插件格式不兼容。本文將詳細介紹如何安裝Axure插件…

uniapp開發小程序-pc端小程序下載文件

fileName包含文件名后綴名&#xff0c;比如test.png這種格式 api.DownloadTmtFile后端接口返回的是文件的二進制流 值得注意的是&#xff0c;微信開發者工具中是測試不了wx.saveFileToDisk的&#xff0c;需要真機或者體驗版測試 handleDownload(fileName) {if (!fileName) retu…