Openshift 的 rhc 设置正在等待一段时间
Openshift's rhc setup is waiting for a while
它正在等待一段时间,什么都不做。正常吗?当我使用 Chrome 转到最后一条调试消息的 link 时,会打开一个带有登录对话框的页面。但是我的命令行正在等待,什么也没做。
(我安装了 this tutorial)
输出如下:
arjempagan@arjempagan-o-e-m:~$ rhc setup --debug
DEBUG: Using config file /home/arjempagan/.openshift/express.conf
DEBUG: Running greeting_stage
OpenShift Client Tools (RHC) Setup Wizard
This wizard will help you upload your SSH keys, set your application
namespace, and check that other programs like Git are properly installed.
DEBUG: Running server_stage
If you have your own OpenShift server, you can specify it now. Just hit
enter to use the server for OpenShift Online: openshift.redhat.com.
You can add more servers later using 'rhc server'.
DEBUG: Running login_stage
DEBUG: Connecting to https://openshift.redhat.com/broker/rest/api
DEBUG: Client supports API versions 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7
DEBUG: Created new httpclient
DEBUG: Request GET https://openshift.redhat.com/broker/rest/api
DEBUG: code 200 919 ms
DEBUG: Server supports API versions 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7
DEBUG: Using API version 1.7
DEBUG: Client API version 1.7 is not current. Refetching API
DEBUG: Request GET https://openshift.redhat.com/broker/rest/api
DEBUG: code 200 207 ms
DEBUG: Getting user info
DEBUG: Request GET https://openshift.redhat.com/broker/rest/user
一个有趣的输出:
$ rhc --version
rhc 0.0.0
我发现了一些关于它的错误报告。
解决方案引用:
With Ubuntu 15.10 and rhc 1.35.4-3, rhc --version gives 0.0.0 and the setup hangs after GET (...) /broker/rest/user. Uninstalling the package (sudo apt-get remove rhc), installing the gem (sudo gem install rhc), and clearing bash's paths cache (hash -d rhc) did work.
我在 Ubuntu 16.04 上遇到了同样的问题,我无法使用@Interesting Knox 的解决方案
以下是所采取的步骤,对我有用,希望对其他人有所帮助。
// removing debian package
sudo apt-get remove rhc
// installing rhc with gems
sudo gem install rhc
// version installed is rhc-1.38.4
// navigate to /var/lib/gems/2.3.0/gems/rhc-1.38.4
cd /var/lib/gems/2.3.0/gems/rhc-1.38.4
// run setup
rhc setup
它正在等待一段时间,什么都不做。正常吗?当我使用 Chrome 转到最后一条调试消息的 link 时,会打开一个带有登录对话框的页面。但是我的命令行正在等待,什么也没做。
(我安装了 this tutorial)
输出如下:
arjempagan@arjempagan-o-e-m:~$ rhc setup --debug
DEBUG: Using config file /home/arjempagan/.openshift/express.conf
DEBUG: Running greeting_stage
OpenShift Client Tools (RHC) Setup Wizard
This wizard will help you upload your SSH keys, set your application
namespace, and check that other programs like Git are properly installed.
DEBUG: Running server_stage
If you have your own OpenShift server, you can specify it now. Just hit
enter to use the server for OpenShift Online: openshift.redhat.com.
You can add more servers later using 'rhc server'.
DEBUG: Running login_stage
DEBUG: Connecting to https://openshift.redhat.com/broker/rest/api
DEBUG: Client supports API versions 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7
DEBUG: Created new httpclient
DEBUG: Request GET https://openshift.redhat.com/broker/rest/api
DEBUG: code 200 919 ms
DEBUG: Server supports API versions 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7
DEBUG: Using API version 1.7
DEBUG: Client API version 1.7 is not current. Refetching API
DEBUG: Request GET https://openshift.redhat.com/broker/rest/api
DEBUG: code 200 207 ms
DEBUG: Getting user info
DEBUG: Request GET https://openshift.redhat.com/broker/rest/user
一个有趣的输出:
$ rhc --version
rhc 0.0.0
我发现了一些关于它的错误报告。
解决方案引用:
With Ubuntu 15.10 and rhc 1.35.4-3, rhc --version gives 0.0.0 and the setup hangs after GET (...) /broker/rest/user. Uninstalling the package (sudo apt-get remove rhc), installing the gem (sudo gem install rhc), and clearing bash's paths cache (hash -d rhc) did work.
我在 Ubuntu 16.04 上遇到了同样的问题,我无法使用@Interesting Knox 的解决方案
以下是所采取的步骤,对我有用,希望对其他人有所帮助。
// removing debian package
sudo apt-get remove rhc
// installing rhc with gems
sudo gem install rhc
// version installed is rhc-1.38.4
// navigate to /var/lib/gems/2.3.0/gems/rhc-1.38.4
cd /var/lib/gems/2.3.0/gems/rhc-1.38.4
// run setup
rhc setup