Ruby on rails 3 Heroku,S3,回形针一款上传的很好,另一款不';没有错误

Ruby on rails 3 Heroku,S3,回形针一款上传的很好,另一款不';没有错误,ruby-on-rails-3,file-upload,amazon-s3,paperclip,Ruby On Rails 3,File Upload,Amazon S3,Paperclip,好的,我有两个上传的模型,一个拍卖和一个用户 我使用的是回形针、Rails 3.2和Ruby 1.9.3。平台是希罗库雪松 以下是凭据详细信息: S3_BUCKET = ENV['S3_BUCKET'] || "..." S3_ID = ENV['S3_ID'] || "AKIAJXD4ZBGYF24..." S3_KEY = ENV['S3_KEY'] || "fJ7eNKQtFGf1s..." S3_UPLOAD_OPTIONS = { storage: :s3, bucket: S

好的,我有两个上传的模型,一个拍卖和一个用户

我使用的是回形针、Rails 3.2和Ruby 1.9.3。平台是希罗库雪松

以下是凭据详细信息:

S3_BUCKET = ENV['S3_BUCKET'] || "..."
S3_ID = ENV['S3_ID'] || "AKIAJXD4ZBGYF24..."
S3_KEY = ENV['S3_KEY'] || "fJ7eNKQtFGf1s..."
S3_UPLOAD_OPTIONS = {
  storage: :s3,
  bucket: S3_BUCKET,
  s3_credentials: {
    access_key_id: S3_ID,
    secret_access_key: S3_KEY
  }
}
拍卖文件上传工作正常。一切如期而至

用户上传不起作用,并且没有错误,如下所示:

2012-05-17T20:39:16+00:00 app[web.1]: 
2012-05-17T20:39:16+00:00 app[web.1]: DalliError: No server available
2012-05-17T20:39:16+00:00 app[web.1]: 
2012-05-17T20:39:16+00:00 app[web.1]: 
2012-05-17T20:39:16+00:00 app[web.1]: Started PUT "/users" for 208.117.193.99 at 2012-05-17 20:39:16 +0000
2012-05-17T20:39:18+00:00 heroku[router]: POST cfac-staging.herokuapp.com/users dyno=web.1 queue=0 wait=0ms service=2006ms status=302 bytes=113
2012-05-17T20:39:18+00:00 app[web.1]: cache: [POST /users] invalidate, pass
2012-05-17T20:39:18+00:00 app[web.1]: 
2012-05-17T20:39:18+00:00 app[web.1]: DalliError: No server available
2012-05-17T20:39:18+00:00 app[web.1]: 
2012-05-17T20:39:18+00:00 app[web.1]: 
2012-05-17T20:39:18+00:00 app[web.1]: Started GET "/auctions/new" for 208.117.193.99 at 2012-05-17 20:39:18 +0000
2012-05-17T20:39:19+00:00 heroku[router]: GET cfac-staging.herokuapp.com/auctions/new dyno=web.1 queue=0 wait=0ms service=1154ms status=304 bytes=0
2012-05-17T20:39:19+00:00 app[web.1]: cache: [GET /auctions/new] miss
2012-05-17T20:39:19+00:00 app[web.1]: DalliError: No server available
2012-05-17T20:39:19+00:00 app[web.1]: cache: [GET /assets/blank-avatar-9a23306b75ac790741fc7e05300183b6.png] miss
2012-05-17T20:39:19+00:00 heroku[router]: GET cfac-staging.herokuapp.com/assets/blank-avatar-9a23306b75ac790741fc7e05300183b6.png dyno=web.1 queue=0 wait=0ms service=3ms status=200 bytes=2212
2012-05-17T20:39:19+00:00 app[web.1]: DalliError: No server available
2012-05-17T20:39:19+00:00 app[web.1]: cache: [GET /assets/get-started-button-f7e9baac88feb2effa461b697df8bcd9.png] miss
2012-05-17T20:39:19+00:00 heroku[router]: GET cfac-staging.herokuapp.com/assets/get-started-button-f7e9baac88feb2effa461b697df8bcd9.png dyno=web.1 queue=0 wait=0ms service=3ms status=200 bytes=2451
我也不知道为什么会发生这样的事情,所以

以下是用户和拍卖模式:

class User < ActiveRecord::Base
  has_attached_file :logo, { styles: { medium: "x125", thumb: "x40" } }.merge!(S3_UPLOAD_OPTIONS)
end

class Auction < ActiveRecord::Base
  has_attached_file :image,  { styles: { medium: "122x122#", thumb: "80x80#" }, default_url: ActionController::Base.helpers.image_path('blank-avatar.png') }.merge!(S3_UPLOAD_OPTIONS)
end
class用户