Bad file descriptor @ fptr_finalize
tomclose opened this issue · 0 comments
tomclose commented
I was getting the above error when running foreman start
. It was fixed by running
bundle update backports
as described here.
Full error for reference:
$ foreman start
10:00:22 web.1 | started with pid 99636
10:00:23 web.1 | [99636] Puma starting in cluster mode...
10:00:23 web.1 | [99636] * Version 2.8.2 (ruby 2.1.4-p265), codename: Sir Edmund Percival Hillary
10:00:23 web.1 | [99636] * Min threads: 1, max threads: 16
10:00:23 web.1 | [99636] * Environment: development
10:00:23 web.1 | [99636] * Process workers: 3
10:00:23 web.1 | [99636] * Preloading application
10:00:24 web.1 | [99636] ! Unable to load application
10:00:24 web.1 | /opt/boxen/rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/backports-3.6.0/lib/backports/1.9.1/io/open.rb:2:in `close': Bad file descriptor @ fptr_finalize - /opt/boxen/rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/backports-3.6.0/lib/backports/1.9.1/io/open.rb (Errno::EBADF)
10:00:24 web.1 | from /opt/boxen/rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/backports-3.6.0/lib/backports/1.9.1/io/open.rb:2:in `open'
10:00:24 web.1 | from /opt/boxen/rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/backports-3.6.0/lib/backports/1.9.1/io/open.rb:2:in `<top (required)>'
10:00:24 web.1 | from /opt/boxen/rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/backports-3.6.0/lib/backports/tools.rb:343:in `require'
10:00:24 web.1 | from /opt/boxen/rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/backports-3.6.0/lib/backports/tools.rb:343:in `require_with_backports'
10:00:24 web.1 | from /opt/boxen/rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/backports-3.6.0/lib/backports/tools.rb:22:in `block in require_relative_dir'
10:00:24 web.1 | from /opt/boxen/rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/backports-3.6.0/lib/backports/tools.rb:21:in `each'