Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8061201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:15:29+00:00 2026-06-05T10:15:29+00:00

I just started a new spree application. I generated the project, installed capistrano and

  • 0

I just started a new spree application.
I generated the project, installed capistrano and other gems.

When I run rake db:create (and any other task) I get (using --trace)

rake aborted!
ActiveRecord::ConnectionNotEstablished
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:398:in `retrieve_connection'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:168:in `retrieve_connection'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:142:in `connection'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/model_schema.rb:228:in `columns'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/model_schema.rb:248:in `column_names'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/rd_searchlogic-3.0.1/lib/searchlogic/named_scopes/ordering.rb:61:in `ordering_condition_details'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/rd_searchlogic-3.0.1/lib/searchlogic/named_scopes/ordering.rb:52:in `method_missing'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/spree_core-0.40.0/lib/spree_core/find_by_param.rb:105:in `<class:Base>'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/spree_core-0.40.0/lib/spree_core/find_by_param.rb:104:in `<top (required)>'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/spree_core-0.40.0/lib/spree_core.rb:47:in `<top (required)>'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/spree-0.40.0/lib/spree.rb:1:in `require'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/spree-0.40.0/lib/spree.rb:1:in `<top (required)>'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.3/lib/bundler/runtime.rb:68:in `require'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.3/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in `each'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in `block in require'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `each'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `require'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.3/lib/bundler.rb:119:in `require'
/home/dever/code/corsisulweb_it/config/application.rb:13:in `<top (required)>'
/home/dever/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/home/dever/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/home/dever/code/corsisulweb_it/Rakefile:5:in `<top (required)>'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `block in load_rakefile'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `block in run'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/home/dever/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/home/dever/.rvm/gems/ruby-1.9.3-p125/bin/rake:19:in `load'
/home/dever/.rvm/gems/ruby-1.9.3-p125/bin/rake:19:in `<main>'

Of course I configured config/database.yml properly (I share the same db user on my devbox).

This is the Gemfile:

source 'https://rubygems.org'

gem 'rails', '3.2.3'
gem 'mysql2', :groups => [:development, :test]

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'

  gem 'therubyracer', :platform => :ruby

  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

group :development do
  gem 'capistrano'
end

group :production do
  gem 'pg'
end

gem 'spree'

And this is the config/database.yml

# MySQL.  Versions 4.1 and 5.0 are recommended.
# 
# Install the MYSQL driver
#   gem install mysql2
#
# Ensure the MySQL gem is defined in your Gemfile
#   gem 'mysql2'
#
# And be sure to use new-style password hashing:
#   http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: project_it_development
  pool: 5
  username: dever
  password: dever
  socket: /var/run/mysqld/mysqld.sock

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: project_it_test
  pool: 5
  username: dever
  password: dever
  socket: /var/run/mysqld/mysqld.sock

production:
  adapter: postgres
  encoding: utf8
  reconnect: false
  database: project_it
  pool: 5
  username: user-production
  password: pwd-user-production
  socket: /var/run/mysqld/mysqld.sock

I ran bundle --without production since I’m using mysql on local machine and can’t compile the gem pg properly.

I can login using the credentials with the mysql client. What can be wrong here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T10:15:32+00:00Added an answer on June 5, 2026 at 10:15 am

    It seems that you are using an old version spree_core-0.40.0/lib/spree_core/find_by_param.rb:104:in

    Try specifying it in the gemfile like

    gem 'spree', '1.1.0'
    

    Then install the new version and\or clean the old ones.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just started a new project, and I am using the Delphi 2009
We just started a new project in Java EE in our office and i
I just started a new Haskell project and wanted to set up a good
I just started a new project, and now with ASP.NET MVC being designed in
I've just started a new project in ASP.net 4.0 with MVC 2. What I
I just started a new GWT project for a client and I'm interested in
I've just started a new project in which the presentation layer will be done
I have just started a new project using a Linq to Sql model and
We have just started our new assignment - web-based project. Before I get directly
I just started a new project with the Dojo toolkit, and no sooner did

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.