Bug 1212583 - Ruby app trys to load module and connection is refused
Summary: Ruby app trys to load module and connection is refused
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ImageStreams
Version: 2.2.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Timothy Williams
QA Contact: libra bugs
URL:
Whiteboard:
Depends On: 1044980
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-16 17:29 UTC by Eric Rich
Modified: 2019-06-13 08:24 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
The Passenger rubygem previously prespawned on the local 127.0.0.1 IP address. As a result, an error was reported at startup in the Ruby log. This bug fix updates Passenger to connect in prespawn to the proper gear IP address, and as a result prespawn functions properly and no error is reported in the logs at startup.
Clone Of: 1044980
Environment:
Last Closed: 2015-07-21 19:12:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1463 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise 2.2.6 bug fix and enhancement update 2015-07-21 23:11:33 UTC

Comment 1 Eric Rich 2015-04-16 17:34:40 UTC
This seems to be fixed with BZ (https://bugzilla.redhat.com/show_bug.cgi?id=1044980) and Errata (http://rhn.redhat.com/errata/RHBA-2014-0781.html) for 1.8, but not 1.9.

Comment 4 Brenton Leanhardt 2015-04-16 17:47:34 UTC
The issue in ruby 1.8 was a confusing error message but no functionality was technically broken.  Is this the same case or is functionality broken in some way?

Comment 6 Gaoyun Pei 2015-04-17 06:48:29 UTC
Could reproduce with ruby193-rubygem-passenger-3.0.21-3.el6op.x86_64.
This should be the same issue with ruby 1.8. 
Hardcode '127.0.0.1' could be seen in /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/helper-scripts/prespawn

 99 class TCPPrespawnLocation < PrespawnLocation
100         def request_port
101                 @uri.port
102         end
103 
104         def connect
105                 TCPSocket.new('127.0.0.1', request_port)
106         end
107 end

Comment 7 Eric Rich 2015-04-17 11:31:29 UTC
(In reply to Brenton Leanhardt from comment #4)
> The issue in ruby 1.8 was a confusing error message but no functionality was
> technically broken.  Is this the same case or is functionality broken in
> some way?

Customer confirmed that this is not something that breaks the application, but is a reporting issue.

Comment 15 Gaoyun Pei 2015-06-29 05:47:27 UTC
Verify this bug with ruby193-rubygem-passenger-3.0.21-4.el6op.x86_64

The hardcode has been removed. 
No error found in ruby-1.8/ruby-1.9 application log.

Comment 17 errata-xmlrpc 2015-07-21 19:12:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-1463.html


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