<p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: [what Playwright version do you use?] 1.24.1</li>
<li>Operating System: [e.g. Windows, Linux or Mac] Ubuntu 22.04</li>
<li>Node.js version: [e.g. 12.22, 14.6] 16.15.1</li>
<li>Browser: [e.g. All, Chromium, Firefox, WebKit] Webkit</li>
<li>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.</li>
</ul>
<p dir="auto"><strong>Code Snippet</strong></p>
<p dir="auto">Help us help you! Put down a short code snippet that illustrates your bug and<br>
that we can run and debug locally. For example:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { chromium, webkit, firefox, Browser, LaunchOptions, BrowserContext } from 'playwright';

let browserLaunchOptions = {
      headless: false,
      slowMo:  0,
      timeout: 30 * 1000
    };
let browserContext = await webkit.launch(browserLaunchOptions);"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">chromium</span><span class="pl-kos">,</span> <span class="pl-s1">webkit</span><span class="pl-kos">,</span> <span class="pl-s1">firefox</span><span class="pl-kos">,</span> <span class="pl-smi">Browser</span><span class="pl-kos">,</span> <span class="pl-smi">LaunchOptions</span><span class="pl-kos">,</span> <span class="pl-smi">BrowserContext</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'playwright'</span><span class="pl-kos">;</span>

<span class="pl-k">let</span> <span class="pl-s1">browserLaunchOptions</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
      <span class="pl-c1">headless</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
      <span class="pl-c1">slowMo</span>:  <span class="pl-c1">0</span><span class="pl-kos">,</span>
      <span class="pl-c1">timeout</span>: <span class="pl-c1">30</span> <span class="pl-c1">*</span> <span class="pl-c1">1000</span>
    <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">browserContext</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">webkit</span><span class="pl-kos">.</span><span class="pl-en">launch</span><span class="pl-kos">(</span><span class="pl-s1">browserLaunchOptions</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Describe the bug</strong><br>
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:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="browserType.launch: Timeout 30000ms exceeded.
=========================== logs ===========================
&lt;launching&gt; /home/&lt;username&gt;/.cache/ms-playwright/webkit-1683/pw_run.sh --inspector-pipe --headless --no-startup-window
&lt;launched&gt; pid=25328
============================================================
browserType.launch: Timeout 30000ms exceeded.
=========================== logs ===========================
&lt;launching&gt; /home/&lt;username&gt;/.cache/ms-playwright/webkit-1683/pw_run.sh --inspector-pipe --headless --no-startup-window
&lt;launched&gt; pid=25328"><pre class="notranslate"><code class="notranslate">browserType.launch: Timeout 30000ms exceeded.
=========================== logs ===========================
&lt;launching&gt; /home/&lt;username&gt;/.cache/ms-playwright/webkit-1683/pw_run.sh --inspector-pipe --headless --no-startup-window
&lt;launched&gt; pid=25328
============================================================
browserType.launch: Timeout 30000ms exceeded.
=========================== logs ===========================
&lt;launching&gt; /home/&lt;username&gt;/.cache/ms-playwright/webkit-1683/pw_run.sh --inspector-pipe --headless --no-startup-window
&lt;launched&gt; pid=25328
</code></pre></div>
<p dir="auto">Add any other details about the problem here.</p>
<h3 dir="auto">Workaround</h3>
<p dir="auto">Use <strong>Ubuntu 22</strong> to run the <strong>Ubuntu 22</strong> (jammy) container, then it works.<br>
Using Ubuntu 20 to run it, won't work and leads into this issue.<br>
Please upvote if you encounter this issue, this helps us to prioritise.</p>
<hr>
<p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: 1.23.0</li>
<li>Operating System: Linux</li>
<li>Python version: 3.10</li>
<li>Browser: Webkit</li>
</ul>
<p dir="auto"><strong>Code Snippet</strong><br>
pw.py</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="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__ == &quot;__main__&quot;:
    asyncio.run(run())"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">asyncio</span>
<span class="pl-k">from</span> <span class="pl-s1">playwright</span>.<span class="pl-s1">async_api</span> <span class="pl-k">import</span> <span class="pl-s1">async_playwright</span>


<span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">run</span>():
    <span class="pl-k">async</span> <span class="pl-k">with</span> <span class="pl-en">async_playwright</span>() <span class="pl-k">as</span> <span class="pl-s1">playwright</span>:
        <span class="pl-k">await</span> <span class="pl-s1">playwright</span>.<span class="pl-s1">webkit</span>.<span class="pl-en">launch</span>(<span class="pl-s1">headless</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)

<span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">"__main__"</span>:
    <span class="pl-s1">asyncio</span>.<span class="pl-en">run</span>(<span class="pl-en">run</span>())</pre></div>
<p dir="auto">Dockerfile</p>
<div class="highlight highlight-source-dockerfile notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="FROM snakepacker/python:3.10

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

ADD ./pw.py pw.py
CMD python3 pw.py"><pre class="notranslate"><span class="pl-k">FROM</span> snakepacker/python:3.10

<span class="pl-k">RUN</span> apt-install python3-pip &amp;&amp; \
    pip install playwright==1.23.0 &amp;&amp; \
    playwright install --with-deps webkit

<span class="pl-k">ADD</span> ./pw.py pw.py
<span class="pl-k">CMD</span> python3 pw.py</pre></div>
<p dir="auto"><strong>Describe the bug</strong></p>
<p dir="auto">playwright times out starting webkit</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="docker build -t test-pw . &amp;&amp; docker run test-pw"><pre class="notranslate">docker build -t test-pw <span class="pl-c1">.</span> <span class="pl-k">&amp;&amp;</span> docker run test-pw</pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
  File &quot;//pw.py&quot;, line 11, in &lt;module&gt;
    asyncio.run(run())
  File &quot;/usr/lib/python3.10/asyncio/runners.py&quot;, line 44, in run
    return loop.run_until_complete(main)
  File &quot;/usr/lib/python3.10/asyncio/base_events.py&quot;, line 646, in run_until_complete
    return future.result()
  File &quot;//pw.py&quot;, line 8, in run
    await playwright.webkit.launch(headless=True)
  File &quot;/usr/local/lib/python3.10/dist-packages/playwright/async_api/_generated.py&quot;, line 11399, in launch
    await self._impl_obj.launch(
  File &quot;/usr/local/lib/python3.10/dist-packages/playwright/_impl/_browser_type.py&quot;, line 93, in launch
    Browser, from_channel(await self._channel.send(&quot;launch&quot;, params))
  File &quot;/usr/local/lib/python3.10/dist-packages/playwright/_impl/_connection.py&quot;, line 43, in send
    return await self._connection.wrap_api_call(
  File &quot;/usr/local/lib/python3.10/dist-packages/playwright/_impl/_connection.py&quot;, line 370, in _
    return await result
  File &quot;/usr/local/lib/python3.10/dist-packages/playwright/_impl/_connection.py&quot;, line 78, in inner_send
    result = next(iter(done)).result()
playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded.
=========================== logs ===========================
&lt;launching&gt; /root/.cache/ms-playwright/webkit-1668/pw_run.sh --inspector-pipe --headless --no-startup-window
&lt;launched&gt; pid=440
============================================================"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
  File "//pw.py", line 11, in &lt;module&gt;
    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 ===========================
&lt;launching&gt; /root/.cache/ms-playwright/webkit-1668/pw_run.sh --inspector-pipe --headless --no-startup-window
&lt;launched&gt; pid=440
============================================================
</code></pre></div>