getgauge / gauge-ruby

Ruby runner for Gauge.
http://getgauge.org
Apache License 2.0
24 stars 11 forks source link

Can't assign requested address #66

Closed sswaroopgupta closed 6 years ago

sswaroopgupta commented 6 years ago

Expected behavior Should be able to run LSP Tests

Actual behavior Getting the following exception

Starting language runner
warning: parser/current is loading parser/ruby23, which recognizes
warning: 2.3.6-compliant syntax, but you are running 2.3.0.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
/Users/vagrant/go-agent-17.4.0/pipelines/Ruby-LSP-Tests/data/displaylink-torun/vendor/bundle/ruby/2.3.0/bundler/gems/gauge-ruby-84a828f5568a/lib/connector.rb:34:in `initialize': Can't assign requested address - connect(2) for "127.0.0.1" port 0 (Errno::EADDRNOTAVAIL)
    from /Users/vagrant/go-agent-17.4.0/pipelines/Ruby-LSP-Tests/data/displaylink-torun/vendor/bundle/ruby/2.3.0/bundler/gems/gauge-ruby-84a828f5568a/lib/connector.rb:34:in `open'
    from /Users/vagrant/go-agent-17.4.0/pipelines/Ruby-LSP-Tests/data/displaylink-torun/vendor/bundle/ruby/2.3.0/bundler/gems/gauge-ruby-84a828f5568a/lib/connector.rb:34:in `make_connection'
    from /Users/vagrant/go-agent-17.4.0/pipelines/Ruby-LSP-Tests/data/displaylink-torun/vendor/bundle/ruby/2.3.0/bundler/gems/gauge-ruby-84a828f5568a/lib/gauge_runtime.rb:78:in `<module:Runtime>'
    from /Users/vagrant/go-agent-17.4.0/pipelines/Ruby-LSP-Tests/data/displaylink-torun/vendor/bundle/ruby/2.3.0/bundler/gems/gauge-ruby-84a828f5568a/lib/gauge_runtime.rb:32:in `<module:Gauge>'
    from /Users/vagrant/go-agent-17.4.0/pipelines/Ruby-LSP-Tests/data/displaylink-torun/vendor/bundle/ruby/2.3.0/bundler/gems/gauge-ruby-84a828f5568a/lib/gauge_runtime.rb:30:in `<top (required)>'
    from -e:1:in `require'
    from -e:1:in `<main>'
Ruby runner Failed. Reason: exit status 1

Observed on

sswaroopgupta commented 6 years ago

On Linux the same fails with Connection refused - connect(2) for "127.0.0.1" port 0 (Errno::ECONNREFUSED)

Starting language runner
warning: parser/current is loading parser/ruby24, which recognizes
warning: 2.4.3-compliant syntax, but you are running 2.4.0.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
/godata/pipelines/Ruby-LSP-Tests/data/codecomplete/vendor/bundle/ruby/2.4.0/bundler/gems/gauge-ruby-84a828f5568a/lib/connector.rb:34:in `initialize': Connection refused - connect(2) for "127.0.0.1" port 0 (Errno::ECONNREFUSED)
    from /godata/pipelines/Ruby-LSP-Tests/data/codecomplete/vendor/bundle/ruby/2.4.0/bundler/gems/gauge-ruby-84a828f5568a/lib/connector.rb:34:in `open'
    from /godata/pipelines/Ruby-LSP-Tests/data/codecomplete/vendor/bundle/ruby/2.4.0/bundler/gems/gauge-ruby-84a828f5568a/lib/connector.rb:34:in `make_connection'
    from /godata/pipelines/Ruby-LSP-Tests/data/codecomplete/vendor/bundle/ruby/2.4.0/bundler/gems/gauge-ruby-84a828f5568a/lib/gauge_runtime.rb:78:in `<module:Runtime>'
    from /godata/pipelines/Ruby-LSP-Tests/data/codecomplete/vendor/bundle/ruby/2.4.0/bundler/gems/gauge-ruby-84a828f5568a/lib/gauge_runtime.rb:32:in `<module:Gauge>'
    from /godata/pipelines/Ruby-LSP-Tests/data/codecomplete/vendor/bundle/ruby/2.4.0/bundler/gems/gauge-ruby-84a828f5568a/lib/gauge_runtime.rb:30:in `<top (required)>'
    from -e:1:in `require'
    from -e:1:in `<main>'
Ruby runner Failed. Reason: exit status 1
nehashri commented 6 years ago

This was because of the grpc changes pushed to gauge. Build was triggered before gauge-ruby grpc changes. This should not occur anymore.

sswaroopgupta commented 6 years ago

Replicable on

Gauge version: 0.9.8.nightly-2018-04-11
Commit Hash: 4d314ef

Plugins
-------
ruby (0.5.0.nightly-2018-04-11)
sswaroopgupta commented 6 years ago

Update Gemfile to use latest ruby nightly, the issue gets resolved