Getting error when using rhc commands on an Openshift application
Issue
- Running command
rhc port-forward <APP-NAME>
results in below stack trace:
Checking available ports ... xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/buffer.rb:143:in `append': no
implicit conversion of nil into String (TypeError)
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/authentication/pageant.rb:131:in `send'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/authentication/agent/socket.rb:140:in `send_pa
cket'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/authentication/agent/socket.rb:157:in `send_an
d_wait'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/authentication/agent/socket.rb:76:in `negotiat
e!'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/authentication/agent/socket.rb:48:in `connect'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/authentication/key_manager.rb:178:in `agent'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/authentication/key_manager.rb:102:in `each_ide
ntity'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/authentication/methods/publickey.rb:19:in `aut
henticate'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/authentication/session.rb:79:in `block in auth
enticate'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/authentication/session.rb:66:in `each'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/authentication/session.rb:66:in `authenticate'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh.rb:204:in `start'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rhc-1.19.5/lib/rhc/commands/port_forward.rb:85:in `run'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rhc-1.19.5/lib/rhc/commands.rb:285:in `execute'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rhc-1.19.5/lib/rhc/commands.rb:276:in `block (3 levels) in to_commander'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/commander-4.1.5/lib/commander/command.rb:180:in `call'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/commander-4.1.5/lib/commander/command.rb:180:in `call'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/commander-4.1.5/lib/commander/command.rb:155:in `run'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/commander-4.1.5/lib/commander/runner.rb:402:in `run_active_command'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rhc-1.19.5/lib/rhc/command_runner.rb:73:in `run!'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/commander-4.1.5/lib/commander/delegates.rb:7:in `run!'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rhc-1.19.5/lib/rhc/cli.rb:37:in `start'
from xyz/openShift/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rhc-1.19.5/bin/rhc:20:in `<top (required)>'
from xyz/openShift/Ruby200-x64/bin/rhc:23:in `load'
from xyz/openShift/Ruby200-x64/bin/rhc:23:in `<main>'
Environment
- Openshift Enterprise
- 1.x
- 2.0
- Openshift Online
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.