Bug 1110287 - Got 503 error after adding one gem file for scalable ruby-1.8 app
Summary: Got 503 error after adding one gem file for scalable ruby-1.8 app
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: Jakub Hadvig
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 1112152
TreeView+ depends on / blocked
 
Reported: 2014-06-17 11:25 UTC by zhaozhanqi
Modified: 2023-09-14 02:10 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1112152 (view as bug list)
Environment:
Last Closed: 2014-07-15 10:30:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description zhaozhanqi 2014-06-17 11:25:39 UTC
Description of problem:
Given a ruby-1.8 cartridge app, install gem package by Gemfile, after git push,the app will cannot be accessible.

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

How reproducible:
always

Steps to Reproduce:
1. Create one ruby-1.8 app
2. Add 'Gemfile' in the repo with following content:
   
   source 'https://rubygems.org'

   gem 'sinatra'

3. bundle install
4. git push

Actual results:
after step 4: 
for non-scale ruby-1.8, when accessing show "Ruby (Rack) application could not be started"
for scale ruby-1.8, app will cannot be accessible: 503 error

Expected results:
app can work well

Additional info:
ruby-1.9 can work well.
and check the log:
rhc tail crb18s
==> app-root/logs/haproxy_ctld.log <==
I, [2014-06-17T08:07:48.764395 #31496]  INFO -- : Starting haproxy_ctld
I, [2014-06-17T08:50:13.606026 #13074]  INFO -- : Starting haproxy_ctld

==> app-root/logs/haproxy.log <==
[ALERT] 167/081210 (31928) : proxy 'express' has no server available!
[WARNING] 167/085012 (31928) : Server express/local-gear is DOWN for maintenance.
[WARNING] 167/085013 (13053) : config : log format ignored for proxy 'stats' since it has no log address.
[WARNING] 167/085013 (13053) : config : log format ignored for proxy 'express' since it has no log address.
[WARNING] 167/085013 (13053) : Server express/local-gear is DOWN, reason: Layer7 wrong status, code: 500, info: "Internal Server Error", check duration: 354ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[ALERT] 167/085013 (13053) : proxy 'express' has no server available!
[WARNING] 167/085014 (13053) : Server express/local-gear is DOWN for maintenance.
[WARNING] 167/085015 (13053) : Server express/local-gear is UP (leaving maintenance).
[WARNING] 167/085015 (13053) : Server express/local-gear is DOWN, reason: Layer7 wrong status, code: 500, info: "Internal Server Error", check duration: 191ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[ALERT] 167/085015 (13053) : proxy 'express' has no server available!

==> app-root/logs/ruby.log <==
	from config.ru:1
- - - [17/Jun/2014:09:08:36 -0400] "GET / HTTP/1.0" 500 5066 "-" "-"
*** Exception LoadError in Class (no such file to load -- thread-dump) (process 13200, thread #<Thread:0x7f44745ed368>):
	from config.ru:2:in `require'
	from config.ru:2
	from /var/lib/openshift/53a02f76b918773b65000ddb/app-root/runtime/repo/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
	from /var/lib/openshift/53a02f76b918773b65000ddb/app-root/runtime/repo/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
	from config.ru:1:in `new'
	from config.ru:1

Comment 2 openshift-github-bot 2014-06-19 19:40:09 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/f4c2f7d6fe7363ba30f4ca49361112fea49445ed
Bug 1110287: Removing thread-dump dependency from ruby-1.8 cunfig.ru template

Comment 3 Brenton Leanhardt 2014-06-20 02:15:37 UTC
Did this only happen when rubygem-thread-dump wasn't installed on a Node or was there some other problem?  I'm curious if this is relevant for OSE.

Comment 4 zhaozhanqi 2014-06-20 06:32:32 UTC
Verified this bug on devenv-stage_888, both non-scale and scale ruby-1.8 app work well.

Comment 5 Ben Parees 2014-06-20 12:53:09 UTC
Jakub worked the bug, bouncing the needinfo to him.

Comment 6 Red Hat Bugzilla 2023-09-14 02:10:12 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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