after updating pg gem to 0.13.0 got following error on production
server (rails 3.2.1 + unicorn): "Use of uninitialized PG::Connection.
(fatal)", here is some 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:in
`disconnect!'
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:in `call'
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: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>'
/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: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:in
`block (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:in
`block 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:in
`disconnect!'
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: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:
133:in `establish_connection'
from /srv/site/shared/config/unicorn.rb:39:in `block 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:in `init_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:in `spawn_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>'

no code from pg gem present in the trace
had to rollback to pg 0.12.2

has anyone used 0.13.0 successfully?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

  • Kennyj at Feb 13, 2012 at 10:13 am
    Hi! Johann Aman

    I can reproduce this issue.

    Do you confirm the following commit ?
    https://github.com/kennyj/rails/commit/b40b7f459e3ea66f824ac4791d8882775b4f6717
    On 2月11日, 午後10:09, Johann Aman wrote:
    after updating pg gem to 0.13.0 got following error on production
    server (rails 3.2.1 + unicorn): "Use of uninitialized PG::Connection.
    (fatal)", here is some 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:in
    `disconnect!'
    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:in `call'
    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: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>'
    /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: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:in
    `block (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:in
    `block 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:in
    `disconnect!'
    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: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:
    133:in `establish_connection'
    from /srv/site/shared/config/unicorn.rb:39:in `block 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:in `init_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:in `spawn_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>'

    no code from pg gem present in the trace
    had to rollback to pg 0.12.2

    has anyone used 0.13.0 successfully?
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Kennyj at Feb 13, 2012 at 1:58 pm
    Dear, Johann Aman

    pg gem 0.13.1 was released. And, the bahavior was changed.
    You can use it !

    Please see also https://github.com/rails/rails/pull/5002 .
    On 2月12日, 午前1:09, kennyj wrote:
    Hi! Johann Aman

    I can reproduce this issue.

    Do you confirm the following commit ?https://github.com/kennyj/rails/commit/b40b7f459e3ea66f824ac4791d8882...

    On 2月11日, 午後10:09, Johann Aman wrote:






    after updating pg gem to 0.13.0 got following error on production
    server (rails 3.2.1 + unicorn): "Use of uninitialized PG::Connection.
    (fatal)", here is some 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:in
    `disconnect!'
    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:in `call'
    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: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>'
    /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: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:in
    `block (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:in
    `block 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:in
    `disconnect!'
    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: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:
    133:in `establish_connection'
    from /srv/site/shared/config/unicorn.rb:39:in `block 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:in `init_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:in `spawn_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>'
    no code from pg gem present in the trace
    had to rollback to pg 0.12.2
    has anyone used 0.13.0 successfully?
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Johann Aman at Feb 14, 2012 at 10:27 am
    thank you, kennyj, I already installed it:)

    On Feb 13, 4:58 pm, kennyj wrote:
    Dear, Johann Aman

    pg gem 0.13.1 was released. And, the bahavior was changed.
    You can use it !

    Please see alsohttps://github.com/rails/rails/pull/5002.

    On 2月12日, 午前1:09, kennyj wrote:






    Hi! Johann Aman
    I can reproduce this issue.
    Do you confirm the following commit ?https://github.com/kennyj/rails/commit/b40b7f459e3ea66f824ac4791d8882...
    On 2月11日, 午後10:09, Johann Aman wrote:

    after updating pg gem to 0.13.0 got following error on production
    server (rails 3.2.1 + unicorn): "Use of uninitialized PG::Connection.
    (fatal)", here is some 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:in
    `disconnect!'
    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:in `call'
    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: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>'
    /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: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:in
    `block (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:in
    `block 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:in
    `disconnect!'
    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: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:
    133:in `establish_connection'
    from /srv/site/shared/config/unicorn.rb:39:in `block 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:in `init_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:in `spawn_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>'
    no code from pg gem present in the trace
    had to rollback to pg 0.12.2
    has anyone used 0.13.0 successfully?
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedFeb 11, '12 at 1:09p
activeFeb 14, '12 at 10:27a
posts4
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Johann Aman: 2 posts Kennyj: 2 posts

People

Translate

site design / logo © 2021 Grokbase