rake aborted! no such file to load -- configuration_loader

Added by system admin0987 over 10 years ago

As in privious post i was problem with postgresql connectivity .
now my /var/www/redmine-01 is working with one project and my other project is in /var/www/redmine .

[root@pm redmine]# gem list

*** LOCAL GEMS ***

actionmailer (2.3.14, 2.3.11)
actionpack (2.3.14, 2.3.11)
activerecord (2.3.14, 2.3.11)
activeresource (2.3.14, 2.3.11)
activesupport (2.3.14, 2.3.11)
bundle (0.0.1)
bundler (1.2.0)
countloc (0.4.0)
dev (1.0.53)
i18n (0.4.2)
postgres-pr (0.6.3)
rack (1.1.0)
rails (2.3.14, 2.3.11)
rainbow (1.1.4)
rake (0.8.3)
semver (1.0.1)
systemu (2.5.2)


[root@pm redmine]# rake generate_session_store
(in /var/www/redmine)

[root@pm redmine]# RAILS_ENV=production rake redmine:load_default_data

(in /var/www/redmine)
rake aborted!
no such file to load -- configuration_loader

(See full trace by running task with --trace)

[root@pm redmine]# RAILS_ENV=production rake db:migrate --trace

(in /var/www/redmine)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
no such file to load -- configuration_loader
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:184:in `require'
/var/www/redmine/vendor/plugins/redmine_adkraken/init.rb:3:in `evaluate_init_rb'
/var/www/redmine/config/../vendor/rails/railties/lib/rails/plugin.rb:158:in `evaluate_init_rb'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
/var/www/redmine/config/../vendor/rails/railties/lib/rails/plugin.rb:154:in `evaluate_init_rb'
/var/www/redmine/config/../vendor/rails/railties/lib/rails/plugin.rb:48:in `load'
/var/www/redmine/config/../vendor/plugins/engines/lib/engines/plugin.rb:44:in `load'
/var/www/redmine/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:38:in `load_plugins'
/var/www/redmine/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:37:in `each'
/var/www/redmine/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:37:in `load_plugins'
/var/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:369:in `load_plugins'
/var/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:165:in `process'
/var/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
/var/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
/var/www/redmine/config/environment.rb:20
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
/var/www/redmine/vendor/rails/railties/lib/tasks/misc.rake:4
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `call'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `execute'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:588:in `invoke_prerequisites'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `each'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `invoke_prerequisites'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:577:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in `invoke'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in `invoke_task'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `each'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in `top_level'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in `run'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31
/usr/bin/rake:19:in `load'

RAILS_ENV=production rake redmine:load_default_data
(in /var/www/redmine)
rake aborted!
no such file to load -- configuration_loader

(See full trace by running task with --trace)

[root@pm redmine]# RAILS_ENV=production rake redmine:load_default_data --trace
(in /var/www/redmine)
** Invoke redmine:load_default_data (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
no such file to load -- configuration_loader
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:184:in `require'
/var/www/redmine/vendor/plugins/redmine_adkraken/init.rb:3:in `evaluate_init_rb'
/var/www/redmine/config/../vendor/rails/railties/lib/rails/plugin.rb:158:in `evaluate_init_rb'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
/var/www/redmine/config/../vendor/rails/railties/lib/rails/plugin.rb:154:in `evaluate_init_rb'
/var/www/redmine/config/../vendor/rails/railties/lib/rails/plugin.rb:48:in `load'
/var/www/redmine/config/../vendor/plugins/engines/lib/engines/plugin.rb:44:in `load'
/var/www/redmine/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:38:in `load_plugins'
/var/www/redmine/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:37:in `each'
/var/www/redmine/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:37:in `load_plugins'
/var/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:369:in `load_plugins'
/var/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:165:in `process'
/var/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
/var/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
/var/www/redmine/config/environment.rb:20
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
/var/www/redmine/vendor/rails/railties/lib/tasks/misc.rake:4
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `call'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `execute'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:588:in `invoke_prerequisites'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `each'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `invoke_prerequisites'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:577:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in `invoke'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in `invoke_task'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `each'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in `top_level'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in `run'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31
/usr/bin/rake:19:in `load'

I am new to ruby & Gems . please help me to solve my problem

Replies (6)

RE: rake aborted! no such file to load -- configuration_loader - Added by Etienne Massip over 10 years ago

Your version of Rake (0.8.3) is not supported by Redmine, update to latest or at least to 0.8.7.

RE: rake aborted! no such file to load -- configuration_loader - Added by system admin0987 over 10 years ago

As per "Etienne massip" instruction i have updated RAKE Now both version are installed.But still having same problem.

I am adopting procedure as follows.

Step:1
Restore my old redmine folder backup /var/www/redmine

Cd /var/www/redmine

[root@pm redmine]# gem install rake -v 0.8.7

