this post was submitted on 30 Jun 2024
12 points (100.0% liked)

Selfhosted

37748 readers
664 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

I used Docker Compose to install and run changedetection.io and everything's working nice, but I want to enable Playwright content fetcher so I can specify when I want to be notified, and not just to be notified when there are even changes in the code of the site.

I can toggle an option in the changedetection settings to use WebDriver Chrome/Javascript instead of the default Basic fast Plaintext/HTTP Client, but when I tried to use the Visual Filter Selection within a watched item it tells me that:

Sorry, this functionality only works with Playwright/Chrome enabled watches. Enable the Playwright Chrome fetcher, or alternatively try our very affordable subscription based service. This is because Selenium/WebDriver can not extract full page screenshots reliably.

And honestly I want to try this to myself, not to just pay a subscription and that's it. So, I keep up and read through their wiki and according to their own wiki while using a docker compose based Change Detection service (as I am) to enable Playwright content fetcher it's as simple as:

In docker-compose.yml uncomment PLAYWRIGHT_DRIVER_URL under environment, and the playwright-chrome section under services.

I already tried that and toggle the fetching method to WebDriver Chrome/Javascript, but now instead of just not letting me using the Visual Filter Selection because of while trying to fetch any site it gives me this error:

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

But before of doing these changes I didn't receive any error message and everything works nice, so possibly I'm doing something wrong... Here is the pastebin of the docker-compose file that I edited, I won't share it here because the format fucked the whole code.

top 6 comments
sorted by: hot top controversial new old
[–] just_another_person 1 points 2 days ago (2 children)

The chrome instance is commented out...

[–] [email protected] 1 points 1 day ago (1 children)

I tried to uncomment it and now I get this message when I try to start the service:

service "changedetection" refers to undefined volume WEBDRIVER_URL=http: invalid compose project

[–] just_another_person 1 points 1 day ago* (last edited 1 day ago) (1 children)

Bud, if you don't know how to read and understand your own logs, I can't step through this entire thing with you. It's literally telling you exactly what is wrong.

[–] [email protected] 1 points 1 day ago (1 children)

Sorry, I just started selfhosting and even reading that I don't understand.

[–] just_another_person 2 points 1 day ago* (last edited 1 day ago)

Search for the word "changedetection" in your compose file, then find out why it thinks you have a volume named WEB_DRIVER

I'd assume your formatting is off.

[–] [email protected] 1 points 2 days ago

Ups, you're right although I think I had already uncommented it without success, in a couple of hours I'll let you know if that solves it.