puma: ./libev/ev.c:4043: ev_run: Assertion `("libev: ev_loop recursion during release detected", loop_done != EVBREAK_RECURSE'

Describe the bug

puma: cluster worker 3: 19 [app]: ../libev/ev.c:4043: ev_run: Assertion (“libev: ev_loop recursion during release detected”, loop_done != EVBREAK_RECURSE)’ failed.`

And then it seems possibly have broken the worker and after some time the Puma server stops accepting connections.

Puma config:

workers Integer(ENV.fetch('PUMA_MAX_WORKERS', '3'))
worker_culling_strategy :oldest

wait_for_less_busy_worker(0.01)

force_shutdown_after 25

threads 1, 1 # NO Multithreading

puma_fork_worker_mode = ENV.fetch("PUMA_ENABLE_FORK_WORKER_MODE", "0") == "1"
preload_app!(!puma_fork_worker_mode)

nakayoshi_fork(true) unless ENV.fetch("PUMA_DISABLE_NAKAYOSHI_FORK", "0") == "1"

if puma_fork_worker_mode
  restart_randomness_base = ENV.fetch('PUMA_RESTART_WORKERS_AFTER_REQUESTS', 500.0).to_f
  restart_randomness_jitter = ENV.fetch('PUMA_RESTART_WORKERS_AFTER_REQUESTS_JITTER', 0.0).to_f

  restart_randomness = (restart_randomness_base + (rand * restart_randomness_jitter) - (restart_randomness_jitter / 2.0)).to_i
  puts "Will restart workers after #{restart_randomness} requests (base = #{restart_randomness_base}, jitter = #{restart_randomness_jitter})"

  # Due to the randomness of how requests are assigned, at any given time it seems we have workers with like 1k requests and
  # other workers with like 10 requests. So we'll tell puma to refork the process at some randomized interval.
  # This should help reduce memory footprint and optimize the copy-on-write memory benefits.
  #
  fork_worker(restart_randomness)
end

rackup DefaultRackup
port ENV.fetch('PORT', '3000')

before_fork do
  # we should just need to disconnect redis and it will reconnect on use
  disconnect_redis = -> (redis) {
    if redis.kind_of?(::Redis)
      redis.close
    elsif defined?(::MockRedis) && redis.kind_of?(::MockRedis)
      redis.flushdb
    end

    redis
  }

  disconnect_redis.(::StandaloneRedis.connect) if defined?(::StandaloneRedis)
  disconnect_redis.(::Resque.redis&.redis) if defined?(::Resque)
  disconnect_redis.(::Stoplight::Light.default_data_store.instance_variable_get(:@redis)) if defined?(::Stoplight)
  disconnect_redis.(::ActionCable.server.pubsub.redis_connection_for_subscriptions) if defined?(::ActionCable) && ::ActionCable.server.pubsub.kind_of?(::ActionCable::SubscriptionAdapter::Redis)
  disconnect_redis.($redis) if defined?($redis)

  begin
    ::Rails.cache.clear
  rescue NotImplementedError
    # Ignored
  end
end

To Reproduce

This just starts to happen after some time of running the application server.

In the above config, it happens with: PUMA_ENABLE_FORK_WORKER_MODE=1 PUMA_DISABLE_NAKAYOSHI_FORK=0 PUMA_MAX_WORKERS=22 PUMA_RESTART_WORKERS_AFTER_REQUESTS=300 PUMA_RESTART_WORKERS_AFTER_REQUESTS_JITTER=50

Specifically if you change PUMA_ENABLE_FORK_WORKER_MODE=0 the error ceases.

The worker count fits on a Private-L dyno for Heroku (14gb ram) for our somewhat bloated app.

Expected behavior

I expect this error to not be raised.

Desktop (please complete the following information):

  • OS: Ubuntu 18 (heroku-18)
  • Puma Version: 5.6.4

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (12 by maintainers)

Most upvoted comments

Hello. We resolved this issue by updating: Ruby from 2.7.7 to 3.1.3 Rails from 5.1.7 to 6.0.6.1 as well as many gems

Our Gemfile.lock

GIT
  remote: https://github.com/FUT/apartment
  revision: 4ab5dd46a9fe1bb18eb7492115878146c0832177
  ref: 4ab5dd46a9fe1bb18eb7492115878146c0832177
  specs:
    apartment (2.2.1)
      activerecord (>= 3.1.2, < 6.1)
      parallel (>= 0.7.1)
      public_suffix (>= 2)
      rack (>= 1.3.6)

GIT
  remote: https://github.com/brandymint/capistrano-db-tasks.git
  revision: 76d41911d4b502c839fc2d76bd72d737460f393d
  branch: feature/extra_args_for_dump
  specs:
    capistrano-db-tasks (0.6)
      capistrano (>= 3.0.0)

GIT
  remote: https://github.com/brandymint/capistrano-systemd-multiservice.git
  revision: 0f2c0fb2c72802f42e85667483ab6039d55ce018
  specs:
    capistrano-systemd-multiservice (0.1.0.beta12)
      capistrano (>= 3.7.0, < 3.17.0)

