"Error: write EINVAL" from every WebdriverIO worker on Ubuntu 26.04
ubuntu-latest is moving from Ubuntu 24.04 to 26.04 between October 19 and November 19, 2026 (what else changes). The xvfb package goes from 2:21.1.12 to 2:21.1.22 (Ubuntu's package list, November 4). WebdriverIO v9 starts each worker as xvfb-run ... node with its IPC channel on file descriptor 3, and the 26.04 xvfb-run does not keep that descriptor open for the command it runs. The worker's first message to the launcher fails, and no spec starts (webdriverio #15685).
What it looks like
[0-0] Error: write EINVAL [0-0] at target._send (node:internal/child_process:878:20) [0-0] at target.send (node:internal/child_process:751:19) [0-0] at file:///home/runner/work/app/app/node_modules/@wdio/local-runner/build/run.js:18:11 Spec Files: 0 passed, 3 failed, 3 total (100% completed) in 00:00:05
Every worker fails the same way within seconds, so the run reports every spec file as failed without a single test result. WebdriverIO's own Jasmine boilerplate hit it on its first runs on 26.04 (jasmine-boilerplate #1566).
When every WebdriverIO worker fails on Ubuntu 26.04: Pipeline Inbox for GitHub Actions Workflows, a plugin for JetBrains IDEs, lists the runs of all your repositories with their jobs and steps in an IDE tool window, so the end-to-end jobs that went red when ubuntu-latest moved stand out.
Who gets it
v9's local runner wraps workers in xvfb-run on Linux when there is no DISPLAY, and also when it sees a headless browser flag such as --headless (@wdio/xvfb). On a GitHub-hosted runner there is no DISPLAY, so the wrap happens for headless Chrome and Firefox, and for Appium and cloud capabilities that never use a local display at all.
Fix: update every @wdio package to 9.33.1
9.33.1 (November 3) keeps the IPC channel off the descriptor xvfb-run closes (webdriverio #16180). @wdio/local-runner pins @wdio/xvfb to its own version, so updating the runner brings the fix; keep all @wdio/* packages on the same version.
npm install --save-dev @wdio/cli@9.33.1 @wdio/local-runner@9.33.1
Add the framework, reporter and service packages you use to the same command. Two catches:
- npm's
latesttag points to v10 (10.1.0 for@wdio/cliand@wdio/local-runner), sonpm install @wdio/local-runner@latestis a major upgrade, not this fix. The fixed v9 is under thev9tag: name 9.33.1, use@v9, or runnpm updatewith your^9ranges, which picks 9.33.1 (the "Wanted" column ofnpm outdated). - 9.33.1 also narrows the Node.js versions it supports to releases with the October 2026 CA store fix: 18.20.8, 20.20.2, 22.23.4 or later 22.x, 24.22.1 or later 24.x, and 26.12.1 or later (webdriverio #16218).
actions/setup-nodewithnode-version: 24gets a recent 24.x; a pinned older patch release does not satisfy it, and package managers that enforceenginesstop the install.
Workarounds without updating
- Headless suites: set
autoXvfb: falseinwdio.conf. Headless browsers need no X server, and the runner then starts workers with a plainfork. - Suites that need a display: start one before the runner, so
DISPLAYis set and workers are not wrapped. For example run the whole command underxvfb-run --auto-servernum npx wdio run wdio.conf.js, or startXvfb :99 -screen 0 1280x1024x24 &and setDISPLAY=:99. runs-on: ubuntu-24.04for the test job, until GitHub retires that image.
v10, released on October 5 and now npm's latest, replaces @wdio/xvfb with @wdio/display-server, which fixes this according to the comments on webdriverio #15685.
Telling it apart
- The stack trace ends in
@wdio/local-runner/build/run.jsandSpec Files: 0 passedcomes within seconds: it is this. A spec that fails after the browser started is something else. - Your own scripts can hit the same thing: any Node.js program that spawns
xvfb-run node child.jswith an'ipc'entry instdiogetswrite EINVALon the child's firstprocess.sendon 26.04. The issue has a two-file reproduction;forkwithoutxvfb-runworks on both images. - Look at "Set up job": the Runner Image group shows the image. Until November 19 a re-run can land on 24.04 and pass, so a green re-run proves nothing.
Other 26.04 failures
- "does not have a Release file" on Ubuntu 26.04: apt.llvm.org has no clang 17 to 20 for
resoluteand the ondrej/php PPA nothing at all, soapt-get updateexits with code 100; installclang-17from Ubuntu, or move PHP to packages.sury.org. - "conda: command not found" on Ubuntu 26.04: the image has no Miniconda and
CONDAis empty, so steps that add$CONDA/binto the PATH, as GitHub's starter workflow and Microsoft's Azure Pipelines guide do, find no conda; install it with setup-miniconda or Miniforge. - ansible-test 2.22 and devel: "mount -o remount,rw /sys/fs/cgroup/ && pkill sleep" returned exit status 1: on the 7.0 azure kernel of the 24.04 and 26.04 images the default test container often fails to start, and re-runs rarely help; run those jobs on
ubuntu-22.04. - "MongoDB cannot start: Linux kernel versions 6.19 and newer": mongo:8.0 and mongo:8.3 read the 7.0 azure kernel of the 24.04 and 26.04 images as 7.0.0 and exit at startup; use mongo:9.0, or
ubuntu-22.04until 8.0.37 and 8.3.16. - "Unable to locate package linux-modules-extra-7.0.0-1017-azure": Ubuntu publishes no extras package for the 7.0 azure kernel, on the 24.04 and 26.04 images; modules such as
vcanare inlinux-modules, already installed, so skip the install and runmodprobe. - BPF on syscalls:sys_enter_* on GitHub's Ubuntu runners: kernel 7.0.0-1017-azure, on the 24.04 image and on the 26.04 images before the image of November 1 (now 7.0.0-1019-azure), runs these programs on one CPU only, so eBPF tests lose events without an error;
ubuntu-22.04is not affected. - PyCQA/bandit-action on Ubuntu 26.04: the action sets up Python 3.8 (3.9 on v1.0.1) with no input to change it, and setup-python has builds for 26.04 only from 3.10; run Bandit in your own steps.
- wg-quick "Permission denied" on Ubuntu 26.04: new AppArmor profiles let
wg-quickandwgread configuration and key files only under/etc/wireguard/, so awg0.confin the workspace fails even withsudo. - setup-swift on Ubuntu 26.04:
swift-actions/setup-swiftv2 stops with "Version "26.04" of Ubuntu is not supported", and swift.org has 26.04 builds only from Swift 6.4.0; use the image's Swift 6.4.2 or theswiftcontainer. - Docker-in-Docker on Ubuntu 26.04: the legacy iptables modules are not loaded, so a dockerd inside a container that uses
iptables-legacy, such as the dev container docker-in-docker feature:2or:3, fails with "can't initialize iptables table `nat'"; move the feature to:4or load the modules on the runner. - pg_dump 18 on Ubuntu 26.04: PostgreSQL on the image and from apt is 18, so dumps start with
SET transaction_timeout = 0and a PostgreSQL 16 service rejects them with "unrecognized configuration parameter". - Postgres never starts in Docker on Ubuntu 26.04: newer kernels such as 7.0.0-42 run container processes as
docker-default//&unconfined, so they cannot signal each other andgosuhangs at 100% CPU; reported on self-hosted runners so far. - "version `GLIBC_2.43' not found" after building on Ubuntu 26.04: glibc is 2.43, so binaries built there can need
GLIBC_2.42orGLIBC_2.43and fail to start on Ubuntu 24.04, Debian 13 and older; build releases on an older image and check the floor in CI. - Playwright on Ubuntu 26.04: Playwright 1.50 to 1.60 says it "does not support chromium on ubuntu26.04-x64".
- apt on Ubuntu 26.04: renamed and removed packages.
- "coreutils: unknown program": most core tools are uutils.
See failed jobs from IntelliJ IDEA
Pipeline Inbox for GitHub Actions Workflows, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, lists the runs of all your repositories in an IDE tool window, with their jobs and steps, and your current branch's runs are in the status bar. Reading is free; re-running failed jobs, cancelling, running workflows and reviewing deployments are Pro (US$1.50 a month, with a 30-day trial).
Get it on JetBrains Marketplace
GitHub and GitHub Actions are trademarks of GitHub, Inc.; Ubuntu is a trademark of Canonical Ltd.; Node.js is a trademark of the OpenJS Foundation; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with, sponsored or endorsed by GitHub, Inc., Canonical, the OpenJS Foundation, the WebdriverIO project or JetBrains.
More: "The ubuntu-latest label will migrate to Ubuntu 26" · Playwright on Ubuntu 26.04 · GitHub Actions plugins for IntelliJ IDEA compared · 日本語