Closed Bug 1099985 Opened 10 years ago Closed 6 years ago

mozdevice.devicemanager.DMError: Non-zero return code for command: ['b2g-ps'] (output: '', retval: 'None') in shellCheckOutput

Categories

(Testing :: Mozbase, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: martijn.martijn, Assigned: gbrown)

Details

While running a gaia-ui test on the Flame device, trying to repeat it 50 times, I got this failure in REPEAT 35, which resulted in a stop of the run:

REPEAT 35
-------
Traceback (most recent call last):
  File "/Users/mwargers/.virtualenvs/gaia-py-latest/bin/gaiatest", line 9, in <module>
    load_entry_point('gaiatest==0.30', 'console_scripts', 'gaiatest')()
  File "/Users/mwargers/B2G/gaia_clean/tests/python/gaia-ui-tests/gaiatest/runtests.py", line 106, in main
    cli(runner_class=GaiaTestRunner, parser_class=GaiaTestOptions)
  File "/Users/mwargers/.virtualenvs/gaia-py-latest/lib/python2.7/site-packages/marionette_client-0.8.4-py2.7.egg/marionette/runtests.py", line 35, in cli
    runner = startTestRunner(runner_class, options, tests)
  File "/Users/mwargers/.virtualenvs/gaia-py-latest/lib/python2.7/site-packages/marionette_client-0.8.4-py2.7.egg/marionette/runtests.py", line 20, in startTestRunner
    runner.run_tests(tests)
  File "/Users/mwargers/.virtualenvs/gaia-py-latest/lib/python2.7/site-packages/marionette_client-0.8.4-py2.7.egg/marionette/runner/base.py", line 652, in run_tests
    self.run_test_sets()
  File "/Users/mwargers/.virtualenvs/gaia-py-latest/lib/python2.7/site-packages/marionette_client-0.8.4-py2.7.egg/marionette/runner/base.py", line 869, in run_test_sets
    self.run_test_set(in_process_tests)
  File "/Users/mwargers/.virtualenvs/gaia-py-latest/lib/python2.7/site-packages/marionette_client-0.8.4-py2.7.egg/marionette/runner/base.py", line 846, in run_test_set
    self.run_test(test['filepath'], test['expected'], test['oop'])
  File "/Users/mwargers/.virtualenvs/gaia-py-latest/lib/python2.7/site-packages/marionette_client-0.8.4-py2.7.egg/marionette/runner/base.py", line 822, in run_test
    results = runner.run(suite)
  File "/Users/mwargers/.virtualenvs/gaia-py-latest/lib/python2.7/site-packages/marionette_client-0.8.4-py2.7.egg/marionette/runner/base.py", line 227, in run
    pre_run_func()
  File "/Users/mwargers/.virtualenvs/gaia-py-latest/lib/python2.7/site-packages/marionette_client-0.8.4-py2.7.egg/marionette/runner/base.py", line 210, in b2g_pre_run
    self.b2g_pid = get_b2g_pid(get_dm(self.marionette))
  File "/Users/mwargers/.virtualenvs/gaia-py-latest/lib/python2.7/site-packages/marionette_client-0.8.4-py2.7.egg/marionette/runner/mixins/b2g.py", line 29, in get_b2g_pid
    b2g_output = dm.shellCheckOutput(['b2g-ps'])
  File "/Users/mwargers/.virtualenvs/gaia-py-latest/lib/python2.7/site-packages/mozdevice-0.42-py2.7.egg/mozdevice/devicemanager.py", line 397, in shellCheckOutput
    raise DMError("Non-zero return code for command: %s (output: '%s', retval: '%s')" % (cmd, output, retval))
mozdevice.devicemanager.DMError: Non-zero return code for command: ['b2g-ps'] (output: '', retval: 'None')
(gaia-py-latest)mwargers:gaia_clean mwargers$
This suggests to me that b2g-ps failed on the device. What was the state of the device at this time? Can you rerun with the options: --log-mach=bug1099985.log --log-level-mach=debug and attach the log file?
Flags: needinfo?(martijn.martijn)
(In reply to Dave Hunt (:davehunt) from comment #1)
> This suggests to me that b2g-ps failed on the device. What was the state of
> the device at this time? Can you rerun with the options:
> --log-mach=bug1099985.log --log-level-mach=debug and attach the log file?

It's --log-mach-level. Yes, I'll do my test runs now with this option. 
I've only encountered this issue once. It might be a long while before I encounter this issue again.
Flags: needinfo?(martijn.martijn)
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Closing this as wontfix since additional logs are required and there has been no recent activity in the bug...plus, it's b2g. If re-opening, please provide a plan for getting better diagnostics.
Assignee: nobody → gbrown
Status: REOPENED → RESOLVED
Closed: 7 years ago6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.