ruby - Windows puma unable to load application due to backports Bad File descriptor -
i'm trying run puma project on windows 8 machine , keep getting error whenever try run bundle puma exec -p 4567 error bad file descriptor in part of backports code.
ps c:\users\andrew\work\test> bundle exec puma -p 4567 dl deprecated, please use fiddle *** sigusr2 not implemented, signal based restart unavailable! *** sigusr1 not implemented, signal based restart unavailable! *** sighup not implemented, signal based logs reopening unavailable! puma starting in single mode... * version 2.9.1 (ruby 2.0.0-p576), codename: team high 5 * min threads: 0, max threads: 16 * environment: development ! unable load application c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/1.9.1/io/open. rb:2:in `close': bad file descriptor - c:/ruby200/lib/ruby/gems/2.0.0/gems/backp orts-3.4.0/lib/backports/1.9.1/io/open.rb (errno::ebadf) c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/1 .9.1/io/open.rb:2:in `open' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/1 .9.1/io/open.rb:2:in `<top (required)>' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:328:in `require' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:328:in `require_with_backports' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:22:in `block in require_relative_dir' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:21:in `each' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:21:in `require_relative_dir' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/1 .9.1/io.rb:3:in `<top (required)>' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:328:in `require' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:328:in `require_with_backports' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:22:in `block in require_relative_dir' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:21:in `each' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:21:in `require_relative_dir' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/1 .9.1.rb:3:in `<top (required)>' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:328:in `require' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:328:in `require_with_backports' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/1 .9.2.rb:2:in `<top (required)>' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:328:in `require' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:328:in `require_with_backports' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/1 .9.3.rb:2:in `<top (required)>' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:328:in `require' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:328:in `require_with_backports' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/1 .9.rb:2:in `<top (required)>' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:328:in `require' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:328:in `require_with_backports' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/2 .0.0.rb:2:in `<top (required)>' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:328:in `require' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:328:in `require_with_backports' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/2 .0.rb:2:in `<top (required)>' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:328:in `require' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:328:in `require_with_backports' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/2 .1.0.rb:2:in `<top (required)>' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:328:in `require' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:328:in `require_with_backports' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/2 .1.rb:2:in `<top (required)>' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:328:in `require' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t ools.rb:328:in `require_with_backports' c:/ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports.r b:3:in `<top (required)>' c:/ruby200/lib/ruby/gems/2.0.0/gems/sinatra-contrib-1.4.2/lib/sinat ra/capture.rb:3:in `require' c:/ruby200/lib/ruby/gems/2.0.0/gems/sinatra-contrib-1.4.2/lib/sinat ra/capture.rb:3:in `<top (required)>' c:/ruby200/lib/ruby/gems/2.0.0/gems/sinatra-contrib-1.4.2/lib/sinat ra/content_for.rb:2:in `require' c:/ruby200/lib/ruby/gems/2.0.0/gems/sinatra-contrib-1.4.2/lib/sinat ra/content_for.rb:2:in `<top (required)>' c:/users/andrew/work/youcue/routes.rb:2:in `require' c:/users/andrew/work/youcue/routes.rb:2:in `<top (required)>' config.ru:3:in `require' config.ru:3:in `block in <main>' c:/ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb: 55:in `instance_eval' c:/ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb: 55:in `initialize' config.ru:in `new' config.ru:in `<main>' c:/ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb: 49:in `eval' c:/ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb: 49:in `new_from_string' c:/ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb: 40:in `parse_file' c:/ruby200/lib/ruby/gems/2.0.0/gems/puma-2.9.1/lib/puma/configurati on.rb:96:in `app' c:/ruby200/lib/ruby/gems/2.0.0/gems/puma-2.9.1/lib/puma/runner.rb:1 13:in `load_and_bind' c:/ruby200/lib/ruby/gems/2.0.0/gems/puma-2.9.1/lib/puma/single.rb:7 3:in `run' c:/ruby200/lib/ruby/gems/2.0.0/gems/puma-2.9.1/lib/puma/cli.rb:499: in `run' c:/ruby200/lib/ruby/gems/2.0.0/gems/puma-2.9.1/bin/puma:10:in `<top (required)>' c:/ruby200/bin/puma:23:in `load' c:/ruby200/bin/puma:23:in `<main>'
i'm using ruby 2.0.0p576 (2014-09-19) [i386-mingw32] devkit-mingw64-32-4.7.2-20130224
i able run install (had install ssl headers work), keep getting error when try deploy puma server. i'm pretty new ruby development, i'm unsure other things or how resolve ebadf error in gem.
thanks!
this fixed in latest release of backports (3.6.1) per issue 86. either require 3.6.1 or go p481
Comments
Post a Comment