RubyでMandrill-apiを使用してプログラム的にトランザクションメールを送信しています。Mandrill-api Excon :: Errors :: SocketError
私は
mandrill ||= Mandrill::API.new const(:API)[:MANDRILL_APIKEY]
... (constructing the message, content, etc)
mandrill.messages.send_template templ, template_content, message, true
、私のレールのアプリで(多かれ少なかれ)次の行を持っている生産で実行しているときに問題がある、それはしばらくに一度、次のエラーを返します。
Excon::Errors::SocketError (EOFError (EOFError)):
app/mailers/mailer.rb:24:in `send'
....
この問題のデバッグ方法はわかりません。誰かが私にこれをデバッグするためのアプローチを明かすことができたら、私はそれを高く評価します。
宝石情報:
- マンドリル-API(1.0.33)
- EXCON(0.16.10)
生産ENV:
上で実行されているsudo bundle exec rake RAILS_ENV=production about
About your application's environment
Ruby version 1.9.3 (x86_64-linux)
RubyGems version 1.8.11
Rack version 1.4
Rails version 3.2.13
Active Record version 3.2.13
Action Pack version 3.2.13
Active Resource version 3.2.13
Action Mailer version 3.2.13
Active Support version 3.2.13
Middleware Rack::Cache, Rack::Lock, #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x00000001e72330>, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Callbacks, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, ActionDispatch::Head, Rack::ConditionalGet, Rack::ETag, ActionDispatch::BestStandardsSupport
Environment production
Database adapter mysql2
:
Apacheサーバー:Apache /2.2.22(Ubuntuの)
旅客:3.0.14
運用環境についての情報を提供することができれば、より簡単に対応できます。 – tyler
タイラー、添加物env。デバッグに役立つ特別な情報がある場合はお知らせください。ありがとう。 –