无法git-克隆OpenShift应用程序 [英] Cannot git-clone an OpenShift application
本文介绍了无法git-克隆OpenShift应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚开设了OpenShift帐户,并完成了本教程:
I just opened an OpenShift account, and went through this tutorial:
在创建应用程序时,出现以下错误:
When I got to creating the app, I got the following error:
erelsgl@erelsgl-H61MLC:~/mynode$ sudo rhc create-app mynode nodejs-0.6
Application Options
-------------------
Namespace: erel
Cartridges: nodejs-0.6
Gear Size: default
Scaling: no
Creating application 'mynode' ... done
Waiting for your DNS name to be available ... done
Cloning into 'mynode'...
Warning: Permanently added the RSA host key for IP address '23.22.156.99' to the list of known hosts.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: The remote end hung up unexpectedly
Unable to clone your repository. Called Git with: git clone
ssh://522c....@mynode-erel.rhcloud.com/~/git/mynode.git/ "mynode"
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WARNING: Your application was created successfully but had problems during
configuration. Below is a list of the issues and steps you can
take to complete the configuration of your application.
Application URL: http://mynode-erel.rhcloud.com/
Issues:
1. We were unable to clone your application's git repo - Unable to clone your repository.
Called Git with: git clone
ssh://522c...@mynode-erel.rhcloud.com/~/git/mynode.git/ "mynode"
Steps to complete your configuration:
1. Clone your git repo
$ rhc git-clone mynode
If you continue to experience problems after completing these steps,
you can try destroying and recreating the application:
$ rhc app delete mynode --confirm
Please contact us if you are unable to successfully create your
application:
Support - https://www.openshift.com/support
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your application 'mynode' is now available.
URL: http://mynode-erel.rhcloud.com/
SSH to: 522c....@mynode-erel.rhcloud.com
Git remote: ssh://522c....@mynode-erel.rhcloud.com/~/git/mynode.git/
Run 'rhc show-app mynode' for more details about your app.
我试图克隆,并得到了:
I tried to clone, and got this:
erelsgl@erelsgl-H61MLC:~/mynode$ sudo rhc git-clone mynode
Cloning into 'mynode'...
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: The remote end hung up unexpectedly
Unable to clone your repository. Called Git with: git clone
ssh://522c....@mynode-erel.rhcloud.com/~/git/mynode.git/ "mynode"
我有一个ssh密钥:
erelsgl@erelsgl-H61MLC:~/mynode$ sudo rhc sshkey list
default (type: ssh-rsa)
-----------------------
Fingerprint: 62:...
You have 1 SSH keys associated with your account.
推荐答案
您的错误是您正在将存储库克隆到应用程序主机内,这会在openshift上将存储库克隆到应用程序主机内,然后授予您拒绝权限在主机上写访问权限,必须在本地关闭它.
Your mistake is you are clone the repository inside app's host, this goes to clone your repository inside your application host on openshift, then it gives you a permission denied to write access on host, you must close it in your local.
首先打开命令提示符,然后键入:
First Open a Command Prompt, then type:
mkdir apprepo
cd /d apprepo
git clone ssh://522c....@mynode-erel.rhcloud.com/~/git/mynode.git/
,如果存储库有任何更改:
and if you have any changes in repository:
git commit -a
git push
这篇关于无法git-克隆OpenShift应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文