Openshift和net-ssh不兼容? (2.9.3-beta1与2.9.2) [英] Openshift and net-ssh incompatibility? (2.9.3-beta1 vs 2.9.2)

查看:86
本文介绍了Openshift和net-ssh不兼容? (2.9.3-beta1与2.9.2)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过搜索在Openshift上访问我的Postgres数据库,我目前正使用net-ssh遇到问题.

by searching to access my Postgres DB on Openshift, i'm currently facing problem using net-ssh.

  • 在这一步-请注意,已安装的Ruby版本是2.2.0,net-ssh是2.9.3-beta1

要能够从本地DB IDE访问数据库,我需要执行以下命令: rhc port-forward myappname

To be able to access the DB from my local DB IDE, i need to execute: rhc port-forward myappname

但是执行返回此错误:Checking available ports ... Could not parse PKey: no start line

But the execution returns this error: Checking available ports ... Could not parse PKey: no start line

正如您在此帖子(其他例如此),解决方法是返回到稳定版本的net-ssh. 2.9.2. 我成功完成了什么.

As you can see in this post (an other ones e.g. this one), the fix is to back to a stable version of net-ssh. the 2.9.2. What i've succesfully done.

但是现在,运行rhc port-forward myappname给我以下错误:.../2.2.0/rubygems/core_ext/kernel_require.rb:54:in 'require': cannot load such file

But now, running rhc port-forward myappname is giving me the following error: .../2.2.0/rubygems/core_ext/kernel_require.rb:54:in 'require': cannot load such file

并且解决方法是将net-ssh升级到2.9.3-Beta1版本(请参阅此

And the fix is to upgrade net-ssh to the 2.9.3-Beta1 version (see this post).

这真的很奇怪!似乎蛇咬了自己的尾巴"(不知道法语是否得到了英语翻译).

This is really weird! Seems that "the snake is biting its own tail" (don't know if that french expression got english translation).

请注意,我尝试使用新的ssh密钥生成器(自动和手动)进行干净的设置. 我的系统运行的是Win 7 64位.

Note that i've tried to make a clean setup with new ssh key gen (automatically and manually). My system is runnin' Win 7 64bits.

我进行了Ruby的最新版本的卸载/安装. 重新安装rhc. 在rhc-1.36.4上运行的最新版本.问题还在继续.

I made uninstall/install of last version of Ruby. Reinstall of rhc. Last version running on rhc-1.36.4. The problem goes on.

可以帮忙吗? 我应该安装旧版本的ssh-net和/或Ruby(由于新版本的rhc不允许使用ssh-net 2.5.2)吗?

Can you help? Should i install an older version of ssh-net and/or Ruby (i'm not allowed to use ssh-net 2.5.2 due to new version of rhc)?

(对不起我的英语不好)

(sorry for my bad english)

推荐答案

您需要使用旧版Ruby,尝试使用1.9.3或2.0,甚至2.1.

You need to use an older version of Ruby, try 1.9.3 or 2.0, or maybe even 2.1.

这篇关于Openshift和net-ssh不兼容? (2.9.3-beta1与2.9.2)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