ruby on rails - Permission denied @ dir_s_mkdir /users/avatars | Localhost -
i used paperclip previous projects, first time i'm getting error
permission denied @ dir_s_mkdir path = remove_tailing_slash(path) if mode dir.mkdir path, mode file.chmod mode, path else dir.mkdir path end
i have absolutely no idea why happening. changed folders permission, still same.
log
user load (0.3ms) select "users".* "users" "users"."id" = 1 order "users"."id" asc limit 1 user load (0.1ms) select "users".* "users" "users"."id" = ? limit 1 [["id", 1]] (0.1ms) begin transaction command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/5y/y3_ztj_n1f1bd0rb5hz8v13h0000gn/t/ae5b47338477b229e55830edfaf08bce20140602-37437-ab9fw5.jpg[0]' 2>/dev/null command :: identify -format %m '/var/folders/5y/y3_ztj_n1f1bd0rb5hz8v13h0000gn/t/ae5b47338477b229e55830edfaf08bce20140602-37437-ab9fw5.jpg[0]' command :: identify -format %m '/var/folders/5y/y3_ztj_n1f1bd0rb5hz8v13h0000gn/t/ae5b47338477b229e55830edfaf08bce20140602-37437-ab9fw5.jpg[0]' command :: identify -format %m '/var/folders/5y/y3_ztj_n1f1bd0rb5hz8v13h0000gn/t/ae5b47338477b229e55830edfaf08bce20140602-37437-ab9fw5.jpg[0]' command :: convert '/var/folders/5y/y3_ztj_n1f1bd0rb5hz8v13h0000gn/t/ae5b47338477b229e55830edfaf08bce20140602-37437-ab9fw5.jpg[0]' -auto-orient -resize "50x50>" '/var/folders/5y/y3_ztj_n1f1bd0rb5hz8v13h0000gn/t/ae5b47338477b229e55830edfaf08bce20140602-37437-ab9fw520140602-37437-152szmh' command :: file -b --mime '/var/folders/5y/y3_ztj_n1f1bd0rb5hz8v13h0000gn/t/ae5b47338477b229e55830edfaf08bce20140602-37437-ab9fw520140602-37437-152szmh' binary data inserted `string` type on column `avatar_content_type` sql (0.2ms) update "users" set "avatar_content_type" = ?, "avatar_file_name" = ?, "avatar_file_size" = ?, "avatar_updated_at" = ?, "updated_at" = ? "users"."id" = 1 [["avatar_content_type", "image/jpeg"], ["avatar_file_name", "10157398_10202612742173645_1388012856_n.jpg"], ["avatar_file_size", 66603], ["avatar_updated_at", "2014-06-02 12:35:15.545966"], ["updated_at", "2014-06-02 12:35:15.726139"]] (0.5ms) rollback transaction completed 500 internal server error in 247ms
i don't know happened, switched
'paperclip', '~> 3.0'
and working again..
Comments
Post a Comment