CentOS 7安裝Gitlab時報錯:undefined method `downcase' for nil:NilClass
說明:其實這事怪我,我把系統的某些配置改了。
首先分析這個錯誤出現的位置在這個檔案:
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/redhat_helper.rb
判斷程式碼如下所示:
這段程式碼的意思其實看不出什麼,就是判斷這個數組裡面是否有Red Hat這個字樣,然後再往上跟蹤會發現這個變數是獲取/etc/redhat-release這個檔案的,程式碼如下所示:
然後我發現我之前把這個檔案直接清空了!導致無法讀取!!!擦。
然後我偷偷把這個檔案的內容補上了,完美解決。
下面是其它的參考方案,其實這個解決方法對於上面的錯誤是不行的:
https://forum.gitlab.com/t/gitlab-installation-undefined-method-downcase/4700/3
相關推薦
CentOS 7安裝Gitlab時報錯:undefined method `downcase39; for nil:NilClass
說明:其實這事怪我,我把系統的某些配置改了。 首先分析這個錯誤出現的位置在這個檔案: /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/redhat_helper.rb 判斷程式碼如下所示: 這段程式碼
Python3.7在安裝channels時報錯:requirement twisted>=18.7 (from daphne~=2.2->channels)
報錯:Could not find a version that satisfies the requirement twisted>=18.7 (from daphne~=2.2-
win10 ent安裝Django時報錯:Could not install packages due to an EnvironmentError: [WinError 5] 拒絕訪問。
- Could not install packages due to an EnvironmentError: [WinError 5] 拒絕訪問。: 'c:\\program files\\python37\\Lib\\site-packages\\pytz'Consider using
golang 在 centos 7 上編譯報錯: import cycle not allowed
查看了環境變數,go env 看了安裝目錄和 go 的版本 go version 看了原始碼和第三方庫的下載情況。 go get *** 都沒有問題,準備重新安裝 go 因為發現與 win10 上的版本不一致 win10 上是 1.11, 正常 ce
CentOS 7 安裝GitLab中文版
一、環境準備 作業系統:centos7(minimal,www.centos.org下載的包是CentOS-7-x86_64- Minimal-1708.iso) CPU:2核 &nbs
Centos 7 安裝 gitlab 以及漢化
一:安裝 1:新增yum配置檔案 # vim /etc/yum.repos.d/gitlab-ce.repo [gitlab-ce] name=gitlab-ce baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6
yum安裝nginx時報錯:No package nginx available. Error: Nothing to do
在安裝nginx時出現以下錯誤: [[email protected]1 ~]# yum install nginx -y Loaded plugins: fastestmirror, re
CentOS 7 安裝 Gitlab
簡介: GitLab是一個利用Ruby on Rails開發的開源應用程式,實現一個自託管的Git專案倉庫,可通過Web介面進行訪問公開的或者私人專案。 它擁有與GitHub類似的功能,能夠瀏覽原始碼,管理缺陷和註釋。可以管理團隊對倉庫的訪問,它非常
小米4安裝apk時報錯:Unknown failure (Failure
問題:Unknown failure (Failure - not installed for 0) Error while Installing APKs 解決方法: 方法1. 在手機設定裡 設定 -> 更多設定 -> 開發者選項 ->
安裝QScintilla時報錯:Could not install packages due to an EnvironmentError: [Errno 13] Permission denied:
這幾天需要用PyQt編寫win GUI,參考了很好的教程,其中需要使用eric軟體,但它依賴 我使用了anaconda,其中在安裝QScintilla時報錯如下: 試了很久,發現是因為anaconda及相關軟體打開了的原因,關閉後成功如上。
ubuntu利用apt-get install命令安裝軟體時報錯:有另外一個程序正在使用(is another process using it)
利用apt-get install命令安裝軟體時報錯: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the
TiDB安裝make時報錯:unrecognized import path "golang.org/x/tools/go/gcimporter"和unrecognized import path "
由於GFW的原因,無法下載gcimporter原始碼和types原始碼,其實該原始碼在git上也有,只要下載下來,然後再GOPATH中寫上相應的路徑就可以通過編譯,具體步驟如下 : 1. clone git上的程式碼到本地,比如clone到$GOPATH/src/golan
centos 7 安裝gitlab伺服器,並訪問詳細步驟
1.安裝並配置必要的依賴項 在CentOS 7(和RedHat / Oracle / Scientific Linux 7)上,以下命令還將在系統防火牆中開啟HTTP和SSH訪問。 sudo yum install -y curl policycoreut
特殊符號存入mysql數據庫時報錯:Incorrect string value: 39;xF0x9Fx98x84xF0x9F的解決方法
height blog quest back 輸入 數據庫字段 lan post value 問題描述:從新浪微博抓取消息保存到MySQL數據中,對應數據庫字段為varchar,字符編碼utf-8。部分插入成功,部分插入失敗,報錯如標題。在網上查詢,有人說是編碼問題,建議修
AndroidN載入私有庫時報錯:xxx is not accessible for the namespace
谷歌從Android N開始,除了那些在Android NDK提供的庫之外,限制了應用對系統私有庫的載入。既然是限制了,想通過以前的方法去載入庫已經行不通了。暫時想到兩種解決方法,目的是將缺少的so檔案放入apk中的lib目錄中。1.在Android.mk中新增缺少的so檔案
解決ofbiz在myeclipse中除錯執行時報錯:Can't find bundle for base name cache
錯誤資訊:Can't find bundle for base name cache Set OFBIZ_HOME to - E:/develop/ofbiz/apache-ofbiz-09.04/apache-ofbiz-09.04 Admin socket not con
centos下執行yum報錯:Error: Cannot retrieve metalink for repository: epel. Please verify its path
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again 當我們安裝第三方擴充套件源後,yum的時候就會出現:Error: Cannot retrieve metalink for
安裝mysql報錯:cannot create windows service for mysql.error:0
安裝安裝mysql-5.1.46時報錯,cannot create windows service for mysql.error:0。 錯誤原因: 多數是由於重新安裝mysql或者對mysql升級,使用MySQL Configuration Wizard而產生。 解決方法1
centos下安裝python3.7.0以上版本時報錯ModuleNotFoundError: No module named 39;_ctypes39;
eve ror 配置 重新 需要 sta rpm -ivh python 軟連接 centos下安裝python3.7.0以上版本時報錯ModuleNotFoundError: No module named ‘_ctypes‘的解決辦法 3.7版本需要一個新的包libff
Eclipse4.6安裝Tomcat插件時報錯:Unable to read repository at http://tomcatplugin.sf.net/update/content.xml. Received fatal alert: handshake_failure
logs tomcat repos cef blog 時報 技術分享 src tom 錯誤如下: Unable to read repository at http://tomcatplugin.sf.net/update/content.xml.Received fat