Project

General

Profile

Ubuntu 8.10, Rails 2.2, Ruby 1.8 - Unable to Start -

Added by Scott Cragg over 15 years ago

Hey Guys,

I've searched for "uninitialized constant Rails::Plugin::Dependencies" and didn't find it anywhere on the web (which was unusual), so I figured I'd take a moment and ask:

I checked out the code from source, and went to build it as instructed on this page: http://www.redmine.org/wiki/redmine/RedmineInstall.

Attempting Step Four Gave me the following error:

xxxxxxx@xxxxxx:~$ cd redmine-0.7/
xxxxxxx@xxxxxx:~/redmine-0.7$ rake db:migrate RAILS_ENV="production" 
(in $REDMINE07_HOME/redmine-0.7)
rake aborted!
uninitialized constant Rails::Plugin::Dependencies

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

Running that error with a --trace Returns the Following:

xxxxxxx@xxxxxx:~/redmine-0.7$ rake --trace db:migrate RAILS_ENV="production" 
(in /home/escragg/.workspace/opendreams/redmine-0.7)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
uninitialized constant Rails::Plugin::Dependencies
~/redmine-0.7/vendor/rails/activesupport/lib/active_support/dependencies.rb:102:in `const_missing'
~/redmine-0.7/vendor/plugins/actionwebservice/init.rb:4:in `evaluate_init_rb'
~/redmine-0.7/config/../vendor/rails/railties/lib/rails/plugin.rb:103:in `evaluate_init_rb'
~/redmine-0.7/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
~/redmine-0.7/config/../vendor/rails/railties/lib/rails/plugin.rb:99:in `evaluate_init_rb'
~/redmine-0.7/config/../vendor/rails/railties/lib/rails/plugin.rb:44:in `load'
~/redmine-0.7/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:33:in `load_plugins'
~/redmine-0.7/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:32:in `each'
~/redmine-0.7/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:32:in `load_plugins'
~/redmine-0.7/config/../vendor/rails/railties/lib/initializer.rb:319:in `load_plugins'
~/redmine-0.7/config/../vendor/rails/railties/lib/initializer.rb:157:in `process'
~/redmine-0.7/config/../vendor/rails/railties/lib/initializer.rb:112:in `send'
~/redmine-0.7/config/../vendor/rails/railties/lib/initializer.rb:112:in `run'
~/redmine-0.7/config/environment.rb:20
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
~/redmine-0.7/vendor/rails/activesupport/lib/active_support/dependencies.rb:148:in `require'
~/redmine-0.7/vendor/rails/activesupport/lib/active_support/dependencies.rb:507:in `new_constants_in'
~/redmine-0.7/vendor/rails/activesupport/lib/active_support/dependencies.rb:148:in `require'
~/redmine-0.7/vendor/rails/railties/lib/tasks/misc.rake:3
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute'
/usr/lib/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/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:588:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `invoke_prerequisites'
/usr/lib/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/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19

Out of Curiosity, I tried to start the Server:

xxxxxxx@xxxxxx:~/redmine-0.7$ script/server 
=> Booting WEBrick...
$REDMINE07_HOME/redmine-0.7/vendor/rails/activesupport/lib/active_support/dependencies.rb:102:in `const_missing': uninitialized constant Rails::Plugin::Dependencies (NameError)
    from $REDMINE07_HOME/redmine-0.7/vendor/plugins/actionwebservice/init.rb:4:in `evaluate_init_rb'
    from ./script/../config/../vendor/rails/railties/lib/rails/plugin.rb:103:in `evaluate_init_rb'
    from $REDMINE07_HOME/redmine-0.7/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
    from ./script/../config/../vendor/rails/railties/lib/rails/plugin.rb:99:in `evaluate_init_rb'
    from ./script/../config/../vendor/rails/railties/lib/rails/plugin.rb:44:in `load'
    from ./script/../config/../vendor/rails/railties/lib/rails/plugin/loader.rb:33:in `load_plugins'
    from ./script/../config/../vendor/rails/railties/lib/rails/plugin/loader.rb:32:in `each'
    from ./script/../config/../vendor/rails/railties/lib/rails/plugin/loader.rb:32:in `load_plugins'
     ... 16 levels...
    from $REDMINE07_HOME/redmine-0.7/vendor/rails/railties/lib/commands/server.rb:49
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
    from script/server:3
xxxxxxx@xxxxxx:~/$REDMINE07_HOME/redmine-0.7$ 

My Configuration is a follows:

xxxxxxx@xxxxxx:~$ mysql -V
mysql  Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486) using readline 5.2
xxxxxxx@xxxxxx:~$ rails -v
Rails 2.1.1
xxxxxxx@xxxxxx:~$ ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]

