通过搜索在Openshift上访问我的Postgres数据库,我目前面临使用net-ssh的问题.
为了能够从我的本地DB IDE访问DB,我需要执行:
rhc port-forward myappname
但执行会返回此错误: Checking available ports ... Could not parse PKey: no start line
正如你在这篇文章中看到的那样(另一个例如这个),修复是回到net-ssh的稳定版本.2.9.2.我成功完成了什么.
但是现在,运行rhc port-forward myappname会给我以下错误:.../2.2.0/rubygems/core_ext/kernel_require.rb:54:in 'require': cannot load such file
而解决办法是升级净SSH到2.9.3-beta1版(看到这个帖子).
这真是太奇怪了!似乎"蛇正在咬自己的尾巴"(不知道法语表达是否有英文翻译).
请注意,我已尝试使用新的ssh key gen(自动和手动)进行干净设置.我的系统运行'Win 7 64bits.
我卸载/安装了最新版本的Ruby.重新安装rhc.最新版本在rhc-1.36.4上运行.问题还在继续.
你能帮我吗?我应该安装旧版本的ssh-net和/或Ruby(由于新版本的rhc,我不允许使用ssh-net 2.5.2)?
(对不起,我的英语不好)
我按照Openshift网站上的说明安装了rhc.当我跑步时,一切似乎都很好gem install rhc,hgem update rhc但是当我试着打电话时,rhc我得到以下信息.我已经尝试重新安装ruby和git,包括32和64条消息.我还认为问题是缺少openssl,但安装没有任何区别.
我已经没有想法了,任何帮助都会非常感激
c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `requir
e': cannot load such file -- dl/import (LoadError)
from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:
54:in `require'
from c:/local/Ruby22/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/
authentication/pageant.rb:1:in `<top (required)>'
from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:
54:in `require'
from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:
54:in `require'
from c:/local/Ruby22/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/
authentication/agent/socket.rb:5:in `<top (required)>'
from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:
54:in `require'
from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:
54:in `require'
from c:/local/Ruby22/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/
authentication/agent.rb:22:in `<top (required)>'
from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:
54:in `require'
from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:
54:in `require'
from c:/local/Ruby22/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/
authentication/key_manager.rb:4:in `<top (required)>'
from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:
54:in `require'
from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:
54:in `require'
from c:/local/Ruby22/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/ …Run Code Online (Sandbox Code Playgroud) 这是我第一次尝试openhift或类似的服务而且我遇到了问题rhc setup.
我根据这里的文档安装了Ruby,Git和rhc ,但是当我rhc setup在命令提示符下运行命令时,我收到以下错误:
C:\Users\Richie>rhc setup
C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
: cannot load such file -- dl/import (LoadError)
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/au
thentication/pageant.rb:1:in `<top (required)>'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
:in `require'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/au
thentication/agent/socket.rb:5:in `<top (required)>'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
:in `require'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/au
thentication/agent.rb:22:in `<top (required)>'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
:in `require'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/au
thentication/key_manager.rb:4:in `<top (required)>'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
:in `require'
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
:in `require'
from …Run Code Online (Sandbox Code Playgroud) 我一直在关注openshift的开始,但我遇到了这个错误.
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.
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.
Enter the server hostname: |openshift.redhat.com| C:/Ruby193/lib/ruby/gems/1.9.1/gems/highline-1.6.21/lib/highline.rb:86
4:in `gets': Invalid argument - <STDIN> (Errno::EINVAL)
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/highline-1.6.21/lib/highline.rb:864:in `get_line'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/highline-1.6.21/lib/highline.rb:885:in `get_response'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/highline-1.6.21/lib/highline.rb:260:in `ask'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/highline_extensions.rb:12:in `block …Run Code Online (Sandbox Code Playgroud)