chromium-bundled image missing Patchright browser binary and all Patchright-dependent routes fail
- Dominant language
- TypeScript
- Stars
- 46.2k
- Forks
- 10.2k
- Avg merge
- 8h 48m
- Merged PRs (30d)
- 175
Description
### Routes
```routes
NOROUTE
```
### Full routes
```fullroutes
NOROUTE
```
### Related documentation
https://docs.rsshub.app/deploy/
### What is expected?
Routes requiring browser automation (e.g. /bilibili/user/collection/:uid/:aid)
should work in the `chromium-bundled` image, since that image is specifically
meant to include browser support.
### What is actually happening?
Any route that uses Patchright for browser automation fails with:
error: Error in /bilibili/user/collection/4963278/380944: Error: browserType.launch:
Executable doesn't exist at /root/.cache/ms-playwright/
chromium_headless_shell-1223/chrome-headless-shell-linux64/chrome-headless-shell
╔════════════════════════════════════════════════════════════╗
║ Looks like Playwright was just installed or updated. ║
║ Please run the following command to download new browsers: ║
║ npx playwright install ║
║ <3 Patchright Team ║
╚════════════════════════════════════════════════════════════╝
......
Seems like it is patchright npm package, not the official playwright package. I am guessing that the chromium-bundled Dockerfile likely misses the Patchright package? Just my guess.
### Deployment information
Self-hosted
### Deployment information (for self-hosted)
self-hosted via PikaPods
### Additional info
```shell
error: Error in /bilibili/user/collection/4963278/380944: Error: browserType.launch: Executable doesn't exist at /root/.cache/ms-playwright/chromium_headless_shell-1223/chrome-headless-shell-linux64/chrome-headless-shell
╔════════════════════════════════════════════════════════════╗
║ Looks like Playwright was just installed or updated. ║
║ Please run the following command to download new browsers: ║
║ ║
║ npx playwright install ║
║ ║
║ <3 Patchright Team ║
╚════════════════════════════════════════════════════════════╝
```
### This is not a duplicated issue
- [x] I have searched [existing issues](https://github.com/DIYgod/RSSHub/issues) to ensure this bug has not already been reported
Contributor guide
Research direction
Start by inspecting the chromium-bundled image build and its Patchright/browser installation; use /bilibili/user/collection/:uid/:aid to reproduce the missing executable error. Done means the image contains the executable expected by Patchright and browser-automation routes work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, typescript
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100