# Bundler 1.0.0 RC makes me crazy

**URL:** <https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346>\
**Category:** Rails\
**Created:** [July 28, 2010, 6:34pm UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346 "2010-07-28T18:34:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/958977/32.png) [@ivanb](https://www.ruby-forum.com/u/ivanb)\
**Post date:** [July 28, 2010, 6:34pm UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346/1 "2010-07-28T18:34:52Z")

</div>

Hi everybody!

We recently upgraded to Rails 3 RC which requires new bundler 1.0.0 RC.  
After a day wasted trying to make it work we now give up.

Our config is as following:  
â€” Debian  
â€” Ruby Enterprise  
â€” Rails 3 RC  
â€” Apache  
â€” Passenger

We are stuck with following error thrown at us by passenger:  
git://github.com/odorcicd/authlogic.git (at rails3) is not checked out.  
Please run `bundle install` (Bundler::PathError)

Though until this upgrade everyting worked well.

We already tried to clean up all bundler caches, delete all gems,  
reinstall passenger and Ruby Enterprise but nothing helps so far.

Somebody help! 🙂

---

<div class="post-metadata">

**Author:** ![ivanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/958977/32.png) [@ivanb](https://www.ruby-forum.com/u/ivanb)\
**Post date:** [July 29, 2010, 8:38am UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346/2 "2010-07-29T08:38:20Z")

</div>

We have seen a number of reports of this error ("git://git/repo (at  
branch) is not checked out. Please run `bundle install`". This is a  
serious issue and we’re actively investigating it (by actively, I mean  
it’s what we’re going to be working on tomorrow).

Please hang on. We should have another RC in the next day or so that  
resolves this issue.

Thanks for your patience!

– Yehuda K.

---

<div class="post-metadata">

**Author:** ![ivanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/958977/32.png) [@ivanb](https://www.ruby-forum.com/u/ivanb)\
**Post date:** [July 29, 2010, 8:14am UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346/3 "2010-07-29T08:14:08Z")

</div>

> We are stuck with following error thrown at us by passenger:  
> git://github.com/odorcicd/authlogic.git (at rails3) is not checked out.  
> Please run `bundle install` (Bundler::PathError)

We have exactly the same problem with slightly different server config.  
Somehow Bundler, Passenger or whatever is not finding gems which are  
installed directly from git repos. If I vendor git gems like this:

gem “state\_machine”, :path =\> ‘vendor/git/state\_machine’

instead of

gem “state\_machine”, :git =\>  
‘git://github.com/pluginaweek/state\_machine.git’

gems are loaded, but that’s not a good solution for a long run since we  
have about 10 gems from git repos.

It seems that Bundler or Passenger has difficulties to load git gems  
because they are not installed to same gem directory. “bundle show”  
gives this output:

bundle show rspec-core (gem from git repo)  
/opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/bundler/gems/rspec-core-3c32ce5

bundle show thin (gem from rubygems)  
/opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/thin-1.2.7

Any help would be appreciated. Should I somehow add ‘bundler/gems’  
directory to some path variable or what?

---

<div class="post-metadata">

**Author:** ![ivanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/958977/32.png) [@ivanb](https://www.ruby-forum.com/u/ivanb)\
**Post date:** [July 30, 2010, 8:50am UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346/4 "2010-07-30T08:50:05Z")

</div>

Still no luck with Bundler 1.0.0 rc.2. I’m using bundler with  
–production switch. Despite that the same issue keeps appearing. Dunno  
if I’m doing something wrong or is it a unresolved bug.

---

<div class="post-metadata">

**Author:** ![ivanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/958977/32.png) [@ivanb](https://www.ruby-forum.com/u/ivanb)\
**Post date:** [July 30, 2010, 9:17am UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346/5 "2010-07-30T09:17:40Z")

</div>

Matias KÃ¤kelÃ¤ wrote:

> Still no luck with Bundler 1.0.0 rc.2.

Same for me.

---

<div class="post-metadata">

**Author:** ![ivanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/958977/32.png) [@ivanb](https://www.ruby-forum.com/u/ivanb)\
**Post date:** [July 30, 2010, 10:40am UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346/6 "2010-07-30T10:40:57Z")

</div>

Matias KÃ¤kelÃ¤ wrote:

> Ok, a workaround for the issue is to chmod 777 -R the vendor/gems  
> directory. That seemed to make it work.

Couldn’t find such path under our Rails root. I created ‘gems’ directory  
in [Rails root]/vendor but still no luck.

---

<div class="post-metadata">

**Author:** ![ivanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/958977/32.png) [@ivanb](https://www.ruby-forum.com/u/ivanb)\
**Post date:** [July 30, 2010, 9:36am UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346/7 "2010-07-30T09:36:34Z")

</div>

Ivan Brykov wrote:

> Matias KÃ¤kelÃ¤ wrote:
> 
> > Still no luck with Bundler 1.0.0 rc.2.
> 
> Same for me.

Ok, a workaround for the issue is to chmod 777 -R the vendor/gems  
directory. That seemed to make it work.

---

<div class="post-metadata">

**Author:** ![ivanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/958977/32.png) [@ivanb](https://www.ruby-forum.com/u/ivanb)\
**Post date:** [July 30, 2010, 5:37pm UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346/8 "2010-07-30T17:37:37Z")

</div>

Does this mean that vendor/gems is owned by a different user than the  
one booting the server?

---

<div class="post-metadata">

**Author:** ![ivanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/958977/32.png) [@ivanb](https://www.ruby-forum.com/u/ivanb)\
**Post date:** [July 30, 2010, 11:46am UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346/9 "2010-07-30T11:46:10Z")

</div>

Ivan Brykov wrote:

> Matias KÃ¤kelÃ¤ wrote:
> 
> > Ok, a workaround for the issue is to chmod 777 -R the vendor/gems  
> > directory. That seemed to make it work.
> 
> Couldn’t find such path under our Rails root. I created ‘gems’ directory  
> in [Rails root]/vendor but still no luck.

Vendor gems is a custom directory supplied with --path switch. Default  
with --production switch should be vendor/bundle.

---

<div class="post-metadata">

**Author:** ![ivanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/958977/32.png) [@ivanb](https://www.ruby-forum.com/u/ivanb)\
**Post date:** [July 30, 2010, 6:31pm UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346/10 "2010-07-30T18:31:31Z")

</div>

It’s still possible that the Ruby processes are being run as a  
different user. Can you run ps and take a look?

– Yehuda

---

<div class="post-metadata">

**Author:** ![ivanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/958977/32.png) [@ivanb](https://www.ruby-forum.com/u/ivanb)\
**Post date:** [July 30, 2010, 6:07pm UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346/11 "2010-07-30T18:07:38Z")

</div>

Yehuda K. wrote:

> Does this mean that vendor/gems is owned by a different user than the  
> one booting the server?

No, to isolate the issue, we’ve been running everything as root, nginx,  
bundler, etc.

naturally vendor/gems is owned by root, but still bundler/passenger has  
issues if vendor/gems is not world writable.

---

<div class="post-metadata">

**Author:** ![ivanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/958977/32.png) [@ivanb](https://www.ruby-forum.com/u/ivanb)\
**Post date:** [July 30, 2010, 6:53pm UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346/12 "2010-07-30T18:53:09Z")

</div>

Yehuda K. wrote:

> It’s still possible that the Ruby processes are being run as a  
> different user. Can you run ps and take a look?

Thanks, it wasn’t obvious to check the ownership of each and every  
process. Alas, this might have been the culprit:

nobody 10560 1.2 2.0 190736 83916 ? S 19:34 0:05 Rack:  
/var/www/html/app/current

I’m now using passenger\_default\_user option in nginx config. Let’s hope  
that that’ll fix the issue.

---

<div class="post-metadata">

**Author:** ![ivanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/958977/32.png) [@ivanb](https://www.ruby-forum.com/u/ivanb)\
**Post date:** [July 30, 2010, 10:07pm UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346/13 "2010-07-30T22:07:45Z")

</div>

Yehuda K. wrote:

> Can you ls -alt vendor/gems?
> 
> I’m really curious about this and want to get to the bottom of it.
> 
> – Yehuda

Yes I can. Should I see something worthwhile with that command?

Btw. unfortunately I’m going on holidays on tomorrow, so I’m not able to  
access the server for a while. I can ask my colleague to follow this  
thread though.

---

<div class="post-metadata">

**Author:** ![ivanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/958977/32.png) [@ivanb](https://www.ruby-forum.com/u/ivanb)\
**Post date:** [July 30, 2010, 8:22pm UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346/14 "2010-07-30T20:22:44Z")

</div>

Can you ls -alt vendor/gems?

I’m really curious about this and want to get to the bottom of it.

– Yehuda

---

<div class="post-metadata">

**Author:** ![ivanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/958977/32.png) [@ivanb](https://www.ruby-forum.com/u/ivanb)\
**Post date:** [July 30, 2010, 10:09pm UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346/15 "2010-07-30T22:09:04Z")

</div>

Output currently:

[root@srv current]# ls -alt vendor/gems  
lrwxrwxrwx 1 root root 42 Jul 30 16:38 vendor/gems -\>  
/var/www/html/app/shared/gem

---

<div class="post-metadata">

**Author:** ![ivanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/958977/32.png) [@ivanb](https://www.ruby-forum.com/u/ivanb)\
**Post date:** [August 9, 2010, 12:39pm UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346/16 "2010-08-09T12:39:53Z")

</div>

I’m in the same boat: bundler 1.0.0.rc3 cant find the gems that are  
pulled from git… Any idea when we might get a solution to this? Or is  
this a Passenger bug?

---

<div class="post-metadata">

**Author:** ![ivanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/958977/32.png) [@ivanb](https://www.ruby-forum.com/u/ivanb)\
**Post date:** [August 10, 2010, 8:22am UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346/17 "2010-08-10T08:22:25Z")

</div>

Same here. Although the work around suggested earlier (chmod 777  
vendor/gems) works.

---

<div class="post-metadata">

**Author:** ![ivanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/958977/32.png) [@ivanb](https://www.ruby-forum.com/u/ivanb)\
**Post date:** [August 4, 2010, 4:43pm UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346/18 "2010-08-04T16:43:10Z")

</div>

Just upgraded to bundler 1.0.0. rc3. Nothing has changed. When can I  
expect working solution?

---

<div class="post-metadata">

**Author:** ![ivanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/958977/32.png) [@ivanb](https://www.ruby-forum.com/u/ivanb)\
**Post date:** [August 19, 2010, 10:22am UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346/19 "2010-08-19T10:22:01Z")

</div>

> We have exactly the same problem with slightly different server config.  
> Somehow Bundler, Passenger or whatever is not finding gems which are  
> installed directly from git repos. If I vendor git gems like this:

We have the exact same issue, Matias. It only occurred today after we  
switched to Ruby Enterprise Edition, which I see you are using as well.

---

<div class="post-metadata">

**Author:** ![ivanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/958977/32.png) [@ivanb](https://www.ruby-forum.com/u/ivanb)\
**Post date:** [August 20, 2010, 7:35pm UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346/20 "2010-08-20T19:35:17Z")

</div>

ME TOO!

and here is a backtrace. Using latest rvm (0.1.46), passenger, ruby  
1.9.2-p0 (the new official release), latest rails master and bundler  
rc5. the trace shows that the correct bundler is used (from rvm  
ruby-1.9.2-p0 environment). “bundle check” reports nothing, “rails  
server” works just fine. I tried chmod 777-ing the vender directory, no  
luck. The only thing that changed during the last few weeks were the  
various new bundler RCs, new ruby (from svn), new rvm-versions (as they  
happened), and new Rails-updates (daily fresh from github). I think one  
of the bundler-rc updates must be the reason - passenger has remained  
the same for a while after all, and not too long ago (days?) everything  
still worked.

Ruby (Rack) application could not be started  
These are the possible causes:

```
*
  There may be a syntax error in the application's code. Please 

```

check for such errors and fix them.  
\*  
A required library may not installed. Please install all libraries  
that this application requires.  
\*  
The application may not be properly configured. Please check  
whether all configuration files are written correctly, fix any incorrect  
configurations, and restart this application.  
\*  
A service that the application relies on (such as the database  
server or the Ferret search engine server) may not have been started.  
Please start that service.

Further information about the error may have been written to the  
application’s log file. Please check it in order to analyse the problem.

Error message:  
git://github.com/rails/rails.git (at master) is not checked out.  
Please run `bundle install` (Bundler::GitError)  
Exception class:  
PhusionPassenger::UnknownError  
Application root:  
/home/mha/MYAPP  
Backtrace:  
# File Line Location  
0  
/home/mha/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0.rc.5/lib/bundler/source.rb  
558 in `rescue in load_spec_files' 1 /home/mha/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0.rc.5/lib/bundler/source.rb 556 in`load\_spec\_files’  
2  
/home/mha/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0.rc.5/lib/bundler/source.rb  
378 in `local_specs' 3 /home/mha/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0.rc.5/lib/bundler/source.rb 541 in`specs’  
4  
/home/mha/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0.rc.5/lib/bundler/definition.rb  
149 in `block in resolve' 5 /home/mha/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0.rc.5/lib/bundler/definition.rb 147 in`each’  
6  
/home/mha/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0.rc.5/lib/bundler/definition.rb  
147 in `resolve' 7 /home/mha/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0.rc.5/lib/bundler/definition.rb 93 in`specs’  
8  
/home/mha/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0.rc.5/lib/bundler/definition.rb  
137 in `specs_for' 9 /home/mha/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0.rc.5/lib/bundler/definition.rb 126 in`requested\_specs’  
10  
/home/mha/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0.rc.5/lib/bundler/environment.rb  
23 in `requested_specs' 11 /home/mha/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0.rc.5/lib/bundler/runtime.rb 11 in`setup’  
12  
/home/mha/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0.rc.5/lib/bundler.rb  
95 in `setup' 13 /home/mha/.rvm/gems/ruby-1.9.2-p0/gems/passenger-2.2.15/lib/phusion_passenger/utils.rb 222 in`setup\_bundler\_support’  
14  
/home/mha/.rvm/gems/ruby-1.9.2-p0/gems/passenger-2.2.15/lib/phusion\_passenger/rack/application\_spawner.rb  
105 in `block in run' 15 /home/mha/.rvm/gems/ruby-1.9.2-p0/gems/passenger-2.2.15/lib/phusion_passenger/utils.rb 323 in`report\_app\_init\_status’  
16  
/home/mha/.rvm/gems/ruby-1.9.2-p0/gems/passenger-2.2.15/lib/phusion\_passenger/rack/application\_spawner.rb  
87 in `run' 17 /home/mha/.rvm/gems/ruby-1.9.2-p0/gems/passenger-2.2.15/lib/phusion_passenger/rack/application_spawner.rb 65 in`block in spawn\_application’  
18  
/home/mha/.rvm/gems/ruby-1.9.2-p0/gems/passenger-2.2.15/lib/phusion\_passenger/utils.rb  
252 in `safe_fork' 19 /home/mha/.rvm/gems/ruby-1.9.2-p0/gems/passenger-2.2.15/lib/phusion_passenger/rack/application_spawner.rb 58 in`spawn\_application’  
20  
/home/mha/.rvm/gems/ruby-1.9.2-p0/gems/passenger-2.2.15/lib/phusion\_passenger/rack/application\_spawner.rb  
41 in `spawn_application' 21 /home/mha/.rvm/gems/ruby-1.9.2-p0/gems/passenger-2.2.15/lib/phusion_passenger/spawn_manager.rb 150 in`spawn\_application’  
22  
/home/mha/.rvm/gems/ruby-1.9.2-p0/gems/passenger-2.2.15/lib/phusion\_passenger/spawn\_manager.rb  
278 in `handle_spawn_application' 23 /home/mha/.rvm/gems/ruby-1.9.2-p0/gems/passenger-2.2.15/lib/phusion_passenger/abstract_server.rb 352 in`main\_loop’  
24  
/home/mha/.rvm/gems/ruby-1.9.2-p0/gems/passenger-2.2.15/lib/phusion\_passenger/abstract\_server.rb  
196 in `start\_synchronously’  
25  
/home/mha/.rvm/gems/ruby-1.9.2-p0/gems/passenger-2.2.15/bin/passenger-spawn-server

[Next page](https://www.ruby-forum.com/t/bundler-1-0-0-rc-makes-me-crazy/192346.md?page=2)
