Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Sauce connect timeout when not overriding sauce_connect_4_executable config variable #302

Open
debreczeni opened this issue Apr 16, 2015 · 0 comments · May be fixed by #303
Open

Sauce connect timeout when not overriding sauce_connect_4_executable config variable #302

debreczeni opened this issue Apr 16, 2015 · 0 comments · May be fixed by #303

Comments

@debreczeni
Copy link

Sauce connect would never initialize due to a permission error

Here is the error output when manually switching on @quiet in sauce_ruby/gems/sauce-connect/lib/sauce/connect.rb:18 (since it cannot be overridden in a config variable when using it through the rspec integration...)

As a debugging measure I have also added the full command to the verbose output instead of logging only the arguments:

[Sauce Connect command: 'exec /Users/dd/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/sauce-connect-3.5.3/support/Sauce-Connect.jar debreczeni secret-key --readyfile=sauce_connect.ready 2>&1' ]

Here is the full output:

:) RUN_ON_SAUCE=1 bundle exec rspec spec/features/buy_spec.rb:10
Run options: include {:locations=>{"./spec/features/buy_spec.rb"=>[10]}}
[Checking REST API is contactable...]
[Checking port 443 is open...]
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
[Sauce Connect is connecting to Sauce Labs...]
[Sauce Connect command: 'exec /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/sauce-connect-3.5.3/support/Sauce-Connect.jar debreczeni secret-key --readyfile=sauce_connect.ready 2>&1' ]
sh: /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/sauce-connect-3.5.3/support/Sauce-Connect.jar: Permission denied
sh: line 0: exec: /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/sauce-connect-3.5.3/support/Sauce-Connect.jar: cannot execute: Undefined error: 0
^C
Exiting... Interrupt again to exit immediately.
F

Failures:

  1) Customer orders for EUR happy path
     Failure/Error: Unable to find matching line from backtrace
     RuntimeError:
       Sauce Connect failed to connect after 90 seconds
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/sauce-connect-3.5.3/lib/sauce/connect.rb:143:in `wait_until_ready'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/sauce-3.5.5/lib/sauce/utilities/connect.rb:20:in `start'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/sauce-3.5.5/lib/sauce/utilities/connect.rb:5:in `start_from_config'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/sauce-3.5.5/lib/sauce/rspec/rspec.rb:39:in `start_tools_for_sauce_tag'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/sauce-3.5.5/lib/sauce/rspec/rspec.rb:22:in `block in setup_environment'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.5/lib/rspec/core/hooks.rb:350:in `instance_exec'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.5/lib/rspec/core/hooks.rb:350:in `run'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.5/lib/rspec/core/hooks.rb:459:in `run'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.5/lib/rspec/core/hooks.rb:500:in `run'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.5/lib/rspec/core/example_group.rb:436:in `block in run_before_context_hooks'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.5/lib/rspec/core/memoized_helpers.rb:141:in `block in isolate_for_context_hook'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.5/lib/rspec/core/memoized_helpers.rb:137:in `instance_exec'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.5/lib/rspec/core/memoized_helpers.rb:137:in `isolate_for_context_hook'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.5/lib/rspec/core/example_group.rb:435:in `run_before_context_hooks'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.5/lib/rspec/core/example_group.rb:462:in `run'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.5/lib/rspec/core/runner.rb:111:in `block (2 levels) in run_specs'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.5/lib/rspec/core/runner.rb:111:in `map'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.5/lib/rspec/core/runner.rb:111:in `block in run_specs'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.5/lib/rspec/core/reporter.rb:53:in `report'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.5/lib/rspec/core/runner.rb:107:in `run_specs'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.5/lib/rspec/core/runner.rb:85:in `run'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.5/lib/rspec/core/runner.rb:69:in `run'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.5/lib/rspec/core/runner.rb:37:in `invoke'
     # /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.5/exe/rspec:4:in `<top (required)>'
     # /Users/username/.rbenv/versions/2.1.4/bin/rspec:23:in `load'
     # /Users/username/.rbenv/versions/2.1.4/bin/rspec:23:in `<main>'
     # 
     #   Showing full backtrace because every line was filtered out.
     #   See docs for RSpec::Configuration#backtrace_exclusion_patterns and
     #   RSpec::Configuration#backtrace_inclusion_patterns for more information.

Finished in 1 minute 31.35 seconds (files took 6.02 seconds to load)
1 example, 1 failure

Failed examples:

rspec ./spec/features/buy_spec.rb:10 # Customer orders for EUR happy path
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant