Project

General

Profile

Stuck at first stage of installation

Added by Rob Yallop over 15 years ago

Hi,

Rails newbie I'm afraid. I have a VPS and the host has installed ruby and rails for me. I used SSH to get the versions:

  • ruby 1.9.1p129 (2009-05-12 revision 23412) [i686-linux]
  • Rails 2.3.2
  • gem 1.3.4

VPS is running:

  • CentOS 5 Operating System
  • Plesk 9.0.1
  • MySQL 5.0.68

I've downloaded and installed Redmine 0.8.4 on my server and I've added the line

  • ActionController::AbstractRequest.relative_url_root = "/redmine"

to the end of my environment.rb file.

I tried the "RAILS_ENV=YOUR_ENVIRONMENT script/about" as shown in the How to Request Help entry but got the following (which may make the answer to my question obvious):

-sh-3.00$ RAILS_ENV="production" script/about
/var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/activesupport/lib/active_support/deprecation.rb:10: warning: already initialized constant DEFAULT_BEHAVIORS
/var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/railties/lib/initializer.rb:229:in `rescue in require_frameworks': no such file to load -- test/unit/error (RuntimeError)
from /var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/railties/lib/initializer.rb:226:in `require_frameworks'
from /var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/railties/lib/initializer.rb:118:in `process'
from /var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/railties/lib/initializer.rb:97:in `run'
from /var/www/vhosts/mysite.com/httpdocs/redmine/config/environment.rb:20:in `<top (required)>'
from /var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/railties/lib/commands/about.rb:1:in `require'
from /var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/railties/lib/commands/about.rb:1:in `<top (required)>'
from script/about:3:in `require'
from script/about:3:in `<main>'
-sh-3.00$

I've added the database details to the "production" section of my database.yml file.

When I get to step 5 of the installation process, I get the following result:

-sh-3.00$ rake db:migrate RAILS_ENV="production"
(in /var/www/vhosts/mysite.com/httpdocs/redmine)
rake aborted!
no such file to load -- test/unit/error
/var/www/vhosts/mysite.com/httpdocs/redmine/Rakefile:10:in `require'
(See full trace by running task with --trace)

I'm hoping this is an obvious problem to someone who knows a bit about Rails and Redmine; perhaps a database problem, or something that needs to be activated in Rails, or a file missing from the Redmine download, or something my host needs to do?

The full trace follows:

-sh-3.00$ rake db:migrate RAILS_ENV="production" --trace
(in /var/www/vhosts/mysite.com/httpdocs/redmine)
rake aborted!
no such file to load -- test/unit/error
/var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:510
:in `require'
/var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:510
:in `block in require'
/var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:355
:in `new_constants_in'
/var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:510
:in `require'
/var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/activesupport/lib/active_support/deprecation.rb:204:
in `<top (required)>'
/var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:510
:in `require'
/var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:510
:in `block in require'
/var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:355
:in `new_constants_in'
/var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:510
:in `require'
/var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/activesupport/lib/active_support.rb:40:in `<top (req
uired)>'
/var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/railties/lib/tasks/misc.rake:12:in `require'
/var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/railties/lib/tasks/misc.rake:12:in `<top (required)>
'
/var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/railties/lib/tasks/rails.rb:4:in `load'
/var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/railties/lib/tasks/rails.rb:4:in `block in <top (req
uired)>'
/var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/railties/lib/tasks/rails.rb:4:in `each'
/var/www/vhosts/mysite.com/httpdocs/redmine/vendor/rails/railties/lib/tasks/rails.rb:4:in `<top (required)>'
/var/www/vhosts/mysite.com/httpdocs/redmine/Rakefile:10:in `require'
/var/www/vhosts/mysite.com/httpdocs/redmine/Rakefile:10:in `<top (required)>'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2383:in `load'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2017:in `block in load_rakefile'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2000:in `block in run'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/bin/rake:31:in `<top (required)>'
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19:in `<main>'
-sh-3.00$

Thanks for reading.

Cheers,

Rob


Replies (1)

RE: Stuck at first stage of installation - Added by Eric Davis over 15 years ago

Rob Yallop wrote:

  • ruby 1.9.1p129 (2009-05-12 revision 23412) [i686-linux]
  • Rails 2.3.2
  • gem 1.3.4

Rails 2.3.2 and Ruby 1.9.1 are not compatible with Redmine. See the RedmineInstall page for the correct versions.

Eric

    (1-1/1)