6 Replies Last post: Feb 15, 2013 3:15 PM by Oleg Sukhodolsky  
Basil Borun Newbie 9 posts since
Feb 5, 2011
Currently Being Moderated

Feb 14, 2013 12:48 PM

Major release (5.0) proves painful, again

I am really fed up with the problems that I encounter on major version upgrades. I have come to terms with the idiosyncracies of v4.5 but, now, face the prospect of delays impoosed by v5. For example, I upgraded to v5.0 on Mac OS X Mountain Lion(10.8.2) only to be greeted with:

 

/Volumes/Public/Our Projects/Software Development/Ruby/RoR/capitator/script/rails

    Error:Error:Get available generators script executes with errors:

    Error:Error:/Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_specification.rb:35:in `resolve_string_connection': undefined method `fetch' for "capitator/database.yml":String (NoMethodError)

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_specification.rb:25:in `spec'

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in `establish_connection'

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/activerecord-3.2.12/lib/active_record/railtie.rb:82:in `block (2 levels) in <class:Railtie>'

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:26:in `block in on_load'

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:25:in `each'

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:25:in `on_load'

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/activerecord-3.2.12/lib/active_record/railtie.rb:74:in `block in <class:Railtie>'

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `instance_exec'

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `run'

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/railties-3.2.12/lib/rails/initializable.rb:55:in `block in run_initializers'

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `each'

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `run_initializers'

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/railties-3.2.12/lib/rails/application.rb:136:in `initialize!'

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/railties-3.2.12/lib/rails/railtie/configurable.rb:30:in `method_missing'

    Error:Error: from /Volumes/Public/Our Projects/Software Development/Ruby/RoR/capitator/config/environment.rb:5:in `<top (required)>'

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `block in require'

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency'

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/railties-3.2.12/lib/rails/application.rb:103:in `require_environment!'

    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p374@global/gems/railties-3.2.12/lib/rails/commands.rb:25:in `<top (required)>'

    Error:Error: from /Volumes/Public/Our Projects/Software Development/Ruby/RoR/capitator/script/rails:6:in `require'

    Error:Error: from /Volumes/Public/Our Projects/Software Development/Ruby/RoR/capitator/script/rails:6:in `<main>'

 

Why??????

Oleg Sukhodolsky JetBrains 387 posts since
Apr 4, 2012
Currently Being Moderated
Feb 14, 2013 5:15 PM in response to: Basil Borun
Re: Major release (5.0) proves painful, again

It is interesting you says that you are using 1.9.3p385, but accourding the output it is ruby-1.9.3-p374@global who was used.

I'd double check what sdk is set for the project.

 

Regards, Oleg.

Oleg Sukhodolsky JetBrains 387 posts since
Apr 4, 2012
Currently Being Moderated
Feb 15, 2013 9:39 AM in response to: Basil Borun
Re: Major release (5.0) proves painful, again

Just to doublecheck that this indead RM's problem: could you please run "bundle exec script/rails generate" from command line in root directory of your project.

 

Thanks, Oleg.

Oleg Sukhodolsky JetBrains 387 posts since
Apr 4, 2012
Currently Being Moderated
Feb 15, 2013 3:15 PM in response to: Basil Borun
Re: Major release (5.0) proves painful, again

As you can see even rails script unable to provide list of generators (don't know why though).

Perhaps some problem with your environment or database configuration.

 

Regards, Oleg.

More Like This

  • Retrieving data ...