Self Checks
Dify version
1.10
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
- Deploy Dify on Kubernetes using the official image
- Update sandbox config: extended allowed_system to large list(0-440) and update python_lib_path as below:
- /usr/local/lib/python3.10/site-packages
- /usr/local/lib/python3.10/site-packages/playwright
- /usr/local/lib/python3.10/site-packages/playwright/driver
- /usr/bin
- /bin
- /tmp
- /dev/shm
- /root/.cache/ms-playwright
- /var/sandbox
- Add playwright for pip install
- Install necessary package for playwright
- Run playwright install --with-deps chromium
✔️ Expected Behavior
Playwright should successfully launch Chromium (or other browsers) inside the sandbox, and correctly resolving and executing the bundled node binary from playwright/driver/node (ARM64)
❌ Actual Behavior
When trying to use Playwright in a Python Code node, launching the browser always fails with:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.10/site-packages/playwright/driver/node'
Self Checks
Dify version
1.10
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Expected Behavior
Playwright should successfully launch Chromium (or other browsers) inside the sandbox, and correctly resolving and executing the bundled node binary from playwright/driver/node (ARM64)
❌ Actual Behavior
When trying to use Playwright in a Python Code node, launching the browser always fails with:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.10/site-packages/playwright/driver/node'