Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

device farm timeout #1423

Open
diya1991 opened this issue Feb 4, 2020 · 2 comments
Open

device farm timeout #1423

diya1991 opened this issue Feb 4, 2020 · 2 comments

Comments

@diya1991
Copy link

diya1991 commented Feb 4, 2020

@mobile-required @gmail
Feature: Gmail Test

�[34mWARN:
Calabash::Cucumber::Launcher #calabash_no_launch? and support for the NO_LAUNCH
environment variable has been removed from Calabash. This always returns
false. Please remove this method call from your hooks.
�[0m
�[36mSHELL: xcrun simctl list devices --json�[0m
�[36mSHELL: xcrun instruments -s devices�[0m
�[35mDEBUG: HTTP: get http://9902472575.local:27753/1.0/health {:retries=>1, :timeout=>0.5}�[0m
�[35mDEBUG: HTTP: get http://9902472575.local:27753/1.0/health {:retries=>1, :timeout=>0.5}�[0m
�[35mDEBUG: Waiting for DeviceAgent to launch...�[0m
�[36mSHELL: cd /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/run_loop-4.5.2/lib/run_loop/device_agent�[0m
�[36mSHELL: ditto -xk Frameworks.zip .�[0m
�[36mSHELL: ditto -xk DeviceAgent-Runner.app.zip .�[0m
�[36mSHELL: /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/run_loop-4.5.2/lib/run_loop/device_agent/bin/iOSDeviceManager install /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/run_loop-4.5.2/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app --device-id 565385ff8771011559050a95564edc68ce17e172�[0m
Scenario: Gmail Info # features/gmail_test.feature:4

Timed out after 120.43 seconds executing

/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/run_loop-4.5.2/lib/run_loop/device_agent/bin/iOSDeviceManager install /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/run_loop-4.5.2/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app --device-id 565385ff8771011559050a95564edc68ce17e172

with a timeout of 120
(RunLoop::Shell::TimeoutError)
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/run_loop-4.5.2/lib/run_loop/shell.rb:107:in run_shell_command' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/run_loop-4.5.2/lib/run_loop/device_agent/ios_device_manager.rb:146:in launch'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/run_loop-4.5.2/lib/run_loop/device_agent/client.rb:1489:in launch_cbx_runner' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/run_loop-4.5.2/lib/run_loop/device_agent/client.rb:325:in launch'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/run_loop-4.5.2/lib/run_loop/device_agent/client.rb:191:in run' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/run_loop-4.5.2/lib/run_loop.rb:113:in run'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/calabash-cucumber-0.21.10/lib/calabash-cucumber/launcher.rb:414:in block in new_run_loop' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/calabash-cucumber-0.21.10/lib/calabash-cucumber/launcher.rb:412:in times'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/calabash-cucumber-0.21.10/lib/calabash-cucumber/launcher.rb:412:in new_run_loop' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/calabash-cucumber-0.21.10/lib/calabash-cucumber/launcher.rb:365:in relaunch'
/private/tmp/scratchFTyuNQ.scratch/test-packageHCiMy_/ios/features/support/01_launch.rb:18:in block in <top (required)>' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-3.1.2/lib/cucumber/glue/invoke_in_world.rb:39:in instance_exec'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-3.1.2/lib/cucumber/glue/invoke_in_world.rb:39:in block in cucumber_instance_exec_in' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-3.1.2/lib/cucumber/glue/invoke_in_world.rb:54:in cucumber_run_with_backtrace_filtering'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-3.1.2/lib/cucumber/glue/invoke_in_world.rb:27:in cucumber_instance_exec_in' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-3.1.2/lib/cucumber/glue/hook.rb:21:in invoke'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-3.1.2/lib/cucumber/runtime/before_hooks.rb:23:in block (2 levels) in before_hooks' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/action.rb:24:in execute'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/step.rb:32:in execute' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/runner.rb:104:in execute'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/runner.rb:51:in execute' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/runner.rb:27:in test_step'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/step.rb:17:in describe_to' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/case.rb:28:in block (3 levels) in describe_to'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/case.rb:27:in each' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/case.rb:27:in block (2 levels) in describe_to'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-3.1.2/lib/cucumber/filters/prepare_world.rb:22:in block in test_case' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/around_hook.rb:17:in execute'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/runner.rb:104:in execute' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/runner.rb:51:in execute'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/runner.rb:34:in around_hook' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/around_hook.rb:12:in describe_to'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/case.rb:120:in block (2 levels) in compose_around_hooks' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/case.rb:121:in compose_around_hooks'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/case.rb:26:in block in describe_to' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/runner.rb:19:in test_case'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/case.rb:25:in describe_to' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-3.1.2/lib/cucumber/filters/prepare_world.rb:11:in test_case'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/case.rb:25:in describe_to' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/filter.rb:57:in test_case'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-3.1.2/lib/cucumber/filters/retry.rb:18:in test_case' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/case.rb:25:in describe_to'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-3.1.2/lib/cucumber/filters/quit.rb:12:in test_case' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/case.rb:25:in describe_to'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-3.1.2/lib/cucumber/filters/broadcast_test_run_started_event.rb:21:in block in done' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-3.1.2/lib/cucumber/filters/broadcast_test_run_started_event.rb:20:in map'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-3.1.2/lib/cucumber/filters/broadcast_test_run_started_event.rb:20:in done' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/filter.rb:62:in done'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/filter.rb:62:in done' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/filter.rb:62:in done'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/filter.rb:62:in done' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/filter.rb:62:in done'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/filters/locations_filter.rb:20:in done' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/filter.rb:62:in done'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/test/filters/tag_filter.rb:18:in done' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/compiler.rb:24:in done'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/parser.rb:39:in done' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core.rb:32:in parse'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-core-3.2.1/lib/cucumber/core.rb:21:in compile' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-3.1.2/lib/cucumber/runtime.rb:75:in run!'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-3.1.2/lib/cucumber/cli/main.rb:34:in execute!' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-3.1.2/bin/cucumber:9:in <top (required)>'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/bin/cucumber:23:in load' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/bin/cucumber:23:in

'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/bin/ruby_executable_hooks:24:in eval' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/bin/ruby_executable_hooks:24:in '
�[34mWARN: deprecated '0.20.0' - replaced with attached_to_automator?
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/calabash-cucumber-0.21.10/lib/calabash-cucumber/launcher.rb:246:in active?' /private/tmp/scratchFTyuNQ.scratch/test-packageHCiMy_/ios/features/support/01_launch.rb:26:in block in <top (required)>'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-3.1.2/lib/cucumber/glue/invoke_in_world.rb:39:in instance_exec' /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-3.1.2/lib/cucumber/glue/invoke_in_world.rb:39:in block in cucumber_instance_exec_in'
/Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/cucumber-3.1.2/lib/cucumber/glue/invoke_in_world.rb:54:in `cucumber_run_with_backtrace_filtering'�[0m

@diya1991
Copy link
Author

diya1991 commented Feb 4, 2020

Xcode : Version 11.3 (11C29)
iPhone : Apple iPhone 7 Plus
OS : 12.0
Physical Device in Device farm

I do see device is running with app icon installed but never gets launched, please suggest

@jmoody
Copy link
Contributor

jmoody commented Feb 17, 2020

DeviceAgent cannot be installed on your device.

This command times out after 120 seconds.

iOSDeviceManager install /Users/device-farm/.rvm/gems/ruby-2.5.3@default-ruby-gemset-env-version-1/gems/run_loop-4.5.2/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app --device-id a7d1847acb42df68317a5b29688581978cab8fdd

My guess is that the matching algorithm cannot find a good certificate/profile pair for resigning.

You can check the progress of the resigning and install here:

$ tail -F -1000 ~/.calabash/iOSDeviceManager/logs/current.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants