1. Michael Granger
  2. ruby-pg
  3. Issues

Issues

Issue #110 resolved

Use of uninitialized PG::Connection. (fatal)

Johann Aman
created an issue

got this error after updating to 0.13.0 on production server (Ruby 1.9.3-p0 + Rails 3.2.1 + Unicorn 4.2.0). here is trace from unicorn_error.log:

{{{ /srv/site/shared/bundle/ruby/1.9/gems/activerecord-3.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:355:in finish': Use of uninitialized PG::Connection. (fatal) from /srv/site/shared/bundle/ruby/1.9/gems/activerecord-3.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:355:indisconnect!' from /srv/site/shared/config/unicorn.rb:26:in block in reload' from /srv/site/shared/bundle/ruby/1.9/gems/unicorn-4.2.0/lib/unicorn/http_server.rb:482:incall' from /srv/site/shared/bundle/ruby/1.9/gems/unicorn-4.2.0/lib/unicorn/http_server.rb:482:in spawn_missing_workers' from /srv/site/shared/bundle/ruby/1.9/gems/unicorn-4.2.0/lib/unicorn/http_server.rb:137:instart' from /srv/site/shared/bundle/ruby/1.9/gems/unicorn-4.2.0/bin/unicorn_rails:209:in <top (required)>' from /srv/site/shared/bundle/ruby/1.9/bin/unicorn_rails:19:inload' from /srv/site/shared/bundle/ruby/1.9/bin/unicorn_rails:19:in <main>' /srv/site/shared/bundle/ruby/1.9/gems/activerecord-3.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:355:infinish': Use of uninitialized PG::Connection. (fatal) from /srv/site/shared/bundle/ruby/1.9/gems/activerecord-3.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:355:in disconnect!' from /srv/site/shared/bundle/ruby/1.9/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:134:inblock (2 levels) in disconnect!' from /srv/site/shared/bundle/ruby/1.9/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:132:in each' from /srv/site/shared/bundle/ruby/1.9/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:132:inblock in disconnect!' from /usr/local/lib/ruby/1.9/monitor.rb:211:in mon_synchronize' from /srv/site/shared/bundle/ruby/1.9/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:130:indisconnect!' from /srv/site/shared/bundle/ruby/1.9/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:394:in remove_connection' from /srv/site/shared/bundle/ruby/1.9/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/connection_specification.rb:177:inremove_connection' from /srv/site/shared/bundle/ruby/1.9/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/connection_specification.rb:133:in establish_connection' from /srv/site/shared/config/unicorn.rb:39:inblock in reload' from /srv/site/shared/bundle/ruby/1.9/gems/unicorn-4.2.0/lib/unicorn/http_server.rb:563:in call' from /srv/site/shared/bundle/ruby/1.9/gems/unicorn-4.2.0/lib/unicorn/http_server.rb:563:ininit_worker_process' from /srv/site/shared/bundle/ruby/1.9/gems/unicorn-4.2.0/lib/unicorn/http_server.rb:587:in worker_loop' from /srv/site/shared/bundle/ruby/1.9/gems/unicorn-4.2.0/lib/unicorn/http_server.rb:487:inspawn_missing_workers' from /srv/site/shared/bundle/ruby/1.9/gems/unicorn-4.2.0/lib/unicorn/http_server.rb:137:in start' from /srv/site/shared/bundle/ruby/1.9/gems/unicorn-4.2.0/bin/unicorn_rails:209:in<top (required)>' from /srv/site/shared/bundle/ruby/1.9/bin/unicorn_rails:19:in load' from /srv/site/shared/bundle/ruby/1.9/bin/unicorn_rails:19:in<main>' }}}

rolled back to 0.12.2

Comments (3)

  1. Log in to comment