Skip to content

Instantly share code, notes, and snippets.

@rietta
Created July 2, 2012 22:28
Show Gist options
  • Save rietta/3036132 to your computer and use it in GitHub Desktop.
Save rietta/3036132 to your computer and use it in GitHub Desktop.
Spree on Ubuntu (with PostgreSQL) ActiveRecord::ConnectionNotEstablished
RAILS_ENV=development rails c
/home/railsapps/.rvm/gems/ruby-1.9.2-p290@spree_demo/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:398:in `retrieve_connection': ActiveRecord::ConnectionNotEstablished (ActiveRecord::ConnectionNotEstablished)
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@spree_demo/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:168:in `retrieve_connection'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@spree_demo/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:142:in `connection'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@spree_demo/gems/activerecord-3.2.3/lib/active_record/model_schema.rb:228:in `columns'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@spree_demo/gems/activerecord-3.2.3/lib/active_record/model_schema.rb:248:in `column_names'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@spree_demo/gems/rd_searchlogic-3.0.1/lib/searchlogic/named_scopes/ordering.rb:61:in `ordering_condition_details'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@spree_demo/gems/rd_searchlogic-3.0.1/lib/searchlogic/named_scopes/ordering.rb:52:in `method_missing'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@spree_demo/gems/spree_core-0.40.0/lib/spree_core/find_by_param.rb:105:in `<class:Base>'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@spree_demo/gems/spree_core-0.40.0/lib/spree_core/find_by_param.rb:104:in `<top (required)>'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@spree_demo/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@spree_demo/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@spree_demo/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@spree_demo/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@spree_demo/gems/spree_core-0.40.0/lib/spree_core.rb:47:in `<top (required)>'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@spree_demo/gems/spree-0.40.0/lib/spree.rb:1:in `require'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@spree_demo/gems/spree-0.40.0/lib/spree.rb:1:in `<top (required)>'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `each'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `block in require'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `each'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `require'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler.rb:122:in `require'
from /home/railsapps/shopping/devdemo/releases/20120702202047/config/application.rb:7:in `<top (required)>'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@spree_demo/gems/railties-3.2.3/lib/rails/commands.rb:39:in `require'
from /home/railsapps/.rvm/gems/ruby-1.9.2-p290@spree_demo/gems/railties-3.2.3/lib/rails/commands.rb:39:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment