{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/20411","labels_url":"https://api.github.com/repos/rails/rails/issues/20411/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/20411/comments","events_url":"https://api.github.com/repos/rails/rails/issues/20411/events","html_url":"https://github.com/rails/rails/issues/20411","id":83753502,"number":20411,"title":"PG::UnableToSend (SSL SYSCALL error: EOF detected)","user":{"login":"christopher-b","id":618034,"avatar_url":"https://avatars.githubusercontent.com/u/618034?v=3","gravatar_id":"","url":"https://api.github.com/users/christopher-b","html_url":"https://github.com/christopher-b","followers_url":"https://api.github.com/users/christopher-b/followers","following_url":"https://api.github.com/users/christopher-b/following{/other_user}","gists_url":"https://api.github.com/users/christopher-b/gists{/gist_id}","starred_url":"https://api.github.com/users/christopher-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopher-b/subscriptions","organizations_url":"https://api.github.com/users/christopher-b/orgs","repos_url":"https://api.github.com/users/christopher-b/repos","events_url":"https://api.github.com/users/christopher-b/events{/privacy}","received_events_url":"https://api.github.com/users/christopher-b/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-02T00:05:01Z","updated_at":"2015-06-02T00:07:04Z","closed_at":"2015-06-02T00:07:04Z","body":"Hi, \r\nI'm seeing intermittent Postgres errors in my rails app:\r\n\r\n```\r\nPG::UnableToSend (SSL SYSCALL error: EOF detected):\r\n  activerecord (4.2.1) lib/active_record/connection_adapters/postgresql_adapter.rb:215:in `exec'\r\n  activerecord (4.2.1) lib/active_record/connection_adapters/postgresql_adapter.rb:215:in `dealloc'\r\n  activerecord (4.2.1) lib/active_record/connection_adapters/postgresql_adapter.rb:198:in `block in clear'\r\n  activerecord (4.2.1) lib/active_record/connection_adapters/postgresql_adapter.rb:197:in `each_value'\r\n  activerecord (4.2.1) lib/active_record/connection_adapters/postgresql_adapter.rb:197:in `clear'\r\n  activerecord (4.2.1) lib/active_record/connection_adapters/postgresql_adapter.rb:258:in `clear_cache!'\r\n  activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:291:in `reconnect!'\r\n  activerecord (4.2.1) lib/active_record/connection_adapters/postgresql_adapter.rb:275:in `reconnect!'\r\n  activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:328:in `verify!'\r\n  activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:456:in `block in checkout_and_verify'\r\n...\r\n```\r\n\r\nThese errors are resulting in very long-running requests. I've googled this error, but all the results points to a problem (#12867) that was been fixed as of version 4.1.0, or to problems with gems I'm not using (Sideqik, Sequel). I haven't found any recent reports of a similar problem.\r\n\r\nThis is a low-traffic application, and I can't see any pattern as to when the errors occur, but it may be after a period of inactivity.\r\n\r\nI'm running the following:\r\n- Rails 4.2.1\r\n- pg 0.18.2\r\n- ruby 2.2.0\r\n- PostgreSQL 9.1.11, with max_connections=200, current connections ~90\r\n- Ubuntu 14.04.2\r\n- Passenger 5.0.8\r\n\r\nStacktrace [here](https://gist.github.com/christopher-b/7cea858ff7008b85d353).\r\n\r\nDoes anyone have any idea what might be causing this, or how to track down a solution? Thanks!\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/107750372","html_url":"https://github.com/rails/rails/issues/20411#issuecomment-107750372","issue_url":"https://api.github.com/repos/rails/rails/issues/20411","id":107750372,"user":{"login":"rafaelfranca","id":47848,"avatar_url":"https://avatars.githubusercontent.com/u/47848?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelfranca","html_url":"https://github.com/rafaelfranca","followers_url":"https://api.github.com/users/rafaelfranca/followers","following_url":"https://api.github.com/users/rafaelfranca/following{/other_user}","gists_url":"https://api.github.com/users/rafaelfranca/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelfranca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelfranca/subscriptions","organizations_url":"https://api.github.com/users/rafaelfranca/orgs","repos_url":"https://api.github.com/users/rafaelfranca/repos","events_url":"https://api.github.com/users/rafaelfranca/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelfranca/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T00:07:04Z","updated_at":"2015-06-02T00:07:04Z","body":" Please use the mailing list or StackOverflow for questions/help, where a wider community will be able to help you. We reserve the issues tracker for issues only."}}