GIT
  remote: https://github.com/seuros/capistrano-puma.git
  revision: 2cc11846540489edda10d83e026c9bea04e6fab1
  specs:
    capistrano3-puma (6.0.0.beta.1)
      capistrano (~> 3.7)
      capistrano-bundler
      puma (>= 5.1, < 7.0)

GIT
  remote: https://github.com/tmster/apartment-sidekiq
  revision: 067313397b0e3c70387d0445559d8336141b6f1d
  ref: 067313397b0e3c70387d0445559d8336141b6f1d
  specs:
    apartment-sidekiq (1.1.0)
      apartment (~> 2.0)
      sidekiq (>= 2.11)

GEM
  remote: https://rubygems.org/
  specs:
    CFPropertyList (2.3.6)
    actioncable (6.0.6.1)
      actionpack (= 6.0.6.1)
      nio4r (~> 2.0)
      websocket-driver (>= 0.6.1)
    actionmailbox (6.0.6.1)
      actionpack (= 6.0.6.1)
      activejob (= 6.0.6.1)
      activerecord (= 6.0.6.1)
      activestorage (= 6.0.6.1)
      activesupport (= 6.0.6.1)
      mail (>= 2.7.1)
    actionmailer (6.0.6.1)
      actionpack (= 6.0.6.1)
      actionview (= 6.0.6.1)
      activejob (= 6.0.6.1)
      mail (~> 2.5, >= 2.5.4)
      rails-dom-testing (~> 2.0)
    actionpack (6.0.6.1)
      actionview (= 6.0.6.1)
      activesupport (= 6.0.6.1)
      rack (~> 2.0, >= 2.0.8)
      rack-test (>= 0.6.3)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.0, >= 1.2.0)
    actiontext (6.0.6.1)
      actionpack (= 6.0.6.1)
      activerecord (= 6.0.6.1)
      activestorage (= 6.0.6.1)
      activesupport (= 6.0.6.1)
      nokogiri (>= 1.8.5)
    actionview (6.0.6.1)
      activesupport (= 6.0.6.1)
      builder (~> 3.1)
      erubi (~> 1.4)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.1, >= 1.2.0)
    activejob (6.0.6.1)
      activesupport (= 6.0.6.1)
      globalid (>= 0.3.6)
    activejob-uniqueness (0.3.1)
      activejob (>= 4.2, < 7.2)
      redlock (>= 2.0, < 3)
    activemodel (6.0.6.1)
      activesupport (= 6.0.6.1)
    activerecord (6.0.6.1)
      activemodel (= 6.0.6.1)
      activesupport (= 6.0.6.1)
    activerecord-import (1.7.0)
      activerecord (>= 4.2)
    activestorage (6.0.6.1)
      actionpack (= 6.0.6.1)
      activejob (= 6.0.6.1)
      activerecord (= 6.0.6.1)
      marcel (~> 1.0)
    activesupport (6.0.6.1)
      concurrent-ruby (~> 1.0, >= 1.0.2)
      i18n (>= 0.7, < 2)
      minitest (~> 5.1)
      tzinfo (~> 1.1)
      zeitwerk (~> 2.2, >= 2.2.2)
    addressable (2.8.7)
      public_suffix (>= 2.0.2, < 7.0)
    airbrussh (1.4.1)
      sshkit (>= 1.6.1, != 1.7.0)
    amorail (0.7.2)
      activemodel
      anyway_config (>= 1.0)
      faraday
      faraday_middleware
      json
      redis
    ancestry (4.3.3)
      activerecord (>= 5.2.6)
    anyway_config (2.6.4)
      ruby-next-core (~> 1.0)
    ast (2.4.2)
    auto_logger (0.1.7)
      activesupport
      beautiful-log
    awesome_print (1.8.0)
    base64 (0.2.0)
    bcrypt (3.1.20)
    bcrypt_pbkdf (1.1.1)
    beautiful-log (0.2.2)
      awesome_print (~> 1.8.0)
      colorize (~> 0.8.1)
    better_errors (2.10.1)
      erubi (>= 1.0.0)
      rack (>= 0.9.0)
      rouge (>= 1.0.0)
    bigdecimal (3.1.8)
    binding_of_caller (1.0.1)
      debug_inspector (>= 1.2.0)
    bugsnag (6.27.1)
      concurrent-ruby (~> 1.0)
    builder (3.3.0)
    byebug (11.1.3)
    cancancan (3.6.1)
    capistrano (3.16.0)
      airbrussh (>= 1.0.0)
      i18n
      rake (>= 10.0.0)
      sshkit (>= 1.9.0)
    capistrano-bundler (2.1.0)
      capistrano (~> 3.1)
    capistrano-dotenv (0.0.5)
      capistrano (>= 3.5.0, < 4.0.0)
    capistrano-dotenv-tasks (0.1.5)
      capistrano (~> 3.0)
    capistrano-faster-assets (1.1.0)
      capistrano (>= 3.1)
    capistrano-nvm (0.0.7)
      capistrano (~> 3.1)
    capistrano-rails (1.6.3)
      capistrano (~> 3.1)
      capistrano-bundler (>= 1.1, < 3)
    capistrano-rails-console (2.3.0)
      capistrano (>= 3.5.0, < 4.0.0)
      sshkit-interactive (~> 0.3.0)
    capistrano-rbenv (2.2.0)
      capistrano (~> 3.1)
      sshkit (~> 1.3)
    capistrano-shell (0.2.0)
      capistrano (~> 3.1)
    capistrano-yarn (2.0.2)
      capistrano (~> 3.0)
    carrierwave (3.0.7)
      activemodel (>= 6.0.0)
      activesupport (>= 6.0.0)
      addressable (~> 2.6)
      image_processing (~> 1.1)
      marcel (~> 1.0.0)
      ssrf_filter (~> 1.0)
    caxlsx (4.1.0)
      htmlentities (~> 4.3, >= 4.3.4)
      marcel (~> 1.0)
      nokogiri (~> 1.10, >= 1.10.4)
      rubyzip (>= 1.3.0, < 3)
    caxlsx_rails (0.6.4)
      actionpack (>= 3.1)
      caxlsx (>= 3.0)
    childprocess (5.0.0)
    chroma (0.2.0)
    chunky_png (1.4.0)
    coderay (1.1.3)
    colorize (0.8.1)
    concurrent-ruby (1.3.3)
    connection_pool (2.4.1)
    countries (6.0.1)
      unaccent (~> 0.3)
    crass (1.0.6)
    css_parser (1.17.1)
      addressable
    csv (3.3.0)
    dalli (3.2.8)
    database_cleaner (2.0.2)
      database_cleaner-active_record (>= 2, < 3)
    database_cleaner-active_record (2.2.0)
      activerecord (>= 5.a)
      database_cleaner-core (~> 2.0.0)
    database_cleaner-core (2.0.1)
    datadog-ci (0.8.3)
      msgpack
    date (3.3.4)
    ddtrace (1.23.3)
      datadog-ci (~> 0.8.1)
      debase-ruby_core_source (= 3.3.1)
      libdatadog (~> 7.0.0.1.0)
      libddwaf (~> 1.14.0.0.0)
      msgpack
    debase-ruby_core_source (3.3.1)
    debug_inspector (1.2.0)
    devise (4.9.4)
      bcrypt (~> 3.0)
      orm_adapter (~> 0.1)
      railties (>= 4.1.0)
      responders
      warden (~> 1.2.3)
    diff-lcs (1.5.1)
    dogapi (1.45.0)
      multi_json
    dogstatsd-ruby (5.6.1)
    dotenv (2.8.1)
    dotenv-rails (2.8.1)
      dotenv (= 2.8.1)
      railties (>= 3.2)
    dry-configurable (1.2.0)
      dry-core (~> 1.0, < 2)
      zeitwerk (~> 2.6)
    dry-core (1.0.1)
      concurrent-ruby (~> 1.0)
      zeitwerk (~> 2.6)
    dry-inflector (1.1.0)
    dry-initializer (3.1.1)
    dry-logic (1.5.0)
      concurrent-ruby (~> 1.0)
      dry-core (~> 1.0, < 2)
      zeitwerk (~> 2.6)
    dry-schema (1.13.4)
      concurrent-ruby (~> 1.0)
      dry-configurable (~> 1.0, >= 1.0.1)
      dry-core (~> 1.0, < 2)
      dry-initializer (~> 3.0)
      dry-logic (>= 1.4, < 2)
      dry-types (>= 1.7, < 2)
      zeitwerk (~> 2.6)
    dry-types (1.7.2)
      bigdecimal (~> 3.0)
      concurrent-ruby (~> 1.0)
      dry-core (~> 1.0)
      dry-inflector (~> 1.0)
      dry-logic (~> 1.4)
      zeitwerk (~> 2.6)
    ed25519 (1.3.0)
    elasticsearch (7.17.11)
      elasticsearch-api (= 7.17.11)
      elasticsearch-transport (= 7.17.11)
    elasticsearch-api (7.17.11)
      multi_json
    elasticsearch-model (7.2.1)
      activesupport (> 3)
      elasticsearch (~> 7)
      hashie
    elasticsearch-rails (7.2.1)
    elasticsearch-transport (7.17.11)
      base64
      faraday (>= 1, < 3)
      multi_json
    enumerize (2.8.1)
      activesupport (>= 3.2)
    env-tweaks (1.0.1)
      activesupport (>= 3.0, < 7.0)
    erubi (1.13.0)
    et-orbi (1.2.11)
      tzinfo
    excon (0.111.0)
    execjs (2.9.1)
    factory_bot (6.4.6)
      activesupport (>= 5.0.0)
    factory_bot_rails (6.4.3)
      factory_bot (~> 6.4)
      railties (>= 5.0.0)
    faraday (1.10.3)
      faraday-em_http (~> 1.0)
      faraday-em_synchrony (~> 1.0)
      faraday-excon (~> 1.1)
      faraday-httpclient (~> 1.0)
      faraday-multipart (~> 1.0)
      faraday-net_http (~> 1.0)
      faraday-net_http_persistent (~> 1.0)
      faraday-patron (~> 1.0)
      faraday-rack (~> 1.0)
      faraday-retry (~> 1.0)
      ruby2_keywords (>= 0.0.4)
    faraday-em_http (1.0.0)
    faraday-em_synchrony (1.0.0)
    faraday-excon (1.1.0)
    faraday-httpclient (1.0.1)
    faraday-multipart (1.0.4)
      multipart-post (~> 2)
    faraday-net_http (1.0.1)
    faraday-net_http_persistent (1.2.0)
    faraday-patron (1.0.0)
    faraday-rack (1.0.0)
    faraday-retry (1.0.3)
    faraday_middleware (1.2.0)
      faraday (~> 1.0)
    ffaker (2.23.0)
    ffi (1.17.0)
    fission (0.5.0)
      CFPropertyList (~> 2.2)
    fog (1.42.1)
      fog-aliyun (>= 0.1.0)
      fog-atmos
      fog-aws (>= 0.6.0)
      fog-brightbox (~> 0.4)
      fog-cloudatcost (~> 0.1.0)
      fog-core (~> 1.45)
      fog-digitalocean (>= 0.3.0)
      fog-dnsimple (~> 1.0)
      fog-dynect (~> 0.0.2)
      fog-ecloud (~> 0.1)
      fog-google (<= 0.1.0)
      fog-internet-archive
      fog-joyent
      fog-json
      fog-local
      fog-openstack
      fog-ovirt
      fog-powerdns (>= 0.1.1)
      fog-profitbricks
      fog-rackspace
      fog-radosgw (>= 0.0.2)
      fog-riakcs
      fog-sakuracloud (>= 0.0.4)
      fog-serverlove
      fog-softlayer
      fog-storm_on_demand
      fog-terremark
      fog-vmfusion
      fog-voxel
      fog-vsphere (>= 0.4.0)
      fog-xenserver
      fog-xml (~> 0.1.1)
      ipaddress (~> 0.5)
      json (~> 2.0)
    fog-aliyun (0.2.0)
      fog-core (~> 1.27)
      fog-json (~> 1.0)
      ipaddress (~> 0.8)
      xml-simple (~> 1.1)
    fog-atmos (0.1.0)
      fog-core
      fog-xml
    fog-aws (1.4.1)
      fog-core (~> 1.38)
      fog-json (~> 1.0)
      fog-xml (~> 0.1)
      ipaddress (~> 0.8)
    fog-brightbox (0.16.1)
      dry-inflector
      fog-core
      fog-json
      mime-types
    fog-cloudatcost (0.1.2)
      fog-core (~> 1.36)
      fog-json (~> 1.0)
      fog-xml (~> 0.1)
      ipaddress (~> 0.8)
    fog-core (1.45.0)
      builder
      excon (~> 0.58)
      formatador (~> 0.2)
    fog-digitalocean (0.3.0)
      fog-core (~> 1.42)
      fog-json (>= 1.0)
      fog-xml (>= 0.1)
      ipaddress (>= 0.5)
    fog-dnsimple (1.0.0)
      fog-core (~> 1.38)
      fog-json (~> 1.0)
    fog-dynect (0.0.3)
      fog-core
      fog-json
      fog-xml
    fog-ecloud (0.3.0)
      fog-core
      fog-xml
    fog-google (0.1.0)
      fog-core
      fog-json
      fog-xml
    fog-internet-archive (0.0.1)
      fog-core
      fog-json
      fog-xml
    fog-joyent (0.0.1)
      fog-core (~> 1.42)
      fog-json (>= 1.0)
    fog-json (1.0.2)
      fog-core (~> 1.0)
      multi_json (~> 1.10)
    fog-local (0.4.0)
      fog-core (~> 1.27)
    fog-openstack (0.1.22)
      fog-core (>= 1.40)
      fog-json (>= 1.0)
      ipaddress (>= 0.8)
    fog-ovirt (2.0.2)
      activesupport
      fog-core
      fog-json
      fog-xml
      ovirt-engine-sdk (>= 4.3.1)
    fog-powerdns (0.1.1)
      fog-core (~> 1.27)
      fog-json (~> 1.0)
      fog-xml (~> 0.1)
    fog-profitbricks (4.0.0)
      fog-core (~> 1.42)
      fog-json (~> 1.0)
    fog-rackspace (0.1.5)
      fog-core (>= 1.35)
      fog-json (>= 1.0)
      fog-xml (>= 0.1)
      ipaddress (>= 0.8)
    fog-radosgw (0.0.5)
      fog-core (>= 1.21.0)
      fog-json
      fog-xml (>= 0.0.1)
    fog-riakcs (0.1.0)
      fog-core
      fog-json
      fog-xml
    fog-sakuracloud (1.7.5)
      fog-core
      fog-json
    fog-serverlove (0.1.2)
      fog-core
      fog-json
    fog-softlayer (1.1.4)
      fog-core
      fog-json
    fog-storm_on_demand (0.1.1)
      fog-core
      fog-json
    fog-terremark (0.1.0)
      fog-core
      fog-xml
    fog-vmfusion (0.1.0)
      fission
      fog-core
    fog-voxel (0.1.0)
      fog-core
      fog-xml
    fog-vsphere (3.6.7)
      fog-core
      rbvmomi2 (~> 3.0)
    fog-xenserver (0.3.0)
      fog-core
      fog-xml
    fog-xml (0.1.3)
      fog-core
      nokogiri (>= 1.5.11, < 2.0.0)
    formatador (0.3.0)
    fugit (1.11.0)
      et-orbi (~> 1, >= 1.2.11)
      raabro (~> 1.4)
    geocoder (1.8.3)
      base64 (>= 0.1.0)
      csv (>= 3.0.0)
    glob (0.4.1)
    globalid (1.1.0)
      activesupport (>= 5.0)
    google-protobuf (3.25.3)
    grape (2.1.3)
      activesupport (>= 6)
      dry-types (>= 1.1)
      mustermann-grape (~> 1.1.0)
      rack (>= 2)
      zeitwerk
    grape-entity (1.0.1)
      activesupport (>= 3.0.0)
      multi_json (>= 1.3.2)
    grape-rabl (0.5.0)
      grape
      i18n
      rabl
      tilt
    grape-swagger (2.1.0)
      grape (>= 1.7, < 3.0)
      rack-test (~> 2)
    grape-throttling (0.1.2)
      activesupport (>= 3)
      grape (>= 0.16.1)
      hiredis
      redis-namespace (>= 0.8.0)
    grape_logging (1.8.4)
      grape
      rack
    groupdate (6.2.1)
      activesupport (>= 5.2)
    guard (2.18.1)
      formatador (>= 0.2.4)
      listen (>= 2.7, < 4.0)
      lumberjack (>= 1.0.12, < 2.0)
      nenv (~> 0.1)
      notiffany (~> 0.0)
      pry (>= 0.13.0)
      shellany (~> 0.0)
      thor (>= 0.18.1)
    guard-compat (1.2.1)
    guard-rspec (4.7.3)
      guard (~> 2.1)
      guard-compat (~> 1.1)
      rspec (>= 2.99.0, < 4.0)
    hashie (5.0.0)
    hiredis (0.6.3)
    htmlentities (4.3.4)
    http_accept_language (2.1.1)
    httparty (0.22.0)
      csv
      mini_mime (>= 1.0.0)
      multi_xml (>= 0.5.2)
    httpclient (2.8.3)
    httplog (1.7.0)
      rack (>= 2.0)
      rainbow (>= 2.0.0)
    i18n (1.14.5)
      concurrent-ruby (~> 1.0)
    i18n-js (4.2.3)
      glob (>= 0.4.0)
      i18n
    i18n-timezones (1.4.8)
      i18n (>= 0.9.3)
      rails (>= 5.1.6.2)
    image_processing (1.12.2)
      mini_magick (>= 4.9.5, < 5)
      ruby-vips (>= 2.0.17, < 3)
    ipaddress (0.8.3)
    isolator (1.0.1)
      sniffer (>= 0.5.0)
    jbuilder (2.12.0)
      actionview (>= 5.0.0)
      activesupport (>= 5.0.0)
    json (2.7.2)
    json-schema (4.3.1)
      addressable (>= 2.8)
    jwt (2.8.2)
      base64
    kaminari (1.2.2)
      activesupport (>= 4.1.0)
      kaminari-actionview (= 1.2.2)
      kaminari-activerecord (= 1.2.2)
      kaminari-core (= 1.2.2)
    kaminari-actionview (1.2.2)
      actionview
      kaminari-core (= 1.2.2)
    kaminari-activerecord (1.2.2)
      activerecord
      kaminari-core (= 1.2.2)
    kaminari-core (1.2.2)
    launchy (3.0.1)
      addressable (~> 2.8)
      childprocess (~> 5.0)
    letter_opener (1.10.0)
      launchy (>= 2.2, < 4)
    libdatadog (7.0.0.1.0)
    libddwaf (1.14.0.0.0)
      ffi (~> 1.0)
    listen (3.9.0)
      rb-fsevent (~> 0.10, >= 0.10.3)
      rb-inotify (~> 0.9, >= 0.9.10)
    loofah (2.22.0)
      crass (~> 1.0.2)
      nokogiri (>= 1.12.0)
    lumberjack (1.2.10)
    mail (2.8.1)
      mini_mime (>= 0.1.1)
      net-imap
      net-pop
      net-smtp
    marcel (1.0.4)
    method_source (1.1.0)
    mime-types (3.5.2)
      mime-types-data (~> 3.2015)
    mime-types-data (3.2024.0702)
    mini_magick (4.13.2)
    mini_mime (1.1.5)
    minitest (5.24.1)
    msgpack (1.7.2)
    multi_json (1.15.0)
    multi_xml (0.7.1)
      bigdecimal (~> 3.1)
    multipart-post (2.4.1)
    mustache (1.1.1)
    mustermann (3.0.0)
      ruby2_keywords (~> 0.0.1)
    mustermann-grape (1.1.0)
      mustermann (>= 1.0.0)
    mutex_m (0.2.0)
    nenv (0.3.0)
    net-imap (0.4.14)
      date
      net-protocol
    net-pop (0.1.2)
      net-protocol
    net-protocol (0.2.2)
      timeout
    net-scp (4.0.0)
      net-ssh (>= 2.6.5, < 8.0.0)
    net-sftp (4.0.0)
      net-ssh (>= 5.0.0, < 8.0.0)
    net-smtp (0.5.0)
      net-protocol
    net-ssh (7.2.3)
    nilify_blanks (1.4.0)
      activerecord (>= 4.0.0)
      activesupport (>= 4.0.0)
    nio4r (2.7.3)
    nokogiri (1.16.6)
      racc (~> 1.4)
    notiffany (0.1.3)
      nenv (~> 0.1)
      shellany (~> 0.0)
    numbers_and_words (0.11.12)
      i18n (<= 2)
    oauth2 (2.0.9)
      faraday (>= 0.17.3, < 3.0)
      jwt (>= 1.0, < 3.0)
      multi_xml (~> 0.5)
      rack (>= 1.2, < 4)
      snaky_hash (~> 2.0)
      version_gem (~> 1.1)
    oj (3.16.4)
      bigdecimal (>= 3.0)
    omniauth (2.1.2)
      hashie (>= 3.4.6)
      rack (>= 2.2.3)
      rack-protection
    omniauth-google-oauth2 (1.1.2)
      jwt (>= 2.0)
      oauth2 (~> 2.0)
      omniauth (~> 2.0)
      omniauth-oauth2 (~> 1.8)
    omniauth-oauth2 (1.8.0)
      oauth2 (>= 1.4, < 3)
      omniauth (~> 2.0)
    one_signal (1.2.2)
    optimist (3.1.0)
    orm_adapter (0.5.0)
    ovirt-engine-sdk (4.6.0)
      json (>= 1, < 3)
    paper_trail (11.1.0)
      activerecord (>= 5.2)
      request_store (~> 1.1)
    paper_trail-association_tracking (2.1.3)
      paper_trail (< 12.0)
    parallel (1.25.1)
    paranoia (2.6.3)
      activerecord (>= 5.1, < 7.2)
    parser (3.3.4.0)
      ast (~> 2.4.1)
      racc
    pdfkit (0.8.7.3)
    pg (1.5.6)
    pghero (3.5.0)
      activerecord (>= 6)
    phone (1.2.3)
    phonelib (0.9.1)
    phony (2.20.12)
    pry (0.14.2)
      coderay (~> 1.1)
      method_source (~> 1.0)
    pry-byebug (3.10.1)
      byebug (~> 11.0)
      pry (>= 0.13, < 0.15)
    pry-rails (0.3.11)
      pry (>= 0.13.0)
    pry-stack_explorer (0.6.1)
      binding_of_caller (~> 1.0)
      pry (~> 0.13)
    psych (3.3.4)
    public_suffix (6.0.0)
    puma (6.4.2)
      nio4r (~> 2.0)
    puma-plugin-statsd (2.6.0)
      puma (>= 5.0, < 7)
    raabro (1.4.0)
    rabl (0.16.1)
      activesupport (>= 2.3.14)
    racc (1.8.0)
    rack (2.2.9)
    rack-attack (6.7.0)
      rack (>= 1.0, < 4)
    rack-cors (2.0.2)
      rack (>= 2.0.0)
    rack-protection (3.2.0)
      base64 (>= 0.1.0)
      rack (~> 2.2, >= 2.2.4)
    rack-proxy (0.7.7)
      rack
    rack-session (1.0.2)
      rack (< 3)
    rack-test (2.1.0)
      rack (>= 1.3)
    rack-timeout (0.7.0)
    rails (6.0.6.1)
      actioncable (= 6.0.6.1)
      actionmailbox (= 6.0.6.1)
      actionmailer (= 6.0.6.1)
      actionpack (= 6.0.6.1)
      actiontext (= 6.0.6.1)
      actionview (= 6.0.6.1)
      activejob (= 6.0.6.1)
      activemodel (= 6.0.6.1)
      activerecord (= 6.0.6.1)
      activestorage (= 6.0.6.1)
      activesupport (= 6.0.6.1)
      bundler (>= 1.3.0)
      railties (= 6.0.6.1)
      sprockets-rails (>= 2.0.0)
    rails-dom-testing (2.2.0)
      activesupport (>= 5.0.0)
      minitest
      nokogiri (>= 1.6)
    rails-html-sanitizer (1.6.0)
      loofah (~> 2.21)
      nokogiri (~> 1.14)
    railties (6.0.6.1)
      actionpack (= 6.0.6.1)
      activesupport (= 6.0.6.1)
      method_source
      rake (>= 0.8.7)
      thor (>= 0.20.3, < 2.0)
    rainbow (3.1.1)
    rake (13.2.1)
    rb-fsevent (0.11.2)
    rb-inotify (0.11.1)
      ffi (~> 1.0)
    rbvmomi2 (3.8.0)
      builder (~> 3.2)
      json (~> 2.3)
      nokogiri (~> 1.12, >= 1.12.5)
      optimist (~> 3.0)
    redis (4.8.1)
    redis-actionpack (5.4.0)
      actionpack (>= 5, < 8)
      redis-rack (>= 2.1.0, < 4)
      redis-store (>= 1.1.0, < 2)
    redis-activesupport (5.3.0)
      activesupport (>= 3, < 8)
      redis-store (>= 1.3, < 2)
    redis-classy (2.4.1)
      redis-namespace (~> 1.0)
    redis-client (0.22.2)
      connection_pool
    redis-mutex (4.0.2)
      redis-classy (~> 2.0)
    redis-namespace (1.11.0)
      redis (>= 4)
    redis-rack (3.0.0)
      rack-session (>= 0.2.0)
      redis-store (>= 1.2, < 2)
    redis-rails (5.0.2)
      redis-actionpack (>= 5.0, < 6)
      redis-activesupport (>= 5.0, < 6)
      redis-store (>= 1.2, < 2)
    redis-store (1.10.0)
      redis (>= 4, < 6)
    redlock (2.0.6)
      redis-client (>= 0.14.1, < 1.0.0)
    reek (6.3.0)
      dry-schema (~> 1.13.0)
      parser (~> 3.3.0)
      rainbow (>= 2.0, < 4.0)
      rexml (~> 3.1)
    request_store (1.7.0)
      rack (>= 1.4)
    responders (3.1.1)
      actionpack (>= 5.2)
      railties (>= 5.2)
    rexml (3.3.2)
      strscan
    rolify (6.0.1)
    roo (1.13.2)
      nokogiri
      rubyzip
      spreadsheet (> 0.6.4)
    rouge (4.3.0)
    rqrcode (2.2.0)
      chunky_png (~> 1.0)
      rqrcode_core (~> 1.0)
    rqrcode_core (1.2.0)
    rspec (3.13.0)
      rspec-core (~> 3.13.0)
      rspec-expectations (~> 3.13.0)
      rspec-mocks (~> 3.13.0)
    rspec-core (3.13.0)
      rspec-support (~> 3.13.0)
    rspec-expectations (3.13.1)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.13.0)
    rspec-mocks (3.13.1)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.13.0)
    rspec-rails (5.1.2)
      actionpack (>= 5.2)
      activesupport (>= 5.2)
      railties (>= 5.2)
      rspec-core (~> 3.10)
      rspec-expectations (~> 3.10)
      rspec-mocks (~> 3.10)
      rspec-support (~> 3.10)
    rspec-support (3.13.1)
    ruby-next-core (1.0.3)
    ruby-ole (1.2.13.1)
    ruby-prof (1.7.0)
    ruby-progressbar (1.13.0)
    ruby-units (4.0.3)
    ruby-vips (2.2.1)
      ffi (~> 1.12)
    ruby2_keywords (0.0.5)
    ruby_http_client (3.5.5)
    rubyzip (2.3.2)
    sass-rails (6.0.0)
      sassc-rails (~> 2.1, >= 2.1.1)
    sassc (2.4.0)
      ffi (~> 1.9)
    sassc-rails (2.1.2)
      railties (>= 4.0.0)
      sassc (>= 2.0)
      sprockets (> 3.0)
      sprockets-rails
      tilt
    sd_notify (0.1.1)
    semver2 (3.4.2)
    sendgrid-ruby (6.7.0)
      ruby_http_client (~> 3.4)
    shellany (0.0.1)
    shortener (1.0.1)
      voight_kampff (~> 2.0)
    sidekiq (6.5.12)
      connection_pool (>= 2.2.5, < 3)
      rack (~> 2.0)
      redis (>= 4.5.0, < 5)
    sidekiq-cron (1.12.0)
      fugit (~> 1.8)
      globalid (>= 1.0.1)
      sidekiq (>= 6)
    sidekiq-failures (1.0.4)
      sidekiq (>= 4.0.0)
    sidekiq-statsd (2.1.0)
      activesupport
      sidekiq (>= 3.3.1)
    slim (5.2.1)
      temple (~> 0.10.0)
      tilt (>= 2.1.0)
    slim-rails (3.6.3)
      actionpack (>= 3.1)
      railties (>= 3.1)
      slim (>= 3.0, < 6.0, != 5.0.0)
    smsaero (0.2.1)
    snaky_hash (2.0.1)
      hashie
      version_gem (~> 1.1, >= 1.1.1)
    sniffer (0.5.0)
      anyway_config (>= 1.0)
      dry-initializer (~> 3)
    spreadsheet (1.3.1)
      bigdecimal
      ruby-ole
    sprockets (4.2.1)
      concurrent-ruby (~> 1.0)
      rack (>= 2.2.4, < 4)
    sprockets-rails (3.4.2)
      actionpack (>= 5.2)
      activesupport (>= 5.2)
      sprockets (>= 3.0.0)
    sshkit (1.23.0)
      base64
      net-scp (>= 1.1.2)
      net-sftp (>= 2.1.2)
      net-ssh (>= 2.8.0)
    sshkit-interactive (0.3.0)
      sshkit (~> 1.12)
    ssrf_filter (1.1.2)
    strscan (3.1.0)
    telegram-bot (0.15.7)
      actionpack (>= 4.0, < 7.1)
      activesupport (>= 4.0, < 7.1)
      httpclient (~> 2.7)
    temple (0.10.3)
    thor (1.3.1)
    thread_safe (0.3.6)
    tilt (2.4.0)
    time (0.3.0)
      date
    timeout (0.4.1)
    tod (2.1.1)
    traceroute (0.8.1)
      rails (>= 3.0.0)
    translit (0.1.5)
    tzinfo (1.2.11)
      thread_safe (~> 0.1)
    uglifier (4.2.0)
      execjs (>= 0.3.0, < 3)
    unaccent (0.4.0)
    uniform_notifier (1.16.0)
    uri (0.11.2)
    version_gem (1.1.4)
    voight_kampff (2.0.0)
      rack (>= 1.4)
    warden (1.2.9)
      rack (>= 2.0.9)
    webpacker (3.6.0)
      activesupport (>= 4.2)
      rack-proxy (>= 0.6.1)
      railties (>= 4.2)
    websocket-driver (0.7.6)
      websocket-extensions (>= 0.1.0)
    websocket-extensions (0.1.5)
    wkhtmltopdf-binary-edge (0.12.6.0)
    xml-simple (1.1.9)
      rexml
    zeitwerk (2.6.16)

