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??????

6 comments
Comment actions Permalink

More information:

ruby-1.9.3-p385:

  ruby:
    interpreter:  "ruby"
    version:      "1.9.3p385"
    date:         "2013-02-06"
    platform:     "x86_64-darwin12.2.0"
    patchlevel:   "2013-02-06 revision 39114"
    full_version: "ruby 1.9.3p385 (2013-02-06 revision 39114) [x86_64-darwin12.2.0]"

  homes:
    gem:          "/Users/bborun/.rvm/gems/ruby-1.9.3-p385"
    ruby:         "/Users/bborun/.rvm/rubies/ruby-1.9.3-p385"

  binaries:
    ruby:         "/Users/bborun/.rvm/rubies/ruby-1.9.3-p385/bin/ruby"
    irb:          "/Users/bborun/.rvm/rubies/ruby-1.9.3-p385/bin/irb"
    gem:          "/Users/bborun/.rvm/rubies/ruby-1.9.3-p385/bin/gem"
    rake:         "/Users/bborun/.rvm/gems/ruby-1.9.3-p385/bin/rake"

  environment:
    PATH:         "/Users/bborun/.rvm/gems/ruby-1.9.3-p385/bin:/Users/bborun/.rvm/gems/ruby-1.9.3-p385@global/bin:/Users/bborun/.rvm/rubies/ruby-1.9.3-p385/bin:/Users/bborun/.rvm/bin:/usr/local/Cellar/ruby/1.9.3-p374/bin:/usr/local/mysql/bin:/usr/local/share/npm/bin:/usr/local/opt/apple-gcc422/bin:~/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/X11/bin"
    GEM_HOME:     "/Users/bborun/.rvm/gems/ruby-1.9.3-p385"
    GEM_PATH:     "/Users/bborun/.rvm/gems/ruby-1.9.3-p385:/Users/bborun/.rvm/gems/ruby-1.9.3-p385@global"
    MY_RUBY_HOME: "/Users/bborun/.rvm/rubies/ruby-1.9.3-p385"
    IRBRC:        "/Users/bborun/.rvm/rubies/ruby-1.9.3-p385/.irbrc"
    RUBYOPT:      ""
    gemset:       ""

0
Comment actions Permalink

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.

0
Comment actions Permalink

Yes, there were some anomalistic settings in the posting, but as you don't allow editing of the original posting, I couldn't correct the contents.

Even though I corrected the mismatches, I continue to get the following error:

/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-p385/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-p385/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-p385/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-p385/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-p385/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-p385/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-p385/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-p385/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-p385/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-p385/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-p385/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `instance_exec'
    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `run'
    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/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-p385/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `each'
    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `run_initializers'
    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/application.rb:136:in `initialize!'
    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/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-p385/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/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-p385/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-p385/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/application.rb:103:in `require_environment!'
    Error:Error: from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/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>'



You will note that rails is trying to 'fetch' 'capitator/database.yml' and not 'config/database.yml'.
0
Comment actions Permalink

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.

0
Comment actions Permalink

Oleg,


Did what you suggested and...


imac-01:~ bborun$ cd /Volumes/Public/Our\ Projects/Software\ Development/Ruby/RoR/capitator


imac-01:capitator bborun$ bundle exec script/rails generate

/Users/bborun/.rvm/gems/ruby-1.9.3-p385/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)
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_specification.rb:25:in `spec'
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in `establish_connection'
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/activerecord-3.2.12/lib/active_record/railtie.rb:82:in `block (2 levels) in <class:Railtie>'
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:26:in `block in on_load'
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:25:in `each'
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:25:in `on_load'
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/activerecord-3.2.12/lib/active_record/railtie.rb:74:in `block in <class:Railtie>'
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `instance_exec'
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `run'
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/initializable.rb:55:in `block in run_initializers'
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `each'
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `run_initializers'
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/application.rb:136:in `initialize!'
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/railtie/configurable.rb:30:in `method_missing'
 from /Volumes/Public/Our Projects/Software Development/Ruby/RoR/capitator/config/environment.rb:5:in `<top (required)>'
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `block in require'
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency'
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/application.rb:103:in `require_environment!'
 from /Users/bborun/.rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/commands.rb:25:in `<top (required)>'
 from script/rails:6:in `require'
 from script/rails:6:in `<main>'

My 'rvm'/Ruby environment is:


rvm_prefix=/Users/bborun

PATH=/Users/bborun/.rvm/gems/ruby-1.9.3-p385/bin:/Users/bborun/.rvm/gems/ruby-1.9.3-p385@global/bin:/Users/bborun/.rvm/rubies/ruby-1.9.3-p385/bin:/Users/bborun/.rvm/bin:/usr/local/mysql/bin:/usr/local/share/npm/bin:/usr/local/opt/apple-gcc422/bin:~/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/X11/bin
PWD=/Volumes/Public/Our Projects/Software Development/Ruby/RoR/capitator

rvm_version=1.18.6 (stable)
rvm_debug_clr=

HOME=/Users/bborun

GEM_PATH=/Users/bborun/.rvm/gems/ruby-1.9.3-p385:/Users/bborun/.rvm/gems/ruby-1.9.3-p385@global

rvm_warn_clr=
RUBY_VERSION=ruby-1.9.3-p385


In addition, I am using 'JewelryBox' as wrapper/frontend to 'rvm'.


Message was edited by: Basil Borun

0
Comment actions Permalink

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.

0

Please sign in to leave a comment.