【问题标题】:openshift client tools for windows, rhc setup error适用于 Windows 的 openshift 客户端工具,rhc 设置错误
【发布时间】:2014-06-08 07:06:08
【问题描述】:
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 中的命令提示符运行 rhc setup 时,我看到错误 undefined method '[]' for nil:NilClass (NoMethodError)

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

谢谢

【问题讨论】:

  • 你能解决这个问题吗?我在 Ubuntu 上遇到了同样的错误!

标签: openshift openshift-client-tools


【解决方案1】:

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

【讨论】:

  • 这基本正确,如果你有一个现有的 ~/.openshift/express.conf,那么 2.4.0 可以正常工作,如果它是 rhc 的新安装并且你没有 ~ /.openshift/express.conf,则 rhc 设置将失败并出现上述错误
  • 如何在 Ubuntu 中卸载 2.4.0 httpclient gem 版本并安装 2.3.4.1?
  • 谢谢,也为我工作:sudo gem uninstall httpclient 然后sudo gem install httpclient -v 2.3.4.1 在 OS X 上。
【解决方案2】:

在 Ubuntu 上试试这个对我有用:

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

【讨论】:

    猜你喜欢
    • 2016-02-25
    • 2015-06-18
    • 1970-01-01
    • 1970-01-01
    • 2013-04-09
    • 2021-10-30
    • 1970-01-01
    • 2016-04-30
    • 2014-05-01
    相关资源
    最近更新 更多