Getting error when port forwarding in Openshift

Solution Verified - Updated -

Issue

  • When trying to find a free port to forward the loop is interrupted and below error is seen:
Address already in use - bind(2) while forwarding port 8080. Trying local port 8081
I, [2014-07-31T11:56:31.113368 #7900]  INFO -- net.ssh.connection.session[3008b10d4]: closing remaining channels (0 open)
I, [2014-07-31T11:56:31.113368 #7900]  INFO -- net.ssh.connection.session[30054b8cc]: closing remaining channels (0 open)
/usr/lib/ruby/gems/1.9.1/gems/net-ssh-2.9.1/lib/net/ssh/service/forward.rb:72:in `initialize': Operation not permitted - bind(2) (Errno::EPERM)
        from /usr/lib/ruby/gems/1.9.1/gems/net-ssh-2.9.1/lib/net/ssh/service/forward.rb:72:in `new'
        from /usr/lib/ruby/gems/1.9.1/gems/net-ssh-2.9.1/lib/net/ssh/service/forward.rb:72:in `local'
        from /usr/lib/ruby/gems/1.9.1/gems/rhc-1.24.4/lib/rhc/commands/port_forward.rb:132:in `block (3 levels) in run'
        from /usr/lib/ruby/gems/1.9.1/gems/rhc-1.24.4/lib/rhc/commands/port_forward.rb:126:in `each'
        from /usr/lib/ruby/gems/1.9.1/gems/rhc-1.24.4/lib/rhc/commands/port_forward.rb:126:in `block (2 levels) in run'
        from /usr/lib/ruby/gems/1.9.1/gems/net-ssh-2.9.1/lib/net/ssh.rb:210:in `start'
        from /usr/lib/ruby/gems/1.9.1/gems/rhc-1.24.4/lib/rhc/commands/port_forward.rb:124:in `block in run'
        from /usr/lib/ruby/gems/1.9.1/gems/net-ssh-2.9.1/lib/net/ssh.rb:210:in `start'
        from /usr/lib/ruby/gems/1.9.1/gems/rhc-1.24.4/lib/rhc/commands/port_forward.rb:85:in `run'
        from /usr/lib/ruby/gems/1.9.1/gems/rhc-1.24.4/lib/rhc/commands.rb:285:in `execute'
        from /usr/lib/ruby/gems/1.9.1/gems/rhc-1.24.4/lib/rhc/commands.rb:276:in `block (3 levels) in to_commander'
        from /usr/lib/ruby/gems/1.9.1/gems/commander-4.2.0/lib/commander/command.rb:180:in `call'
        from /usr/lib/ruby/gems/1.9.1/gems/commander-4.2.0/lib/commander/command.rb:180:in `call'
        from /usr/lib/ruby/gems/1.9.1/gems/commander-4.2.0/lib/commander/command.rb:155:in `run'
        from /usr/lib/ruby/gems/1.9.1/gems/commander-4.2.0/lib/commander/runner.rb:421:in `run_active_command'
        from /usr/lib/ruby/gems/1.9.1/gems/rhc-1.24.4/lib/rhc/command_runner.rb:73:in `run!'
        from /usr/lib/ruby/gems/1.9.1/gems/commander-4.2.0/lib/commander/delegates.rb:12:in `run!'
        from /usr/lib/ruby/gems/1.9.1/gems/rhc-1.24.4/lib/rhc/cli.rb:37:in `start'
        from /usr/lib/ruby/gems/1.9.1/gems/rhc-1.24.4/bin/rhc:20:in `<top (required)>'
        from /usr/bin/rhc:23:in `load'
        from /usr/bin/rhc:23:in `<main>'

Environment

  • Openshift Enterprise
    • 2.0
  • Windows 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.