Changedetection.io: Add browserless.service CONNECTION_TIMEOUT environment variable to counter "Target page, context or browser has been closed" errors on slower systems #820

Closed
opened 2026-02-04 21:42:27 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @Denny-89 on GitHub (Apr 16, 2025).

🌟 Briefly describe the feature

Set a CONNECTION_TIMEOUT environment variable inside browserless.service

📝 Detailed description

I'm using an older system (Celeron J1900, 16GB ram) and i've kept getting a "Target page, context or browser has been closed" error on every site that was set to use the Playwright Chromium fetcher since i've migrated Changedetection from my 2 years old DIY LXC to a community helper script LXC (i did that for easier updating).

When comparing both, i've noticed my DIY LXC's browserless.service contains Environment=CONNECTION_TIMEOUT=60000 under [Service] while the community script one doesn't. After adding that line and restarting the LXC, all sites work without problems.

After looking up the issue in the changedetection.io Github repo i've found out that some people even suggest setting a 300s (300000) timeot.

💡 Why is this useful?

Slower systems don't get a "Target page, context or browser has been closed" error when fetching changes with Playwright Chromium.

Originally created by @Denny-89 on GitHub (Apr 16, 2025). ### 🌟 Briefly describe the feature Set a CONNECTION_TIMEOUT environment variable inside browserless.service ### 📝 Detailed description I'm using an older system (Celeron J1900, 16GB ram) and i've kept getting a "Target page, context or browser has been closed" error on every site that was set to use the Playwright Chromium fetcher since i've migrated Changedetection from my 2 years old DIY LXC to a community helper script LXC (i did that for easier updating). When comparing both, i've noticed my DIY LXC's `browserless.service` contains `Environment=CONNECTION_TIMEOUT=60000` under `[Service]` while the community script one doesn't. After adding that line and restarting the LXC, all sites work without problems. After looking up the issue in the changedetection.io Github repo i've found out that some people even suggest setting a 300s (300000) timeot. ### 💡 Why is this useful? Slower systems don't get a "Target page, context or browser has been closed" error when fetching changes with Playwright Chromium.
OVERLORD added the enhancement label 2026-02-04 21:42:27 +03:00
Author
Owner

@tremor021 commented on GitHub (Apr 18, 2025):

Service file updated. Should be fixed after #3935 merges

@tremor021 commented on GitHub (Apr 18, 2025): Service file updated. Should be fixed after #3935 merges
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#820