Bug: Intermittent browser/components/migration/tests/marionette/test_refresh_firefox.py TestFirefoxRefresh.testResetEverything | IOError: Process killed because the connection to Marionette server is lost. Check gecko.log for errors
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2020-05-22 22:29:22+00:00
Resolved: 2020-06-30 17:02:21+00:00

**Filed by:** apavel [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer.html#?job_id=303397465&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/U-A7xP8AStqtrLEjIx5OTQ/runs/0/artifacts/public/logs/live_backing.log

---

[task 2020-05-22T19:28:21.117Z] 19:28:21     INFO -  TEST-START | browser/components/migration/tests/marionette/test_refresh_firefox.py TestFirefoxRefresh.testResetEverything
[task 2020-05-22T19:28:21.117Z] 19:28:21     INFO -  1590175701108	Marionette	DEBUG	3 -> [0,7,"WebDriver:DeleteSession",{}]
[task 2020-05-22T19:28:21.117Z] 19:28:21     INFO -  1590175701110	Marionette	DEBUG	3 <- [1,7,null,{"value":null}]
[task 2020-05-22T19:28:21.117Z] 19:28:21     INFO -  1590175701112	Marionette	DEBUG	Closed connection 3
[task 2020-05-22T19:28:21.117Z] 19:28:21     INFO -  1590175701113	Marionette	DEBUG	Accepted connection 4 from 127.0.0.1:53504
[task 2020-05-22T19:28:21.117Z] 19:28:21     INFO -  1590175701114	Marionette	DEBUG	4 -> [0,1,"WebDriver:NewSession",{"strictFileInteractability":true}]
[task 2020-05-22T19:28:21.117Z] 19:28:21     INFO -  1590175701115	Marionette	TRACE	[10] Frame script loaded
[task 2020-05-22T19:28:21.119Z] 19:28:21     INFO -  1590175701116	Marionette	TRACE	[10] Frame script registered
[task 2020-05-22T19:28:21.119Z] 19:28:21     INFO -  1590175701117	Marionette	DEBUG	4 <- [1,1,null,{"sessionId":"2a8ae4f4-3fe3-411c-8d7d-82b25d0b8863","capabilities":{"browserName":"firefox","browserVersion":"78.0a ... p\\tmpsqxfki.mozrunner","moz:shutdownTimeout":60000,"moz:useNonSpecCompliantPointerOrigin":false,"moz:webdriverClick":true}}]
[task 2020-05-22T19:28:21.121Z] 19:28:21     INFO -  1590175701119	Marionette	DEBUG	4 -> [0,2,"WebDriver:SetTimeouts",{"script":30000}]
[task 2020-05-22T19:28:21.121Z] 19:28:21     INFO -  1590175701119	Marionette	DEBUG	4 <- [1,2,null,{"value":null}]
[task 2020-05-22T19:28:21.123Z] 19:28:21     INFO -  1590175701121	Marionette	DEBUG	4 -> [0,3,"WebDriver:SetTimeouts",{"pageLoad":300000}]
[task 2020-05-22T19:28:21.123Z] 19:28:21     INFO -  1590175701121	Marionette	DEBUG	4 <- [1,3,null,{"value":null}]
[task 2020-05-22T19:28:21.125Z] 19:28:21     INFO -  1590175701122	Marionette	DEBUG	4 -> [0,4,"WebDriver:SetTimeouts",{"implicit":0}]
[task 2020-05-22T19:28:21.125Z] 19:28:21     INFO -  1590175701123	Marionette	DEBUG	4 <- [1,4,null,{"value":null}]
[task 2020-05-22T19:28:21.127Z] 19:28:21     INFO -  1590175701125	Marionette	DEBUG	4 -> [0,5,"Marionette:SetContext",{"value":"chrome"}]
[task 2020-05-22T19:28:21.127Z] 19:28:21     INFO -  1590175701125	Marionette	DEBUG	4 <- [1,5,null,{"value":null}]
[task 2020-05-22T19:28:21.129Z] 19:28:21     INFO -  1590175701127	Marionette	DEBUG	4 -> [0,6,"WebDriver:ExecuteScript",{"script":"window.global = {};\n          global.LoginInfo = Components.Constructor(\"@mozilla ... \\tests\\browser\\components\\migration\\tests\\marionette\\test_refresh_firefox.py","sandbox":"firefox-refresh","line":478}]
[task 2020-05-22T19:28:21.131Z] 19:28:21     INFO -  1590175701129	Marionette	DEBUG	4 <- [1,6,null,{"value":null}]
[task 2020-05-22T19:28:21.133Z] 19:28:21     INFO -  1590175701130	Marionette	DEBUG	4 -> [0,7,"WebDriver:ExecuteScript",{"script":"try {\n            global.formAutofillStorage = Cu.import(\"resource://formautofill ... \\tests\\browser\\components\\migration\\tests\\marionette\\test_refresh_firefox.py","sandbox":"firefox-refresh","line":478}]
[task 2020-05-22T19:28:21.133Z] 19:28:21     INFO -  1590175701132	Marionette	DEBUG	4 <- [1,7,null,{"value":true}]
[task 2020-05-22T19:28:21.135Z] 19:28:21     INFO -  1590175701133	Marionette	DEBUG	4 -> [0,8,"WebDriver:ExecuteScript",{"script":"let myLogin = new global.LoginInfo(\n            \"test.marionette.mozilla.com\",\n ... \\tests\\browser\\components\\migration\\tests\\marionette\\test_refresh_firefox.py","sandbox":"firefox-refresh","line":478}]
[task 2020-05-22T19:28:21.160Z] 19:28:21     INFO -  1590175701155	Marionette	DEBUG	4 <- [1,8,null,{"value":null}]
[task 2020-05-22T19:28:21.160Z] 19:28:21     INFO -  1590175701157	Marionette	DEBUG	4 -> [0,9,"WebDriver:ExecuteAsyncScript",{"scriptTimeout":null,"newSandbox":false,"args":["about:mozilla","Some bookmark from Mari ... s.bookmarks.menuGuid, url, title\n          }).then(() => resolve(false), resolve);","sandbox":"firefox-refresh","line":485}]
[task 2020-05-22T19:28:21.165Z] 19:28:21     INFO -  DEBUG: Adding blocker places.sqlite#1: Bookmarks.jsm: fetchBookmark (17) for phase places.sqlite#1: waiting for clients
[task 2020-05-22T19:28:21.165Z] 19:28:21     INFO -  DEBUG: Completed blocker places.sqlite#1: Bookmarks.jsm: fetchBookmark (17) for phase places.sqlite#1: waiting for clients
[task 2020-05-22T19:28:21.165Z] 19:28:21     INFO -  DEBUG: Adding blocker Transaction (18) for phase places.sqlite#1: waiting for clients
[task 2020-05-22T19:28:21.165Z] 19:28:21     INFO -  DEBUG: Adding blocker places.sqlite#1: Bookmarks.jsm: insertBookmark (19) for phase places.sqlite#1: waiting for clients
[task 2020-05-22T19:28:21.175Z] 19:28:21     INFO -  DEBUG: Completed blocker Transaction (18) for phase places.sqlite#1: waiting for clients
[task 2020-05-22T19:28:21.175Z] 19:28:21     INFO -  DEBUG: Completed blocker places.sqlite#1: Bookmarks.jsm: insertBookmark (19) for phase places.sqlite#1: waiting for clients
[task 2020-05-22T19:28:21.175Z] 19:28:21     INFO -  DEBUG: Adding blocker places.sqlite#1: GuidHelper.getItemId (20) for phase places.sqlite#1: waiting for clients
[task 2020-05-22T19:28:21.175Z] 19:28:21     INFO -  DEBUG: Completed blocker places.sqlite#1: GuidHelper.getItemId (20) for phase places.sqlite#1: waiting for clients
[task 2020-05-22T19:28:21.175Z] 19:28:21     INFO -  1590175701172	Marionette	DEBUG	4 <- [1,9,null,{"value":false}]

[task 2020-05-22T19:28:22.490Z] 19:28:22     INFO -  [2020-05-22T19:28:22Z ERROR xulstore::persist] removeDocument error: unavailable
[task 2020-05-22T19:28:31.578Z] 19:28:31     INFO -  Application command: Z:\task_1590170738\build\application\firefox\firefox.exe -no-remote -marionette --wait-for-browser -profile c:\users\task_1590170738\appdata\local\temp\tmpz__mmd.mozrunner
[task 2020-05-22T19:28:31.749Z] 19:28:31     INFO -  DEBUG: Adding blocker OS.File: flush pending requests, warn about unclosed files, shut down service. for phase xpcom-will-shutdown
[task 2020-05-22T19:28:31.749Z] 19:28:31     INFO -  DEBUG: Adding blocker OS.File: flush I/O queued before profileBeforeChange for phase profile-before-change
[task 2020-05-22T19:28:31.749Z] 19:28:31     INFO -  DEBUG: Adding blocker AddonManager: shutting down. for phase profile-before-change
[task 2020-05-22T19:28:31.780Z] 19:28:31     INFO -  DEBUG: Adding blocker ClientManagerService: start destroying IPC actors early for phase xpcom-will-shutdown
[task 2020-05-22T19:28:31.838Z] 19:28:31     INFO -  DEBUG: Adding blocker Flush WebExtension StartupCache for phase profile-before-change
[task 2020-05-22T19:28:31.929Z] 19:28:31     INFO -  DEBUG: Adding blocker JSON store: writing data for phase profile-before-change
[task 2020-05-22T19:28:31.967Z] 19:28:31     INFO -  DEBUG: Adding blocker JSON store: writing data for phase AddonManager: Waiting for providers to shut down.
[task 2020-05-22T19:28:31.967Z] 19:28:31     INFO -  DEBUG: Adding blocker Update add-on blocklist state into add-on DB for phase AddonManager: Waiting to start provider shutdown.
[task 2020-05-22T19:28:31.967Z] 19:28:31     INFO -  DEBUG: Completed blocker Update add-on blocklist state into add-on DB for phase AddonManager: Waiting to start provider shutdown.
[task 2020-05-22T19:28:31.986Z] 19:28:31     INFO -  DEBUG: Adding blocker XPIProvider shutdown for phase quit-application-granted
[task 2020-05-22T19:28:31.986Z] 19:28:31     INFO -  DEBUG: Adding blocker XPIProvider for phase AddonManager: Waiting for providers to shut down.
[task 2020-05-22T19:28:31.986Z] 19:28:31     INFO -  DEBUG: Adding blocker PluginProvider for phase AddonManager: Waiting for providers to shut down.
[task 2020-05-22T19:28:31.986Z] 19:28:31     INFO -  DEBUG: Adding blocker ServiceWorkerRegistrar: Flushing data for phase profile-before-change
[task 2020-05-22T19:28:31.986Z] 19:28:31     INFO -  DEBUG: Adding blocker CrashMonitor: Writing notifications to file after receiving profile-before-change for phase OS.File: Waiting for clients before profileBeforeChange
[task 2020-05-22T19:28:32.072Z] 19:28:32     INFO -  DEBUG: Adding blocker TelemetryController: shutting down for phase profile-before-change-telemetry
[task 2020-05-22T19:28:32.090Z] 19:28:32     INFO -  DEBUG: Adding blocker EnvironmentAddonBuilder for phase AddonManager: Waiting to start provider shutdown.
[task 2020-05-22T19:28:32.095Z] 19:28:32     INFO -  DEBUG: Adding blocker RemoteSettingsClient - finish IDB access. for phase profile-before-change
[task 2020-05-22T19:28:32.100Z] 19:28:32     INFO -  1590175712098	Marionette	TRACE	Marionette enabled
[task 2020-05-22T19:28:32.159Z] 19:28:32     INFO -  1590175712156	Marionette	TRACE	Received observer notification toplevel-window-ready
[task 2020-05-22T19:31:42.890Z] 19:31:42    ERROR -  TEST-UNEXPECTED-ERROR | browser/components/migration/tests/marionette/test_refresh_firefox.py TestFirefoxRefresh.testResetEverything | IOError: Process killed because the connection to Marionette server is lost. Check gecko.log for errors (Reason: Timed out waiting for connection on 127.0.0.1:2828!)
[task 2020-05-22T19:31:42.890Z] 19:31:42     INFO -  Traceback (most recent call last):
[task 2020-05-22T19:31:42.890Z] 19:31:42     INFO -    File "Z:\task_1590170738\build\venv\lib\site-packages\marionette_harness\marionette_test\testcases.py", line 190, in run
[task 2020-05-22T19:31:42.890Z] 19:31:42     INFO -      self.tearDown()
[task 2020-05-22T19:31:42.890Z] 19:31:42     INFO -    File "Z:\task_1590170738\build\tests\marionette\tests\browser\components\migration\tests\marionette\test_refresh_firefox.py", line 497, in tearDown
[task 2020-05-22T19:31:42.890Z] 19:31:42     INFO -      self.marionette.restart(clean=True, in_app=False)
[task 2020-05-22T19:31:42.890Z] 19:31:42     INFO -    File "Z:\task_1590170738\build\venv\lib\site-packages\marionette_driver\decorators.py", line 36, in _
[task 2020-05-22T19:31:42.890Z] 19:31:42     INFO -      m._handle_socket_failure()
[task 2020-05-22T19:31:42.891Z] 19:31:42     INFO -    File "Z:\task_1590170738\build\venv\lib\site-packages\marionette_driver\marionette.py", line 681, in _handle_socket_failure
[task 2020-05-22T19:31:42.891Z] 19:31:42     INFO -      reraise(IOError, IOError(message.format(returncode=returncode, reason=exc)), tb)
[task 2020-05-22T19:31:42.891Z] 19:31:42     INFO -    File "Z:\task_1590170738\build\venv\lib\site-packages\marionette_driver\decorators.py", line 26, in _
[task 2020-05-22T19:31:42.891Z] 19:31:42     INFO -      return func(*args, **kwargs)
[task 2020-05-22T19:31:42.891Z] 19:31:42     INFO -    File "Z:\task_1590170738\build\venv\lib\site-packages\marionette_driver\marionette.py", line 1055, in restart
[task 2020-05-22T19:31:42.891Z] 19:31:42     INFO -      self.raise_for_port(timeout=self.DEFAULT_STARTUP_TIMEOUT)
[task 2020-05-22T19:31:42.891Z] 19:31:42     INFO -    File "Z:\task_1590170738\build\venv\lib\site-packages\marionette_driver\marionette.py", line 572, in raise_for_port
[task 2020-05-22T19:31:42.891Z] 19:31:42     INFO -      self.host, self.port))
[task 2020-05-22T19:31:42.891Z] 19:31:42     INFO -  TEST-INFO took 201776ms