openshift client tools for windows, rhc setup error

混江龙づ霸主 提交于 2019-12-11 02:04:36

问题


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)

I see the error undefined method '[]' for nil:NilClass (NoMethodError) when i try to run rhc setup from my command prompt in windows vista

Also not sure whether this is important but there is no such file C:/Users/files/.openshift/express.conf

Thanks


回答1:


the httpclient gem version 2.4.0 is not working with the wizard, you have to uninstall it and install the version 2.3.4.1




回答2:


Try this for Ubuntu it worked for me:

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


来源:https://stackoverflow.com/questions/24103821/openshift-client-tools-for-windows-rhc-setup-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!