0

在我从 RVM 切换到 CHRuby 之前,我的设置运行良好。

当我重新启动服务器并加载本地页面时,我得到一个看起来像这样的对话框。

https://superuser.com/questions/100013/why-does-the-mac-os-x-firewall-dialog-recurringly-pop-up-and-disappear-by-itself

我点击了“拒绝”,但返回并启用了 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:inrescue 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:inrequest_call' excon (0.44.4) lib/excon/middlewares/instrumentor.rb:22:in request_call' excon (0.44.4) lib/excon/middlewares/base.rb:15:inrequest_call' excon (0.44.4) lib/excon/middlewares/base.rb:15:in request_call' excon (0.44.4) lib/excon/middlewares/base.rb:15:inrequest_call' excon (0.44.4) lib/excon/connection.rb:233:in request' excon (0.44.4) lib/excon/middlewares/idempotent.rb:26:inerror_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 rescue in request' 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:inerror_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:inerror_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 rescue in request' excon (0.44.4) lib/excon/connection.rb:204:inrequest' 雾核 (1.29.0) lib/fog/core/connection.rb:81:in request' fog-xml (0.1.1) lib/fog/xml/connection.rb:9:inrequest' 雾-aws (0.1.1) lib/fog/aws/storage.rb:587:in `_request'

等等...

4

1 回答 1

0

在通过 chruby 更新当前版本的 ruby​​ 后的新包安装期间,openssl 更改为 1.0.2,这导致了所有问题。切换回 1.0.1 解决了这个问题。

其他人也有同样的问题。 https://github.com/excon/excon/issues/467

我从 Codementor 的 Jim 那里得到了帮助 https://www.codementor.io/thatrubylove

于 2015-03-18T18:37:50.713 回答