Skip to content

[Bug]: The docker image does not launch since 0.9.1 #2064

Description

@8176135

crawl4ai version

0.9.1

Expected Behavior

Following the install guide:

docker run -d \
  -p 11235:11235 \
  --name crawl4ai \
  --shm-size=1g \
  unclecode/crawl4ai:latest

should work.

Current Behavior

However it repeatedly crashes, downgrading to 0.9.0's image works fine.

Issue seems to be:

playwright._impl._errors.Error: BrowserType.launch: Executable doesn't exist at /home/appuser/.cache/ms-playwright/chromium_headless_shell-1228/chrome-headless-shell-linux64/chrome-headless-shell

where it's looking for the headless-shell. However in your Dockerfile it's only copying the full chrome binary, so it doesn't exist, and crashes.

Is this reproducible?

Yes

Inputs Causing the Bug

Steps to Reproduce

Code snippets

OS

Linux

Python version

Whatever version is bundled inside the docker image

Browser

No response

Browser version

No response

Error logs & Screenshots (if applicable)

I am running podman instead of docker, but I believe the same issue would occur in docker as downgrading to 0.9.0 works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚙ DoneBug fix, enhancement, FR that's completed pending release🐞 BugSomething isn't working📌 Root causedidentified the root cause of bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions