problem on brand new Redmine installation

Added by Cedric mosnier almost 8 years ago

Hi,
I try to install a brand new system with redmine:

Environment:
Redmine version 2.4.1.stable
Ruby version 1.8.7-p352 (2011-06-30) [x86_64-linux]
Rails version 3.2.16
Environment production
Database adapter SQLite

when test the system with:
  1. ruby script/rails server webrick -e production

it runs well,when i try with apache i have the folowing:

A source file that the application requires, is missing.
It is possible that you didn't upload your application files correctly. Please check whether all your application files are uploaded.
A required library may not installed. Please install all libraries that this application requires.
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:
no such file to load -- fastercsv
Exception class:
LoadError
Application root:
/usr/share/redmine
Backtrace:
  1. File Line Location
    0 /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb 251 in `require'
    1 /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb 251 in `require'
    2 /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb 236 in `load_dependency'
    3 /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb 251 in `require'
    4 /usr/share/redmine/lib/redmine.rb 62
    5 /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb 251 in `require'
    6 /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb 251 in `require'
    7 /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb 236 in `load_dependency'
    8 /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb 251 in `require'
    9 /usr/share/redmine/config/initializers/30-redmine.rb 4
    10 /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb 245 in `load'
    11 /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb 245 in `load'
    12 /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb 236 in `load_dependency'
    13 /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb 245 in `load'
    14 /usr/lib/ruby/vendor_ruby/rails/engine.rb 593
    15 /usr/lib/ruby/vendor_ruby/rails/engine.rb 592 in `each'
    16 /usr/lib/ruby/vendor_ruby/rails/engine.rb 592
    17 /usr/lib/ruby/vendor_ruby/rails/initializable.rb 30 in `instance_exec'
    18 /usr/lib/ruby/vendor_ruby/rails/initializable.rb 30 in `run'
    19 /usr/lib/ruby/vendor_ruby/rails/initializable.rb 55 in `run_initializers'
    20 /usr/lib/ruby/vendor_ruby/rails/initializable.rb 54 in `each'
    21 /usr/lib/ruby/vendor_ruby/rails/initializable.rb 54 in `run_initializers'
    22 /usr/lib/ruby/vendor_ruby/rails/application.rb 136 in `initialize!'
    23 /usr/lib/ruby/vendor_ruby/rails/railtie/configurable.rb 30 in `send'
    24 /usr/lib/ruby/vendor_ruby/rails/railtie/configurable.rb 30 in `method_missing'
    25 /usr/share/redmine/config/environment.rb 18
    26 /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb 222 in `require'
    27 /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb 222 in `preload_application'
    28 /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb 181 in `initialize_server'
    29 /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb 572 in `report_app_init_status'
    30 /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb 174 in `initialize_server'
    31 /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb 204 in `start_synchronously'
    32 /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb 180 in `start'
    33 /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb 149 in `start'
    34 /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb 219 in `spawn_rails_application'
    35 /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb 132 in `lookup_or_add'
    36 /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb 214 in `spawn_rails_application'
    37 /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb 82 in `synchronize'
    38 /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb 79 in `synchronize'
    39 /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb 213 in `spawn_rails_application'
    40 /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb 132 in `spawn_application'
    41 /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb 275 in `handle_spawn_application'
    42 /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb 357 in `__send__'
    43 /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb 357 in `server_main_loop'
    44 /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb 206 in `start_synchronously'
    45 /usr/share/phusion-passenger/helper-scripts/passenger-spawn-server 99

Replies (6)

RE: problem on brand new Redmine installation - Added by Martin Denizet (redmine.org team member) almost 8 years ago

The fastercsv dependency is specified in the Gemfile.
Make sure you ran the Bundler correctly:

cd /usr/share/redmine
bundle install --without development test

Cheers!

RE: problem on brand new Redmine installation - Added by Cedric mosnier almost 8 years ago

thanks for the reply

when doing :
mosnier@ubuntu:/usr/share/redmine$ bundle install --without development test
The Gemfile specifies no dependencies
Your bundle is complete!
Gems in the groups development and test were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
mosnier@ubuntu:/usr/share/redmine$

what is wrong with the gem file ?

RE: problem on brand new Redmine installation - Added by Martin Denizet (redmine.org team member) almost 8 years ago

What's the content of the Gemfile (/usr/share/redmineGemfile)?
If you used a SCM to deploy, you can check the integrity of your installation:
  • SVN:
    svn status
    
  • Git:
    git status
    

Can you also list the installed plugins?
I suggest you disable all plugins and have a try if the Gemfile of Redmine is correct.

RE: problem on brand new Redmine installation - Added by Cedric mosnier almost 8 years ago

i am using this tuto:
http://leonard.io/blog/2012/05/installing-ruby-1-9-3-on-ubuntu-12-04-precise-pengolin/

my Gemfile content:
source 'https://rubygems.org'

local_gemfile = File.join(File.dirname(FILE), "Gemfile.local")
if File.exists?(local_gemfile)
puts "Loading Gemfile.local ..." if $DEBUG # `ruby -d` or `bundle -v`
instance_eval File.read(local_gemfile)
end

  1. Load plugins' Gemfiles
    Dir.glob File.expand_path("../plugins/*/Gemfile", FILE) do |file|
    puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
    #TODO: switch to "eval_gemfile file" when bundler >= 1.2.0 will be required (rails 4)
    instance_eval File.read(file), file
    end

RE: problem on brand new Redmine installation - Added by Martin Denizet (redmine.org team member) almost 8 years ago

That's not what the Gemfile is supposed to look like in Redmine 2.4.1. See source:/tags/2.4.1/Gemfile
I suggest you verify the integrity of your installation.

RE: problem on brand new Redmine installation - Added by Cedric mosnier almost 8 years ago

thanks a lot with your help i solve my problem
my gemfile was corrupted

(1-6/6)