pg.rb segmentation fault [Mojave upgrade]

后端 未结 3 1084
余生分开走
余生分开走 2021-02-15 10:19

Segmentation fault in pg.rb:56

versions: rails: 5.2.0, ruby: 2.4.4, pg gem: 0.20.0

After upgrading to Mac OS mojave i have encountered problems with my local hos

3条回答
  •  醉梦人生
    2021-02-15 11:11

    I had a similar issue, in which my test environment was often crashing in Ruby 2.6.3 with Segmnentation Fault lib/pg.rb line 56.

    What worked for me was setting pumb.rb to have zero workers in the test environment:

    # config/puma.rb
    (ENV.fetch("RAILS_ENV") == 'test') ? (workers 0) : (workers ENV.fetch("WEB_CONCURRENCY") { 2 })
    

提交回复
热议问题