Anyone got any ideas? I'm kinda stuck up against a wall and could use them.
Thanks In Advance!


Replies (6)

RE: Ubuntu 8.10, Rails 2.2, Ruby 1.8 - Unable to Start - - Added by Scott Cragg over 15 years ago

Whoops, forgot to add: Can't run script/about either
Rails works fine for all my existing other projects, which were all locally created.

xxxxxx@xxxxxx:~/redmine-0.7$ RAILS_ENV=development script/about
~/redmine-0.7/vendor/rails/activesupport/lib/active_support/dependencies.rb:102:in `const_missing': uninitialized constant Rails::Plugin::Dependencies (NameError)
    from ~/redmine-0.7/vendor/plugins/actionwebservice/init.rb:4:in `evaluate_init_rb'
    from ./script/../config/../vendor/rails/railties/lib/rails/plugin.rb:103:in `evaluate_init_rb'
    from ~/redmine-0.7/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
    from ./script/../config/../vendor/rails/railties/lib/rails/plugin.rb:99:in `evaluate_init_rb'
    from ./script/../config/../vendor/rails/railties/lib/rails/plugin.rb:44:in `load'
    from ./script/../config/../vendor/rails/railties/lib/rails/plugin/loader.rb:33:in `load_plugins'
    from ./script/../config/../vendor/rails/railties/lib/rails/plugin/loader.rb:32:in `each'
    from ./script/../config/../vendor/rails/railties/lib/rails/plugin/loader.rb:32:in `load_plugins'
     ... 7 levels...
    from ~/redmine-0.7/vendor/rails/railties/lib/commands/about.rb:1
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
    from script/about:3

RE: Ubuntu 8.10, Rails 2.2, Ruby 1.8 - Unable to Start - - Added by Scott Cragg over 15 years ago

Sorry, one last little detail,

I did run the following command, as instructed here for Version 7.0: http://www.redmine.org/wiki/redmine/FAQ

$ rake rails:freeze:edge TAG=rel_2-0-2
(in /home/escragg/.workspace/opendreams/redmine-0.7)
cd vendor
Downloading Rails from http://dev.rubyonrails.org/archives/rails_edge.zip
Unpacking Rails
rm -rf rails
rm -f rails.zip
rm -f rails/Rakefile
rm -f rails/cleanlogs.sh
rm -f rails/pushgems.rb
rm -f rails/release.rb
touch rails/REVISION_4ad5aa9a39a83863331a7665407dac475855765b
cd -
Updating current scripts, javascripts, and configuration settings

and it executed successfully.

RE: Ubuntu 8.10, Rails 2.2, Ruby 1.8 - Unable to Start - - Added by Samuel Cochran over 15 years ago

I had the same problem.

Ubuntu 8.10, rails 2.0.2, ruby 1.8.6, gems 1.1.1

$ rake db:migrate --trace RAILS_ENV=production
(in /opt/redmine)
  • Invoke db:migrate (first_time)
  • Invoke environment (first_time)
  • Execute environment
    rake aborted!
    uninitialized constant Rails::Plugin::Dependencies
    /opt/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:102:in `const_missing'
    /opt/redmine/vendor/plugins/actionwebservice/init.rb:4:in `evaluate_init_rb'
    /opt/redmine/config/../vendor/rails/railties/lib/rails/plugin.rb:103:in `evaluate_init_rb'
    /opt/redmine/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
    /opt/redmine/config/../vendor/rails/railties/lib/rails/plugin.rb:99:in `evaluate_init_rb'
    /opt/redmine/config/../vendor/rails/railties/lib/rails/plugin.rb:44:in `load'
    /opt/redmine/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:33:in `load_plugins'
    /opt/redmine/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:32:in `each'
    /opt/redmine/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:32:in `load_plugins'
    /opt/redmine/config/../vendor/rails/railties/lib/initializer.rb:319:in `load_plugins'
    /opt/redmine/config/../vendor/rails/railties/lib/initializer.rb:157:in `process'
    /opt/redmine/config/../vendor/rails/railties/lib/initializer.rb:112:in `send'
    /opt/redmine/config/../vendor/rails/railties/lib/initializer.rb:112:in `run'
    /opt/redmine/config/environment.rb:20
    /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
    /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
    /opt/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:148:in `require'
    /opt/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:507:in `new_constants_in'
    /opt/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:148:in `require'
    /opt/redmine/vendor/rails/railties/lib/tasks/misc.rake:3
    /usr/lib/ruby/1.8/rake.rb:546:in `call'
    /usr/lib/ruby/1.8/rake.rb:546:in `execute'
    /usr/lib/ruby/1.8/rake.rb:541:in `each'
    /usr/lib/ruby/1.8/rake.rb:541:in `execute'
    /usr/lib/ruby/1.8/rake.rb:508:in `invoke_with_call_chain'
    /usr/lib/ruby/1.8/rake.rb:501:in `synchronize'
    /usr/lib/ruby/1.8/rake.rb:501:in `invoke_with_call_chain'
    /usr/lib/ruby/1.8/rake.rb:518:in `invoke_prerequisites'
    /usr/lib/ruby/1.8/rake.rb:1183:in `each'
    /usr/lib/ruby/1.8/rake.rb:1183:in `send'
    /usr/lib/ruby/1.8/rake.rb:1183:in `each'
    /usr/lib/ruby/1.8/rake.rb:515:in `invoke_prerequisites'
    /usr/lib/ruby/1.8/rake.rb:507:in `invoke_with_call_chain'
    /usr/lib/ruby/1.8/rake.rb:501:in `synchronize'
    /usr/lib/ruby/1.8/rake.rb:501:in `invoke_with_call_chain'
    /usr/lib/ruby/1.8/rake.rb:494:in `invoke'
    /usr/lib/ruby/1.8/rake.rb:1931:in `invoke_task'
    /usr/lib/ruby/1.8/rake.rb:1909:in `top_level'
    /usr/lib/ruby/1.8/rake.rb:1909:in `each'
    /usr/lib/ruby/1.8/rake.rb:1909:in `top_level'
    /usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling'
    /usr/lib/ruby/1.8/rake.rb:1903:in `top_level'
    /usr/lib/ruby/1.8/rake.rb:1881:in `run'
    /usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling'
    /usr/lib/ruby/1.8/rake.rb:1878:in `run'
    /usr/bin/rake:28

