Bug 1184179

Summary: Unable to create Rails 4.2.0 app with Ruby 2.0 cart
Product: OpenShift Online Reporter: Chris Ryan <cryan>
Component: ImageAssignee: Maciej Szulik <maszulik>
Status: CLOSED WONTFIX QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.xCC: anton, jokerman, me, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-23 15:29:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
stack trace none

Description Chris Ryan 2015-01-20 18:34:28 UTC
Description of problem:
There is a gem conflict when installing Rails 4.2 on a Ruby 2.0 cart, generating a Phusion Passenger error.

Version-Release number of selected component (if applicable):
devenv_5400 (ami-3e4a3456)

How reproducible:
Always

Steps to Reproduce:
ensure that rails 4.2 is installed
gem install rails
rails --version (should return at least Rails 4.2.0)
1. Create a ruby-2.0 application
rhc create-app railstest ruby-2.0
2. Create a rails app
cd railstest
rm -rf *
rails new ./ -f --skip-active-record
echo -e "gem 'sqlite3'\ngem 'execjs'\ngem 'therubyracer'">> Gemfile
bundle install
git add -A .; git commit -m "Test"; git push
3. Visit the app's URL

Actual results:
Passenger returns an error:
You have already activated rack 1.5.2, but your Gemfile requires rack 1.6.0. Using bundle exec may solve this. (Gem::LoadError)

Attached full stack trace

Expected results:
The app should be accessible via URL

Additional info:

Comment 1 Chris Ryan 2015-01-20 19:49:47 UTC
Created attachment 982009 [details]
stack trace

Comment 2 Maciej Szulik 2015-01-23 15:29:28 UTC
OpenShift is internally dependent on RHEL 6.6 SCL ror40 [1] which includes rack version 1.5.2 and passenger 4.0.18. Unfortunately none of this cannot be updated as for today. Thus closing this bug as won't fix.


[1] https://www.softwarecollections.org/en/scls/rhscl/ror40/