PLATFORMS
  ruby

DEPENDENCIES
  activejob-uniqueness (~> 0.3.1)
  activerecord-import
  amorail
  ancestry
  apartment!
  apartment-sidekiq!
  auto_logger (~> 0.1.7)
  awesome_print
  bcrypt (~> 3.1, >= 3.1.12)
  bcrypt_pbkdf
  better_errors
  bigdecimal
  bugsnag (~> 6.27, >= 6.27.1)
  cancancan
  capistrano
  capistrano-bundler
  capistrano-db-tasks!
  capistrano-dotenv
  capistrano-dotenv-tasks
  capistrano-faster-assets
  capistrano-nvm
  capistrano-rails
  capistrano-rails-console
  capistrano-rbenv
  capistrano-shell
  capistrano-systemd-multiservice!
  capistrano-yarn
  capistrano3-puma!
  carrierwave
  caxlsx
  caxlsx_rails
  chroma
  colorize
  connection_pool
  countries
  css_parser (~> 1.17.1)
  dalli
  database_cleaner
  ddtrace
  devise
  dogapi
  dogstatsd-ruby
  dotenv (~> 2.8, >= 2.8.1)
  dotenv-rails (~> 2.8, >= 2.8.1)
  ed25519
  elasticsearch-model (~> 7.2, >= 7.2.1)
  elasticsearch-rails (~> 7.2, >= 7.2.1)
  enumerize
  env-tweaks
  execjs
  factory_bot_rails
  ffaker (~> 2.21)
  ffi (~> 1.9, >= 1.9.10)
  fog (~> 1.42.0)
  geocoder
  globalid (~> 1.0)
  google-protobuf (~> 3.25, >= 3.25.3)
  grape
  grape-entity
  grape-rabl
  grape-swagger
  grape-throttling
  grape_logging (~> 1.8, >= 1.8.4)
  groupdate
  guard
  guard-rspec
  hiredis
  http_accept_language
  httparty
  httplog (~> 1.7)
  i18n-js
  i18n-timezones
  isolator
  jbuilder
  json (~> 2.7, >= 2.7.2)
  json-schema
  jwt (~> 2.7, >= 2.7.1)
  kaminari
  letter_opener
  mini_magick
  mustache
  mutex_m
  nilify_blanks (~> 1.4)
  numbers_and_words
  oj
  omniauth-google-oauth2 (~> 1.1, >= 1.1.1)
  one_signal
  ovirt-engine-sdk (~> 4.6)
  paper_trail (~> 11.1)
  paper_trail-association_tracking
  parallel
  paranoia (~> 2.6, >= 2.6.3)
  pdfkit (~> 0.8.7.3)
  pg (~> 1.2, >= 1.2.3)
  pghero
  phone
  phonelib
  phony
  pry-byebug
  pry-rails
  pry-stack_explorer
  psych (< 4)
  puma
  puma-plugin-statsd
  rabl
  rack (~> 2.2, >= 2.2.9)
  rack-attack (~> 6.7)
  rack-cors
  rack-test
  rack-timeout (~> 0.7.0)
  rails (~> 6.0, >= 6.0.6.1)
  rake
  redis (~> 4.0)
  redis-mutex
  redis-namespace
  redis-rails
  reek
  rexml
  rolify
  roo
  rqrcode
  rspec-rails
  ruby-prof (~> 1.6, >= 1.6.3)
  ruby-progressbar
  ruby-units
  sass-rails (>= 5)
  sd_notify
  semver2
  sendgrid-ruby
  shortener
  sidekiq (~> 6.0, >= 6.0.7)
  sidekiq-cron
  sidekiq-failures
  sidekiq-statsd (~> 2.1)
  slim-rails
  smsaero
  spreadsheet
  sprockets
  telegram-bot (~> 0.15.5)
  time (>= 0.2.2)
  tod
  traceroute
  translit
  tzinfo
  uglifier
  uniform_notifier
  uri (~> 0.11.2)
  webpacker (~> 3.6)
  wkhtmltopdf-binary-edge (~> 0.12.6.0)

RUBY VERSION
   ruby 3.1.3p185

BUNDLED WITH
   2.5.11

This failed CI run MRI: macos-13 2.7 logged Assertion failed: (("libev: kqueue found invalid fd", 0)), function kqueue_poll, file ev_kqueue.c, line 133.

Uploaded the logs from that run as they will eventually disappear: MRI macos-13 2.7.zip

Searched for part of the error message here and found https://github.com/digital-fabric/polyphony/issues/6

Is something similar happening in Puma when KILL are sent to workers? (when workers are culled or phased out)