在我从 RVM 切换到 CHRuby 之前,我的设置运行良好。
当我重新启动服务器并加载本地页面时,我得到一个看起来像这样的对话框。
我点击了“拒绝”,但返回并启用了 ruby 的防火墙设置。 http://imgur.com/GxPQHYz
我检查了我的 IAM 安全凭证,一切都与载波初始化程序中的内容相匹配。
经过其他一些测试后,我发现:
当我在应用程序中使用其他载波上传器时,图像更新正常。这让我相信我的 AWS 安全设置很好。
排除参数哈希中的图像时,新照片保存得很好
@photo = Photo.new(photo_params.except("image"))
这可能是 Postgres 中的数据表问题。我刚从 SQlite 切换到 Postgres
我的设置是
gem 'fog'
gem 'mini_magick'
gem 'carrierwave'
在尝试保存新记录时,我现在收到以下错误
在 8522 毫秒内完成 500 内部服务器错误
Excon::Errors::SocketError - 错误地址 (Errno::EFAULT): excon (0.44.4) lib/excon/errors.rb:17:in initialize'
excon (0.44.4) lib/excon/connection.rb:175:in
rescue in request_call' excon (0.44.4) lib/excon/connection。 rb:101:in request_call'
excon (0.44.4) lib/excon/middlewares/mock.rb:47:in
request_call' excon (0.44.4) lib/excon/middlewares/instrumentor.rb:22:in request_call'
excon (0.44.4) lib/excon/middlewares/base.rb:15:in
request_call' excon (0.44.4) lib/excon/middlewares/base.rb:15:in request_call'
excon (0.44.4) lib/excon/middlewares/base.rb:15:in
request_call' excon (0.44.4) lib/excon/connection.rb:233:in request'
excon (0.44.4) lib/excon/middlewares/idempotent.rb:26:in
error_call' excon (0.44.4) lib/excon/middlewares/base.rb:10:in error_call'
excon (0.44.4) lib/excon/middlewares/base.rb:10:in
error_call' excon (0.44.4) lib/excon/connection .rb:256:in rescue in request'
excon (0.44.4) lib/excon/connection.rb:204:in
request' excon (0.44.4) lib/excon/middlewares/idempotent.rb:26:in error_call'
excon (0.44.4) lib/excon/middlewares/base.rb:10:in
error_call' excon (0.44.4) lib/excon/middlewares/base.rb:10:inerror_call'
excon (0.44.4) lib/excon/connection.rb:256:in
救援请求' excon (0.44.4) lib/excon/connection.rb:204:inrequest'
excon (0.44.4) lib/excon/middlewares/idempotent.rb:26:in
error_call' excon (0.44.4) lib/excon/middlewares/base.rb:10:in error_call'
excon (0.44.4) lib/excon/middlewares/base.rb:10:in
error_call' excon (0.44.4) lib/excon/connection.rb:256:in rescue in request'
excon (0.44.4) lib/excon/connection.rb:204:in
request' 雾核 (1.29.0) lib/fog/core/connection.rb:81:in request'
fog-xml (0.1.1) lib/fog/xml/connection.rb:9:in
request' 雾-aws (0.1.1) lib/fog/aws/storage.rb:587:in `_request'
等等...