The above happened with a vendor rails install.

I then called:
$ gem install --remote rails --version 2.0.2 --test --rdoc --ri

and now it works fine... Maybe try manually installing 2.0.2 into vendor/rails if you can't have it system wide?

RE: Ubuntu 8.10, Rails 2.2, Ruby 1.8 - Unable to Start - - Added by Scott Cragg over 15 years ago

I ran the command you suggested, and it completed successfully. The project is still giving me the exact same error, however.

Is there something I need to do to make sure that the project is using the version 2.0.2 rails framework rather than the 2.2?

Thanks so much for your help!

-Scott

RE: Ubuntu 8.10, Rails 2.2, Ruby 1.8 - Unable to Start - - Added by Mischa The Evil over 15 years ago

Hi there,

At first: you are talking about version 2.2 of Rails in the thread-topic and your last post;

If that is indeed RC1 of Rails 2.2 > I guess Redmine is not (yet) compatible (at the moment), due to the fact that version 2.2 is a major-release of Rails which also brings compatibility with Ruby major-version 1.9 (which itself has gotten a new language interpreter [Ruby MRI ->> YARV] )

Though I doubt this is Rails 2.2 since your output shows:

xxxxxxx@xxxxxx:~$ rails -v
Rails 2.1.1

So now you probably have:
  • Rails 2.1.1 | 2.0.2
  • Ruby 1.8.6-p111

but what is the precise version of Redmine which you've exported from the repo? Did you exported trunk or tag 0.7.3 ?

That said: you can specify the Rails version which Redmine uses explicitally by modifying source:trunk/config/environment.rb#L8 or source:tags/0.7.3/config/environment.rb#L8 according to your version.

HTH...


Sincerely,

Mischa

RE: Ubuntu 8.10, Rails 2.2, Ruby 1.8 - Unable to Start - - Added by Scott Cragg over 15 years ago

I checked out the 0.7 build as specified http://www.redmine.org/wiki/redmine/Download.

$ svn co http://redmine.rubyforge.org/svn/branches/0.7-stable redmine-0.7

Currently:

~/redmine-0.7:$ svn update
At revision 1969.

and my config/environment.rb:

~/redmine-0.7$ cat -n config/environment.rb
     1    # Be sure to restart your web server when you modify this file.
     2    
     3    # Uncomment below to force Rails into production mode when 
     4    # you don't control web/app server and can't set it the proper way
     5    # ENV['RAILS_ENV'] ||= 'production'
     6    
     7    # Specifies gem version of Rails to use when vendor/rails is not present
     8    RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION
     9    
    10    # Bootstrap the Rails environment, frameworks, and default configuration
    11    require File.join(File.dirname(__FILE__), 'boot')
    12    
    13    # Load Engine plugin if available
    14    begin
    15      require File.join(File.dirname(__FILE__), '../vendor/plugins/engines/boot')
    16    rescue LoadError
    17      # Not available
    18    end

THANK YOU thank you thank you, This hasn't been the most fun introduction to ruby;)

Sincerely, ESC.

    (1-6/6)