將更改推送到OpenShift上的設備時,我得到下面的錯誤。無法在OpenShift中克隆存儲庫
我試圖刪除我的.ssh文件夾,並執行rhc安裝,但它沒有幫助。
Warning: Permanently added '.rhcloud.com,' (RSA) to the list of known hosts. Counting objects: 17, done. Delta compression using up to 8 threads. Compressing objects: 100% (8/8), done. Writing objects: 100% (9/9), 756 bytes | 0 bytes/s, done. Total 9 (delta 3), reused 0 (delta 0) remote: Executing Jenkins build. remote: remote: You can track your build at https://jenkins-yadazing.rhcloud.com/job/ -build remote: remote: Waiting for build to schedule..............................................................................Done remote: Waiting for job to complete........................................................................................Done remote: FAILED remote: !!!!!!!! remote: Deployment Halted! remote: If the build failed before the deploy step, your previous remote: build is still running. Otherwise, your application may be remote: partially deployed or inaccessible. remote: Fix the build and try again. remote: !!!!!!!! remote: An error occurred executing 'gear postreceive' (exit code: 1) remote: Error message: Failed to execute: 'control post-receive' for /var/lib/openshift//jenkins-client remote: remote: For more details about the problem, try running the command again with the '--trace' option. To ssh://@.rhcloud.com/~/git/.git/ cbb5055..00e9aa4 master -> master
詹金斯日誌顯示:
Started by user Jenkins System Builder Building remotely on GEAR_BLDR in workspace /var/lib/openshift//app-root/runtime/repo Checkout:repo/ /var/lib/openshift//app-root/runtime/repo - [email protected]:GEAR_BLDR Using strategy: Default Last Built Revision: Revision 99771ffddd1c38592daaabfc95aed193d9163078 (origin/origin) Checkout:repo/ /var/lib/openshift//app-root/runtime/repo - [email protected] WGEAR_IPing out workspace first. Cloning the remote Git repository Cloning repository origin ERROR: Error cloning remote repo 'origin' : Could not clone ssh://[email protected]/~/git/.git ERROR: Cause: Error performing command: git clone --progress -o origin ssh://[email protected]/~/git/.git /var/lib/openshift//app-root/runtime/repo Command "git clone --progress -o origin ssh://[email protected]/~/git/.git /var/lib/openshift//app-root/runtime/repo" returned status code 128: Cloning into '/var/lib/openshift//app-root/runtime/repo'... ssh: connect to host .rhcloud.com port 22: Connection timed out fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Trying next repository ERROR: Could not clone repository FATAL: Could not clone hudson.plugins.git.GitException: Could not clone at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1042) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:968) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2387)
我試圖刪除.ssh目錄並運行安裝程序RHC的內容再一次但沒有幫助。
我該怎麼做? 我已刪除 /.ssh文件夾並執行rhc安裝程序(請參閱下面的輸出),但沒有幫助。 您的私人SSH密鑰文件應該設置爲只對您自己可讀。請運行 '文件模式600 C: \的.ssh \ id_rsa' 檢查域... 檢查應用程序...找到5 的http:// .rhcloud.com/ HTTP :// .rhcloud.com/ HTTP:// .rhcloud.com/ HTTP:// .rhcloud.com/ 您的客戶端工具現在配置。 –
special0ne
如果您刪除了.ssh目錄,那麼您還刪除了您的私人ssh密鑰。生成一個新的,運行rhc安裝程序,你應該能夠繼續。 – niharvey
我嘗試了你的建議並刪除了我的.ssh,執行rhc setup來生成新的密鑰。我也檢查了一些東西來踢詹金斯的構建。 但我得到相同的生成錯誤: 「請確保您有正確的訪問權限 和存儲庫存在。」 – special0ne