Bug #1352
closedMissing gems in Bundler when using Passenger
Description
This refers to the rails3 branch.
It seems Bundler installs the two "git gems" to /var/lib/gems/1.8/bundler/gems. When running "script/rails s", as root, that seems fine, but when it comes to firing up the rails3 branch under Passenger, it fails with something like:
- Exception PhusionPassenger::UnknownError in PhusionPassenger::Rack::ApplicationSpawner (https://github.com/jystewart/has_many_polymorphs.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError)) (process 12511):
A workaround is to link the bundler gems to the main directory. At the time of writing (since the directories contain git checksums) the following workaround was used:
- ln -snf /var/lib/gems/1.8/bundler/gems/has_many_polymorphs-36f15d24ca42 /var/lib/gems/1.8/gems/has_many_polymorphs
- ln -snf /var/lib/gems/1.8/bundler/gems/safemode-77d53c3c5271 /var/lib/gems/1.8/gems/safemode
Passenger then started happily. It's only a workaround though - since "script/rails s" works, I suspect there's a pathname or environment issue in Passenger itself.
For reference, this is on Debian Wheezy, Rubgems 1.3.7
Updated by Greg Sutcliffe almost 12 years ago
- Status changed from New to Assigned
- Assignee changed from Ohad Levy to Greg Sutcliffe
- Priority changed from Normal to Low
I'll test this at some point - I don't think it happens any more, but since I mentioned wheezy back then, I should re-test on wheezy.
Updated by Benjamin Papillon almost 11 years ago
- Status changed from Assigned to Closed
Not relevant anymore