Bug 975746 - Open port 5000
Open port 5000
Status: CLOSED CURRENTRELEASE
Product: OpenShift Origin
Classification: Red Hat
Component: Containers (Show other bugs)
2.x
All Unspecified
medium Severity high
: ---
: ---
Assigned To: Rob Millner
libra bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-19 05:16 EDT by Ivar Pruijn
Modified: 2015-05-14 19:12 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-06-24 10:47:32 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ivar Pruijn 2013-06-19 05:16:30 EDT
Description of problem:

Not all commands on the Heroku toolbelt work, as port 5000 is blocked for outgoing traffic on OpenShift gears. 

Version-Release number of selected component (if applicable): -

How reproducible: Install Heroku toolbelt on a Cloud9 IDE workspace and run certain commands that require port 5000 to be open.

Steps to Reproduce:
1. Open/create a Cloud9 IDE workspace
2. Install Heroku toolbelt (https://docs.c9.io/deploying_via_cli.html)
3. Run a command like $ heroku run rake about 

Actual results:

$ heroku run rake about 

Running `rake about` attached to terminal... up, run.6283 
! Heroku client internal error. 
! Search for help at: https://help.heroku.com 
! Or report a bug at: https://github.com/heroku/heroku/issues/new 

Error: Permission denied - connect(2) (Errno::EACCES) 
Backtrace: /var/lib/stickshift/51b97f9c4382ecfddb0000ed/app-root/data/.heroku/client/lib/heroku/client/rendezvous.rb:40:in `initialize' 
/var/lib/stickshift/51b97f9c4382ecfddb0000ed/app-root/data/.heroku/client/lib/heroku/client/rendezvous.rb:40:in `open' 
/var/lib/stickshift/51b97f9c4382ecfddb0000ed/app-root/data/.heroku/client/lib/heroku/client/rendezvous.rb:40:in `block in start' 
/opt/rh/ruby193/root/usr/share/ruby/timeout.rb:69:in `timeout' 
/var/lib/stickshift/51b97f9c4382ecfddb0000ed/app-root/data/.heroku/client/lib/heroku/client/rendezvous.rb:31:in `start' 
/var/lib/stickshift/51b97f9c4382ecfddb0000ed/app-root/data/.heroku/client/lib/heroku/command/run.rb:132:in `rendezvous_session' 
/var/lib/stickshift/51b97f9c4382ecfddb0000ed/app-root/data/.heroku/client/lib/heroku/command/run.rb:119:in `run_attached' 
/var/lib/stickshift/51b97f9c4382ecfddb0000ed/app-root/data/.heroku/client/lib/heroku/command/run.rb:24:in `index' 
/var/lib/stickshift/51b97f9c4382ecfddb0000ed/app-root/data/.heroku/client/lib/heroku/command.rb:206:in `run' 
/var/lib/stickshift/51b97f9c4382ecfddb0000ed/app-root/data/.heroku/client/lib/heroku/cli.rb:28:in `start' 
/var/lib/stickshift/51b97f9c4382ecfddb0000ed/app-root/data/bin/heroku:25:in `<main>' 

Command: heroku run rake about 
Version: heroku-toolbelt/2.39.4 (x86_64-linux) ruby/1.9.3

Expected results:

Running $ heroku rake about

Additional info:

Same issue as here: https://github.com/heroku/heroku/issues/407
Comment 1 Rob Millner 2013-06-19 19:39:40 EDT
Pull request adds port 5000 to the allowed list in SELinux.

https://github.com/openshift/li/pull/1659
Comment 2 openshift-github-bot 2013-06-19 20:54:51 EDT
Commit pushed to master at https://github.com/openshift/li

https://github.com/openshift/li/commit/e217e16d2b5db36f4e252ac1615229156d67caac
Bug 975746 - Access port 5000 for heroku toolkit
Comment 3 Meng Bo 2013-06-20 01:55:17 EDT
Reproduce the issue on devenv-stage_378,

1.Create app on devenv-stage_378
2.SSH login to the app
3.
$cd app-repo/data
$export HOME=$PWD
$wget http://assets.heroku.com/heroku-client/heroku-client.tgz
$tar xzvf heroku-client.tgz
$export PATH=$PATH:$PWD/heroku-client/bin

>heroku login
Enter your Heroku credentials.
Email: bmeng@redhat.com
Password (typing will be hidden): 
Authentication successful.

>heroku apps
=== My Apps
protected-gorge-8300

>heroku run rake about --app protected-gorge-8300
Running `rake about` attached to terminal... up, run.8292
 !    Heroku client internal error.
 !    Search for help at: https://help.heroku.com
 !    Or report a bug at: https://github.com/heroku/heroku/issues/new

    Error:       Permission denied - connect(2) (Errno::EACCES)
    Backtrace:   /var/lib/openshift/500773557394547283066880/app-root/data/heroku-client/lib/heroku/client/rendezvous.rb:40:in `initialize'
                 /var/lib/openshift/500773557394547283066880/app-root/data/heroku-client/lib/heroku/client/rendezvous.rb:40:in `open'
                 /var/lib/openshift/500773557394547283066880/app-root/data/heroku-client/lib/heroku/client/rendezvous.rb:40:in `start'
                 /usr/lib/ruby/1.8/timeout.rb:67:in `timeout'
                 /var/lib/openshift/500773557394547283066880/app-root/data/heroku-client/lib/heroku/client/rendezvous.rb:31:in `start'
                 /var/lib/openshift/500773557394547283066880/app-root/data/heroku-client/lib/heroku/command/run.rb:132:in `rendezvous_session'
                 /var/lib/openshift/500773557394547283066880/app-root/data/heroku-client/lib/heroku/command/run.rb:119:in `run_attached'
                 /var/lib/openshift/500773557394547283066880/app-root/data/heroku-client/lib/heroku/command/run.rb:24:in `index'
                 /var/lib/openshift/500773557394547283066880/app-root/data/heroku-client/lib/heroku/command.rb:206:in `send'
                 /var/lib/openshift/500773557394547283066880/app-root/data/heroku-client/lib/heroku/command.rb:206:in `run'
                 /var/lib/openshift/500773557394547283066880/app-root/data/heroku-client/lib/heroku/cli.rb:28:in `start'
                 /var/lib/openshift/500773557394547283066880/app-root/data/heroku-client/bin/heroku:24

    Command:     heroku run rake about --app protected-gorge-8300
    Version:     heroku-toolbelt/2.39.4 (x86_64-linux) ruby/1.8.7


And issue fixed on devenv_3390,
In the last step,

>heroku run rake about --app protected-gorge-8300
Running `rake` attached to terminal... up, run.3576
The source :rubygems is deprecated because HTTP requests are insecure.
Please change your source to 'https://rubygems.org' if possible, or 'http://rubygems.org' if not.
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)

(See full trace by running task with --trace)


Move bug to verified.

Note You need to log in before you can comment on or make changes to this bug.