Bug 1089958 - Connection refused error on ruby-1.8 log
Summary: Connection refused error on ruby-1.8 log
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Vojtech Vitek
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-22 09:50 UTC by Qixuan Wang
Modified: 2015-05-15 00:41 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-15 10:28:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 984867 0 low CLOSED Errno::ECONNREFUSED shown in /var/lib/openshift/<uuid>/ruby/logs/error_log with ruby-1.9 app 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1044980 0 high CLOSED Ruby app trys to load module and connection is refused 2021-02-22 00:41:40 UTC

Internal Links: 984867 1044980

Description Qixuan Wang 2014-04-22 09:50:56 UTC
Description of problem:
Create a ruby-1.8 app and check ruby.log on the gear, it shows some error:
 
[Tue Apr 22 03:51:11 2014] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:openshift_t:s0:c5,c423
[Tue Apr 22 03:51:12 2014] [notice] Digest: generating secret for digest authentication ...
[Tue Apr 22 03:51:12 2014] [notice] Digest: done
[Tue Apr 22 03:51:12 2014] [notice] Apache/2.2.15 (Unix) Phusion_Passenger/3.0.21 configured -- resuming normal operations
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.21/helper-scripts/prespawn:105:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
	from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.21/helper-scripts/prespawn:105:in `new'
	from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.21/helper-scripts/prespawn:105:in `connect'
	from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.21/helper-scripts/prespawn:86:in `socket'
	from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.21/helper-scripts/prespawn:90:in `head_request'
	from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.21/helper-scripts/prespawn:145

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

How reproducible:
Always

Steps to Reproduce:
1. Create a ruby-1.8 app
# rhc app create rb18 ruby-1.8

2. SSH into the gear and check ruby.log
# rhc ssh rb18
> cat $OPENSHIFT_LOG_DIR/ruby.log

Actual results:
2. Refer to descpriton


Expected results:
[Tue Apr 22 01:20:53 2014] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:openshift_t:s0:c4,c317
[Tue Apr 22 01:20:53 2014] [notice] Digest: generating secret for digest authentication ...
[Tue Apr 22 01:20:53 2014] [notice] Digest: done
[Tue Apr 22 01:20:53 2014] [notice] Apache/2.2.15 (Unix) Phusion_Passenger/3.0.21 configured -- resuming normal operations


Additional info:
ruby-1.9 doesn't have the issue

Comment 1 Vojtech Vitek 2014-04-22 14:40:01 UTC
@Mrunal, @Troy, can we fix this bug in the Ruby 1.8 Passenger RPM the same way as for Ruby 1.9 Passenger (as stated in Bug 984867 Comment 29)?

Comment 2 Troy Dawson 2014-04-22 15:21:17 UTC
The same patch works for our ruby 1.8 version of passenger.  We probably should have patched them both when we did this the first time.
I am building a new ruby 1.8 version of rubygem-passenger right now.

Comment 3 Qixuan Wang 2014-06-03 05:06:32 UTC
The issue can't be reproduced STG (devenv_861):

[rb18-salaxg.stg.rhcloud.com 538d547cdbd93cc773001008]\> cat app-root/logs/ruby.log 
[Tue Jun 03 00:52:42 2014] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:openshift_t:s0:c4,c107
[Tue Jun 03 00:52:43 2014] [notice] Digest: generating secret for digest authentication ...
[Tue Jun 03 00:52:43 2014] [notice] Digest: done
[Tue Jun 03 00:52:43 2014] [notice] Apache/2.2.15 (Unix) Phusion_Passenger/3.0.21 configured -- resuming normal operations
- - - [03/Jun/2014:00:52:44 -0400] "HEAD / HTTP/1.1" 200 - "-" "-"
- - - [03/Jun/2014:00:52:45 -0400] "HEAD / HTTP/1.1" 200 - "-" "-"

Comment 4 Ben Parees 2014-07-03 20:30:47 UTC
Vojtech, should this be on_qa?

Comment 5 Vojtech Vitek 2014-07-04 09:57:48 UTC
@Ben Yes, I think so. I believe the new RPMs (comment 2) are already built and available at the moment.

Thanks for noticing!

Comment 6 Qixuan Wang 2014-07-07 02:41:08 UTC
Verified on devenv_4940, the issue fixed, thanks.

[rb18-d.dev.rhcloud.com 53ba40109eb470726200002e]\> cat $OPENSHIFT_LOG_DIR/ruby.log
[Mon Jul 07 02:37:23 2014] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:openshift_t:s0:c0,c1001
[Mon Jul 07 02:37:23 2014] [notice] Digest: generating secret for digest authentication ...
[Mon Jul 07 02:37:23 2014] [notice] Digest: done
[Mon Jul 07 02:37:23 2014] [notice] Apache/2.2.15 (Unix) Phusion_Passenger/3.0.21 configured -- resuming normal operations
- - - [07/Jul/2014:02:37:25 -0400] "HEAD / HTTP/1.1" 200 - "-" "-"
- - - [07/Jul/2014:02:37:26 -0400] "HEAD / HTTP/1.1" 200 - "-" "-"


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