Closed Bug 1630826 Opened 6 years ago Closed 4 years ago

Perma [tier 2] arsenic.errors.SessionStartError: timeout: Socket timeout reading Marionette handshake data: EOF reading marionette message

Categories

(Testing :: Condprofile, defect, P5)

Version 3
defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: intermittent-failure)

Filed by: btara [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=298012168&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Tv61dszyQYaz4cbd15G4sw/runs/0/artifacts/public/logs/live_backing.log


[task 2020-04-16T23:44:09.498Z] condprof INFO | Running Marionette on port 2828
[task 2020-04-16T23:44:09.498Z] condprof INFO | Connecting on Android device
[task 2020-04-16T23:44:09.498Z] condprof INFO | Running the settled scenario
[task 2020-04-16T23:44:09.498Z] condprof INFO | settled scenario done.
[task 2020-04-16T23:44:09.498Z] condprof INFO | Stopping org.mozilla.firefox
[task 2020-04-16T23:44:09.498Z] condprof INFO | org.mozilla.firefox stopped
[task 2020-04-16T23:44:09.498Z] condprof INFO | Collecting profile from /sdcard/tests/condprof/profile
[task 2020-04-16T23:44:09.498Z] condprof INFO | Creating metadata...
[task 2020-04-16T23:44:09.498Z] condprof INFO | Saving metadata file in /tmp/tmphkznowx4/profile/condprofile.json
[task 2020-04-16T23:44:09.498Z] condprof INFO | Profile at /tmp/tmphkznowx4/profile.
[task 2020-04-16T23:44:09.498Z] Done.
[task 2020-04-16T23:44:09.498Z] condprof INFO | Dumping Android logs
[task 2020-04-16T23:44:09.498Z] condprof INFO | Writing logcat at /builds/task_1587080347/archive/logcat.log
[task 2020-04-16T23:44:09.498Z] condprof INFO | Creating archive
[task 2020-04-16T23:44:09.498Z] condprof INFO | Archive created at /builds/task_1587080347/archive/profile-g5-firefox-settled-default.tgz
[task 2020-04-16T23:44:09.498Z] condprof INFO | Current size is 3804805
[task 2020-04-16T23:44:09.498Z] condprof INFO | Extracting logs
[task 2020-04-16T23:44:09.498Z] condprof INFO | Customization condprof/../condprof/customization/default.json
[task 2020-04-16T23:44:09.498Z] condprof INFO | Building settled2 x default
[task 2020-04-16T23:44:09.498Z] condprof INFO | Getting conditioned profile with arguments: {'platform': 'g5-firefox', 'scenario': 'settled2', 'customization': 'default', 'task_id': None, 'repo': 'mozilla-central'}
[task 2020-04-16T23:44:09.498Z] condprof INFO | preparing download dir
[task 2020-04-16T23:44:09.498Z] condprof INFO | Downloaded archive path: /builds/worker/.condprof-cache/profile-g5-firefox-settled2-default.tgz
[task 2020-04-16T23:44:09.498Z] condprof INFO | Getting https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/gecko.v2.mozilla-central.latest.firefox.condprof-g5-firefox/artifacts/public/condprof/profile-g5-firefox-settled2-default.tgz
[task 2020-04-16T23:44:09.498Z] condprof INFO | Getting headers at https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/gecko.v2.mozilla-central.latest.firefox.condprof-g5-firefox/artifacts/public/condprof/profile-g5-firefox-settled2-default.tgz
[task 2020-04-16T23:44:09.498Z] condprof INFO | Redirected
[task 2020-04-16T23:44:09.498Z] condprof INFO | Getting headers at https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Fjg25d6BQbOGSMcDoGT2rg/artifacts/public%2Fcondprof%2Fprofile-g5-firefox-settled2-default.tgz
[task 2020-04-16T23:44:09.498Z] condprof INFO | Redirected
[task 2020-04-16T23:44:09.498Z] condprof INFO | Getting headers at https://firefoxci.taskcluster-artifacts.net/Fjg25d6BQbOGSMcDoGT2rg/0/public/condprof/profile-g5-firefox-settled2-default.tgz
[task 2020-04-16T23:44:09.498Z] condprof INFO | Response code is 200
[task 2020-04-16T23:44:09.498Z] condprof INFO | Downloading https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/gecko.v2.mozilla-central.latest.firefox.condprof-g5-firefox/artifacts/public/condprof/profile-g5-firefox-settled2-default.tgz
[task 2020-04-16T23:44:09.498Z] condprof INFO | Extracting the tarball content in /tmp/tmpg9pzclsq/profile
[task 2020-04-16T23:44:09.498Z] condprof INFO | Success, we have a profile to work with
[task 2020-04-16T23:44:09.498Z] condprof INFO | Updating profile located at '/tmp/tmpg9pzclsq/profile'
[task 2020-04-16T23:44:09.498Z] condprof INFO | Reading existing metadata at /tmp/tmpg9pzclsq/profile/condprofile.json
[task 2020-04-16T23:44:09.498Z] condprof INFO | Starting the Gecko app...
[task 2020-04-16T23:44:09.498Z] condprof INFO | Setting ADB log file to /builds/task_1587080347/archive/adb-settled2-default.log
[task 2020-04-16T23:44:09.498Z] condprof INFO | Setting org.mozilla.firefox as the debug app on the phone
[task 2020-04-16T23:44:09.498Z] condprof INFO | Creating the profile on the device
[task 2020-04-16T23:44:09.498Z] condprof INFO | The profile on the phone will be at /sdcard/tests/condprof/profile
[task 2020-04-16T23:44:09.498Z] condprof INFO | Pushing /tmp/tmpg9pzclsq/profile on the phone
[task 2020-04-16T23:46:03.479Z] condprof INFO | writing {'args': ['-marionette', '-profile', '/sdcard/tests/condprof/profile'], 'prefs': {'focusmanager.testmode': True, 'marionette.defaultPrefs.port': 2828, 'marionette.port': 2828, 'marionette.enabled': True, 'marionette.log.level': 'Trace', 'marionette.log.truncate': False, 'marionette.contentListener': False, 'extensions.autoDisableScopes': 10, 'devtools.debugger.remote-enabled': True, 'devtools.console.stdout.content': True, 'devtools.console.stdout.chrome': True}, 'env': {'LOG_VERBOSE': 1, 'R_LOG_LEVEL': 6, 'MOZ_LOG': ''}} to /tmp/tmpzop3i6ud/org.mozilla.firefox-geckoview-config.yaml
[task 2020-04-16T23:46:03.479Z] condprof INFO | Creating socket forwarding on port 2828
[task 2020-04-16T23:46:03.479Z] condprof INFO | Sleeping for 30s
[task 2020-04-16T23:46:03.479Z] condprof INFO | Writing geckodriver logs in /builds/task_1587080347/archive/geckodriver-settled2-default.log
[task 2020-04-16T23:46:03.479Z] condprof INFO | Running Webdriver on port 33311
[task 2020-04-16T23:46:03.479Z] condprof INFO | Running Marionette on port 2828
[task 2020-04-16T23:46:03.479Z] condprof INFO | Connecting on Android device
[task 2020-04-16T23:46:03.479Z] condprof ERROR | settled2 scenario broke!
[task 2020-04-16T23:46:03.479Z] condprof INFO  | Could not start the session, check /builds/task_1587080347/archive/geckodriver-settled2-default.log first
[task 2020-04-16T23:46:03.479Z] condprof INFO  | Stopping org.mozilla.firefox
[task 2020-04-16T23:46:03.479Z] condprof INFO  | org.mozilla.firefox stopped
[task 2020-04-16T23:46:03.480Z] condprof INFO  | Dumping Android logs
[task 2020-04-16T23:46:03.480Z] condprof INFO  | Writing logcat at /builds/task_1587080347/archive/logcat.log
[task 2020-04-16T23:46:03.480Z] condprof ERROR | settled2 x condprof/../condprof/customization/default.json failed.
[task 2020-04-16T23:46:03.480Z] Traceback (most recent call last):
[task 2020-04-16T23:46:03.480Z]   File "condprof/../condprof/runner.py", line 155, in run_all
[task 2020-04-16T23:46:03.480Z]     res.append(await self.one_run(scenario, customization))
[task 2020-04-16T23:46:03.480Z]   File "condprof/../condprof/runner.py", line 130, in one_run
[task 2020-04-16T23:46:03.480Z]     ).run(not self.visible)
[task 2020-04-16T23:46:03.480Z]   File "condprof/../condprof/creator.py", line 77, in run
[task 2020-04-16T23:46:03.480Z]     metadata = await self.build_profile(device, headless)
[task 2020-04-16T23:46:03.480Z]   File "condprof/../condprof/creator.py", line 152, in build_profile
[task 2020-04-16T23:46:03.480Z]     async with get_session(geckodriver, firefox_instance) as session:
[task 2020-04-16T23:46:03.480Z]   File "/builds/task_1587080347/fetches/condprofile/lib/python3.6/site-packages/arsenic/__init__.py", line 16, in __aenter__
[task 2020-04-16T23:46:03.480Z]     self.session = await start_session(self.service, self.browser, self.bind)
[task 2020-04-16T23:46:03.480Z]   File "/builds/task_1587080347/fetches/condprofile/lib/python3.6/site-packages/arsenic/__init__.py", line 29, in start_session
[task 2020-04-16T23:46:03.480Z]     return await driver.new_session(browser, bind=bind)
[task 2020-04-16T23:46:03.480Z]   File "/builds/task_1587080347/fetches/condprofile/lib/python3.6/site-packages/arsenic/webdriver.py", line 56, in new_session
[task 2020-04-16T23:46:03.480Z]     err_resp["error"], err_resp.get("message", ""), original_response
[task 2020-04-16T23:46:03.480Z] arsenic.errors.SessionStartError: timeout: Socket timeout reading Marionette handshake data: EOF reading marionette message
[task 2020-04-16T23:46:03.480Z] Traceback (most recent call last):
[task 2020-04-16T23:46:03.480Z]   File "condprof/main.py", line 78, in <module>
[task 2020-04-16T23:46:03.480Z]     main()
[task 2020-04-16T23:46:03.480Z]   File "condprof/main.py", line 73, in main
[task 2020-04-16T23:46:03.480Z]     args.device_name,
[task 2020-04-16T23:46:03.480Z]   File "condprof/../condprof/runner.py", line 187, in run
[task 2020-04-16T23:46:03.480Z]     failures, results = loop.run_until_complete(runner.run_all())
[task 2020-04-16T23:46:03.480Z]   File "/usr/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
[task 2020-04-16T23:46:03.480Z]     return future.result()
[task 2020-04-16T23:46:03.480Z]   File "condprof/../condprof/runner.py", line 158, in run_all
[task 2020-04-16T23:46:03.480Z]     self.display_error(scenario, customization)
[task 2020-04-16T23:46:03.480Z]   File "condprof/../condprof/runner.py", line 155, in run_all
[task 2020-04-16T23:46:03.480Z]     res.append(await self.one_run(scenario, customization))
[task 2020-04-16T23:46:03.480Z]   File "condprof/../condprof/runner.py", line 130, in one_run
[task 2020-04-16T23:46:03.480Z]     ).run(not self.visible)
[task 2020-04-16T23:46:03.480Z]   File "condprof/../condprof/creator.py", line 77, in run
[task 2020-04-16T23:46:03.480Z]     metadata = await self.build_profile(device, headless)
[task 2020-04-16T23:46:03.480Z]   File "condprof/../condprof/creator.py", line 152, in build_profile
[task 2020-04-16T23:46:03.480Z]     async with get_session(geckodriver, firefox_instance) as session:
[task 2020-04-16T23:46:03.480Z]   File "/builds/task_1587080347/fetches/condprofile/lib/python3.6/site-packages/arsenic/__init__.py", line 16, in __aenter__
[task 2020-04-16T23:46:03.480Z]     self.session = await start_session(self.service, self.browser, self.bind)
[task 2020-04-16T23:46:03.480Z]   File "/builds/task_1587080347/fetches/condprofile/lib/python3.6/site-packages/arsenic/__init__.py", line 29, in start_session
[task 2020-04-16T23:46:03.480Z]     return await driver.new_session(browser, bind=bind)
[task 2020-04-16T23:46:03.480Z]   File "/builds/task_1587080347/fetches/condprofile/lib/python3.6/site-packages/arsenic/webdriver.py", line 56, in new_session
[task 2020-04-16T23:46:03.480Z]     err_resp["error"], err_resp.get("message", ""), original_response
[task 2020-04-16T23:46:03.480Z] arsenic.errors.SessionStartError: timeout: Socket timeout reading Marionette handshake data: EOF reading marionette message
[task 2020-04-16T23:46:03.480Z] Unclosed client session
[task 2020-04-16T23:46:03.480Z] client_session: <aiohttp.client.ClientSession object at 0x7fd4bdfe7a20>
[task 2020-04-16T23:46:03.480Z] Unclosed connector
[task 2020-04-16T23:46:03.480Z] connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7fd4be477408>, 10546347.310497465)]']
[task 2020-04-16T23:46:03.480Z] connector: <aiohttp.connector.TCPConnector object at 0x7fd4bdfe7b00>
[task 2020-04-16T23:46:03.480Z] script.py: command finished
[task 2020-04-16T23:46:03.480Z] script.py: enabling charging for device 'Moto G (5)' ('ZY322MQ7SV')...
[task 2020-04-16T23:46:03.480Z] 
[task 2020-04-16T23:46:03.480Z] netstat -aop
...

Sorry, not sure about the product and component here.

For further investigation lets move to condprofile where Marionette is used.

Assignee: nobody → tarek
Component: Marionette → Condprofile

Looks like Marionette aborts when it starts

05-13 05:30:39.240 I/Gecko   ( 5474): 1589347839240	Marionette	TRACE	Received observer notification profile-after-change
05-13 05:30:39.308 I/Gecko   ( 5474): 1589347839308	Marionette	TRACE	Received observer notification command-line-startup
05-13 05:30:39.308 I/Gecko   ( 5474): 1589347839308	Marionette	TRACE	Received observer notification nsPref:changed
05-13 05:30:39.308 I/Gecko   ( 5474): 1589347839308	Marionette	DEBUG	Init aborted (running=false, enabled=true, finalUIStartup=false)
05-13 05:30:39.357 I/Gecko   ( 5474): 1589347839357	Marionette	TRACE	Received observer notification toplevel-window-ready

No, it waits for the final marionette-startup-requested notification, which seems like to never be sent out. See bug 1382162.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 6 years ago → 6 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Assignee: tarek → nobody
Status: REOPENED → RESOLVED
Closed: 6 years ago → 5 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 5 years ago → 5 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 5 years ago → 4 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
See Also: → 1765461
Summary: Intermittent arsenic.errors.SessionStartError: timeout: Socket timeout reading Marionette handshake data: EOF reading marionette message → Perma [tier 2] arsenic.errors.SessionStartError: timeout: Socket timeout reading Marionette handshake data: EOF reading marionette message

these tests were turned off via a patch for bug 1765461. The real root cause here is bug 1765348.

Flags: needinfo?(jmaher)
Status: REOPENED → RESOLVED
Closed: 4 years ago → 4 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.