Spree installation issues

215 views
Skip to first unread message

Richard G

unread,
Oct 8, 2011, 12:48:07 AM10/8/11
to Spree
I have successfully setup several spree projects in my local and in
heroku. But when I tried to create a new project today following the
same steps I did two months ago, I got some errors. I'm sure a lot has
changed since I deployed stuff in my local and in production but I
could not figure out what I'm missing.

Can somebody please help me? Here are the steps I was following:

bundle install
rake db:create
rails g spree:site

rake spree_sample:load
I got this error:
rake aborted!
Don't know how to build task 'spree_sample:load'

Then I skipped sample data and populate the database
rake db:bootstrap

I got this error:
rake aborted!
Could not find table 'countries'

So I tried to manually run each step:
rake db:migrate
rake db:seed

And start spree
rails s

I got this error:

ActiveRecord::StatementInvalid in ProductsController#index
Could not find table 'product_groups'

Here's my gemfile:

source 'http://rubygems.org'

# Generic gem dependencies first
gem 'rails', '3.0.7'
gem 'rake', '0.8.7'
gem 'aws-s3', :require => 'aws/s3'
gem 'dynamic_form'
gem 'heroku'
gem 'memcache-client'

# Followed by spree itself first, all spree-specific extensions second
gem 'savon'
gem 'spree', '0.60.0'
gem 'spree_heroku', '1.1.0', :git => 'git://github.com/amedse/spree-
heroku.git'

# Dev/Test/Stage/Prod gems
group :production, :staging do
gem 'pg'
end

group :development, :test do
gem 'sqlite3'
gem 'webrat'
gem 'cucumber-rails'
gem 'rspec-rails'
end

# EOF

Dwayne Henderson

unread,
Oct 8, 2011, 5:05:37 AM10/8/11
to spree...@googlegroups.com
Here's what Brian gave me about one month ago, lemme know how it goes!

rails new walmart

cd walmart

echo 'gem "arel", "2.1.4"' >> Gemfile

echo 'gem "spree", :git => "git://github.com/spree/spree.git"' >> Gemfile

bundle install

rails g spree:site

rake db:migrate

rake db:seed

rake db:sample

--Dwayne


--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree...@googlegroups.com.
To unsubscribe from this group, send email to spree-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.


Richard G

unread,
Oct 8, 2011, 9:28:49 AM10/8/11
to Spree
I don't how this is different from the steps I followed except my
gemfile has more dependencies. But for the sake of knowing it this
really will work, i tried it. True enough, it failed with
incompatibilities issues. Now, I'm wondering if i need to update my
Rails version? The version that came with the mac is 3.0.7. There must
be something changed somewhere that is breaking the installation.

On Oct 8, 5:05 am, Dwayne Henderson <its.code.in.h...@gmail.com>
wrote:

Peter Berkenbosch

unread,
Oct 8, 2011, 9:29:17 AM10/8/11
to spree...@googlegroups.com
The latest Spree uses rails 3.1.1

Peter Berkenbosch
--------—-------—---------—
Wat niet kan, is nog nooit gebeurd.
-------—--------—-----------—
Verstuurd vanaf mijn iPhone.

Richard G

unread,
Oct 8, 2011, 9:46:38 AM10/8/11
to Spree
But I'm installing 0.60.0. And this thing worked for a couple of
projects before. I wish there's clear documentation on how to handle
these changes.

On Oct 8, 9:29 am, Peter Berkenbosch <peterberkenbo...@me.com> wrote:
> The latest Spree uses rails 3.1.1
>
> Peter Berkenbosch
> --------—-------—---------—
> Wat niet kan, is nog nooit gebeurd.
> -------—--------—-----------—
> Verstuurd vanaf mijn iPhone.
>

Peter Berkenbosch

unread,
Oct 8, 2011, 9:54:09 AM10/8/11
to spree...@googlegroups.com
Ah, make sure you are using the correct version of the extensions. Some of them are already upgraded for 0.70 in the git master branch. Hence the deface error message, that's new for 0.70 (deface is new ;) )

What extensions are you using?

Peter Berkenbosch
--------—-------—---------—
Wat niet kan, is nog nooit gebeurd.
-------—--------—-----------—
Verstuurd vanaf mijn iPhone.

On 8 okt. 2011, at 15:46, Richard G <richgo...@gmail.com> wrote:

> <mime-attachment.txt>

Richard G

unread,
Oct 8, 2011, 9:59:53 AM10/8/11
to Spree
Thanks for your help!
> On 8 okt. 2011, at 15:46, Richard G <richgomes1...@gmail.com> wrote:
>
>
>
>
>
>
>
> > <mime-attachment.txt>

Peter Berkenbosch

unread,
Oct 8, 2011, 10:05:36 AM10/8/11
to spree...@googlegroups.com
will take a better look when I'm home.. (in the train right now)

First things I should do:

* change spree version to 0.60.2 for security fixes ( among other things)
* check the spree_heroku git master branch for traces of Deface calls.

If this is a brand new shop, you could also consider using the latest 0.70 release. Note that not all extensions are upgraded for 0.70, but the most will follow rather quickly after a new Spree release.

Peter Berkenbosch
--------—-------—---------—
Wat niet kan, is nog nooit gebeurd.
-------—--------—-----------—
Verstuurd vanaf mijn iPhone.

Richard G

unread,
Oct 8, 2011, 10:39:09 AM10/8/11
to Spree
I changed spree version to 0.60.2 and rails to 3.0.9 and got the same
errors.

