Skip to content

Instantly share code, notes, and snippets.

@ghankerson
Created June 5, 2016 16:21
Show Gist options
  • Select an option

  • Save ghankerson/cb5ad2388f6a587ce7ee478c8ec526a3 to your computer and use it in GitHub Desktop.

Select an option

Save ghankerson/cb5ad2388f6a587ce7ee478c8ec526a3 to your computer and use it in GitHub Desktop.
I, [2016-06-05T10:56:47.971373 #27676] INFO -- : Started POST "/images" for 172.29.10.50 at 2016-06-05 10:56:47 -0500
I, [2016-06-05T10:56:47.973221 #27676] INFO -- : Processing by ImagesController#create as HTML
I, [2016-06-05T10:56:47.973333 #27676] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"034VMgjSEFiYPvb+weVD79ti9pMY8sfvAbRvUnoe5UboaVcfkYjQay+uz+bgBqXnRUyVPpJIXeUAYi5DGwrxYw==", "attach_file"=>[#<ActionDispatch::Http::UploadedFile:0x007f23a6931c20 @tempfile=#<Tempfile:/tmp/RackMultipart20160605-27676-89xou0.JPG>, @original_filename="IMG_0926.JPG", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"attach_file[]\"; filename=\"IMG_0926.JPG\"\r\nContent-Type: image/jpeg\r\n">], "shared_image_metadata"=>{"content_area_id"=>"", "short_caption"=>"Seamus Hankerson", "slug"=>"20160605-seamus-hankerson", "long_caption"=>"Seamus Hankerson", "dateline"=>"", "date_taken"=>"", "credit"=>"Geoff Hankerson", "credit_url"=>"", "tags"=>[""], "source_id"=>"", "redistributable"=>"0", "rights_notes"=>""}, "commit"=>"Upload"}
D, [2016-06-05T10:56:47.975277 #27676] DEBUG -- : User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`enabled` = 1 AND `users`.`id` = 57 LIMIT 1
D, [2016-06-05T10:56:47.976014 #27676] DEBUG -- : CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`enabled` = 1 AND `users`.`id` = 57 LIMIT 1 [["enabled", true], ["id", 57]]
D, [2016-06-05T10:56:47.976784 #27676] DEBUG -- : CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`enabled` = 1 AND `users`.`id` = 57 LIMIT 1 [["enabled", true], ["id", 57]]
I, [2016-06-05T10:56:47.993909 #27676] INFO -- : Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.7ms)
F, [2016-06-05T10:56:47.994765 #27676] FATAL -- :
MiniMagick::Error (`identify -format %m %w %h %b /tmp/mini_magick20160605-27676-1v7zm8b.jpg[0]` failed with error:
identify: unable to open image `/tmp/mini_magick20160605-27676-1v7zm8b.jpg[0]': No such file or directory @ error/blob.c/OpenBlob/2705.
):
app/uploaders/image_uploader.rb:87:in `width'
app/uploaders/image_uploader.rb:103:in `update_model'
app/controllers/images_controller.rb:95:in `block in create'
app/controllers/images_controller.rb:81:in `each'
app/controllers/images_controller.rb:81:in `each_with_index'
app/controllers/images_controller.rb:81:in `create'
@aristofun
Copy link

Just started to get the same errors in my rails app!

identify: unable to open image `/tmp/mini_magick20160605-27676-1v7zm8b.jpg[0]': No such file or directory @ error/blob.c/OpenBlob/2705.

See http://stackoverflow.com/questions/37646471/imagemagick-brackets-in-file-names-no-such-file-or-directory-mac-os-x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment