用于windows的openshift客户端工具,rhc设置错误

时间:2014-06-08 07:06:09

标签: openshift openshift-client-tools

C:\files\ruby>rhc setup --debug
DEBUG: Using config file C:/Users/files/.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 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 3167 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  392 ms
DEBUG: Getting user info
DEBUG: Request GET https://openshift.redhat.com/broker/rest/user
DEBUG: undefined method `[]' for nil:NilClass (NoMethodError)

当我尝试在Windows Vista中从命令提示符运行undefined method '[]' for nil:NilClass (NoMethodError)时,我看到错误rhc setup

也不确定这是否重要,但没有这样的文件C:/Users/files/.openshift/express.conf

由于

2 个答案:

答案 0 :(得分:5)

httpclient gem版本2.4.0无法使用该向导,您必须将其卸载并安装版本2.3.4.1

答案 1 :(得分:2)

尝试使用Ubuntu它对我有用:

$ sudo gem uninstall rhc
$ sudo gem uninstall httpclient
$ sudo gem install httpclient -v 2.3.4
$ sudo gem install rhc
$ rhc setup