mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-14 05:02:01 -06:00
[PR #14044] [CLOSED] fix(playwright): force browser path to /ms-playwright to prevent npx temp install issues #62222
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/14044
Author: @gunjubas
Created: 5/19/2025
Status: ❌ Closed
Base:
main← Head:fix-playwright-compose-browser-path📝 Commits (1)
87c1a11Update docker-compose.playwright.yaml📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
docker-compose.playwright.yaml(+2 -0)📄 Description
fix(playwright): force browser path to /ms-playwright to prevent npx temp install issues
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
We're currently using npx playwright@1.49.1 run-server inside a Docker container based on the official mcr.microsoft.com/playwright:v1.49.1-noble image. This image already includes preinstalled browser binaries under /ms-playwright.
Executable doesn't exist at /root/.npm/_npx/xyz/node_modules/playwright-core/.local-browsers/chromium...Proposed Change:
To avoid unnecessary browser reinstallation and fix these runtime errors, we propose explicitly setting the following environment variable in the Docker Compose configuration
PLAYWRIGHT_BROWSERS_PATH=/ms-playwrightThis ensures Playwright will use the preinstalled Chromium at /ms-playwright (as intended by the base image) rather than looking in a temp directory.
Added
PLAYWRIGHT_BROWSERS_PATH=/ms-playwrightin Docker Compose to explicitly define the browser installation path.Changed
npx playwright@1.49.1 run-serverto ensure it uses the system-installed Chromium from/ms-playwrightinstead of attempting temporary browser installs.Fixed
Executable doesn't exist at /root/.npm/_npx/.../.local-browsers/chromium_headless_shell...Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.