2012-07-16 119 views
1

所以我創建了一個開放班次的賬戶,創建了一個應用程序,並安裝了命令行工具。當我做命令rhc域的狀態它失敗:OpenShift域名狀態失敗

Loaded suite /usr/bin/rhc-chk 
Started 
.E 
=============================================================================== 
Error: test_connectivity(Test1_Connectivity) 
    ArgumentError: too few arguments 
/Library/Ruby/Gems/1.8/gems/rhc-0.94.8/bin/rhc-chk:204:in `sprintf' 
    201: message = sprintf(get_message(:errors,name),*(args.shift || '')) 
    202: solution = get_message(:solutions,name) 
    203: if solution 
    => 204:  message << "\n" << sprintf(solution,*(args.shift || '')) 
    205: end 
    206: message 
    207: end 
/Library/Ruby/Gems/1.8/gems/rhc-0.94.8/bin/rhc-chk:204:in `error_for' 
/Library/Ruby/Gems/1.8/gems/rhc-0.94.8/bin/rhc-chk:270:in `test_connectivity' 
=============================================================================== 
F 
=============================================================================== 
Failure: 
    You need to be able to connect to the server in order to test authentication. 
    <false> is not true. 
test_authentication(Test2_Authentication) 
/Library/Ruby/Gems/1.8/gems/rhc-0.94.8/bin/rhc-chk:280:in `test_authentication' 
    277: # Checking Authentication 
    278: # 
    279: def test_authentication 
    => 280:  assert $connectivity, error_for(:cant_connect) 
    281: 
    282:  data = {'rhlogin' => $rhlogin} 
    283:  response = fetch_url_json("/broker/userinfo", data) 
=============================================================================== 
..F 
=============================================================================== 
Failure: You must have an account on the server in order to test: whether you have a valid key loaded in your agent. 
test_03_remote_ssh_keys(Test3_SSH) 
/Library/Ruby/Gems/1.8/gems/rhc-0.94.8/bin/rhc-chk:317:in `require_login' 
    314: end 
    315: 
    316: def require_login(test) 
    => 317:  flunk(error_for(:no_account,test)) if $user_info.nil? 
    318: end 
    319: 
    320: def require_remote_keys(test) 
/Library/Ruby/Gems/1.8/gems/rhc-0.94.8/bin/rhc-chk:321:in `require_remote_keys' 
/Library/Ruby/Gems/1.8/gems/rhc-0.94.8/bin/rhc-chk:376:in `test_03_remote_ssh_keys' 
=============================================================================== 
F 
=============================================================================== 
Failure: You must have an account on the server in order to test: connecting to your applications. 
test_04_ssh_connect(Test3_SSH) 
/Library/Ruby/Gems/1.8/gems/rhc-0.94.8/bin/rhc-chk:317:in `require_login' 
    314: end 
    315: 
    316: def require_login(test) 
    => 317:  flunk(error_for(:no_account,test)) if $user_info.nil? 
    318: end 
    319: 
    320: def require_remote_keys(test) 
/Library/Ruby/Gems/1.8/gems/rhc-0.94.8/bin/rhc-chk:383:in `test_04_ssh_connect' 
=============================================================================== 


Finished in 2.403595 seconds. 

7 tests, 8 assertions, 3 failures, 1 errors, 0 pendings, 0 omissions, 0 notifications 
42.8571% passed 

不真正理解爲什麼它無法連接。我能夠使用:rhc域名顯示,沒有問題。

任何人有任何建議如何解決這個問題?

回答

2

這是一個bug應該在即將發佈的版本中得到修復。即使你看到這個錯誤,它也不應該影響任何其他行爲。

+0

現在已解決 - 先前由'roc域狀態'處理的檢查現在自動運行'rhc setup' – Clayton 2013-05-31 03:43:21