ruby on rails - Prepard statement already exist issue - puma incorrect config -


i using rails 4 puma web server. using postgres on heroku

i getting error saying prepared statement 'a3' exist

this conf puma

# ref https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server workers integer(env['web_concurrency'] || 2) threads_count = integer(env['max_threads'] || 5) threads threads_count, threads_count  preload_app!  rackup      defaultrackup port        env['port']     || 3000 environment env['rack_env'] || 'development'  on_worker_boot   # worker specific setup rails 4.1+   # see: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot   activerecord::base.establish_connection end 

i think config activerecord connection causing problem

this might don't know how puma postgres: prepared statement exists

the rails issue linked question referred in question has suggestions.

the popular seems removing rack-timeout gem if included in gemfile. sound guaranteed solution has helped people on thread.


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -