Khi tôi lưu mô hình konkurrencer của mình với hình ảnh đính kèm, tôi gặp lỗi trên Heroku, nhưng không phải trên máy chủ cục bộ của tôi.Rails kẹp giấy máy chủ Heroku Amazon S3 - AWS :: S3 :: Lỗi :: RequestTimeout
. log Heroku của tôi:
←[36m2012-04-01T17:45:37+00:00 app[web.1]:←[0m Started POST "/admin/konkurrencer
s" for MYIP at 2012-04-01 10:45:37 -0700
←[33m2012-04-01T17:46:01+00:00 heroku[router]:←[0m POST www.konkurrencerher.dk/a
dmin/konkurrencers dyno=web.1 queue=0 wait=0ms service=24565ms status=500 bytes=
728
←[32m2012-04-01T17:46:01+00:00 heroku[nginx]:←[0m MYIP - - [01/Apr/201
2:17:46:01 +0000] "POST /admin/konkurrencers HTTP/1.1" 500 728 "http://www.konku
rrencerher.dk/admin/konkurrencers/new" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:1
1.0) Gecko/20100101 Firefox/11.0" www.konkurrencerher.dk
←[36m2012-04-01T17:46:01+00:00 app[web.1]:←[0m
←[36m2012-04-01T17:46:01+00:00 app[web.1]:←[0m AWS::S3::Errors::RequestTimeout (
Your socket connection to the server was not read from or written to within the
timeout period. Idle connections will be closed.):
mô hình ảnh của tôi:
class Photo < ActiveRecord::Base
belongs_to :konkurrencer
attr_accessor :image_url, :billed_navn
# Paperclip.options[:command_path] = "/usr/local/bin"
has_attached_file :image,
:storage => :s3,
:bucket => 'konkurrencerher',
:styles => { :original => ["300x250>", :png], :small => ["165x138>", :png], :mini => ["120x120>", :png] },
:path => 'images/vind/:style/:id/:basename.:extension',
:url => ":s3_path_url",
:s3_credentials => {
:access_key_id => 'x',
:secret_access_key => 'x'
}
Nó hoạt động tốt trên máy chủ địa phương của tôi.
Tôi usng các Heroku đống tre-MRI-1.9.2 và verison của các thanh ray 3.0.9
Lỗi này sẽ không xuất hiện trong phiên bản mới của kẹp giấy 3.0.2 :) –