bundle install
rake db:create
rails g spree:site

rake spree_sample:load
I got this error:
rake aborted!
Don't know how to build task 'spree_sample:load'

Then I skipped sample data and populate the database
rake db:bootstrap
I got this error:
rake aborted!
Could not find table 'countries'

So I tried to manually run each step:
rake db:migrate
rake db:seed
rake db:sample

And start spree
rails s
I got this error:
ActiveRecord::StatementInvalid in ProductsController#index
Could not find table 'product_groups'

----------------------

On Oct 8, 10:05 am, Peter Berkenbosch <peterberkenbo...@me.com> wrote:
> will take a better look when I'm home.. (in the train right now)
>
> First things I should do:
>
> * change spree version to 0.60.2 for security fixes ( among other things)
> * check the spree_heroku git master branch for traces of Deface calls.
>
> If this is a brand new shop, you could also consider using the latest 0.70 release. Note that not all extensions are upgraded for 0.70, but the most will follow rather quickly after a new Spree release.
>
> Peter Berkenbosch
> --------—-------—---------—
> Wat niet kan, is nog nooit gebeurd.
> -------—--------—-----------—
> Verstuurd vanaf mijn iPhone.
>

Brian Quinn

unread,
Oct 8, 2011, 10:50:24 AM10/8/11
to spree...@googlegroups.com
You should refer to the README for the version of Spree you are trying to use, see the "Using the gem" section here:


Basically you were missing the:

rake spree:install 

step.


HTH,


Brian Quinn

-------------------------------------------
Rails Dog LLC
2 Wisconsin Circle, Suite 700
Chevy Chase, MD 20815
-------------------------------------------

Richard G

unread,
Oct 8, 2011, 11:04:31 AM10/8/11
to Spree
Thanks Brian! I know I am missing something. I was following the
directions on the spree getting started guide (http://
guides.spreecommerce.com/getting_started.html) and this part is
missing. Everything looks good now.
> > On Oct 8, 10:05 am, Peter Berkenbosch <peterberkenbo...@me.com (http://me.com)> wrote:
> > > will take a better look when I'm home.. (in the train right now)
>
> > > First things I should do:
>
> > > * change spree version to 0.60.2 for security fixes ( among other things)
> > > * check the spree_heroku git master branch for traces of Deface calls.
>
> > > If this is a brand new shop, you could also consider using the latest 0.70 release. Note that not all extensions are upgraded for 0.70, but the most will follow rather quickly after a new Spree release.
>
> > > Peter Berkenbosch
> > > --------—-------—---------—
> > > Wat niet kan, is nog nooit gebeurd.
> > > -------—--------—-----------—
> > > Verstuurd vanaf mijn iPhone.
>
> > > On 8 okt. 2011, at 15:59, Richard G <richgomes1...@gmail.com (http://gmail.com)> wrote:
>
> > > > Thanks for your help!
>
> > > > Here's my gemfile:
>
> > > > source 'http://rubygems.org'
> > > > # Generic gem dependencies first
> > > > gem 'rails', '3.0.7'
> > > > gem 'rake', '0.8.7'
> > > > gem 'aws-s3', :require => 'aws/s3'
> > > > gem 'dynamic_form'
> > > > gem 'heroku'
> > > > gem 'memcache-client'
> > > > # Followed by spree itself first, all spree-specific extensions
> > > > second
> > > > gem 'savon'
> > > > gem 'spree', '0.60.0'
> > > > gem 'spree_heroku', '1.1.0', :git => 'git://github.com/amedse/spree- (http://github.com/amedse/spree-)
> > > > heroku.git'
> > > > # Dev/Test/Stage/Prod gems
> > > > group :production, :staging do
> > > > gem 'pg'
> > > > end
> > > > group :development, :test do
> > > > gem 'sqlite3'
> > > > gem 'webrat'
> > > > gem 'cucumber-rails'
> > > > gem 'rspec-rails'
> > > > end
> > > > # EOF
>
> > > > On Oct 8, 9:54 am, Peter Berkenbosch <peterberkenbo...@me.com (http://me.com)> wrote:
> > > > > Ah, make sure you are using the correct version of the extensions. Some of them are already upgraded for 0.70 in the git master branch. Hence the deface error message, that's new for 0.70 (deface is new ;) )
>
> > > > > What extensions are you using?
>
> > > > > Peter Berkenbosch
> > > > > --------—-------—---------—
> > > > > Wat niet kan, is nog nooit gebeurd.
> > > > > -------—--------—-----------—
> > > > > Verstuurd vanaf mijn iPhone.
>
> > > > > On 8 okt. 2011, at 15:46, Richard G <richgomes1...@gmail.com (http://gmail.com)> wrote:
>
> > > > > > <mime-attachment.txt>
>
> > > > --
> > > > You received this message because you are subscribed to the Google Groups "Spree" group.
> > > > To post to this group, send email to spree...@googlegroups.com (mailto:spree...@googlegroups.com).
> > > > To unsubscribe from this group, send email to spree-user+...@googlegroups.com (mailto:spree-user+...@googlegroups.com).
> > > > For more options, visit this group athttp://groups.google.com/group/spree-user?hl=en.
>
> > --  
> > You received this message because you are subscribed to the Google Groups "Spree" group.
> > To post to this group, send email to spree...@googlegroups.com (mailto:spree...@googlegroups.com).
> > To unsubscribe from this group, send email to spree-user+...@googlegroups.com (mailto:spree-user+...@googlegroups.com).
Reply all
Reply to author
Forward
0 new messages