Successfully installed rake-0.8.7
1 gem installed
Installing ri documentation for rake-0.8.7...
Installing RDoc documentation for rake-0.8.7...
[root@pm redmine]# gem install i18n -v 0.4.2

Successfully installed i18n-0.4.2
1 gem installed
Installing ri documentation for i18n-0.4.2...
Installing RDoc documentation for i18n-0.4.2...
[root@pm redmine]# gem install rails -v=2.3.11
Successfully installed rails-2.3.11

1 gem installed
Installing ri documentation for rails-2.3.11...
Installing RDoc documentation for rails-2.3.11...
[root@pm redmine]# gem install postgres-pr         ( PostgreSQL Connectivity on installed on remote Server)
Successfully installed postgres-pr-0.6.3

1 gem installed
Installing ri documentation for postgres-pr-0.6.3...
Installing RDoc documentation for postgres-pr-0.6.3...
[root@pm redmine]# rake generate_session_store
(in /var/www/redmine)

[root@pm redmine]# RAILS_ENV=production rake generate_session_store
(in /var/www/redmine)

[root@pm redmine]# gem list

* LOCAL GEMS *

actionmailer (2.3.14, 2.3.11)
actionpack (2.3.14, 2.3.11)
activerecord (2.3.14, 2.3.11)
activeresource (2.3.14, 2.3.11)
activesupport (2.3.14, 2.3.11)
bundle (0.0.1)
bundler (1.2.0)
countloc (0.4.0)
dev (1.0.53)
i18n (0.4.2)
postgres-pr (0.6.3)
rack (1.1.0)
rails (2.3.14, 2.3.11)
rainbow (1.1.4)
rake (0.8.7, 0.8.3)
semver (1.0.1)
systemu (2.5.2)

[root@pm redmine]# rake db:migrate RAILS_ENV="production" &
[1] 3395

[root@pm redmine]# (in /var/www/redmine)
rake aborted!
no such file to load -- configuration_loader

(See full trace by running task with --trace)

[root@pm redmine]# rake db:migrate RAILS_ENV="production" --trace
(in /var/www/redmine)
  • Invoke db:migrate (first_time)
  • Invoke environment (first_time)
  • Execute environment
    rake aborted!
    no such file to load -- configuration_loader
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    /var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:184:in `require'
    /var/www/redmine/vendor/plugins/redmine_adkraken/init.rb:3:in `evaluate_init_rb'
    /var/www/redmine/config/../vendor/rails/railties/lib/rails/plugin.rb:158:in `evaluate_init_rb'
    /var/www/redmine/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
    /var/www/redmine/config/../vendor/rails/railties/lib/rails/plugin.rb:154:in `evaluate_init_rb'
    /var/www/redmine/config/../vendor/rails/railties/lib/rails/plugin.rb:48:in `load'
    /var/www/redmine/config/../vendor/plugins/engines/lib/engines/plugin.rb:44:in `load'
    /var/www/redmine/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:38:in `load_plugins'
    /var/www/redmine/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:37:in `each'
    /var/www/redmine/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:37:in `load_plugins'
    /var/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:369:in `load_plugins'
    /var/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:165:in `process'
    /var/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
    /var/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
    /var/www/redmine/config/environment.rb:20
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    /var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
    /var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
    /var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
    /var/www/redmine/vendor/rails/railties/lib/tasks/misc.rake:4
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
    /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
    /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
    /usr/bin/rake:19:in `load'
    /usr/bin/rake:19
    [1]+ Exit 1 rake db:migrate RAILS_ENV="production"

Please help me to found issue.
thanks.

RE: rake aborted! no such file to load -- configuration_loader - Added by system admin0987 over 10 years ago

Please also clear me one thing.

if i have 5 redmine installation folder of same version like 1.2.1
/var/www/redmine1
/var/www/redmine2
/var/www/redmine3
/var/www/redmine4
/var/www/redmine5

Will i needed to install all (gem install rake -v 0.8.7 ) in each folder ??? of just one time installation required for All my redmine installation .

thanks.

RE: rake aborted! no such file to load -- configuration_loader - Added by Etienne Massip over 10 years ago

system admin0987 wrote:

Will i needed to install all (gem install rake -v 0.8.7 ) in each folder ??? of just one time installation required for All my redmine installation .

Commonly gems are tied to a Ruby installation; so unless you use RVM you'll probably need to install gems only once, and they'll be available from all of your instances.

RE: rake aborted! no such file to load -- configuration_loader - Added by Etienne Massip over 10 years ago

system admin0987 wrote:

  • Invoke db:migrate (first_time)
  • Invoke environment (first_time)
  • Execute environment
    rake aborted!
    no such file to load -- configuration_loader
    [1]+ Exit 1 rake db:migrate RAILS_ENV="production"

Please help me to found issue.

Unless you really need it you can uninstall Rake 0.8.3 now.

If this doesn't change anything, what gives you gem env (you need to have RubyGems version <= 1.6, see this page)?

(1-6/6)