failed to install Refinery on Bluehost

79 views
Skip to first unread message

giang nguyen

unread,
Aug 25, 2010, 1:38:55 PM8/25/10
to Refinery CMS
Hi all,

It keeps showing the error message in the log: "Could not load the
bundler gem. Install it with `gem install bundler`. (RuntimeError)"

and on the browser I got:

"Application error
Rails application failed to start properly"

Rails: 2.3.8
Ruby 1.8.7
Rubygems 1.3.7
Refinery 0.9.7.13

All required gems are installed in my gem directory, I also added
"ENV['GEM_PATH']='/home2/ndgiang/ruby/gems:/usr/lib64/ruby/gems/1.8'"
to file /config/environment.rb

I have install bundler at the very first step (by "gem install
bundler") and the command "gem list --local" lists my installed gem,
among them there is "bundler"

I can't figure out why the error shown. Any ideas?

Thanks!

Vladimir Krylov

unread,
Aug 26, 2010, 5:24:53 AM8/26/10
to refine...@googlegroups.com
just try to remove .bundler and .Gemfile?lock in your rails directory

2010/8/25 giang nguyen <ndgi...@gmail.com>
--
You received this message because you are subscribed to the Google
Groups "Refinery CMS" group.
To post to this group, send email to refine...@googlegroups.com
To unsubscribe from this group, send email to
refinery-cms...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/refinery-cms?hl=en

http://www.refinerycms.com



--
Vladimir Krylov
http://cyprus-city.com

giang nguyen

unread,
Aug 26, 2010, 7:03:46 AM8/26/10
to Refinery CMS
Hi Vladimir Krylov,

I removed .bundle directory and Gemfile.lock, it still the same. still
that error message!

Any ideas?

On 26 Tháng Tám, 16:24, Vladimir Krylov <s6nu...@gmail.com> wrote:
> just try to remove .bundler and .Gemfile?lock in your rails directory
>
> 2010/8/25 giang nguyen <ndgian...@gmail.com>
>
>
>
> > Hi all,
>
> > It keeps showing the error message in the log: "Could not load the
> > bundler gem. Install it with `gem install bundler`. (RuntimeError)"
>
> > and on the browser I got:
>
> > "Application error
> > Rails application failed to start properly"
>
> > Rails: 2.3.8
> > Ruby 1.8.7
> > Rubygems 1.3.7
> > Refinery 0.9.7.13
>
> > All required gems are installed in my gem directory, I also added
> > "ENV['GEM_PATH']='/home2/ndgiang/ruby/gems:/usr/lib64/ruby/gems/1.8'"
> > to file /config/environment.rb
>
> > I have install bundler at the very first step (by "gem install
> > bundler") and the command "gem list --local" lists my installed gem,
> > among them there is "bundler"
>
> > I can't figure out why the error shown. Any ideas?
>
> > Thanks!
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Refinery CMS" group.
> > To post to this group, send email to refine...@googlegroups.com
> > To unsubscribe from this group, send email to
> > refinery-cms...@googlegroups.com<refinery-cms%2Bunsu...@googlegroups.com>

Lee Irving(MagpieUK)

unread,
Aug 26, 2010, 9:00:11 AM8/26/10
to Refinery CMS
What happens when you run 'bundle install'

Vladimir Krylov

unread,
Aug 26, 2010, 9:15:36 AM8/26/10
to refine...@googlegroups.com
Yeah, you need to do this after removing. I forgot to say this :-D

2010/8/26 Lee Irving(MagpieUK) <irvi...@gmail.com>

giang nguyen

unread,
Aug 26, 2010, 10:07:49 AM8/26/10
to Refinery CMS
Hi Lee and Vladimir,

After removing file and directory as Vladimir recommended, I run
"bundle install" and the output is:

"narb...@narblist.org [~/rails/test]# bundle install
Fetching source index from http://gemcutter.org/
Using rake (0.8.7) from bundler gems
Using activesupport (2.3.8) from bundler gems
Using rack (1.1.0) from bundler gems
Using actionpack (2.3.8) from bundler gems
Using actionmailer (2.3.8) from bundler gems
Using activerecord (2.3.8) from bundler gems
Using activeresource (2.3.8) from bundler gems
Using acts_as_indexed (0.6.4) from bundler gems
Using authlogic (2.1.6) from bundler gems
Using babosa (0.1.1) from bundler gems
Using builder (2.1.2) from bundler gems
Using culerity (0.2.12) from bundler gems
Using mime-types (1.16) from bundler gems
Using nokogiri (1.4.3.1) from bundler gems
Using rack-test (0.5.4) from bundler gems
Using ffi (0.6.3) from bundler gems
Using json_pure (1.4.6) from bundler gems
Using rubyzip (0.9.4) from bundler gems
Using selenium-webdriver (0.0.28) from bundler gems
Using capybara (0.3.9) from bundler gems
Using configuration (1.1.0) from bundler gems
Using diff-lcs (1.1.2) from bundler gems
Using trollop (1.16.2) from bundler gems
Using gherkin (2.1.5) from bundler gems
Using term-ansicolor (1.0.5) from bundler gems
Using cucumber (0.8.5) from bundler gems
Using cucumber-rails (0.3.2) from bundler gems
Using database_cleaner (0.5.2) from bundler gems
Using factory_girl (1.3.2) from bundler gems
Using friendly_id (3.1.3) from bundler gems
Using rubyforge (2.0.4) from bundler gems
Using hoe (2.6.1) from bundler gems
Using launchy (0.3.7) from bundler gems
Using mysql (2.8.1) from system gems
Using rails (2.3.8) from bundler gems
Using rmagick (2.12.2) from bundler gems
Using rspec (1.3.0) from bundler gems
Using rspec-rails (1.3.2) from bundler gems
Using ruby-prof (0.9.1) from bundler gems
Using spork (0.8.4) from bundler gems
Using test-unit (1.2.3) from system gems
Using truncate_html (0.3.2) from system gems
Using will_paginate (2.3.14) from system gems
Your bundle is complete! Use `bundle show [gemname]` to see where a
bundled gem is installed."

I use mysql for my application so I commented out the sqlite3 require
on line 5 of Gemfile : "gem 'sqlite3-ruby', :require => 'sqlite3'
#db_adapter=sqlite3" and uncommented line 6 for mysql.

In error logs, I still see that error :

"/home5/narblist/rails/test/config/../config/preinitializer.rb:5:
Could not load the bundler gem. Install it with `gem install bundler`.
(RuntimeError)
from /home5/narblist/rails/test/config/boot.rb:28:in `load'
from /home5/narblist/rails/test/config/boot.rb:28:in `preinitialize'
from /home5/narblist/rails/test/config/boot.rb:10:in `boot!'
from /home5/narblist/rails/test/config/boot.rb:124
from /home5/narblist/rails/test/config/application.rb:2:in `require'
from /home5/narblist/rails/test/config/application.rb:2
from ./../config/environment.rb:2:in `require'
from ./../config/environment.rb:2
from dispatch.fcgi:21:in `require'
from dispatch.fcgi:21 "

Please help!

On 26 Tháng Tám, 20:15, Vladimir Krylov <s6nu...@gmail.com> wrote:
> Yeah, you need to do this after removing. I forgot to say this :-D
>
> 2010/8/26 Lee Irving(MagpieUK) <irvin...@gmail.com>
> > <refinery-cms%2Bunsu...@googlegroups.com<refinery-cms%252Buns...@googlegroups.com>

Vladimir Krylov

unread,
Aug 26, 2010, 3:26:34 PM8/26/10
to refine...@googlegroups.com
OK, now try to access from the internet. If you will have no success, try to remove ~/.bundler and bundle install after. And, may be, you will have to add fcgi gem to your Gemfile ;-)

2010/8/26 giang nguyen <ndgi...@gmail.com>

giang nguyen

unread,
Aug 27, 2010, 1:41:15 AM8/27/10
to Refinery CMS
Dear Vladimir,

I remove ~/.bunlder and ran "bundle install", the error still the
same! OMG!

On 27 Tháng Tám, 02:26, Vladimir Krylov <s6nu...@gmail.com> wrote:
> OK, now try to access from the internet. If you will have no success, try to
> remove ~/.bundler and bundle install after. And, may be, you will have to
> add fcgi gem to your Gemfile ;-)
>
> 2010/8/26 giang nguyen <ndgian...@gmail.com>
>
>
>
> > Hi Lee and Vladimir,
>
> > After removing file and directory as Vladimir recommended, I run
> > "bundle install" and the output is:
>
> > "narbl...@narblist.org [~/rails/test]# bundle install
> > Fetching source index fromhttp://gemcutter.org/
> > > > <refinery-cms%2Bunsu...@googlegroups.com<refinery-cms%252Buns...@googlegroups.com>
> > <refinery-cms%252Buns...@googlegroups.com<refinery-cms%25252Bun...@googlegroups.com>

Vladimir Krylov

unread,
Aug 27, 2010, 3:54:27 AM8/27/10
to refine...@googlegroups.com
but did you insert dispatchers into your public folder like every rails app needs?

2010/8/27 giang nguyen <ndgi...@gmail.com>

giang nguyen

unread,
Aug 27, 2010, 4:41:39 AM8/27/10
to Refinery CMS
Yes I did,
in /public folder I have .htaccess and dispatch.fcgi

in .htaccess i use dispatch.fcgi

all files in /public folder are chmod to 755, right?

On 27 Tháng Tám, 14:54, Vladimir Krylov <s6nu...@gmail.com> wrote:
> but did you insert dispatchers into your public folder like every rails app
> needs?
>
> 2010/8/27 giang nguyen <ndgian...@gmail.com>
> > > > > > <refinery-cms%2Bunsu...@googlegroups.com<refinery-cms%252Buns...@googlegroups.com>
> > <refinery-cms%252Buns...@googlegroups.com<refinery-cms%25252Bun...@googlegroups.com>
>
> > > > <refinery-cms%252Buns...@googlegroups.com<refinery-cms%25252Bun...@googlegroups.com>
> > <refinery-cms%25252Bun...@googlegroups.com<refinery-cms%2525252Bu...@googlegroups.com>

