start redmine fails with uninitialized contant ApplicationController
Added by XXX XXX over 15 years ago
Hi all,
I installed Redmine using the wiki install page and now try to start the WebRick server, but I get this error:
mac-mano:redmine mano$ ruby script/server webrick -e production => Booting WEBrick => Rails 2.3.4 application starting on http://0.0.0.0:3000 /Users/mano/.gem/ruby/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:443:in `load_missing_constant': uninitialized constant ApplicationController (NameError) from /Users/mano/.gem/ruby/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in `const_missing' from /Users/mano/.gem/ruby/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:92:in `const_missing' from /opt/redmine/app/controllers/account_controller.rb:18 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' from /Users/mano/.gem/ruby/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in `require' from /Users/mano/.gem/ruby/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions' from /opt/redmine/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:124:in `require_or_load' ... 18 levels... from /Users/mano/.gem/ruby/1.8/gems/rails-2.3.4/lib/commands/server.rb:84 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' from script/server:3
I never worked with Ruby on Rails so I don't know what the problem is. I googled a little bit but can't seem to figure it out.
The comman gem list --local produces the following output:
actionmailer (2.3.4, 1.3.6) actionpack (2.3.4, 1.13.6) actionwebservice (1.2.6) activerecord (2.3.4, 1.15.6) activeresource (2.3.4) activesupport (2.3.4, 1.4.4) acts_as_ferret (0.4.1) capistrano (2.0.0) cgi_multipart_eof_fix (2.5.0, 2.2) daemons (1.0.9, 1.0.7) dnssd (0.6.0) fastthread (1.0.1, 1.0) fcgi (0.8.7) ferret (0.11.4) gem_plugin (0.2.3, 0.2.2) highline (1.2.9) hpricot (0.6) libxml-ruby (0.9.5, 0.3.8.4) mongrel (1.1.4, 1.0.1) mysql (2.8.1) needle (1.3.0) net-sftp (1.1.0) net-ssh (1.1.2) rack (1.0.0) rails (2.3.4, 2.3.3, 1.2.6) rake (0.8.7, 0.7.3) RedCloth (3.0.4) ruby-openid (2.1.7, 1.1.4) ruby-yadis (0.3.4) rubygems-update (1.3.5) rubynode (0.1.3) sqlite3-ruby (1.2.1) termios (0.9.4) <pre> I used the latest version from the trunk (checked it out yesterday). Thanks in advance!
Replies (5)
RE: start redmine fails with uninitialized contant ApplicationController - Added by Ricardo Trindade over 15 years ago
You're using the wrong version of Rails. The easiest solution is to have the correct version in redmine/vendor/rails, instead of trusting the rails version in your system.
See:
http://www.redmine.org/issues/3597
Ricardo
RE: start redmine fails with uninitialized contant ApplicationController - Added by XXX XXX over 15 years ago
Ok thanks for your reply!
I now use the Bitnami version, but I never like it when something else installs apache, mysql, ... for me so I'm going to revert back to the normal version.
RE: start redmine fails with uninitialized contant ApplicationController - Added by Ricardo Trindade over 15 years ago
Actually I think what should happen is that redmine should include rails in it's own repository under vendor. This should make it work out of the box for everyone.
People that for some reason want a different particular version know enough to change it. Perhaps there are good reasons the developers have for not doing this, but I can't think of any.
RE: start redmine fails with uninitialized contant ApplicationController - Added by Eric Davis over 15 years ago
Ricardo Trindade wrote:
Actually I think what should happen is that redmine should include rails in it's own repository under vendor. This should make it work out of the box for everyone.
The packaged releases include Rails with Redmine. Many people are using the svn versions so they are not getting Rails automatically.
Eric Davis
RE: start redmine fails with uninitialized contant ApplicationController - Added by Ricardo Trindade over 15 years ago
I think one of the reasons people are using svn is because of the easier upgrades.
I still can't see a reason for not including rails in subversion (even if it's via svn:externals or piston), but that's something that probably the dev team has good reasons not to do.