Compatibility error?

166 views
Skip to first unread message

olla ollu

unread,
Mar 4, 2015, 5:10:44 PM3/4/15
to refine...@googlegroups.com
I set up my practice application on heroku to work with amazon S3. I followed the instructions on these refinery guide pages http://refinerycms.com/guides/heroku and http://refinerycms.com/guides/amazon-s3-for-uploads religiously and ended up with this error in my Heroku application logs:

  •  ahyhor heroku/web.1: Starting process with command `bin/rails server -p 26073 -e production`
  •  ahyhor app/web.1: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- dragonfly/s3_data_store (LoadError)
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/bundler/gems/refinerycms-09d7e11a39c1/images/lib/refinery/images/dragonfly.rb:29:in `configure!'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/bundler/gems/refinerycms-09d7e11a39c1/images/lib/refinery/images/engine.rb:12:in `block in <class:Engine>'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/initializable.rb:30:in `instance_exec'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/initializable.rb:30:in `run'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/initializable.rb:55:in `block in run_initializers'
  •  ahyhor app/web.1:  from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
  •  ahyhor app/web.1:  from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
  •  ahyhor app/web.1:  from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
  •  ahyhor app/web.1:  from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
  •  ahyhor app/web.1:  from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
  •  ahyhor app/web.1:  from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
  •  ahyhor app/web.1:  from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:209:in `block in each_strongly_connected_component_from'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/initializable.rb:44:in `each'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/initializable.rb:44:in `tsort_each_child'
  •  ahyhor app/web.1:  from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:203:in `each_strongly_connected_component_from'
  •  ahyhor app/web.1:  from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:209:in `block in each_strongly_connected_component_from'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/initializable.rb:44:in `each'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/initializable.rb:44:in `tsort_each_child'
  •  ahyhor app/web.1:  from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:203:in `each_strongly_connected_component_from'
  •  ahyhor app/web.1:  from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:209:in `block in each_strongly_connected_component_from'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/initializable.rb:44:in `each'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/initializable.rb:44:in `tsort_each_child'
  •  ahyhor app/web.1:  from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:203:in `each_strongly_connected_component_from'
  •  ahyhor app/web.1:  from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
  •  ahyhor app/web.1:  from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each'
  •  ahyhor app/web.1:  from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
  •  ahyhor app/web.1:  from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/initializable.rb:54:in `run_initializers'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/application.rb:352:in `initialize!'
  •  ahyhor app/web.1:  from /app/config/environment.rb:5:in `<top (required)>'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
  •  ahyhor app/web.1:  from /app/config.ru:3:in `block in <main>'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.0/lib/rack/builder.rb:55:in `instance_eval'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.0/lib/rack/builder.rb:55:in `initialize'
  •  ahyhor app/web.1:  from /app/config.ru:in `new'
  •  ahyhor app/web.1:  from /app/config.ru:in `<main>'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.0/lib/rack/builder.rb:49:in `eval'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.0/lib/rack/builder.rb:49:in `new_from_string'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.0/lib/rack/builder.rb:40:in `parse_file'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:299:in `build_app_and_options_from_config'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:208:in `app'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/server.rb:61:in `app'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:336:in `wrapped_app'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:272:in `start'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/server.rb:80:in `start'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:80:in `block in server'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `tap'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `server'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
  •  ahyhor app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>'
  •  ahyhor app/web.1:  from bin/rails:4:in `require'
  •  ahyhor app/web.1:  from bin/rails:4:in `<main>'

 From my intepretation, looks like active support for rails 4.2 can't read the S3 data store file.

  • There were no errors while deploying.
  • heroku config command shows my key, secret and bucket name are well added also.
  • Refinerycms master branch in use.

Initially got the error when I used this in my config/environments/production.rb file
ENV['S3_KEY']='fill_in_your_key_here'
ENV
['S3_SECRET']='fill_in_your_secret_key_here'
ENV
['S3_BUCKET']='fill_in_your_bucket_name_here'

then I changed it to 
Refinery::Core.configure do |config|
config
.s3_backend = true
config
.s3_access_key_id = 'fill_in_your_key_here'
config
.s3_secret_access_key = 'fill_in_your_secret_key_here'
config
.s3_bucket_name = 'fill_in_your_bucket_name_here'
config
.s3_region = 'fill_in_your_buckets_region_here' # this one's not always required, default is 'us-east-1'
end
but still same error.
Any help or pointers are gladly welcomed.

Philip Arndt

unread,
Mar 4, 2015, 5:31:49 PM3/4/15
to refine...@googlegroups.com
Sorry, the guide isn't 100% up to date.. what you need to do is put this in your Gemfile:

group :production do
  gem "dragonfly-s3_data_store"
end

olla ollu

unread,
Mar 4, 2015, 5:39:20 PM3/4/15
to refine...@googlegroups.com
All fine now.


Thank you.

--
You received this message because you are subscribed to the "Refinery CMS" Google Group.
To post to this group, send email to refine...@googlegroups.com
 
http://www.refinerycms.com
---
You received this message because you are subscribed to a topic in the Google Groups "Refinery CMS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/refinery-cms/REMHkn4Osdo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to refinery-cms...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/refinery-cms/2CDD06664E194D66B53F8B8187548DF1%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Philip Arndt

unread,
Mar 4, 2015, 5:43:29 PM3/4/15
to refine...@googlegroups.com
Awesome, thanks for the confirmation! I've updated the guide to be more truthful.
Reply all
Reply to author
Forward
0 new messages