giang nguyen

unread,
Aug 27, 2010, 6:20:03 AM8/27/10
to Refinery CMS
I delete the application folder and start from beginning.

The old error message was gone. Now I got this error message:

"suexec failure: could not open log file
fopen: Permission denied
[Fri Aug 27 04:16:22 2010] [warn] [client 113.22.56.94]
(104)Connection reset by peer: mod_fcgid: error reading data from
FastCGI server
[Fri Aug 27 04:16:22 2010] [error] [client 113.22.56.94] Premature end
of script headers: dispatch.fcgi "

what log file? I set /log folder chmod 755, all files in /public and
the /public folder are chmod to 755 also.

Please help!

Vladimir Krylov

unread,
Aug 27, 2010, 6:32:25 AM8/27/10
to refine...@googlegroups.com
may be you should do chmod 755 * -R

2010/8/27 giang nguyen <ndgi...@gmail.com>

giang nguyen

unread,
Aug 27, 2010, 12:07:13 PM8/27/10
to Refinery CMS
Hi,

the suexec failure is because the she bangs line in dispatch.fcgi ( it
was #!/usr/bin/env ruby, I changed to #!/usr/bin/ruby).

When I changed the she bangs line. The old error comes back:

"Could not load the bundler gem. Install it with `gem install
bundler`"

Please help!

On 27 Tháng Tám, 17:32, Vladimir Krylov <s6nu...@gmail.com> wrote:
> may be you should do chmod 755 * -R
>
> 2010/8/27 giang nguyen <ndgian...@gmail.com>
> > > > > > > <refinery-cms%252Buns...@googlegroups.com<refinery-cms%25252Bun...@googlegroups.com>
> > <refinery-cms%25252Bun...@googlegroups.com<refinery-cms%2525252Bu...@googlegroups.com>
>
> > > > > <refinery-cms%25252Bun...@googlegroups.com<refinery-cms%2525252Bu...@googlegroups.com>
> > <refinery-cms%2525252Bu...@googlegroups.com<refinery-cms%252525252B...@googlegroups.com>
>
> > > > > > > > > > > > For more options, visit this group at
> > > > > > > > > > > >http://groups.google.com/group/refinery-cms?hl=en
>
> > > > > > > > > > > >http://www.refinerycms.com
>
> > > > > > > > > > > --
> > > > > > > > > > > Vladimir Krylovhttp://cyprus-city.com
>
> > > > > > > > > --
> > > > > > > > > You received this message because you are subscribed
>
> ...
>
> đọc thêm »

Vladimir Krylov

unread,
Aug 27, 2010, 2:31:15 PM8/27/10
to refine...@googlegroups.com
What says ruby public/dispatch.rb --trace ?

2010/8/27 giang nguyen <ndgi...@gmail.com>

giang nguyen

unread,
Sep 2, 2010, 6:41:16 AM9/2/10
to Refinery CMS
Hi, I use fast CGI, just only dispatch.fcgi in ./public/ (not any
other dispatch files .rb/.cgi)

On 28 Tháng Tám, 01:31, Vladimir Krylov <s6nu...@gmail.com> wrote:
> What says ruby public/dispatch.rb --trace ?
>
> 2010/8/27 giang nguyen <ndgian...@gmail.com>
> ...
>
> đọc thêm »

Fabio Barone

unread,
Sep 2, 2010, 7:20:43 AM9/2/10
to refine...@googlegroups.com
Try Vladimir's suggestion but with
ruby public/dispatch.fcgi --trace
anyway



2010/9/2 giang nguyen <ndgi...@gmail.com>

Fabio Barone

unread,
Sep 2, 2010, 7:25:51 AM9/2/10
to refine...@googlegroups.com
My config/environment.rb looks like this btw
(hosted at hostmonster, which is very similar to your hosting with fcgi/apache)

#where you have your gems; you could assign a $GEM_HOME variable for this
$:.push("/home/<your_username>/ruby/gems")

ENV['GEM_PATH'] = "/home/<your_username>/ruby/gems:/usr/lib64/ruby/gems/1.8"
ENV['RAILS_ENV'] ||= 'production'
ENV['RAILS_ROOT'] = '/home/<your_username>/<your app name>'

bundle install will create a .bundle directory.
you may try to use _that_ as your $GEM_HOME


2010/9/2 Fabio Barone <holon...@gmail.com>

Vladimir Krylov

unread,
Sep 3, 2010, 5:56:24 AM9/3/10
to refine...@googlegroups.com
Sorry, not ruby public/dispatch.fcgi --trace, but ruby public/dispatch.rb --trace

this command just will say you if you have problems inside your code

2010/9/2 Fabio Barone <holon...@gmail.com>
Reply all
Reply to author
Forward
0 new messages