#14 √ invalid
Mohsin

Application failes to load

Reported by Mohsin | June 2nd, 2008 @ 02:39 AM

I am using Rails 2.02 on Ubuntu and I've freezed by rails under /vendor. Now I installed rails plugins, and hooked the boot in config/environment and try to boot the application and get the following error:

====================== Stack Trace ======================

/home/mohsinhijazee/Projects/Ruby/Rails/madb/trunk/vendor/rails/activesupport/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method': undefined method `initialize_schema_migrations_table' for module `ActiveRecord::ConnectionAdapters::SchemaStatements' (NameError)

from /home/mohsinhijazee/Projects/Ruby/Rails/madb/trunk/vendor/rails/activesupport/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method_chain'

from /home/mohsinhijazee/Projects/Ruby/Rails/madb/trunk/vendor/plugins/engines/lib/engines/rails_extensions/migrations.rb:131:in `included'

from /home/mohsinhijazee/Projects/Ruby/Rails/madb/trunk/vendor/plugins/engines/lib/engines/rails_extensions/migrations.rb:131:in `class_eval'

from /home/mohsinhijazee/Projects/Ruby/Rails/madb/trunk/vendor/plugins/engines/lib/engines/rails_extensions/migrations.rb:131:in `included'

from /home/mohsinhijazee/Projects/Ruby/Rails/madb/trunk/vendor/plugins/engines/lib/engines/rails_extensions/migrations.rb:155:in `include'

from /home/mohsinhijazee/Projects/Ruby/Rails/madb/trunk/vendor/plugins/engines/lib/engines/rails_extensions/migrations.rb:155

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'

... 26 levels...

from /home/mohsinhijazee/Projects/Ruby/Rails/madb/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:496:in `require'

from /home/mohsinhijazee/Projects/Ruby/Rails/madb/trunk/vendor/rails/railties/lib/commands/server.rb:39

from script/server:3:in `require'

from script/server:3

=============== END Stack Trace ==================

Even if I remove the

require File.join(File.dirname(__FILE__), '../vendor/plugins/engines/boot')

line, even then same error. To get rid of it, the plugin has to be uninstalled.

Comments and changes to this ticket

  • James Adam

    James Adam June 6th, 2008 @ 05:43 AM

    It sounds like you are using a version of the Rails plugin that requires Rails 2.1, rather than Rails 2.0.

    Can you confirm where/how you downloaded the engines plugin you're using?

  • James Adam

    James Adam June 6th, 2008 @ 05:46 AM

    • → State changed from “new” to “more_details_needed”
  • Kaworu-kun

    Kaworu-kun June 12th, 2008 @ 03:31 AM

    Hello,

    Having the same problem here.

    Server: Ubuntu Server 8.04

    Rails: 2.1.0

    Engines: 2.1.0 (from trunk or tags/rel_2.1.0)

    === Stack Trace ===

    ** Starting Mongrel listening at 127.0.0.1:8000

    ** Initiating groups for www-data.

    ** Changing group to "www-data".

    ** Changing user to "www-data".

    ** Starting Rails with production environment...

    /home/xxxx/redmine/vendor/rails/activesupport/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method': undefined method `initialize_schema_migrations_table' for module `ActiveRecord::ConnectionAdapters::SchemaStateme$

    from /home/xxxx/redmine/vendor/rails/activesupport/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method_chain'

    from /home/xxxx/redmine/vendor/plugins/engines/lib/engines/rails_extensions/migrations.rb:131:in `included'

    from /home/xxxx/redmine/vendor/plugins/engines/lib/engines/rails_extensions/migrations.rb:131:in `class_eval'

    from /home/xxxx/redmine/vendor/plugins/engines/lib/engines/rails_extensions/migrations.rb:131:in `included'

    from /home/xxxx/redmine/vendor/plugins/engines/lib/engines/rails_extensions/migrations.rb:155:in `include'

    from /home/xxxx/redmine/vendor/plugins/engines/lib/engines/rails_extensions/migrations.rb:155

    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'

    ... 27 levels...

    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run'

    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281

    from /usr/bin/mongrel_rails:19:in `load'

    from /usr/bin/mongrel_rails:19

    === End Stack Trace ===

  • Kaworu-kun

    Kaworu-kun June 12th, 2008 @ 05:02 AM

    Little update.

    I think this issue occure because Redmine use rails 2.0.x lib.

    So I've downgraded rails to 2.0.2, installed engines 2.0.0 and everything works fine now.

  • James Adam

    James Adam June 14th, 2008 @ 04:14 PM

    • → State changed from “more_details_needed” to “invalid”

    Closing this issue as it seems to be a problem related to using the wrong version of the plugin with the wrong version of rails

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The rails engines plugin itself

Shared Ticket Bins

People watching this ticket

Tags