Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Playwright Connection Error #19

Closed
1 task done
JonLaliberte opened this issue Apr 30, 2024 · 5 comments
Closed
1 task done

[BUG] Playwright Connection Error #19

JonLaliberte opened this issue Apr 30, 2024 · 5 comments

Comments

@JonLaliberte
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Exception: HTTPConnectionPool(host='browser-chrome', port=4444): Max retries exceeded with url: /wd/hub/session (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x761ea384da90>: Failed to establish a new connection: [Errno -3] Try again'))

Expected Behavior

No response

Steps To Reproduce

Fresh install (docker compose)
I changed to use WebDriver Chrome/Javascript in Settings.

Environment

- OS: Ubuntu 22.04
- How docker service was installed: distro's packagemanager

CPU architecture

x86-64

Docker creation

changedetection.io:
    image: lscr.io/linuxserver/changedetection.io:latest
    container_name: changedetection
    environment:
      - PUID=1010
      - PGID=1010
      - TZ=America/New_York
      - BASE_URL= https://changedetection.myserver.io/
    volumes:
      - /opt/appdata/changedetection/config:/config
    ports:
      - 5000:5000
    restart: unless-stopped

Container logs

[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1010
User GID:    1010
───────────────────────────────────────

[custom-init] No custom files found, skipping...
2024-04-30 16:05:00.886 | INFO     | changedetectionio.store:__init__:45 - Datastore path is '/config/url-watches.json'
2024-04-30 16:05:00.886 | DEBUG    | changedetectionio.model.Watch:history:218 - Reading watch history index for f54e629f-618c-4e94-9de8-ba324d3c8891
2024-04-30 16:05:00.887 | INFO     | changedetectionio.store:__init__:86 - Watching: f54e629f-618c-4e94-9de8-ba324d3c8891 https://news.ycombinator.com/
2024-04-30 16:05:00.887 | INFO     | changedetectionio.store:__init__:86 - Watching: 9b795ce4-ba3f-4f03-9fbd-ba55450cb962 https://site.com
2024-04-30 16:05:00.887 | INFO     | changedetectionio.store:sync_to_json:420 - Saving JSON..
(144) wsgi starting up on http://0.0.0.0:5000
2024-04-30 16:05:00.906 | DEBUG    | changedetectionio.content_fetchers:<module>:41 - Falling back to selenium as fetcher
2024-04-30 16:05:00.907 | DEBUG    | changedetectionio.flask_app:ticker_thread_check_time_launch_checks:1677 - System env MINIMUM_SECONDS_RECHECK_TIME 20
(144) accepted ('127.0.0.1', 38716)
Connection to localhost (127.0.0.1) 5000 port [tcp/*] succeeded!
[ls.io-init] done.
(144) accepted ('172.18.0.12', 51196)
xxx.xxx.xxx.xxx,y.y.y.y,172.18.0.12 - - [30/Apr/2024 16:05:20] "GET / HTTP/1.1" 200 8084 0.103389
(144) accepted ('172.18.0.12', 51200)
xxx.xxx.xxx.xxx,162.158.158.135,172.18.0.12 - - [30/Apr/2024 16:05:20] "GET /static/favicons/site.webmanifest HTTP/1.1" 304 342 0.004145
(144) accepted ('172.18.0.12', 51202)
xxx.xxx.xxx.xxx,y.y.y.y,172.18.0.12 - - [30/Apr/2024 16:05:24] "GET /api/checknow?uuid=9b795ce4-ba3f-4f03-9fbd-ba55450cb962 HTTP/1.1" 302 651 0.003816
(144) accepted ('172.18.0.12', 51212)
xxx.xxx.xxx.xxx,y.y.y.y,172.18.0.12 - - [30/Apr/2024 16:05:24] "GET / HTTP/1.1" 200 8328 0.018804
(144) accepted ('172.18.0.12', 51218)
xxx.xxx.xxx.xxx,162.158.158.135,172.18.0.12 - - [30/Apr/2024 16:05:24] "GET /static/favicons/site.webmanifest HTTP/1.1" 304 342 0.002975
2024-04-30 16:05:24.911 | INFO     | changedetectionio.update_worker:run:248 - Processing watch UUID 9b795ce4-ba3f-4f03-9fbd-ba55450cb962 Priority 1 URL https://site.com
(144) accepted ('172.18.0.12', 42368)
xxx.xxx.xxx.xxx,y.y.y.y,172.18.0.12 - - [30/Apr/2024 16:05:43] "GET / HTTP/1.1" 200 8108 0.003705
(144) accepted ('172.18.0.12', 42384)
xxx.xxx.xxx.xxx,y.y.y.y.,172.18.0.12 - - [30/Apr/2024 16:05:43] "GET /static/favicons/site.webmanifest HTTP/1.1" 304 342 0.000738
2024-04-30 16:05:44.973 | ERROR    | changedetectionio.update_worker:run:463 - Exception reached processing watch UUID: 9b795ce4-ba3f-4f03-9fbd-ba55450cb962
2024-04-30 16:05:44.973 | ERROR    | changedetectionio.update_worker:run:464 - HTTPConnectionPool(host='browser-chrome', port=4444): Max retries exceeded with url: /wd/hub/session (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75f8dd067910>: Failed to establish a new connection: [Errno -3] Try again'))
2024-04-30 16:05:44.974 | DEBUG    | changedetectionio.update_worker:run:541 - Watch 9b795ce4-ba3f-4f03-9fbd-ba55450cb962 done in 20.06s
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@JonLaliberte
Copy link
Author

I'm wondering if although Playwright is installed in the container now, if I still need to add a separate container for the browser itself and point to it in the environment variables?

@thespad
Copy link
Member

thespad commented Apr 30, 2024

Yes, you do. Shipping a browser with the image would add the best part of a gig to its size and people would just complain it wasn't the browser they wanted.

@j0nnymoe
Copy link
Member

As mentioned in the readme, it has the playwrite content fetcher: https://github.com/dgtlmoon/changedetection.io/wiki/Playwright-content-fetcher

@JonLaliberte
Copy link
Author

JonLaliberte commented Apr 30, 2024

Thanks, sorry about that. I was thinking that Playwright contained the browser as well.
The combination of lsio docs + original project docs was a bit confusing, since they conflict in some places - specifically regarding Playwright being installed/needing to be installed.

All makes sense now though. Thanks again.

I added a post on the forum here: https://discourse.linuxserver.io/t/changedetection-io-playwright-configuration-with-docker-compose/8866

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants