Skip to content

Instantly share code, notes, and snippets.

@bld2104
Created March 9, 2016 18:44
Show Gist options
  • Save bld2104/55858c818eea94bf659e to your computer and use it in GitHub Desktop.
Save bld2104/55858c818eea94bf659e to your computer and use it in GitHub Desktop.
cant-add-images
2016-03-09T18:43:55.392870+00:00 app[web.1]: Started POST "/shop/admin/products/large-csa-box/images" for 100.14.176.16 at 2016-03-09 18:43:55 +0000
2016-03-09T18:43:55.394667+00:00 app[web.1]: Processing by Spree::Admin::ImagesController#create as HTML
2016-03-09T18:43:55.394731+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"1SW154/zj2YpEFHv2+4nUR1pUHygLikN+cnup8FmtRxVNlPdu+MLjIVjg6ReQ4yVZuTTOCh2pbuRoQ0UxX69zw==", "image"=>{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007f766033da00 @tempfile=#<Tempfile:/tmp/RackMultipart20160309-3-10u1w1k.jpg>, @original_filename="csa-box-large.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"image[attachment]\"; filename=\"csa-box-large.jpg\"\r\nContent-Type: image/jpeg\r\n">, "viewable_id"=>"1", "alt"=>""}, "button"=>"", "product_id"=>"large-csa-box"}
2016-03-09T18:43:55.396535+00:00 app[web.1]: Spree::Preference Load (0.7ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = $1 LIMIT 1 [["key", "spree/backend_configuration/locale"]]
2016-03-09T18:43:55.398946+00:00 app[web.1]: Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = $1 ORDER BY "spree_users"."id" ASC LIMIT 1 [["id", 1]]
2016-03-09T18:43:55.401670+00:00 app[web.1]: (0.7ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = $1 AND "spree_roles"."name" = $2 [["user_id", 1], ["name", "admin"]]
2016-03-09T18:43:55.403973+00:00 app[web.1]: Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL AND "spree_products"."slug" = $1 ORDER BY "spree_products"."id" ASC LIMIT 1 [["slug", "large-csa-box"]]
2016-03-09T18:43:55.406294+00:00 app[web.1]: Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" IN (1) ORDER BY "spree_variants".position ASC
2016-03-09T18:43:55.408166+00:00 app[web.1]: HABTM_OptionValues Load (0.8ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1)
2016-03-09T18:43:55.411056+00:00 app[web.1]: Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1) ORDER BY "spree_assets"."position" ASC
2016-03-09T18:43:55.412846+00:00 app[web.1]: Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."id" IN (1)
2016-03-09T18:43:55.414919+00:00 app[web.1]: Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = $1 AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]]
2016-03-09T18:43:55.416539+00:00 app[web.1]: Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = $1 AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]]
2016-03-09T18:43:55.418913+00:00 app[web.1]: Command :: file -b --mime '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1mskztm.jpg'
2016-03-09T18:43:55.421987+00:00 app[web.1]: Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1pfv09d.jpg[0]' 2>/dev/null
2016-03-09T18:43:55.432543+00:00 app[web.1]: Command :: identify -format %m '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1pfv09d.jpg[0]'
2016-03-09T18:43:55.437903+00:00 app[web.1]: Command :: convert '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1pfv09d.jpg[0]' -auto-orient -resize "48x48>" -strip -auto-orient -colorspace sRGB '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1pfv09d20160309-3-1xn6rgd'
2016-03-09T18:43:55.467548+00:00 app[web.1]: Command :: file -b --mime '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1pfv09d20160309-3-1xn6rgd'
2016-03-09T18:43:55.470432+00:00 app[web.1]: Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1pfv09d.jpg[0]' 2>/dev/null
2016-03-09T18:43:55.480800+00:00 app[web.1]: Command :: identify -format %m '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1pfv09d.jpg[0]'
2016-03-09T18:43:55.485523+00:00 app[web.1]: Command :: convert '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1pfv09d.jpg[0]' -auto-orient -resize "100x100>" -strip -auto-orient -colorspace sRGB '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1pfv09d20160309-3-ttttbz'
2016-03-09T18:43:55.519270+00:00 app[web.1]: Command :: file -b --mime '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1pfv09d20160309-3-ttttbz'
2016-03-09T18:43:55.522379+00:00 app[web.1]: Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1pfv09d.jpg[0]' 2>/dev/null
2016-03-09T18:43:55.532257+00:00 app[web.1]: Command :: identify -format %m '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1pfv09d.jpg[0]'
2016-03-09T18:43:55.536990+00:00 app[web.1]: Command :: convert '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1pfv09d.jpg[0]' -auto-orient -resize "240x240>" -strip -auto-orient -colorspace sRGB '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1pfv09d20160309-3-19lsz3q'
2016-03-09T18:43:55.569015+00:00 app[web.1]: Command :: file -b --mime '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1pfv09d20160309-3-19lsz3q'
2016-03-09T18:43:55.571728+00:00 app[web.1]: Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1pfv09d.jpg[0]' 2>/dev/null
2016-03-09T18:43:55.581257+00:00 app[web.1]: Command :: identify -format %m '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1pfv09d.jpg[0]'
2016-03-09T18:43:55.585991+00:00 app[web.1]: Command :: convert '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1pfv09d.jpg[0]' -auto-orient -resize "600x600>" -strip -auto-orient -colorspace sRGB '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1pfv09d20160309-3-1uwsqg7'
2016-03-09T18:43:55.626652+00:00 app[web.1]: Command :: file -b --mime '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1pfv09d20160309-3-1uwsqg7'
2016-03-09T18:43:55.629475+00:00 app[web.1]: Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-1pfv09d.jpg[0]' 2>/dev/null
2016-03-09T18:43:55.640536+00:00 app[web.1]: (0.6ms) BEGIN
2016-03-09T18:43:55.641260+00:00 app[web.1]: Command :: file -b --mime '/tmp/df48e062303628b5260149ae07d1fd6a20160309-3-fch8d3.jpg'
2016-03-09T18:43:55.674482+00:00 heroku[router]: at=info method=POST path="/shop/admin/products/large-csa-box/images" host=sweetfields.herokuapp.com request_id=d20ee739-f7d8-4ead-9fc6-ac358d0b69eb fwd="100.14.176.16" dyno=web.1 connect=0ms service=354ms status=500 bytes=1754
2016-03-09T18:43:55.770576+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=sweetfields.herokuapp.com request_id=bbeaace4-2bfa-4d65-bd9a-aa01b5dc59e8 fwd="100.14.176.16" dyno=web.1 connect=0ms service=2ms status=304 bytes=133
2016-03-09T18:43:55.645696+00:00 app[web.1]: Spree::Asset Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE (spree_assets.position IS NOT NULL) AND "spree_assets"."viewable_id" = $1 AND "spree_assets"."viewable_type" = $2 ORDER BY spree_assets.position DESC LIMIT 1 [["viewable_id", 1], ["viewable_type", "Spree::Variant"]]
2016-03-09T18:43:55.648238+00:00 app[web.1]: SQL (1.4ms) INSERT INTO "spree_assets" ("type", "viewable_type", "viewable_id", "attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "attachment_width", "attachment_height", "alt", "created_at", "updated_at", "position") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13) RETURNING "id" [["type", "Spree::Image"], ["viewable_type", "Spree::Variant"], ["viewable_id", 1], ["attachment_file_name", "csa-box-large.jpg"], ["attachment_content_type", "image/jpeg"], ["attachment_file_size", 52414], ["attachment_updated_at", "2016-03-09 18:43:55.418232"], ["attachment_width", 700], ["attachment_height", 467], ["alt", ""], ["created_at", "2016-03-09 18:43:55.643872"], ["updated_at", "2016-03-09 18:43:55.643872"], ["position", 2]]
2016-03-09T18:43:55.650298+00:00 app[web.1]: Spree::Variant Load (0.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."id" = $1 LIMIT 1 [["id", 1]]
2016-03-09T18:43:55.652847+00:00 app[web.1]: SQL (0.9ms) UPDATE "spree_variants" SET "updated_at" = '2016-03-09 18:43:55.650676' WHERE "spree_variants"."id" = $1 [["id", 1]]
2016-03-09T18:43:55.654321+00:00 app[web.1]: Spree::Product Load (0.8ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = $1 LIMIT 1 [["id", 1]]
2016-03-09T18:43:55.656806+00:00 app[web.1]: SQL (0.9ms) UPDATE "spree_products" SET "updated_at" = '2016-03-09 18:43:55.654750' WHERE "spree_products"."id" = $1 [["id", 1]]
2016-03-09T18:43:55.658580+00:00 app[web.1]: Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = $1 [["product_id", 1]]
2016-03-09T18:43:55.660649+00:00 app[web.1]: SQL (1.4ms) UPDATE "spree_taxons" SET "updated_at" = '2016-03-09 18:43:55.658907' WHERE 1=0
2016-03-09T18:43:55.662306+00:00 app[web.1]: SQL (1.0ms) UPDATE "spree_taxonomies" SET "updated_at" = '2016-03-09 18:43:55.660979' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position, spree_taxonomies.created_at)
2016-03-09T18:43:55.662826+00:00 app[web.1]: [paperclip] saving /spree/images/8/original/csa-box-large.jpg
2016-03-09T18:43:55.667901+00:00 app[web.1]: (0.6ms) ROLLBACK
2016-03-09T18:43:55.668654+00:00 app[web.1]: Completed 500 Internal Server Error in 274ms (ActiveRecord: 18.0ms)
2016-03-09T18:43:55.670140+00:00 app[web.1]:
2016-03-09T18:43:55.670152+00:00 app[web.1]: NameError (uninitialized constant Paperclip::Storage::S3::AWS):
2016-03-09T18:43:55.670154+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.4/lib/paperclip/storage/s3.rb:361:in `rescue in block in flush_writes'
2016-03-09T18:43:55.670154+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.4/lib/paperclip/storage/s3.rb:374:in `block in flush_writes'
2016-03-09T18:43:55.670155+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.4/lib/paperclip/storage/s3.rb:331:in `each'
2016-03-09T18:43:55.670177+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.4/lib/paperclip/storage/s3.rb:331:in `flush_writes'
2016-03-09T18:43:55.670178+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.4/lib/paperclip/attachment.rb:238:in `save'
2016-03-09T18:43:55.670178+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.4/lib/paperclip/has_attached_file.rb:91:in `block in add_active_record_callbacks'
2016-03-09T18:43:55.670179+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:446:in `instance_exec'
2016-03-09T18:43:55.670180+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:446:in `block in make_lambda'
2016-03-09T18:43:55.670180+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:228:in `call'
2016-03-09T18:43:55.670181+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:228:in `block in halting_and_conditional'
2016-03-09T18:43:55.670182+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:506:in `call'
2016-03-09T18:43:55.670182+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:506:in `block in call'
2016-03-09T18:43:55.670183+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:506:in `each'
2016-03-09T18:43:55.670183+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:506:in `call'
2016-03-09T18:43:55.670184+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:92:in `_run_callbacks'
2016-03-09T18:43:55.670187+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:776:in `_run_save_callbacks'
2016-03-09T18:43:55.670188+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/callbacks.rb:302:in `create_or_update'
2016-03-09T18:43:55.670188+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/persistence.rb:120:in `save'
2016-03-09T18:43:55.670189+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/validations.rb:37:in `save'
2016-03-09T18:43:55.670189+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/attribute_methods/dirty.rb:21:in `save'
2016-03-09T18:43:55.670190+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/transactions.rb:286:in `block (2 levels) in save'
2016-03-09T18:43:55.670191+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/transactions.rb:347:in `block in with_transaction_returning_status'
2016-03-09T18:43:55.670192+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
2016-03-09T18:43:55.670192+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/transaction.rb:188:in `within_new_transaction'
2016-03-09T18:43:55.670193+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
2016-03-09T18:43:55.670193+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/transactions.rb:220:in `transaction'
2016-03-09T18:43:55.670194+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/transactions.rb:344:in `with_transaction_returning_status'
2016-03-09T18:43:55.670195+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/transactions.rb:286:in `block in save'
2016-03-09T18:43:55.670195+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/transactions.rb:301:in `rollback_active_record_state!'
2016-03-09T18:43:55.670196+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/transactions.rb:285:in `save'
2016-03-09T18:43:55.670196+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/spree_backend-3.0.5/app/controllers/spree/admin/resource_controller.rb:53:in `create'
2016-03-09T18:43:55.670197+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2016-03-09T18:43:55.670197+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/abstract_controller/base.rb:198:in `process_action'
2016-03-09T18:43:55.670198+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_controller/metal/rendering.rb:10:in `process_action'
2016-03-09T18:43:55.670199+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
2016-03-09T18:43:55.670203+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:117:in `call'
2016-03-09T18:43:55.670204+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:117:in `call'
2016-03-09T18:43:55.670204+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
2016-03-09T18:43:55.670205+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:505:in `call'
2016-03-09T18:43:55.670205+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:505:in `call'
2016-03-09T18:43:55.670206+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:92:in `_run_callbacks'
2016-03-09T18:43:55.670206+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks'
2016-03-09T18:43:55.670207+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
2016-03-09T18:43:55.670208+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/abstract_controller/callbacks.rb:19:in `process_action'
2016-03-09T18:43:55.670208+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_controller/metal/rescue.rb:29:in `process_action'
2016-03-09T18:43:55.670209+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
2016-03-09T18:43:55.670210+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/notifications.rb:164:in `block in instrument'
2016-03-09T18:43:55.670210+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2016-03-09T18:43:55.670211+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/notifications.rb:164:in `instrument'
2016-03-09T18:43:55.670211+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2016-03-09T18:43:55.670212+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
2016-03-09T18:43:55.670213+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2016-03-09T18:43:55.670213+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/abstract_controller/base.rb:137:in `process'
2016-03-09T18:43:55.670214+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.2/lib/action_view/rendering.rb:30:in `process'
2016-03-09T18:43:55.670214+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_controller/metal.rb:196:in `dispatch'
2016-03-09T18:43:55.670215+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
2016-03-09T18:43:55.670215+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_controller/metal.rb:237:in `block in action'
2016-03-09T18:43:55.670216+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/routing/route_set.rb:74:in `call'
2016-03-09T18:43:55.670217+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
2016-03-09T18:43:55.670217+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/routing/route_set.rb:43:in `serve'
2016-03-09T18:43:55.670218+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/journey/router.rb:43:in `block in serve'
2016-03-09T18:43:55.670219+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/journey/router.rb:30:in `each'
2016-03-09T18:43:55.670219+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/journey/router.rb:30:in `serve'
2016-03-09T18:43:55.670220+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/routing/route_set.rb:819:in `call'
2016-03-09T18:43:55.670220+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/engine.rb:518:in `call'
2016-03-09T18:43:55.670221+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/railtie.rb:194:in `public_send'
2016-03-09T18:43:55.670222+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/railtie.rb:194:in `method_missing'
2016-03-09T18:43:55.670222+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/routing/mapper.rb:51:in `serve'
2016-03-09T18:43:55.670223+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/journey/router.rb:43:in `block in serve'
2016-03-09T18:43:55.670224+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/journey/router.rb:30:in `each'
2016-03-09T18:43:55.670224+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/journey/router.rb:30:in `serve'
2016-03-09T18:43:55.670225+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/routing/route_set.rb:819:in `call'
2016-03-09T18:43:55.670225+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.6/lib/warden/manager.rb:35:in `block in call'
2016-03-09T18:43:55.670226+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.6/lib/warden/manager.rb:34:in `catch'
2016-03-09T18:43:55.670230+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.6/lib/warden/manager.rb:34:in `call'
2016-03-09T18:43:55.670230+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call'
2016-03-09T18:43:55.670231+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:in `call'
2016-03-09T18:43:55.670231+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
2016-03-09T18:43:55.670232+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2016-03-09T18:43:55.670233+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/middleware/flash.rb:260:in `call'
2016-03-09T18:43:55.670233+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context'
2016-03-09T18:43:55.670234+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call'
2016-03-09T18:43:55.670235+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/middleware/cookies.rb:560:in `call'
2016-03-09T18:43:55.670240+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/query_cache.rb:36:in `call'
2016-03-09T18:43:55.670240+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call'
2016-03-09T18:43:55.670241+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2016-03-09T18:43:55.670241+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:88:in `call'
2016-03-09T18:43:55.670242+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:88:in `_run_callbacks'
2016-03-09T18:43:55.670258+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:776:in `_run_call_callbacks'
2016-03-09T18:43:55.670259+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
2016-03-09T18:43:55.670259+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2016-03-09T18:43:55.670260+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
2016-03-09T18:43:55.670261+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2016-03-09T18:43:55.670261+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2016-03-09T18:43:55.670262+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/rack/logger.rb:38:in `call_app'
2016-03-09T18:43:55.670264+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/rack/logger.rb:20:in `block in call'
2016-03-09T18:43:55.670264+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2016-03-09T18:43:55.670265+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/tagged_logging.rb:26:in `tagged'
2016-03-09T18:43:55.670265+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/tagged_logging.rb:68:in `tagged'
2016-03-09T18:43:55.670266+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/rack/logger.rb:20:in `call'
2016-03-09T18:43:55.670267+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2016-03-09T18:43:55.670267+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
2016-03-09T18:43:55.670268+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
2016-03-09T18:43:55.670269+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
2016-03-09T18:43:55.670269+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/middleware/static.rb:113:in `call'
2016-03-09T18:43:55.670270+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
2016-03-09T18:43:55.670270+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/engine.rb:518:in `call'
2016-03-09T18:43:55.670271+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/application.rb:164:in `call'
2016-03-09T18:43:55.670271+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call'
2016-03-09T18:43:55.670272+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/content_length.rb:15:in `call'
2016-03-09T18:43:55.670273+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/handler/webrick.rb:88:in `service'
2016-03-09T18:43:55.670273+00:00 app[web.1]: vendor/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
2016-03-09T18:43:55.670274+00:00 app[web.1]: vendor/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
2016-03-09T18:43:55.670274+00:00 app[web.1]: vendor/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
2016-03-09T18:43:55.670275+00:00 app[web.1]:
2016-03-09T18:43:55.670275+00:00 app[web.1]:
# Configure Spree Preferences
#
# Note: Initializing preferences available within the Admin will overwrite any changes that were made through the user interface when you restart.
# If you would like users to be able to update a setting with the Admin it should NOT be set here.
#
# Note: If a preference is set here it will be stored within the cache & database upon initialization.
# Just removing an entry from this initializer will not make the preference value go away.
# Instead you must either set a new value or remove entry, clear cache, and remove database entry.
#
# In order to initialize a setting do:
# config.setting_name = 'new value'
Spree.config do |config|
# Example:
# Uncomment to stop tracking inventory levels in the application
# config.track_inventory_levels = false
end
Spree.user_class = "Spree::User"
attachment_config = {
s3_credentials: {
access_key_id: ENV['AWS_ACCESS_KEY_ID'],
secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'],
bucket: ENV['S3_BUCKET_NAME']
},
storage: :s3,
s3_headers: { "Cache-Control" => "max-age=31557600" },
s3_protocol: "https",
bucket: ENV['S3_BUCKET_NAME'],
url: ":s3_domain_url",
styles: {
mini: "48x48>",
small: "100x100>",
product: "240x240>",
large: "600x600>"
},
path: "/:class/:id/:style/:basename.:extension",
default_url: "/:class/:id/:style/:basename.:extension",
default_style: "product"
}
attachment_config.each do |key, value|
Spree::Image.attachment_definitions[:attachment][key.to_sym] = value
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment