Issue 1:
Context:

Playwright Version: [what Playwright version do you use?] 1.24.1

Operating System: [e.g. Windows, Linux or Mac] Ubuntu 22.04

Node.js version: [e.g. 12.22, 14.6] 16.15.1

Browser: [e.g. All, Chromium, Firefox, WebKit] Webkit

Extra: [any specific details about your environment] I am running a ubuntu 22 docker image and have playwright and nodejs installed. I am able to launch chrome browser but launching webkit constantly fails.

Code Snippet

Help us help you! Put down a short code snippet that illustrates your bug and

that we can run and debug locally. For example:

import { chromium, webkit, firefox, Browser, LaunchOptions, BrowserContext } from 'playwright';

let browserLaunchOptions = {
headless: false,
slowMo: 0,
timeout: 30 * 1000
};
let browserContext = await webkit.launch(browserLaunchOptions);

Describe the bug

My environment: docker image(ubuntu 22.04) running playwright(v1.24.1) and nodejs(16.15.1). I am having trouble running tests against webkit. It fails each time with the following error:

browserType.launch: Timeout 30000ms exceeded.
=========================== logs ===========================
<launching> /home/<username>/.cache/ms-playwright/webkit-1683/pw_run.sh --inspector-pipe --headless --no-startup-window
<launched> pid=25328
============================================================
browserType.launch: Timeout 30000ms exceeded.
=========================== logs ===========================
<launching> /home/<username>/.cache/ms-playwright/webkit-1683/pw_run.sh --inspector-pipe --headless --no-startup-window
<launched> pid=25328

Add any other details about the problem here.

Issue 2:
Workaround

Use Ubuntu 22 to run the Ubuntu 22 (jammy) container, then it works.

Using Ubuntu 20 to run it, won't work and leads into this issue.

Please upvote if you encounter this issue, this helps us to prioritise.

Context:

Playwright Version: 1.23.0

Operating System: Linux

Python version: 3.10

Browser: Webkit

Code Snippet

pw.py

import asyncio
from playwright.async_api import async_playwright

async def run():
async with async_playwright() as playwright:
await playwright.webkit.launch(headless=True)

if __name__ == "__main__":
asyncio.run(run())

Dockerfile

FROM snakepacker/python:3.10

RUN apt-install python3-pip && \
pip install playwright==1.23.0 && \
playwright install --with-deps webkit

ADD ./pw.py pw.py
CMD python3 pw.py

Describe the bug

playwright times out starting webkit

docker build -t test-pw . && docker run test-pw

Traceback (most recent call last):
File "//pw.py", line 11, in <module>
asyncio.run(run())
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "//pw.py", line 8, in run
await playwright.webkit.launch(headless=True)
File "/usr/local/lib/python3.10/dist-packages/playwright/async_api/_generated.py", line 11399, in launch
await self._impl_obj.launch(
File "/usr/local/lib/python3.10/dist-packages/playwright/_impl/_browser_type.py", line 93, in launch
Browser, from_channel(await self._channel.send("launch", params))
File "/usr/local/lib/python3.10/dist-packages/playwright/_impl/_connection.py", line 43, in send
return await self._connection.wrap_api_call(
File "/usr/local/lib/python3.10/dist-packages/playwright/_impl/_connection.py", line 370, in _
return await result
File "/usr/local/lib/python3.10/dist-packages/playwright/_impl/_connection.py", line 78, in inner_send
result = next(iter(done)).result()
playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded.
=========================== logs ===========================
<launching> /root/.cache/ms-playwright/webkit-1668/pw_run.sh --inspector-pipe --headless --no-startup-window
<launched> pid=440
============================================================