Unable to create a scalable application using rhc on Windows

Solution In Progress - Updated -

Environment

  • OpenShift Enterprise 2.2
  • Windows used to run rhc tools
  • ruby 1.9.3
  • HTTP_PROXY variable set

Issue

Creating scalable applications fail if HTTP_PROXY is set in system environment variables. All other functions work. How can this be fixed?

Resolution

This is a know issue with network handling in ruby 1.9.3. To work around this issue remove the HTTP_PROXY environment variable or upgrade to ruby 2.2 or later

note that net-ssh-2.9.3.beta1 or newer needs to be used, older versions of the gem are not compatible with ruby 2.2

Diagnostic Steps

Trying to create a scalable app generates an error similar to the one below:

rhc app-create scalable php-5.4 -s -vvv
Application Options
-------------------
Domain:     demo
Cartridges: php-5.4
Gear Size:  default
Scaling:    yes

Creating application 'scalable' ... An unexpected error occured: A non-blocking socket operation could not be completed immediately.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

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