Comments (11)
Hi @bertdeb, thanks for the detailed question.
It's interesting that the log is all GET requests. Would you be willing to go to /new/Image
(or /new/File
) and try uploading an image from there?
If that works, then imagemagick is working properly. If not, can you confirm that you have the latest version of decko and have run bundle update
and decko update
? If that works then bundle show mini_magick
should confirm that the ruby gem that interacts with imagemagick is correctly installed.
In any case, you should clearly not be seeing the kinds of errors you're seeing. So yes, there's evidently a bug, but I'm just trying to narrow the scope of the problem. Our automated testing would detect something as general as uploads simply not working. The logged errors above may be limited to situations where you're changing the type of a card (plain old card) to a File or Image. My first guess is that that's where the bug is. If we can confirm that, I'll work to patch it quickly.
Thanks again!
- ethan
from decko.
Hi @ethn, thanks for the quick reply.
/new/Image
gets me a zero-byte upload, but /new/File
allows me to upload a png no problem.
I'm running decko (0.9.5)
.
bundle update
just updated ffi 1.13.0 (was 1.12.2).
decko update
bundle exec rake decko:update
migrating structure
migrating core cards
migrating deck structure
migrating deck cards
bundle show mini_magick
/var/lib/gems/2.5.0/gems/mini_magick-4.10.1
There's sometimes other weirdness when trying to change a card type to Image. If I have the following card how_to_fix_toaster:
{{+picture|type:Image}}
{{+instruction manual|type:File}}
{{+difficulty|titled}}
{{+instructions|titled}}
I can click + PICTURE and am prompted to upload an image:
However, if I click the ellipsis on the how_to_fix_toaster+picture card for bridge view, I see the type is now RichText:
If I try to change the +picture's type to Image, I get the following:
If I then click + HOW_TO_FIX_TOASTER+PICTURE and click the ellipsis for bridge view, I see the card is back to type RichText. If I change it back to Image type, I'm back to the above image.
Logs from the above:
Started GET "/how_to_fix_toaster" for 127.0.0.1 at 2020-06-01 18:18:38 -0400 Processing by CardController#read as HTML Parameters: {"mark"=>"how_to_fix_toaster"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 140ms (Views: 0.5ms | ActiveRecord: 0.8ms | Allocations: 123432) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&card%5Btype%5D=Image&view=new_in_modal&_=1591049919028&main=how_to_fix_toaster&slot%5Bview%5D=titled&slot%5Bnest_name%5D=%2Bpicture&slot%5Bnest_syntax%5D=%2Bpicture%7Ctype%3AImage&slot%5Bhome_view%5D=titled&slot%5Btype%5D=Image&slot%5Bname_context%5D=how_to_fix_toaster&type=Image" for 127.0.0.1 at 2020-06-01 18:18:41 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture", "type"=>"Image"}, "view"=>"new_in_modal", "_"=>"1591049919028", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"titled", "nest_name"=>"+picture", "nest_syntax"=>"+picture|type:Image", "home_view"=>"titled", "type"=>"Image", "name_context"=>"how_to_fix_toaster"}, "type"=>"Image", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 27ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 30242) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&view=bridge&_=1591049919029&main=how_to_fix_toaster" for 127.0.0.1 at 2020-06-01 18:18:46 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture"}, "view"=>"bridge", "_"=>"1591049919029", "main"=>"how_to_fix_toaster", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 30ms (Views: 0.4ms | ActiveRecord: 0.0ms | Allocations: 34341) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&view=bridge_type_formgroup&_=1591049919030&main=how_to_fix_toaster&slot%5Bview%5D=edit_type_row&slot%5Bhome_view%5D=edit_type_row" for 127.0.0.1 at 2020-06-01 18:18:53 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture"}, "view"=>"bridge_type_formgroup", "_"=>"1591049919030", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"edit_type_row", "home_view"=>"edit_type_row"}, "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 58ms (Views: 0.4ms | ActiveRecord: 0.5ms | Allocations: 61486) Started GET "/how_to_fix_toaster+picture?assign=true&card%5Bname%5D=how_to_fix_toaster%2Bpicture&mark=&slot%5Bshow%5D%5B%5D=type_form&view=edit_form&card%5Btype%5D=Image&utf8=%E2%9C%93&card%5Btype%5D=Image&assign=true&card%5Bcontent%5D=&_=1591049919031&main=how_to_fix_toaster&slot%5Bview%5D=edit_form&main=how_to_fix_toaster&slot%5Bview%5D=titled&slot%5Bnest_name%5D=%2Bpicture&slot%5Bnest_syntax%5D=%2Bpicture%7Ctype%3AImage&slot%5Bhome_view%5D=titled&slot%5Btype%5D=Image&slot%5Bname_context%5D=how_to_fix_toaster&type=Image" for 127.0.0.1 at 2020-06-01 18:18:59 -0400 Processing by CardController#read as JS Parameters: {"assign"=>"true", "card"=>{"name"=>"how_to_fix_toaster+picture", "type"=>"Image", "content"=>""}, "mark"=>"how_to_fix_toaster+picture", "slot"=>{"show"=>["type_form"], "view"=>"titled", "nest_name"=>"+picture", "nest_syntax"=>"+picture|type:Image", "home_view"=>"titled", "type"=>"Image", "name_context"=>"how_to_fix_toaster"}, "view"=>"edit_form", "utf8"=>"✓", "_"=>"1591049919031", "main"=>"how_to_fix_toaster", "type"=>"Image"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 27ms (Views: 2.8ms | ActiveRecord: 0.0ms | Allocations: 13928) Started GET "/how_to_fix_toaster?view=edit&_=1591049919032" for 127.0.0.1 at 2020-06-01 18:19:54 -0400 Processing by CardController#read as JS Parameters: {"view"=>"edit", "_"=>"1591049919032", "mark"=>"how_to_fix_toaster"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 41ms (Views: 0.5ms | ActiveRecord: 0.7ms | Allocations: 45031) Started GET "/how_to_fix_toaster?view=bridge&_=1591049919033&main=how_to_fix_toaster&is_main=true&slot%5Bview%5D=titled&slot%5Bnest_name%5D=_main&slot%5Bnest_syntax%5D=_main%7Ctitled&slot%5Bmain%5D=true&slot%5Bhome_view%5D=titled&slot%5Bmain_view%5D=true&slot%5Blayout%5D=Default%20Layout" for 127.0.0.1 at 2020-06-01 18:20:01 -0400 Processing by CardController#read as JS Parameters: {"view"=>"bridge", "_"=>"1591049919033", "main"=>"how_to_fix_toaster", "is_main"=>"true", "slot"=>{"view"=>"titled", "nest_name"=>"_main", "nest_syntax"=>"_main|titled", "main"=>"true", "home_view"=>"titled", "main_view"=>"true", "layout"=>"Default Layout"}, "mark"=>"how_to_fix_toaster"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 50ms (Views: 0.5ms | ActiveRecord: 0.7ms | Allocations: 58642) Started GET "/how_to_fix_toaster?view=name_form&_=1591049919034&main=how_to_fix_toaster&slot%5Bview%5D=edit_name_row&slot%5Bmain%5D=true&slot%5Bhome_view%5D=edit_name_row" for 127.0.0.1 at 2020-06-01 18:20:15 -0400 Processing by CardController#read as JS Parameters: {"view"=>"name_form", "_"=>"1591049919034", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"edit_name_row", "main"=>"true", "home_view"=>"edit_name_row"}, "mark"=>"how_to_fix_toaster"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 19ms (Views: 0.5ms | ActiveRecord: 1.5ms | Allocations: 16450) Started GET "/how_to_fix_toaster?view=history_tab&_=1591049919035" for 127.0.0.1 at 2020-06-01 18:20:25 -0400 Processing by CardController#read as */* Parameters: {"view"=>"history_tab", "_"=>"1591049919035", "mark"=>"how_to_fix_toaster"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 38ms (Views: 0.5ms | ActiveRecord: 4.2ms | Allocations: 17832) Started GET "/how_to_fix_toaster?act_id=37836&act_seq=1&view=bridge_act&_=1591049919036&main=how_to_fix_toaster&slot%5Bview%5D=bridge&slot%5Bnest_name%5D=_main&slot%5Bnest_syntax%5D=_main%7Ctitled&slot%5Bmain%5D=true&slot%5Bhome_view%5D=titled&slot%5Bmain_view%5D=true" for 127.0.0.1 at 2020-06-01 18:20:25 -0400 Processing by CardController#read as JS Parameters: {"act_id"=>"37836", "act_seq"=>"1", "view"=>"bridge_act", "_"=>"1591049919036", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"bridge", "nest_name"=>"_main", "nest_syntax"=>"_main|titled", "main"=>"true", "home_view"=>"titled", "main_view"=>"true"}, "mark"=>"how_to_fix_toaster"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 45ms (Views: 0.2ms | ActiveRecord: 1.1ms | Allocations: 33996) Started GET "/how_to_fix_toaster?view=related_tab&_=1591049919037" for 127.0.0.1 at 2020-06-01 18:20:32 -0400 Processing by CardController#read as */* Parameters: {"view"=>"related_tab", "_"=>"1591049919037", "mark"=>"how_to_fix_toaster"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 98ms (Views: 0.4ms | ActiveRecord: 5.5ms | Allocations: 64797) Started GET "/how_to_fix_toaster?act_id=37836&act_seq=1&view=bridge_act&_=1591049919038&main=how_to_fix_toaster&slot%5Bview%5D=bridge_act&slot%5Bnest_name%5D=_main&slot%5Bnest_syntax%5D=_main%7Ctitled&slot%5Bmain%5D=true&slot%5Bhome_view%5D=titled&slot%5Bmain_view%5D=true" for 127.0.0.1 at 2020-06-01 18:20:38 -0400 Processing by CardController#read as JS Parameters: {"act_id"=>"37836", "act_seq"=>"1", "view"=>"bridge_act", "_"=>"1591049919038", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"bridge_act", "nest_name"=>"_main", "nest_syntax"=>"_main|titled", "main"=>"true", "home_view"=>"titled", "main_view"=>"true"}, "mark"=>"how_to_fix_toaster"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 33ms (Views: 0.4ms | ActiveRecord: 1.2ms | Allocations: 33837) Started GET "/how_to_fix_toaster?act_id=37836&act_seq=1&view=bridge_act&_=1591049919039&main=how_to_fix_toaster&slot%5Bview%5D=bridge_act&slot%5Bnest_name%5D=_main&slot%5Bnest_syntax%5D=_main%7Ctitled&slot%5Bmain%5D=true&slot%5Bhome_view%5D=titled&slot%5Bmain_view%5D=true" for 127.0.0.1 at 2020-06-01 18:20:39 -0400 Processing by CardController#read as JS Parameters: {"act_id"=>"37836", "act_seq"=>"1", "view"=>"bridge_act", "_"=>"1591049919039", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"bridge_act", "nest_name"=>"_main", "nest_syntax"=>"_main|titled", "main"=>"true", "home_view"=>"titled", "main_view"=>"true"}, "mark"=>"how_to_fix_toaster"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 33ms (Views: 0.4ms | ActiveRecord: 0.9ms | Allocations: 33763) Started GET "/how_to_fix_toaster?act_id=37836&act_seq=1&view=bridge_act&_=1591049919040&main=how_to_fix_toaster&slot%5Bview%5D=bridge_act&slot%5Bnest_name%5D=_main&slot%5Bnest_syntax%5D=_main%7Ctitled&slot%5Bmain%5D=true&slot%5Bhome_view%5D=titled&slot%5Bmain_view%5D=true" for 127.0.0.1 at 2020-06-01 18:20:40 -0400 Processing by CardController#read as JS Parameters: {"act_id"=>"37836", "act_seq"=>"1", "view"=>"bridge_act", "_"=>"1591049919040", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"bridge_act", "nest_name"=>"_main", "nest_syntax"=>"_main|titled", "main"=>"true", "home_view"=>"titled", "main_view"=>"true"}, "mark"=>"how_to_fix_toaster"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 35ms (Views: 0.3ms | ActiveRecord: 1.2ms | Allocations: 33768) Started GET "/how_to_fix_toaster?view=engage_tab&_=1591049919041" for 127.0.0.1 at 2020-06-01 18:20:46 -0400 Processing by CardController#read as */* Parameters: {"view"=>"engage_tab", "_"=>"1591049919041", "mark"=>"how_to_fix_toaster"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 80ms (Views: 0.3ms | ActiveRecord: 6.0ms | Allocations: 57312) Started GET "/how_to_fix_toaster?view=rules_tab&_=1591049919042" for 127.0.0.1 at 2020-06-01 18:20:49 -0400 Processing by CardController#read as */* Parameters: {"view"=>"rules_tab", "_"=>"1591049919042", "mark"=>"how_to_fix_toaster"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 95ms (Views: 0.4ms | ActiveRecord: 3.2ms | Allocations: 78389) Started GET "/how_to_fix_toaster?view=edit&_=1591049919043" for 127.0.0.1 at 2020-06-01 18:21:48 -0400 Processing by CardController#read as JS Parameters: {"view"=>"edit", "_"=>"1591049919043", "mark"=>"how_to_fix_toaster"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 45ms (Views: 0.4ms | ActiveRecord: 0.6ms | Allocations: 45156) Started GET "/how_to_fix_toaster?view=bridge&_=1591049919044&main=how_to_fix_toaster" for 127.0.0.1 at 2020-06-01 18:21:50 -0400 Processing by CardController#read as JS Parameters: {"view"=>"bridge", "_"=>"1591049919044", "main"=>"how_to_fix_toaster", "mark"=>"how_to_fix_toaster"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 49ms (Views: 0.4ms | ActiveRecord: 0.6ms | Allocations: 58652) Started GET "/how_to_fix_toaster?view=rules_tab&_=1591049919045" for 127.0.0.1 at 2020-06-01 18:21:52 -0400 Processing by CardController#read as */* Parameters: {"view"=>"rules_tab", "_"=>"1591049919045", "mark"=>"how_to_fix_toaster"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 81ms (Views: 0.4ms | ActiveRecord: 0.0ms | Allocations: 54632) Started GET "/how_to_fix_toaster+*self+*structure?card%5Bname%5D=how_to_fix_toaster%2B%2Aself%2B%2Astructure&view=overlay_rule&_=1591049919046&main=how_to_fix_toaster&slot%5Bview%5D=bridge" for 127.0.0.1 at 2020-06-01 18:21:56 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+*self+*structure"}, "view"=>"overlay_rule", "_"=>"1591049919046", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"bridge"}, "mark"=>"how_to_fix_toaster+*self+*structure"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 106ms (Views: 0.4ms | ActiveRecord: 1.5ms | Allocations: 77284) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&card%5Btype%5D=Image&view=new_in_modal&_=1591049919047&main=how_to_fix_toaster&slot%5Bview%5D=titled&slot%5Bnest_name%5D=%2Bpicture&slot%5Bnest_syntax%5D=%2Bpicture%7Ctype%3AImage&slot%5Bhome_view%5D=titled&slot%5Btype%5D=Image&slot%5Bname_context%5D=how_to_fix_toaster&type=Image" for 127.0.0.1 at 2020-06-01 18:24:57 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture", "type"=>"Image"}, "view"=>"new_in_modal", "_"=>"1591049919047", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"titled", "nest_name"=>"+picture", "nest_syntax"=>"+picture|type:Image", "home_view"=>"titled", "type"=>"Image", "name_context"=>"how_to_fix_toaster"}, "type"=>"Image", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 25ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 30214) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&view=bridge&_=1591049919048&main=how_to_fix_toaster" for 127.0.0.1 at 2020-06-01 18:25:11 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture"}, "view"=>"bridge", "_"=>"1591049919048", "main"=>"how_to_fix_toaster", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 29ms (Views: 0.4ms | ActiveRecord: 0.0ms | Allocations: 34315) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&view=bridge_type_formgroup&_=1591049919049&main=how_to_fix_toaster&slot%5Bview%5D=edit_type_row&slot%5Bhome_view%5D=edit_type_row" for 127.0.0.1 at 2020-06-01 18:26:53 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture"}, "view"=>"bridge_type_formgroup", "_"=>"1591049919049", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"edit_type_row", "home_view"=>"edit_type_row"}, "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 68ms (Views: 0.4ms | ActiveRecord: 0.6ms | Allocations: 61459) Started GET "/how_to_fix_toaster+picture?assign=true&card%5Bname%5D=how_to_fix_toaster%2Bpicture&mark=&slot%5Bshow%5D%5B%5D=type_form&view=edit_form&card%5Btype%5D=Image&utf8=%E2%9C%93&card%5Btype%5D=Image&assign=true&card%5Bcontent%5D=&_=1591049919050&main=how_to_fix_toaster&slot%5Bview%5D=edit_form&main=how_to_fix_toaster&slot%5Bview%5D=titled&slot%5Bnest_name%5D=%2Bpicture&slot%5Bnest_syntax%5D=%2Bpicture%7Ctype%3AImage&slot%5Bhome_view%5D=titled&slot%5Btype%5D=Image&slot%5Bname_context%5D=how_to_fix_toaster&type=Image" for 127.0.0.1 at 2020-06-01 18:27:01 -0400 Processing by CardController#read as JS Parameters: {"assign"=>"true", "card"=>{"name"=>"how_to_fix_toaster+picture", "type"=>"Image", "content"=>""}, "mark"=>"how_to_fix_toaster+picture", "slot"=>{"show"=>["type_form"], "view"=>"titled", "nest_name"=>"+picture", "nest_syntax"=>"+picture|type:Image", "home_view"=>"titled", "type"=>"Image", "name_context"=>"how_to_fix_toaster"}, "view"=>"edit_form", "utf8"=>"✓", "_"=>"1591049919050", "main"=>"how_to_fix_toaster", "type"=>"Image"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 25ms (Views: 2.0ms | ActiveRecord: 0.0ms | Allocations: 13971) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&card%5Btype%5D=Image&view=new_in_modal&_=1591049919051&main=how_to_fix_toaster&slot%5Bview%5D=edit_form&slot%5Bnest_name%5D=%2Bpicture&slot%5Bnest_syntax%5D=%2Bpicture%7Ctype%3AImage&slot%5Bshow%5D%5B%5D=type_form&slot%5Bhome_view%5D=titled&slot%5Btype%5D=Image&type=Image" for 127.0.0.1 at 2020-06-01 18:31:13 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture", "type"=>"Image"}, "view"=>"new_in_modal", "_"=>"1591049919051", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"edit_form", "nest_name"=>"+picture", "nest_syntax"=>"+picture|type:Image", "show"=>["type_form"], "home_view"=>"titled", "type"=>"Image"}, "type"=>"Image", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 25ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 30230) Started POST "/card/create" for 127.0.0.1 at 2020-06-01 18:31:20 -0400 Processing by CardController#create as HTML Parameters: {"card"=>{"type_id"=>"19", "image"=>#<ActionDispatch::Http::UploadedFile:0x0000560ba88a0fc0 @tempfile=#<Tempfile:/tmp/RackMultipart20200601-25348-1fvykn6.png>, @original_filename="Printer-icon.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"card[image]\"; filename=\"Printer-icon.png\"\r\nContent-Type: image/png\r\n">}, "attachment_upload"=>"card[image]"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 47ms (Views: 0.4ms | ActiveRecord: 10.3ms | Allocations: 18297) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&card%5Btype%5D=Image&view=new_in_modal&_=1591049919052&main=how_to_fix_toaster&slot%5Bview%5D=edit_form&slot%5Bnest_name%5D=%2Bpicture&slot%5Bnest_syntax%5D=%2Bpicture%7Ctype%3AImage&slot%5Bshow%5D%5B%5D=type_form&slot%5Bhome_view%5D=titled&slot%5Btype%5D=Image&type=Image" for 127.0.0.1 at 2020-06-01 18:31:25 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture", "type"=>"Image"}, "view"=>"new_in_modal", "_"=>"1591049919052", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"edit_form", "nest_name"=>"+picture", "nest_syntax"=>"+picture|type:Image", "show"=>["type_form"], "home_view"=>"titled", "type"=>"Image"}, "type"=>"Image", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 30ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 30155) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&card%5Btype%5D=Image&view=new_in_modal&_=1591049919053&main=how_to_fix_toaster&slot%5Bview%5D=edit_form&slot%5Bnest_name%5D=%2Bpicture&slot%5Bnest_syntax%5D=%2Bpicture%7Ctype%3AImage&slot%5Bshow%5D%5B%5D=type_form&slot%5Bhome_view%5D=titled&slot%5Btype%5D=Image&type=Image" for 127.0.0.1 at 2020-06-01 18:31:44 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture", "type"=>"Image"}, "view"=>"new_in_modal", "_"=>"1591049919053", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"edit_form", "nest_name"=>"+picture", "nest_syntax"=>"+picture|type:Image", "show"=>["type_form"], "home_view"=>"titled", "type"=>"Image"}, "type"=>"Image", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 30ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 30186) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&view=bridge&_=1591049919054&main=how_to_fix_toaster" for 127.0.0.1 at 2020-06-01 18:31:46 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture"}, "view"=>"bridge", "_"=>"1591049919054", "main"=>"how_to_fix_toaster", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 30ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 34330) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&view=bridge_type_formgroup&_=1591049919055&main=how_to_fix_toaster&slot%5Bview%5D=edit_type_row&slot%5Bhome_view%5D=edit_type_row" for 127.0.0.1 at 2020-06-01 18:31:49 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture"}, "view"=>"bridge_type_formgroup", "_"=>"1591049919055", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"edit_type_row", "home_view"=>"edit_type_row"}, "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 60ms (Views: 0.3ms | ActiveRecord: 0.5ms | Allocations: 61468) Started GET "/how_to_fix_toaster+picture?assign=true&card%5Bname%5D=how_to_fix_toaster%2Bpicture&mark=&slot%5Bshow%5D%5B%5D=type_form&view=edit_form&card%5Btype%5D=Image&utf8=%E2%9C%93&card%5Btype%5D=Image&assign=true&card%5Bcontent%5D=&_=1591049919056&main=how_to_fix_toaster&slot%5Bview%5D=edit_form&main=how_to_fix_toaster&slot%5Bview%5D=edit_form&slot%5Bnest_name%5D=%2Bpicture&slot%5Bnest_syntax%5D=%2Bpicture%7Ctype%3AImage&slot%5Bshow%5D%5B%5D=type_form&slot%5Bhome_view%5D=titled&slot%5Btype%5D=Image&type=Image" for 127.0.0.1 at 2020-06-01 18:33:17 -0400 Processing by CardController#read as JS Parameters: {"assign"=>"true", "card"=>{"name"=>"how_to_fix_toaster+picture", "type"=>"Image", "content"=>""}, "mark"=>"how_to_fix_toaster+picture", "slot"=>{"show"=>["type_form", "type_form"], "view"=>"edit_form", "nest_name"=>"+picture", "nest_syntax"=>"+picture|type:Image", "home_view"=>"titled", "type"=>"Image"}, "view"=>"edit_form", "utf8"=>"✓", "_"=>"1591049919056", "main"=>"how_to_fix_toaster", "type"=>"Image"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 35ms (Views: 0.4ms | ActiveRecord: 0.0ms | Allocations: 13938) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&card%5Btype%5D=Image&view=new_in_modal&_=1591049919057&main=how_to_fix_toaster&slot%5Bview%5D=edit_form&slot%5Bnest_name%5D=%2Bpicture&slot%5Bnest_syntax%5D=%2Bpicture%7Ctype%3AImage&slot%5Bshow%5D%5B%5D=type_form&slot%5Bshow%5D%5B%5D=type_form&slot%5Bhome_view%5D=titled&slot%5Btype%5D=Image&type=Image" for 127.0.0.1 at 2020-06-01 18:33:22 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture", "type"=>"Image"}, "view"=>"new_in_modal", "_"=>"1591049919057", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"edit_form", "nest_name"=>"+picture", "nest_syntax"=>"+picture|type:Image", "show"=>["type_form", "type_form"], "home_view"=>"titled", "type"=>"Image"}, "type"=>"Image", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 26ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 30229) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&view=bridge&_=1591049919058&main=how_to_fix_toaster" for 127.0.0.1 at 2020-06-01 18:33:25 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture"}, "view"=>"bridge", "_"=>"1591049919058", "main"=>"how_to_fix_toaster", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 33ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 34322) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&view=bridge_type_formgroup&_=1591049919059&main=how_to_fix_toaster&slot%5Bview%5D=edit_type_row&slot%5Bhome_view%5D=edit_type_row" for 127.0.0.1 at 2020-06-01 18:33:29 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture"}, "view"=>"bridge_type_formgroup", "_"=>"1591049919059", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"edit_type_row", "home_view"=>"edit_type_row"}, "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 63ms (Views: 0.3ms | ActiveRecord: 0.5ms | Allocations: 61451) Started GET "/how_to_fix_toaster+picture?assign=true&card%5Bname%5D=how_to_fix_toaster%2Bpicture&mark=&slot%5Bshow%5D%5B%5D=type_form&view=edit_form&card%5Btype%5D=Image&utf8=%E2%9C%93&card%5Btype%5D=Image&assign=true&card%5Bcontent%5D=&_=1591049919060&main=how_to_fix_toaster&slot%5Bview%5D=edit_form&main=how_to_fix_toaster&slot%5Bview%5D=edit_form&slot%5Bnest_name%5D=%2Bpicture&slot%5Bnest_syntax%5D=%2Bpicture%7Ctype%3AImage&slot%5Bshow%5D%5B%5D=type_form&slot%5Bshow%5D%5B%5D=type_form&slot%5Bhome_view%5D=titled&slot%5Btype%5D=Image&type=Image" for 127.0.0.1 at 2020-06-01 18:33:34 -0400 Processing by CardController#read as JS Parameters: {"assign"=>"true", "card"=>{"name"=>"how_to_fix_toaster+picture", "type"=>"Image", "content"=>""}, "mark"=>"how_to_fix_toaster+picture", "slot"=>{"show"=>["type_form", "type_form", "type_form"], "view"=>"edit_form", "nest_name"=>"+picture", "nest_syntax"=>"+picture|type:Image", "home_view"=>"titled", "type"=>"Image"}, "view"=>"edit_form", "utf8"=>"✓", "_"=>"1591049919060", "main"=>"how_to_fix_toaster", "type"=>"Image"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 27ms (Views: 4.8ms | ActiveRecord: 0.0ms | Allocations: 13948) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&card%5Btype%5D=Image&view=new_in_modal&_=1591049919061&main=how_to_fix_toaster&slot%5Bview%5D=edit_form&slot%5Bnest_name%5D=%2Bpicture&slot%5Bnest_syntax%5D=%2Bpicture%7Ctype%3AImage&slot%5Bshow%5D%5B%5D=type_form&slot%5Bshow%5D%5B%5D=type_form&slot%5Bshow%5D%5B%5D=type_form&slot%5Bhome_view%5D=titled&slot%5Btype%5D=Image&type=Image" for 127.0.0.1 at 2020-06-01 18:33:47 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture", "type"=>"Image"}, "view"=>"new_in_modal", "_"=>"1591049919061", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"edit_form", "nest_name"=>"+picture", "nest_syntax"=>"+picture|type:Image", "show"=>["type_form", "type_form", "type_form"], "home_view"=>"titled", "type"=>"Image"}, "type"=>"Image", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 24ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 30229) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&view=bridge&_=1591049919062&main=how_to_fix_toaster" for 127.0.0.1 at 2020-06-01 18:33:52 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture"}, "view"=>"bridge", "_"=>"1591049919062", "main"=>"how_to_fix_toaster", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 32ms (Views: 0.4ms | ActiveRecord: 0.0ms | Allocations: 34322) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&view=bridge_type_formgroup&_=1591049919063&main=how_to_fix_toaster&slot%5Bview%5D=edit_type_row&slot%5Bhome_view%5D=edit_type_row" for 127.0.0.1 at 2020-06-01 18:33:56 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture"}, "view"=>"bridge_type_formgroup", "_"=>"1591049919063", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"edit_type_row", "home_view"=>"edit_type_row"}, "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 69ms (Views: 0.4ms | ActiveRecord: 0.6ms | Allocations: 61453) Started GET "/how_to_fix_toaster+picture?assign=true&card%5Bname%5D=how_to_fix_toaster%2Bpicture&mark=&slot%5Bshow%5D%5B%5D=type_form&view=edit_form&card%5Btype%5D=Image&utf8=%E2%9C%93&card%5Btype%5D=Image&assign=true&card%5Bcontent%5D=&_=1591049919064&main=how_to_fix_toaster&slot%5Bview%5D=edit_form&main=how_to_fix_toaster&slot%5Bview%5D=edit_form&slot%5Bnest_name%5D=%2Bpicture&slot%5Bnest_syntax%5D=%2Bpicture%7Ctype%3AImage&slot%5Bshow%5D%5B%5D=type_form&slot%5Bshow%5D%5B%5D=type_form&slot%5Bshow%5D%5B%5D=type_form&slot%5Bhome_view%5D=titled&slot%5Btype%5D=Image&type=Image" for 127.0.0.1 at 2020-06-01 18:34:03 -0400 Processing by CardController#read as JS Parameters: {"assign"=>"true", "card"=>{"name"=>"how_to_fix_toaster+picture", "type"=>"Image", "content"=>""}, "mark"=>"how_to_fix_toaster+picture", "slot"=>{"show"=>["type_form", "type_form", "type_form", "type_form"], "view"=>"edit_form", "nest_name"=>"+picture", "nest_syntax"=>"+picture|type:Image", "home_view"=>"titled", "type"=>"Image"}, "view"=>"edit_form", "utf8"=>"✓", "_"=>"1591049919064", "main"=>"how_to_fix_toaster", "type"=>"Image"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 25ms (Views: 4.6ms | ActiveRecord: 0.0ms | Allocations: 13949) Started GET "/how_to_fix_toaster" for 127.0.0.1 at 2020-06-01 18:34:25 -0400 Processing by CardController#read as HTML Parameters: {"mark"=>"how_to_fix_toaster"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 155ms (Views: 0.4ms | ActiveRecord: 0.0ms | Allocations: 120922) Started GET "/files/:all_script_machine_output/machines.js" for 127.0.0.1 at 2020-06-01 18:34:26 -0400 Processing by CardController#read as JS Parameters: {"explicit_file"=>true, "mark"=>":all_script_machine_output", "rev_id"=>"machines"} Sent file /var/lib/gems/2.5.0/gems/card-1.99.5/mod/machines/file/all_script_machine_output/file.js (0.2ms) Completed 200 OK in 17ms (ActiveRecord: 0.0ms | Allocations: 7988) Started GET "/files/:all_style_machine_output/machines.css" for 127.0.0.1 at 2020-06-01 18:34:26 -0400 Processing by CardController#read as CSS Parameters: {"explicit_file"=>true, "mark"=>":all_style_machine_output", "rev_id"=>"machines"} Sent file /var/lib/gems/2.5.0/gems/card-1.99.5/mod/machines/file/all_style_machine_output/file.css (0.2ms) Completed 200 OK in 16ms (ActiveRecord: 0.0ms | Allocations: 7986) Started GET "/how_to_fix_toaster?view=bridge&_=1591050866384&main=how_to_fix_toaster&is_main=true&slot%5Bview%5D=titled&slot%5Bnest_name%5D=_main&slot%5Bnest_syntax%5D=_main%7Ctitled&slot%5Bmain%5D=true&slot%5Bhome_view%5D=titled&slot%5Bmain_view%5D=true&slot%5Blayout%5D=Default%20Layout" for 127.0.0.1 at 2020-06-01 18:34:33 -0400 Processing by CardController#read as JS Parameters: {"view"=>"bridge", "_"=>"1591050866384", "main"=>"how_to_fix_toaster", "is_main"=>"true", "slot"=>{"view"=>"titled", "nest_name"=>"_main", "nest_syntax"=>"_main|titled", "main"=>"true", "home_view"=>"titled", "main_view"=>"true", "layout"=>"Default Layout"}, "mark"=>"how_to_fix_toaster"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 88ms (Views: 0.6ms | ActiveRecord: 0.8ms | Allocations: 58685) Started POST "/card/update/how_to_fix_toaster+picture" for 127.0.0.1 at 2020-06-01 18:34:42 -0400 Processing by CardController#update as HTML Parameters: {"card"=>{"type_id"=>"19", "image"=>#<ActionDispatch::Http::UploadedFile:0x0000560ba94f94c0 @tempfile=#<Tempfile:/tmp/RackMultipart20200601-25348-vpu9f0.png>, @original_filename="Printer-icon.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"card[image]\"; filename=\"Printer-icon.png\"\r\nContent-Type: image/png\r\n">}, "attachment_upload"=>"card[subcards][+picture][image]", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 78ms (Views: 0.3ms | ActiveRecord: 8.5ms | Allocations: 26854) Started GET "/how_to_fix_toaster?view=bridge&_=1591050866385&main=how_to_fix_toaster&is_main=true&slot%5Bview%5D=titled&slot%5Bnest_name%5D=_main&slot%5Bnest_syntax%5D=_main%7Ctitled&slot%5Bmain%5D=true&slot%5Bhome_view%5D=titled&slot%5Bmain_view%5D=true&slot%5Blayout%5D=Default%20Layout" for 127.0.0.1 at 2020-06-01 18:36:43 -0400 Processing by CardController#read as JS Parameters: {"view"=>"bridge", "_"=>"1591050866385", "main"=>"how_to_fix_toaster", "is_main"=>"true", "slot"=>{"view"=>"titled", "nest_name"=>"_main", "nest_syntax"=>"_main|titled", "main"=>"true", "home_view"=>"titled", "main_view"=>"true", "layout"=>"Default Layout"}, "mark"=>"how_to_fix_toaster"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 52ms (Views: 0.3ms | ActiveRecord: 1.1ms | Allocations: 60478) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&card%5Btype%5D=Image&view=new_in_modal&_=1591050866386&main=how_to_fix_toaster&slot%5Bview%5D=titled&slot%5Bnest_name%5D=%2Bpicture&slot%5Bnest_syntax%5D=%2Bpicture%7Ctype%3AImage&slot%5Bhome_view%5D=titled&slot%5Btype%5D=Image&slot%5Bname_context%5D=how_to_fix_toaster&type=Image" for 127.0.0.1 at 2020-06-01 18:36:50 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture", "type"=>"Image"}, "view"=>"new_in_modal", "_"=>"1591050866386", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"titled", "nest_name"=>"+picture", "nest_syntax"=>"+picture|type:Image", "home_view"=>"titled", "type"=>"Image", "name_context"=>"how_to_fix_toaster"}, "type"=>"Image", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 34ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 30152) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&view=bridge&_=1591050866387&main=how_to_fix_toaster" for 127.0.0.1 at 2020-06-01 18:36:53 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture"}, "view"=>"bridge", "_"=>"1591050866387", "main"=>"how_to_fix_toaster", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 30ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 34291) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&card%5Btype%5D=Image&view=new_in_modal&_=1591050866388&main=how_to_fix_toaster&slot%5Bview%5D=titled&slot%5Bnest_name%5D=%2Bpicture&slot%5Bnest_syntax%5D=%2Bpicture%7Ctype%3AImage&slot%5Bhome_view%5D=titled&slot%5Btype%5D=Image&slot%5Bname_context%5D=how_to_fix_toaster&type=Image" for 127.0.0.1 at 2020-06-01 18:37:04 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture", "type"=>"Image"}, "view"=>"new_in_modal", "_"=>"1591050866388", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"titled", "nest_name"=>"+picture", "nest_syntax"=>"+picture|type:Image", "home_view"=>"titled", "type"=>"Image", "name_context"=>"how_to_fix_toaster"}, "type"=>"Image", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 28ms (Views: 0.4ms | ActiveRecord: 0.0ms | Allocations: 30127) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&card%5Btype%5D=Image&view=new_in_modal&_=1591050866389&main=how_to_fix_toaster&slot%5Bview%5D=titled&slot%5Bnest_name%5D=%2Bpicture&slot%5Bnest_syntax%5D=%2Bpicture%7Ctype%3AImage&slot%5Bhome_view%5D=titled&slot%5Btype%5D=Image&slot%5Bname_context%5D=how_to_fix_toaster&type=Image" for 127.0.0.1 at 2020-06-01 18:39:11 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture", "type"=>"Image"}, "view"=>"new_in_modal", "_"=>"1591050866389", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"titled", "nest_name"=>"+picture", "nest_syntax"=>"+picture|type:Image", "home_view"=>"titled", "type"=>"Image", "name_context"=>"how_to_fix_toaster"}, "type"=>"Image", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 31ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 30156) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&card%5Btype%5D=Image&view=new_in_modal&_=1591050866390&main=how_to_fix_toaster&slot%5Bview%5D=titled&slot%5Bnest_name%5D=%2Bpicture&slot%5Bnest_syntax%5D=%2Bpicture%7Ctype%3AImage&slot%5Bhome_view%5D=titled&slot%5Btype%5D=Image&slot%5Bname_context%5D=how_to_fix_toaster&type=Image" for 127.0.0.1 at 2020-06-01 18:40:03 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture", "type"=>"Image"}, "view"=>"new_in_modal", "_"=>"1591050866390", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"titled", "nest_name"=>"+picture", "nest_syntax"=>"+picture|type:Image", "home_view"=>"titled", "type"=>"Image", "name_context"=>"how_to_fix_toaster"}, "type"=>"Image", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 25ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 30196) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&card%5Btype%5D=Image&view=new_in_modal&_=1591050866391&main=how_to_fix_toaster&slot%5Bview%5D=titled&slot%5Bnest_name%5D=%2Bpicture&slot%5Bnest_syntax%5D=%2Bpicture%7Ctype%3AImage&slot%5Bhome_view%5D=titled&slot%5Btype%5D=Image&slot%5Bname_context%5D=how_to_fix_toaster&type=Image" for 127.0.0.1 at 2020-06-01 18:40:48 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture", "type"=>"Image"}, "view"=>"new_in_modal", "_"=>"1591050866391", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"titled", "nest_name"=>"+picture", "nest_syntax"=>"+picture|type:Image", "home_view"=>"titled", "type"=>"Image", "name_context"=>"how_to_fix_toaster"}, "type"=>"Image", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 51ms (Views: 0.4ms | ActiveRecord: 0.0ms | Allocations: 30132) Started GET "/how_to_fix_toaster?view=bridge&_=1591050866392&main=how_to_fix_toaster&is_main=true&slot%5Bview%5D=titled&slot%5Bnest_name%5D=_main&slot%5Bnest_syntax%5D=_main%7Ctitled&slot%5Bmain%5D=true&slot%5Bhome_view%5D=titled&slot%5Bmain_view%5D=true&slot%5Blayout%5D=Default%20Layout" for 127.0.0.1 at 2020-06-01 18:42:58 -0400 Processing by CardController#read as JS Parameters: {"view"=>"bridge", "_"=>"1591050866392", "main"=>"how_to_fix_toaster", "is_main"=>"true", "slot"=>{"view"=>"titled", "nest_name"=>"_main", "nest_syntax"=>"_main|titled", "main"=>"true", "home_view"=>"titled", "main_view"=>"true", "layout"=>"Default Layout"}, "mark"=>"how_to_fix_toaster"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 50ms (Views: 0.4ms | ActiveRecord: 0.8ms | Allocations: 58742) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&card%5Btype%5D=Image&view=new_in_modal&_=1591050866393&main=how_to_fix_toaster&slot%5Bview%5D=titled&slot%5Bnest_name%5D=%2Bpicture&slot%5Bnest_syntax%5D=%2Bpicture%7Ctype%3AImage&slot%5Bhome_view%5D=titled&slot%5Btype%5D=Image&slot%5Bname_context%5D=how_to_fix_toaster&type=Image" for 127.0.0.1 at 2020-06-01 18:43:12 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture", "type"=>"Image"}, "view"=>"new_in_modal", "_"=>"1591050866393", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"titled", "nest_name"=>"+picture", "nest_syntax"=>"+picture|type:Image", "home_view"=>"titled", "type"=>"Image", "name_context"=>"how_to_fix_toaster"}, "type"=>"Image", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 33ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 30120) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&view=bridge&_=1591050866394&main=how_to_fix_toaster" for 127.0.0.1 at 2020-06-01 18:43:19 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture"}, "view"=>"bridge", "_"=>"1591050866394", "main"=>"how_to_fix_toaster", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 29ms (Views: 0.4ms | ActiveRecord: 0.0ms | Allocations: 34282) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&view=bridge_type_formgroup&_=1591050866395&main=how_to_fix_toaster&slot%5Bview%5D=edit_type_row&slot%5Bhome_view%5D=edit_type_row" for 127.0.0.1 at 2020-06-01 18:47:17 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture"}, "view"=>"bridge_type_formgroup", "_"=>"1591050866395", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"edit_type_row", "home_view"=>"edit_type_row"}, "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 62ms (Views: 0.4ms | ActiveRecord: 0.5ms | Allocations: 61461) Started GET "/how_to_fix_toaster+picture?assign=true&card%5Bname%5D=how_to_fix_toaster%2Bpicture&mark=&slot%5Bshow%5D%5B%5D=type_form&view=edit_form&card%5Btype%5D=Image&utf8=%E2%9C%93&card%5Btype%5D=Image&assign=true&card%5Bcontent%5D=&_=1591050866396&main=how_to_fix_toaster&slot%5Bview%5D=edit_form&main=how_to_fix_toaster&slot%5Bview%5D=titled&slot%5Bnest_name%5D=%2Bpicture&slot%5Bnest_syntax%5D=%2Bpicture%7Ctype%3AImage&slot%5Bhome_view%5D=titled&slot%5Btype%5D=Image&slot%5Bname_context%5D=how_to_fix_toaster&type=Image" for 127.0.0.1 at 2020-06-01 18:47:21 -0400 Processing by CardController#read as JS Parameters: {"assign"=>"true", "card"=>{"name"=>"how_to_fix_toaster+picture", "type"=>"Image", "content"=>""}, "mark"=>"how_to_fix_toaster+picture", "slot"=>{"show"=>["type_form"], "view"=>"titled", "nest_name"=>"+picture", "nest_syntax"=>"+picture|type:Image", "home_view"=>"titled", "type"=>"Image", "name_context"=>"how_to_fix_toaster"}, "view"=>"edit_form", "utf8"=>"✓", "_"=>"1591050866396", "main"=>"how_to_fix_toaster", "type"=>"Image"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 28ms (Views: 1.8ms | ActiveRecord: 0.0ms | Allocations: 13952) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&card%5Btype%5D=Image&view=new_in_modal&_=1591050866397&main=how_to_fix_toaster&slot%5Bview%5D=edit_form&slot%5Bnest_name%5D=%2Bpicture&slot%5Bnest_syntax%5D=%2Bpicture%7Ctype%3AImage&slot%5Bshow%5D%5B%5D=type_form&slot%5Bhome_view%5D=titled&slot%5Btype%5D=Image&type=Image" for 127.0.0.1 at 2020-06-01 18:47:23 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture", "type"=>"Image"}, "view"=>"new_in_modal", "_"=>"1591050866397", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"edit_form", "nest_name"=>"+picture", "nest_syntax"=>"+picture|type:Image", "show"=>["type_form"], "home_view"=>"titled", "type"=>"Image"}, "type"=>"Image", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 27ms (Views: 0.4ms | ActiveRecord: 0.0ms | Allocations: 30238) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&view=bridge&_=1591050866398&main=how_to_fix_toaster" for 127.0.0.1 at 2020-06-01 18:47:26 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture"}, "view"=>"bridge", "_"=>"1591050866398", "main"=>"how_to_fix_toaster", "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 30ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 34340) Started GET "/how_to_fix_toaster+picture?card%5Bname%5D=how_to_fix_toaster%2Bpicture&view=bridge_type_formgroup&_=1591050866399&main=how_to_fix_toaster&slot%5Bview%5D=edit_type_row&slot%5Bhome_view%5D=edit_type_row" for 127.0.0.1 at 2020-06-01 18:47:28 -0400 Processing by CardController#read as JS Parameters: {"card"=>{"name"=>"how_to_fix_toaster+picture"}, "view"=>"bridge_type_formgroup", "_"=>"1591050866399", "main"=>"how_to_fix_toaster", "slot"=>{"view"=>"edit_type_row", "home_view"=>"edit_type_row"}, "mark"=>"how_to_fix_toaster+picture"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 73ms (Views: 0.4ms | ActiveRecord: 0.5ms | Allocations: 61443) Started GET "/how_to_fix_toaster+picture?assign=true&card%5Bname%5D=how_to_fix_toaster%2Bpicture&mark=&slot%5Bshow%5D%5B%5D=type_form&view=edit_form&card%5Btype%5D=Image&utf8=%E2%9C%93&card%5Btype%5D=Image&assign=true&card%5Bcontent%5D=&_=1591050866400&main=how_to_fix_toaster&slot%5Bview%5D=edit_form&main=how_to_fix_toaster&slot%5Bview%5D=edit_form&slot%5Bnest_name%5D=%2Bpicture&slot%5Bnest_syntax%5D=%2Bpicture%7Ctype%3AImage&slot%5Bshow%5D%5B%5D=type_form&slot%5Bhome_view%5D=titled&slot%5Btype%5D=Image&type=Image" for 127.0.0.1 at 2020-06-01 18:47:33 -0400 Processing by CardController#read as JS Parameters: {"assign"=>"true", "card"=>{"name"=>"how_to_fix_toaster+picture", "type"=>"Image", "content"=>""}, "mark"=>"how_to_fix_toaster+picture", "slot"=>{"show"=>["type_form", "type_form"], "view"=>"edit_form", "nest_name"=>"+picture", "nest_syntax"=>"+picture|type:Image", "home_view"=>"titled", "type"=>"Image"}, "view"=>"edit_form", "utf8"=>"✓", "_"=>"1591050866400", "main"=>"how_to_fix_toaster", "type"=>"Image"} Rendering text template Rendered text template (Duration: 0.0ms | Allocations: 2) Completed 200 OK in 29ms (Views: 5.3ms | ActiveRecord: 0.0ms | Allocations: 13933)
I'm very happy to continue troubleshooting this with you :-)
from decko.
@bertdeb, I'm trying and failing to reproduce this. I do see previews briefly breaking when changing card types, but that's a fairly narrow issue.
Two things to try:
- I just realized that you were using a PDF, which may be confusing things. (Although, if so, we get TERRIBLE marks for our error handling). Could you try with a .png or .gif or .jpg and see how that goes?
- If that doesn't go well, can you confirm that ImageMagick is properly installed with a command line test? Something like
magick identify -verbose IMAGEFILENAME
Fwiw, I'm also trying to get v0.9.6 released today, which does have some file-related improvements, but I doubt that will solve the issues.
Thanks again for your patience and help. It means a lot!
from decko.
@ethn, I'm on Ubuntu 18.04, so I don't preface any magick commands by magick. If I do, I get the following error:
Command 'magick' not found, did you mean:
command 'magic' from deb magic
Try: sudo apt install <deb name>
Running identify -verbose IMAGEFILENAME
works fine.
Could this be the problem?
from decko.
Good thought, but no. We're actually running decko on some servers with Ubuntu 18.04 (and it looks like they have the same imagemagick version).
Actually, I think the issue is the PDF. I just tried uploading a PDF and saw 0 bytes.
Can you test whether the image handling works ok with other image types?
If that's really the whole issue, the immediate fix will be to make sure our error handling catches this (as it already should). But I'm curious to know whether that's an ImageMagick limitation. Will research...
from decko.
Hi @ethn, I tried uploading these sample images with no success (0 bytes):
Uploading them to a new File type card works fine.
from decko.
Hi @bertdeb, I was able to upload your first picture without any problem.
I have a few more ideas that we can try to find the reason why it doesn't work for you:
- Try to upload a svg image. The file extension has to be svg. (The upload for svg works exactly the same as for other images except that Decko doesn't use Imagemagick to create different versions with different sizes)
- Check if you can run
mogrify
on your machine. That's what Decko calls to run Imagemagick (This is the library that we use for that https://www.rubydoc.info/github/carrierwaveuploader/carrierwave/CarrierWave/MiniMagick) - Check if your Imagemagick installation can handle the file types that you are trying to upload, e.g.
identify -list format | grep -i png
should return something. - Create in
config/initializers
a filecarrierwave.rb
with the following content
CarrierWave.configure do |config|
config.ignore_integrity_errors = false
config.ignore_processing_errors = false
config.ignore_download_errors = false
end
Restart your Decko server and try the upload again.
At the end of the server log you should see an error message from Carrierwave, that hopefully tells us what went wrong.
from decko.
Hi @xithan, after adding that carrierwave.rb
file, now everything works!
Before adding the carrierwave file, uploading svg worked too, as did
mogrify -resize 50% ~/Downloads/HDRI_Sample_Scene_Balls_\(JPEG-HDR\).jpg
,
and identify -list format | grep -i png
gave the following:
JNG* PNG rw- JPEG Network Graphics
See http://www.libpng.org/pub/mng/ for details about the JNG
MNG* PNG rw+ Multiple-image Network Graphics (libpng 1.6.34)
See http://www.libpng.org/pub/mng/ for details about the MNG
PNG* PNG rw- Portable Network Graphics (libpng 1.6.34)
See http://www.libpng.org/ for details about the PNG format.
PNG00* PNG rw- PNG inheriting bit-depth, color-type from original if possible
PNG24* PNG rw- opaque or binary transparent 24-bit RGB (zlib 1.2.11)
PNG32* PNG rw- opaque or transparent 32-bit RGBA
PNG48* PNG rw- opaque or binary transparent 48-bit RGB
PNG64* PNG rw- opaque or transparent 64-bit RGBA
PNG8* PNG rw- 8-bit indexed with optional binary transparency
Do you think adding carrierwave.rb
was enough to fix it? I didn't do anything else.
Logs for comparison:
Started GET "/new/Image" for 127.0.0.1 at 2020-06-04 18:25:56 -0400
Processing by CardController#read as HTML
Parameters: {"view"=>"new", "type"=>"Image"}
Rendering text template
Rendered text template (Duration: 0.0ms | Allocations: 4)
Completed 200 OK in 334ms (Views: 0.6ms | ActiveRecord: 0.3ms | Allocations: 151447)
Started GET "/files/:favicon/standard-small.png" for 127.0.0.1 at 2020-06-04 18:25:57 -0400
Processing by CardController#read as PNG
Parameters: {"explicit_file"=>true, "mark"=>":favicon", "rev_id"=>"standard", "size"=>"small"}
Sent file /var/lib/gems/2.5.0/gems/card-1.99.5/mod/standard/file/favicon/image-small.png (0.2ms)
Completed 200 OK in 8ms (ActiveRecord: 0.0ms | Allocations: 4197)
Started POST "/card/create" for 127.0.0.1 at 2020-06-04 18:26:12 -0400
Processing by CardController#create as HTML
Parameters: {"card"=>{"type_id"=>"19", "image"=>#<ActionDispatch::Http::UploadedFile:0x00005593204b3120 @tempfile=#<Tempfile:/tmp/RackMultipart20200604-6928-eq5kjo.png>, @original_filename="pnggrad16rgb.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"card[image]\"; filename=\"pnggrad16rgb.png\"\r\nContent-Type: image/png\r\n">}, "attachment_upload"=>"card[image]"}
Rendering text template
Rendered text template (Duration: 0.0ms | Allocations: 2)
Completed 200 OK in 383ms (Views: 1.8ms | ActiveRecord: 9.3ms | Allocations: 49572)
Started GET "/files/~1565/54590-medium.png" for 127.0.0.1 at 2020-06-04 18:26:12 -0400
Processing by CardController#read as PNG
Parameters: {"explicit_file"=>true, "mark"=>"~1565", "rev_id"=>"54590", "size"=>"medium"}
Sent file /home/bert/mysite/files/1565/54590-medium.png (0.1ms)
Completed 200 OK in 13ms (ActiveRecord: 1.8ms | Allocations: 4920)
Started GET "/?format=json&view=status&card%5Bname%5D=gradient&_=1591309557140" for 127.0.0.1 at 2020-06-04 18:26:26 -0400
Processing by CardController#read as JSON
Parameters: {"view"=>"status", "card"=>{"name"=>"gradient"}, "_"=>"1591309557140"}
Rendering text template
Rendered text template (Duration: 0.0ms | Allocations: 2)
Completed 200 OK in 11ms (Views: 2.1ms | ActiveRecord: 0.2ms | Allocations: 4335)
Started POST "/card/create?main=&is_main=true&slot%5Bview%5D=new&slot%5Bnest_name%5D=_main&slot%5Bnest_syntax%5D=_main%7Ctitled&slot%5Bmain%5D=true&slot%5Bhome_view%5D=new&slot%5Bmain_view%5D=true&slot%5Blayout%5D=Default%20Layout" for 127.0.0.1 at 2020-06-04 18:26:29 -0400
Processing by CardController#create as JS
Parameters: {"utf8"=>"✓", "success"=>"REDIRECT: _self", "card"=>{"name"=>"gradient", "type_id"=>"19", "image"=>"", "action_id_of_cached_upload"=>"54590"}, "name_prompt"=>"true", "attachment_type_id"=>"19", "file_card_name"=>"", "button"=>"", "main"=>"", "is_main"=>"true", "slot"=>{"view"=>"new", "nest_name"=>"_main", "nest_syntax"=>"_main|titled", "main"=>"true", "home_view"=>"new", "main_view"=>"true", "layout"=>"Default Layout"}}
[ActiveJob] Enqueued Card::Set::Event::DelayedEvent::IntegrateWithDelayJob (Job ID: e54385a5-cd01-4c0e-9c5b-13a1687de844) to DelayedJob(notify_followers_after_save) with arguments: 37859, #<GlobalID:0x000055931cf16c38 @uri=#<URI::GID gid://mysite/Card/19699>>, {:action=>:create, :supercard=>nil, :superleft=>nil, :current_action=>#<GlobalID:0x000055931cf15a68 @uri=#<URI::GID gid://mysite/Card::Action/54591>>, :comment=>nil, :update_referers=>nil, :update_all_users=>nil, :silent_change=>nil, :last_action_id_before_edit=>nil, :only_storage_phase=>nil, :changed_attributes=>nil, :skip=>nil, :skip_in_action=>nil, :trigger=>nil, :trigger_in_action=>nil, "action_id_of_cached_upload"=>"54590", "image"=>nil}, {:main_name=>"", :params=><ActionController::Parameters {"utf8"=>"✓", "success"=>"REDIRECT: _self", "card"=><ActionController::Parameters {"name"=>"gradient", "type_id"=>"19", "image"=>"", "action_id_of_cached_upload"=>"54590"} permitted: false>, "name_prompt"=>"true", "attachment_type_id"=>"19", "file_card_name"=>"", "button"=>"", "main"=>"", "is_main"=>"true", "slot"=>{"view"=>"new", "nest_name"=>"_main", "nest_syntax"=>"_main|titled", "main"=>"true", "home_view"=>"new", "main_view"=>"true", "layout"=>"Default Layout"}, "controller"=>"card", "action"=>"create"} permitted: false>, :ip=>"127.0.0.1", :ajax=>0, :html=>true, :host=>"localhost:3000", :protocol=>"http://"}, {:as_id=>19668, :current_id=>19668}, "notify_followers_after_save_without_callbacks"
[ActiveJob] Enqueued Card::Set::Event::DelayedEvent::IntegrateWithDelayJob (Job ID: ef4362f7-2377-470b-9230-5ea8ab9a8abe) to DelayedJob(clear_draft_files) with arguments: 37859, #<GlobalID:0x000055931ce31228 @uri=#<URI::GID gid://mysite/Card/19699>>, {:action=>:create, :supercard=>nil, :superleft=>nil, :current_action=>#<GlobalID:0x000055931ce2bb20 @uri=#<URI::GID gid://mysite/Card::Action/54591>>, :comment=>nil, :update_referers=>nil, :update_all_users=>nil, :silent_change=>nil, :last_action_id_before_edit=>nil, :only_storage_phase=>nil, :changed_attributes=>nil, :skip=>nil, :skip_in_action=>nil, :trigger=>nil, :trigger_in_action=>nil, "action_id_of_cached_upload"=>"54590", "image"=>nil}, {:main_name=>"", :params=><ActionController::Parameters {"utf8"=>"✓", "success"=>"REDIRECT: _self", "card"=><ActionController::Parameters {"name"=>"gradient", "type_id"=>"19", "image"=>"", "action_id_of_cached_upload"=>"54590"} permitted: false>, "name_prompt"=>"true", "attachment_type_id"=>"19", "file_card_name"=>"", "button"=>"", "main"=>"", "is_main"=>"true", "slot"=>{"view"=>"new", "nest_name"=>"_main", "nest_syntax"=>"_main|titled", "main"=>"true", "home_view"=>"new", "main_view"=>"true", "layout"=>"Default Layout"}, "controller"=>"card", "action"=>"create"} permitted: false>, :ip=>"127.0.0.1", :ajax=>0, :html=>true, :host=>"localhost:3000", :protocol=>"http://"}, {:as_id=>19668, :current_id=>19668}, "clear_draft_files_without_callbacks"
Completed 200 OK in 249ms (Views: 0.1ms | ActiveRecord: 47.0ms | Allocations: 47876)
Started GET "/gradient" for 127.0.0.1 at 2020-06-04 18:26:29 -0400
Processing by CardController#read as HTML
Parameters: {"mark"=>"gradient"}
Rendering text template
Rendered text template (Duration: 0.0ms | Allocations: 2)
Completed 200 OK in 139ms (Views: 1.3ms | ActiveRecord: 0.2ms | Allocations: 83298)
Started GET "/files/:favicon/standard-small.png" for 127.0.0.1 at 2020-06-04 18:26:30 -0400
Processing by CardController#read as PNG
Parameters: {"explicit_file"=>true, "mark"=>":favicon", "rev_id"=>"standard", "size"=>"small"}
Sent file /var/lib/gems/2.5.0/gems/card-1.99.5/mod/standard/file/favicon/image-small.png (0.1ms)
Completed 200 OK in 8ms (ActiveRecord: 0.0ms | Allocations: 3982)
Started GET "/new/Image" for 127.0.0.1 at 2020-06-04 18:26:35 -0400
Processing by CardController#read as HTML
Parameters: {"view"=>"new", "type"=>"Image"}
Rendering text template
Rendered text template (Duration: 0.0ms | Allocations: 2)
Completed 200 OK in 156ms (Views: 0.6ms | ActiveRecord: 0.0ms | Allocations: 91964)
Started POST "/card/create" for 127.0.0.1 at 2020-06-04 18:26:49 -0400
Processing by CardController#create as HTML
Parameters: {"card"=>{"type_id"=>"19", "image"=>#<ActionDispatch::Http::UploadedFile:0x000055931dfa8218 @tempfile=#<Tempfile:/tmp/RackMultipart20200604-6928-bit3hy.gif>, @original_filename="bird.gif", @content_type="image/gif", @headers="Content-Disposition: form-data; name=\"card[image]\"; filename=\"bird.gif\"\r\nContent-Type: image/gif\r\n">}, "attachment_upload"=>"card[image]"}
Rendering text template
Rendered text template (Duration: 0.0ms | Allocations: 2)
Completed 200 OK in 15348ms (Views: 1.9ms | ActiveRecord: 10.4ms | Allocations: 22755)
Started GET "/?format=json&view=status&card%5Bname%5D=Bird&_=1591309595707" for 127.0.0.1 at 2020-06-04 18:27:05 -0400
Processing by CardController#read as JSON
Parameters: {"view"=>"status", "card"=>{"name"=>"Bird"}, "_"=>"1591309595707"}
Rendering text template
Rendered text template (Duration: 0.0ms | Allocations: 2)
Completed 200 OK in 9ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 3928)
Started GET "/files/~1565/54592-medium.gif" for 127.0.0.1 at 2020-06-04 18:27:05 -0400
Processing by CardController#read as GIF
Parameters: {"explicit_file"=>true, "mark"=>"~1565", "rev_id"=>"54592", "size"=>"medium"}
Sent file /home/bert/mysite/files/1565/54592-medium.gif (0.1ms)
Completed 200 OK in 17ms (ActiveRecord: 3.9ms | Allocations: 4981)
Started POST "/card/create?main=&is_main=true&slot%5Bview%5D=new&slot%5Bnest_name%5D=_main&slot%5Bnest_syntax%5D=_main%7Ctitled&slot%5Bmain%5D=true&slot%5Bhome_view%5D=new&slot%5Bmain_view%5D=true&slot%5Blayout%5D=Default%20Layout" for 127.0.0.1 at 2020-06-04 18:27:08 -0400
Processing by CardController#create as JS
Parameters: {"utf8"=>"✓", "success"=>"REDIRECT: _self", "card"=>{"name"=>"Bird", "type_id"=>"19", "image"=>"", "action_id_of_cached_upload"=>"54592"}, "name_prompt"=>"true", "attachment_type_id"=>"19", "file_card_name"=>"", "button"=>"", "main"=>"", "is_main"=>"true", "slot"=>{"view"=>"new", "nest_name"=>"_main", "nest_syntax"=>"_main|titled", "main"=>"true", "home_view"=>"new", "main_view"=>"true", "layout"=>"Default Layout"}}
[ActiveJob] Enqueued Card::Set::Event::DelayedEvent::IntegrateWithDelayJob (Job ID: df3c3659-e6f3-4ab4-af36-a692a5ead324) to DelayedJob(notify_followers_after_save) with arguments: 37861, #<GlobalID:0x0000559320c0e578 @uri=#<URI::GID gid://mysite/Card/19700>>, {:action=>:create, :supercard=>nil, :superleft=>nil, :current_action=>#<GlobalID:0x0000559320c0dd30 @uri=#<URI::GID gid://mysite/Card::Action/54593>>, :comment=>nil, :update_referers=>nil, :update_all_users=>nil, :silent_change=>nil, :last_action_id_before_edit=>nil, :only_storage_phase=>nil, :changed_attributes=>nil, :skip=>nil, :skip_in_action=>nil, :trigger=>nil, :trigger_in_action=>nil, "action_id_of_cached_upload"=>"54592", "image"=>nil}, {:main_name=>"", :params=><ActionController::Parameters {"utf8"=>"✓", "success"=>"REDIRECT: _self", "card"=><ActionController::Parameters {"name"=>"Bird", "type_id"=>"19", "image"=>"", "action_id_of_cached_upload"=>"54592"} permitted: false>, "name_prompt"=>"true", "attachment_type_id"=>"19", "file_card_name"=>"", "button"=>"", "main"=>"", "is_main"=>"true", "slot"=>{"view"=>"new", "nest_name"=>"_main", "nest_syntax"=>"_main|titled", "main"=>"true", "home_view"=>"new", "main_view"=>"true", "layout"=>"Default Layout"}, "controller"=>"card", "action"=>"create"} permitted: false>, :ip=>"127.0.0.1", :ajax=>0, :html=>true, :host=>"localhost:3000", :protocol=>"http://"}, {:as_id=>19668, :current_id=>19668}, "notify_followers_after_save_without_callbacks"
[ActiveJob] Enqueued Card::Set::Event::DelayedEvent::IntegrateWithDelayJob (Job ID: a7c27f5e-6516-4866-b9fb-d06c7e00f6b6) to DelayedJob(clear_draft_files) with arguments: 37861, #<GlobalID:0x0000559320bc9f68 @uri=#<URI::GID gid://mysite/Card/19700>>, {:action=>:create, :supercard=>nil, :superleft=>nil, :current_action=>#<GlobalID:0x0000559320bc95e0 @uri=#<URI::GID gid://mysite/Card::Action/54593>>, :comment=>nil, :update_referers=>nil, :update_all_users=>nil, :silent_change=>nil, :last_action_id_before_edit=>nil, :only_storage_phase=>nil, :changed_attributes=>nil, :skip=>nil, :skip_in_action=>nil, :trigger=>nil, :trigger_in_action=>nil, "action_id_of_cached_upload"=>"54592", "image"=>nil}, {:main_name=>"", :params=><ActionController::Parameters {"utf8"=>"✓", "success"=>"REDIRECT: _self", "card"=><ActionController::Parameters {"name"=>"Bird", "type_id"=>"19", "image"=>"", "action_id_of_cached_upload"=>"54592"} permitted: false>, "name_prompt"=>"true", "attachment_type_id"=>"19", "file_card_name"=>"", "button"=>"", "main"=>"", "is_main"=>"true", "slot"=>{"view"=>"new", "nest_name"=>"_main", "nest_syntax"=>"_main|titled", "main"=>"true", "home_view"=>"new", "main_view"=>"true", "layout"=>"Default Layout"}, "controller"=>"card", "action"=>"create"} permitted: false>, :ip=>"127.0.0.1", :ajax=>0, :html=>true, :host=>"localhost:3000", :protocol=>"http://"}, {:as_id=>19668, :current_id=>19668}, "clear_draft_files_without_callbacks"
Completed 200 OK in 9711ms (Views: 0.1ms | ActiveRecord: 31.8ms | Allocations: 33058)
Started GET "/Bird" for 127.0.0.1 at 2020-06-04 18:27:17 -0400
Processing by CardController#read as HTML
Parameters: {"mark"=>"Bird"}
Rendering text template
Rendered text template (Duration: 0.0ms | Allocations: 2)
Completed 200 OK in 162ms (Views: 0.3ms | ActiveRecord: 0.6ms | Allocations: 82844)
Started GET "/files/:favicon/standard-small.png" for 127.0.0.1 at 2020-06-04 18:27:18 -0400
Processing by CardController#read as PNG
Parameters: {"explicit_file"=>true, "mark"=>":favicon", "rev_id"=>"standard", "size"=>"small"}
Sent file /var/lib/gems/2.5.0/gems/card-1.99.5/mod/standard/file/favicon/image-small.png (0.2ms)
Completed 200 OK in 9ms (ActiveRecord: 0.0ms | Allocations: 3982)
Started GET "/new/Image" for 127.0.0.1 at 2020-06-04 18:27:23 -0400
Processing by CardController#read as HTML
Parameters: {"view"=>"new", "type"=>"Image"}
Rendering text template
Rendered text template (Duration: 0.0ms | Allocations: 2)
Completed 200 OK in 173ms (Views: 0.4ms | ActiveRecord: 0.0ms | Allocations: 92037)
Started POST "/card/create" for 127.0.0.1 at 2020-06-04 18:27:41 -0400
Processing by CardController#create as HTML
Parameters: {"card"=>{"type_id"=>"19", "image"=>#<ActionDispatch::Http::UploadedFile:0x0000559320f4e260 @tempfile=#<Tempfile:/tmp/RackMultipart20200604-6928-yha8h3.jpg>, @original_filename="HDRI_Sample_Scene_Balls_(JPEG-HDR).jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"card[image]\"; filename=\"HDRI_Sample_Scene_Balls_(JPEG-HDR).jpg\"\r\nContent-Type: image/jpeg\r\n">}, "attachment_upload"=>"card[image]"}
Rendering text template
Rendered text template (Duration: 0.0ms | Allocations: 2)
Completed 200 OK in 157ms (Views: 2.5ms | ActiveRecord: 17.0ms | Allocations: 22881)
Started GET "/files/~1565/54594-medium.jpg" for 127.0.0.1 at 2020-06-04 18:27:42 -0400
Processing by CardController#read as JPEG
Parameters: {"explicit_file"=>true, "mark"=>"~1565", "rev_id"=>"54594", "size"=>"medium"}
Sent file /home/bert/mysite/files/1565/54594-medium.jpg (0.1ms)
Completed 200 OK in 15ms (ActiveRecord: 6.5ms | Allocations: 4983)
Started GET "/?format=json&view=status&card%5Bname%5D=Balls&_=1591309644099" for 127.0.0.1 at 2020-06-04 18:27:46 -0400
Processing by CardController#read as JSON
Parameters: {"view"=>"status", "card"=>{"name"=>"Balls"}, "_"=>"1591309644099"}
Rendering text template
Rendered text template (Duration: 0.0ms | Allocations: 2)
Completed 200 OK in 7ms (Views: 2.4ms | ActiveRecord: 0.0ms | Allocations: 3938)
Started POST "/card/create?main=&is_main=true&slot%5Bview%5D=new&slot%5Bnest_name%5D=_main&slot%5Bnest_syntax%5D=_main%7Ctitled&slot%5Bmain%5D=true&slot%5Bhome_view%5D=new&slot%5Bmain_view%5D=true&slot%5Blayout%5D=Default%20Layout" for 127.0.0.1 at 2020-06-04 18:27:47 -0400
Processing by CardController#create as JS
Parameters: {"utf8"=>"✓", "success"=>"REDIRECT: _self", "card"=>{"name"=>"Balls", "type_id"=>"19", "image"=>"", "action_id_of_cached_upload"=>"54594"}, "name_prompt"=>"true", "attachment_type_id"=>"19", "file_card_name"=>"", "button"=>"", "main"=>"", "is_main"=>"true", "slot"=>{"view"=>"new", "nest_name"=>"_main", "nest_syntax"=>"_main|titled", "main"=>"true", "home_view"=>"new", "main_view"=>"true", "layout"=>"Default Layout"}}
[ActiveJob] Enqueued Card::Set::Event::DelayedEvent::IntegrateWithDelayJob (Job ID: cadc24dc-0467-461a-a168-2d83ab063d2c) to DelayedJob(notify_followers_after_save) with arguments: 37863, #<GlobalID:0x000055932037e2a0 @uri=#<URI::GID gid://mysite/Card/19701>>, {:action=>:create, :supercard=>nil, :superleft=>nil, :current_action=>#<GlobalID:0x000055932037da58 @uri=#<URI::GID gid://mysite/Card::Action/54595>>, :comment=>nil, :update_referers=>nil, :update_all_users=>nil, :silent_change=>nil, :last_action_id_before_edit=>nil, :only_storage_phase=>nil, :changed_attributes=>nil, :skip=>nil, :skip_in_action=>nil, :trigger=>nil, :trigger_in_action=>nil, "action_id_of_cached_upload"=>"54594", "image"=>nil}, {:main_name=>"", :params=><ActionController::Parameters {"utf8"=>"✓", "success"=>"REDIRECT: _self", "card"=><ActionController::Parameters {"name"=>"Balls", "type_id"=>"19", "image"=>"", "action_id_of_cached_upload"=>"54594"} permitted: false>, "name_prompt"=>"true", "attachment_type_id"=>"19", "file_card_name"=>"", "button"=>"", "main"=>"", "is_main"=>"true", "slot"=>{"view"=>"new", "nest_name"=>"_main", "nest_syntax"=>"_main|titled", "main"=>"true", "home_view"=>"new", "main_view"=>"true", "layout"=>"Default Layout"}, "controller"=>"card", "action"=>"create"} permitted: false>, :ip=>"127.0.0.1", :ajax=>0, :html=>true, :host=>"localhost:3000", :protocol=>"http://"}, {:as_id=>19668, :current_id=>19668}, "notify_followers_after_save_without_callbacks"
[ActiveJob] Enqueued Card::Set::Event::DelayedEvent::IntegrateWithDelayJob (Job ID: 549ab49d-9321-4fbb-b8cf-d6a8c44ce4eb) to DelayedJob(clear_draft_files) with arguments: 37863, #<GlobalID:0x000055932033e6a0 @uri=#<URI::GID gid://mysite/Card/19701>>, {:action=>:create, :supercard=>nil, :superleft=>nil, :current_action=>#<GlobalID:0x000055932033dea8 @uri=#<URI::GID gid://mysite/Card::Action/54595>>, :comment=>nil, :update_referers=>nil, :update_all_users=>nil, :silent_change=>nil, :last_action_id_before_edit=>nil, :only_storage_phase=>nil, :changed_attributes=>nil, :skip=>nil, :skip_in_action=>nil, :trigger=>nil, :trigger_in_action=>nil, "action_id_of_cached_upload"=>"54594", "image"=>nil}, {:main_name=>"", :params=><ActionController::Parameters {"utf8"=>"✓", "success"=>"REDIRECT: _self", "card"=><ActionController::Parameters {"name"=>"Balls", "type_id"=>"19", "image"=>"", "action_id_of_cached_upload"=>"54594"} permitted: false>, "name_prompt"=>"true", "attachment_type_id"=>"19", "file_card_name"=>"", "button"=>"", "main"=>"", "is_main"=>"true", "slot"=>{"view"=>"new", "nest_name"=>"_main", "nest_syntax"=>"_main|titled", "main"=>"true", "home_view"=>"new", "main_view"=>"true", "layout"=>"Default Layout"}, "controller"=>"card", "action"=>"create"} permitted: false>, :ip=>"127.0.0.1", :ajax=>0, :html=>true, :host=>"localhost:3000", :protocol=>"http://"}, {:as_id=>19668, :current_id=>19668}, "clear_draft_files_without_callbacks"
Completed 200 OK in 188ms (Views: 0.1ms | ActiveRecord: 77.6ms | Allocations: 33087)
Started GET "/Balls" for 127.0.0.1 at 2020-06-04 18:27:47 -0400
Processing by CardController#read as HTML
Parameters: {"mark"=>"Balls"}
Rendering text template
Rendered text template (Duration: 0.0ms | Allocations: 2)
Completed 200 OK in 127ms (Views: 1.0ms | ActiveRecord: 0.3ms | Allocations: 82836)
Started GET "/files/:favicon/standard-small.png" for 127.0.0.1 at 2020-06-04 18:27:48 -0400
Processing by CardController#read as PNG
Parameters: {"explicit_file"=>true, "mark"=>":favicon", "rev_id"=>"standard", "size"=>"small"}
Sent file /var/lib/gems/2.5.0/gems/card-1.99.5/mod/standard/file/favicon/image-small.png (0.1ms)
Completed 200 OK in 9ms (ActiveRecord: 0.0ms | Allocations: 3982)
from decko.
Nice! Thanks for the solution @xithan and for the patient troubleshooting, @bertdeb.
Since things are working now, you obviously don't need to do any more, but if you had the time, I'd be curious to know what would happen if you commented the three ignore commands. Does it then fail with a message? If it fails without a message, we could uncomment one at a time to at least find out what kind of error it was getting (but that means restarting the server each time, which could be a bit tedious).
At any rate, you've already been very helpful, and if you learn any more, we'd be grateful!
from decko.
Hi @ethn, image uploading now works with all ignore commands commented out, and even more baffling, with the carrierwave.rb
config file deleted!
Going over the sequence of events in my mind, image uploads started working from that first svg upload - could that process have kicked off some behind-the-scenes configuration update that made the other image types work?
from decko.
Hi @bertdeb. Woof, well that's unsatisfying!
I certainly can't rule out the idea that the svg upload triggered something. But I suppose maybe the error suppression allowed some initiation to work?
We'll have to discuss a route forward, but at any rate we're very grateful to you for your patience and help and detail!
from decko.
Related Issues (20)
- [card structure] Back to dynamic cards HOT 3
- undefined method 'notable_exception_raised' HOT 2
- [security] Resetting password outside the Decko system HOT 8
- [security] Manual user creation with password does not work as expected HOT 2
- [Search] Keyword parameters in Search broken again HOT 3
- [Card Name] Name should not contain a character error. The card name does not contain it. HOT 5
- [card management] Error while deleting a card HOT 1
- Confusing web presence makes Wagn/Decko look semi-defunct HOT 1
- Adding a not yet existing card and change the type when clicking "add card" is not possbile HOT 3
- in `customize_button'; undefined method `capture' for 0:Fixnum HOT 4
- [style] Best practices for styles, skins, and layouts HOT 2
- update: no codename for pattern_code rule HOT 15
- Install Failure: card-mod-ace_editor requires card-mod-script (= 0.11.0) HOT 8
- Couldn't find Active Storage configuration in /home/user/mysite/config/storage.yml (RuntimeError) HOT 11
- Non-executable files set with executable permissions HOT 6
- translation missing: en.mod.card-mod-format-0.11.1.set.type.toggle.no HOT 4
- 500 Server Error Changing Cardype from File or Image to Anything Else HOT 1
- working after an update
- Stuck trying to upgrade from wagn 1.9.1 - cannot install wagn HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from decko.