Intermittent selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service /snap/bin/firefox.geckodriver
Categories
(Firefox Build System :: Third Party Packaging, defect, P5)
Tracking
(Not tracked)
People
(Reporter: intermittent-bug-filer, Assigned: gerard-majax)
References
(Blocks 1 open bug, )
Details
(Keywords: intermittent-failure)
Filed by: amarc [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=500488754&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Wo9dYVitRo-gMSPnbLLZLQ/runs/0/artifacts/public/logs/live_backing.log
[task 2025-03-23T02:31:26.167Z] Building wheels for collected packages: mozlog
[task 2025-03-23T02:31:26.168Z] Building wheel for mozlog (setup.py): started
[task 2025-03-23T02:31:26.399Z] Building wheel for mozlog (setup.py): finished with status 'done'
[task 2025-03-23T02:31:26.400Z] Created wheel for mozlog: filename=mozlog-8.0.0-py2.py3-none-any.whl size=69608 sha256=73f30afb9ae230a5abcf0bc00d91f5cf600a03057d8cf66bd40d8abda35430fd
[task 2025-03-23T02:31:26.400Z] Stored in directory: /home/task_174269682053351/.cache/pip/wheels/f3/04/57/02f3d25fa74ca7a408a80e1b4892033a55c233229f7cc0b858
[task 2025-03-23T02:31:26.401Z] Successfully built mozlog
[task 2025-03-23T02:31:26.744Z] Installing collected packages: wcwidth, sortedcontainers, urllib3, sniffio, PyYAML, PySocks, Pillow, mozterm, mozfile, idna, h11, exceptiongroup, certifi, blessed, attrs, wsproto, outcome, mozlog, trio, trio-websocket, selenium
[task 2025-03-23T02:31:27.372Z] WARNING: The script structlog is installed in '/home/task_174269682053351/.local/bin' which is not on PATH.
[task 2025-03-23T02:31:27.372Z] Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
[task 2025-03-23T02:31:28.218Z] Successfully installed Pillow-10.1.0 PySocks-1.7.1 PyYAML-6.0.1 attrs-23.1.0 blessed-1.20.0 certifi-2023.7.22 exceptiongroup-1.1.3 h11-0.14.0 idna-3.4 mozfile-3.0.0 mozlog-8.0.0 mozterm-1.0.0 outcome-1.2.0 selenium-4.12.0 sniffio-1.3.0 sortedcontainers-2.4.0 trio-0.22.2 trio-websocket-0.10.4 urllib3-2.0.5 wcwidth-0.2.13 wsproto-1.2.0
[task 2025-03-23T02:31:28.328Z] + export TEST_NO_HEADLESS=1
[task 2025-03-23T02:31:28.328Z] + TEST_NO_HEADLESS=1
[task 2025-03-23T02:31:28.328Z] + '[' -n '' ']'
[task 2025-03-23T02:31:28.328Z] + RECORD_SCREEN_PID=0
[task 2025-03-23T02:31:28.328Z] + '[' '' = true ']'
[task 2025-03-23T02:31:28.328Z] + '[' basic = basic ']'
[task 2025-03-23T02:31:28.328Z] + sed -e s/#RUNTIME_VERSION#/command-chain/#
[task 2025-03-23T02:31:28.330Z] + python3 basic_tests.py basic_tests/expectations.json
[task 2025-03-23T02:31:58.595Z] Traceback (most recent call last):
[task 2025-03-23T02:31:58.595Z] File "/task_174269682053351/fetches/basic_tests.py", line 556, in <module>
[task 2025-03-23T02:31:58.595Z] SnapTests(exp=sys.argv[1])
[task 2025-03-23T02:31:58.595Z] File "/task_174269682053351/fetches/basic_tests.py", line 384, in __init__
[task 2025-03-23T02:31:58.595Z] super(SnapTests, self).__init__(exp)
[task 2025-03-23T02:31:58.595Z] File "/task_174269682053351/fetches/basic_tests.py", line 87, in __init__
[task 2025-03-23T02:31:58.595Z] self._driver = webdriver.Firefox(service=driver_service, options=options)
[task 2025-03-23T02:31:58.595Z] File "/home/task_174269682053351/.local/lib/python3.10/site-packages/selenium/webdriver/firefox/webdriver.py", line 60, in __init__
[task 2025-03-23T02:31:58.596Z] self.service.start()
[task 2025-03-23T02:31:58.596Z] File "/home/task_174269682053351/.local/lib/python3.10/site-packages/selenium/webdriver/common/service.py", line 116, in start
[task 2025-03-23T02:31:58.596Z] raise WebDriverException(f"Can not connect to the Service {self._path}")
[task 2025-03-23T02:31:58.596Z] selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service /snap/bin/firefox.geckodriver
[task 2025-03-23T02:31:58.596Z]
[taskcluster 2025-03-23T02:31:58.628Z] Exit Code: 1
[taskcluster 2025-03-23T02:31:58.628Z] User Time: 9.184071s
[taskcluster 2025-03-23T02:31:58.628Z] Kernel Time: 2.300034s
[taskcluster 2025-03-23T02:31:58.628Z] Wall Time: 3m17.577612363s
[taskcluster 2025-03-23T02:31:58.628Z] Result: FAILED
[taskcluster 2025-03-23T02:31:58.629Z] === Task Finished ===
[taskcluster 2025-03-23T02:31:58.629Z] Task Duration: 3m17.579822758s
[taskcluster 2025-03-23T02:31:58.667Z] Uploading artifact public/build/geckodriver.log from file /task_174269682053351/builds/worker/artifacts/geckodriver.log with content encoding "gzip", mime type "text/plain" and expiry 2025-06-21T02:26:07.298Z
[taskcluster 2025-03-23T02:31:59.051Z] Uploading link artifact public/logs/live.log to artifact public/logs/live_backing.log with expiry 2025-06-21T02:26:07.298Z
[taskcluster:error] exit status 1
| Assignee | ||
Comment 1•1 year ago
|
||
From https://firefoxci.taskcluster-artifacts.net/Wo9dYVitRo-gMSPnbLLZLQ/0/public/build/geckodriver.log
Content snap command-chain for /snap/firefox/x1/gnome-platform/command-chain/desktop-launch not found: ensure slot is connected
Nathan, is this the famous core22 to core24 migration issue?
| Assignee | ||
Comment 2•1 year ago
|
||
And if so, what is the way to fix it? Locally I could never get anything to work when it happened until I did a reboot, but on CI it's not going to be effective.
| Assignee | ||
Updated•1 year ago
|
| Comment hidden (Intermittent Failures Robot) |
Comment 4•1 year ago
|
||
Nathan, is this the famous core22 to core24 migration issue?
Yes, it's https://launchpad.net/bugs/2072395.
And if so, what is the way to fix it?
None is known to date, which is why we are holding every snap away from core24 while Snapd folks fight the bug.
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
Description
•