{"action":"created","issue":{"url":"https://api.github.com/repos/jeremyevans/sequel/issues/1248","repository_url":"https://api.github.com/repos/jeremyevans/sequel","labels_url":"https://api.github.com/repos/jeremyevans/sequel/issues/1248/labels{/name}","comments_url":"https://api.github.com/repos/jeremyevans/sequel/issues/1248/comments","events_url":"https://api.github.com/repos/jeremyevans/sequel/issues/1248/events","html_url":"https://github.com/jeremyevans/sequel/issues/1248","id":182481880,"number":1248,"title":"Sequel::PoolTimeout: timeout: 120.0, elapsed: 120.000164173","user":{"login":"federicolucca","id":2663616,"avatar_url":"https://avatars.githubusercontent.com/u/2663616?v=3","gravatar_id":"","url":"https://api.github.com/users/federicolucca","html_url":"https://github.com/federicolucca","followers_url":"https://api.github.com/users/federicolucca/followers","following_url":"https://api.github.com/users/federicolucca/following{/other_user}","gists_url":"https://api.github.com/users/federicolucca/gists{/gist_id}","starred_url":"https://api.github.com/users/federicolucca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/federicolucca/subscriptions","organizations_url":"https://api.github.com/users/federicolucca/orgs","repos_url":"https://api.github.com/users/federicolucca/repos","events_url":"https://api.github.com/users/federicolucca/events{/privacy}","received_events_url":"https://api.github.com/users/federicolucca/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-12T09:48:31Z","updated_at":"2016-10-12T14:21:45Z","closed_at":"2016-10-12T14:21:45Z","body":"i use sequel with padrino,is like 1year in production enviroment,and today it's starting to go in timeout. I'm in elastic enviroment  amazon with rds instance.Nothing change in the last month,that i know\r\n\r\nthis the parameter,is a postgresql db\r\n,:reconnect=>true,  :loggers => [logger], :max_connections=>10, :pool_timeout=>120\r\n\r\n\r\nwhat could be?\r\n\r\nSequel::PoolTimeout: timeout: 120.0, elapsed: 120.000164173\r\n1\r\nFile \"/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/sequel-4.38.0/lib/sequel/connection_pool/threaded.rb\" line 264 in raise_pool_timeout\r\n2\r\nFile \"/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/sequel-4.38.0/lib/sequel/connection_pool/threaded.rb\" line 167 in block in acquire\r\n3\r\nFile \"/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/sequel-4.38.0/lib/sequel/connection_pool/threaded.rb\" line 282 in block in sync\r\n4\r\nFile \"/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/sequel-4.38.0/lib/sequel/connection_pool/threaded.rb\" line 282 in synchronize\r\n5\r\nFile \"/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/sequel-4.38.0/lib/sequel/connection_pool/threaded.rb\" line 282 in sync\r\n6\r\nFile \"/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/sequel-4.38.0/lib/sequel/connection_pool/threaded.rb\" line 150 in acquire\r\n7\r\nFile \"/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/sequel-4.38.0/lib/sequel/extensions/connection_validator.rb\" line 98 in acquire\r\n8\r\nFile \"/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/sequel-4.38.0/lib/sequel/connection_pool/threaded.rb\" line 106 in hold\r\n9\r\nFile \"/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/sequel-4.38.0/lib/sequel/database/connecting.rb\" line 251 in synchronize\r\n10\r\nFile \"/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/sequel-4.38.0/lib/sequel/database/transactions.rb\" line 104 in transaction\r\n11\r\nFile \"/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/sequel-4.38.0/lib/sequel/model/base.rb\" line 2188 in checked_transaction\r\n12\r\nFile \"/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/sequel-4.38.0/lib/sequel/model/base.rb\" line 1684 in block in save\r\n13\r\nFile \"/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/sequel-4.38.0/lib/sequel/model/base.rb\" line 2179 in checked_save_failure\r\n14\r\nFile \"/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/sequel-4.38.0/lib/sequel/model/base.rb\" line 1684 in save\r\n15\r\nFile \"/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/sequel-4.38.0/lib/sequel/model/base.rb\" line 260 in create"},"comment":{"url":"https://api.github.com/repos/jeremyevans/sequel/issues/comments/253227158","html_url":"https://github.com/jeremyevans/sequel/issues/1248#issuecomment-253227158","issue_url":"https://api.github.com/repos/jeremyevans/sequel/issues/1248","id":253227158,"user":{"login":"jeremyevans","id":3846,"avatar_url":"https://avatars.githubusercontent.com/u/3846?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyevans","html_url":"https://github.com/jeremyevans","followers_url":"https://api.github.com/users/jeremyevans/followers","following_url":"https://api.github.com/users/jeremyevans/following{/other_user}","gists_url":"https://api.github.com/users/jeremyevans/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyevans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyevans/subscriptions","organizations_url":"https://api.github.com/users/jeremyevans/orgs","repos_url":"https://api.github.com/users/jeremyevans/repos","events_url":"https://api.github.com/users/jeremyevans/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyevans/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T14:21:45Z","updated_at":"2016-10-12T14:21:45Z","body":"PoolTimeout is raised when Sequel needs a connection from the connection pool, but the pool already has the maximum number of created connections, and all of them are already checked out by other threads.\r\n\r\nIn any case, this doesn't appear to be a bug in Sequel, as Sequel is correctly raising the PoolTimeout exception after the configured amount of time has passed.  This bug is either in your application or your environment, so I would look into issues in those areas.  If you really think this is a bug in Sequel itself, please provide a minimal, self-contained example showing the problem."}}
{"actor":{"display_login":"jeremyevans"}}