sockpuppetbrowser icon indicating copy to clipboard operation
sockpuppetbrowser copied to clipboard

ERR_NAME_NOT_RESOLVED

Open thyeestes opened this issue 1 year ago • 7 comments

I am experiencing a strange issue with running this in a Podman container. When I use this image then I get ERR_NAME_NOT_RESOLVED error, e.g. with this site https://www.asuswrt-merlin.net/.

When I use a browserless image like ghcr.io/browserless/chrome:latest it renders just fine.

Any ideas how to solve?

Thanks

thyeestes avatar Jul 30 '24 12:07 thyeestes

Hmm not enough information, can you show the whole docker-compose.yml ?

dgtlmoon avatar Jul 30 '24 13:07 dgtlmoon

Sure. However I am using Podman quadlets: `[Container] #Image=ghcr.io/browserless/chrome:latest Image=docker.io/dgtlmoon/sockpuppetbrowser:latest AddCapability=SYS_ADMIN AutoUpdate=registry ContainerName=cd-browserless Network=proxy.network Environment=TZ=Europe/Amsterdam Environment=SCREEN_WIDTH=1920 Environment=SCREEN_HEIGHT=1080 Environment=SCREEN_DEPTH=24 Environment=MAX_CONCURRENT_CHROME_PROCESSES=10 Environment=ENABLE_DEBUGGER=false Environment=PREBOOT_CHROME=true Environment=CONNECTION_TIMEOUT=300000 Environment=MAX_CONCURRENT_SESSIONS=10 Pod=changedetection.pod

[Container] Image=docker.io/dgtlmoon/changedetection.io:latest AutoUpdate=registry ContainerName=cd-changedetection Network=proxy.network Volume=$PWD/changedetection:/datastore Environment=TZ=Europe/Amsterdam Environment=LOGGER_LEVEL=DEBUG Environment=PLAYWRIGHT_DRIVER_URL=ws://cd-browserless:3000 #Environment=PLAYWRIGHT_DRIVER_URL=ws://cd-browserless:3000/chrome?launch={"headless":false} Pod=changedetection.pod`

thyeestes avatar Jul 30 '24 13:07 thyeestes

I'm also using a Podman quadlet with Environment=PLAYWRIGHT_DRIVER_URL=ws://sockpuppetbrowser:3000 and seeing the same Exception: net::ERR_NAME_NOT_RESOLVED

My host is Fedora CoreOS and I see the last email received from changedetection.io was August 16th, with a host reboot on the 17th.

This appears to be a Podman, netavark, and/or passt issue. I just opened the following hoping the FCOS team can reproduce the issue and possibly expedite the promotion of testing to stable : https://github.com/coreos/fedora-coreos-tracker/issues/1790

skyblaster avatar Aug 31 '24 21:08 skyblaster

I switched to slirp4netns, because of an issue with socket activation and Traefik, so I think you can take passt out of equation.

thyeestes avatar Sep 02 '24 10:09 thyeestes

Having the same issue. I use docker and traefik reverse proxy. It used to work just fine, did not change anything in the docker-compose but now all requests via sockpuppet fail with this error

FlorentLM avatar Dec 01 '24 16:12 FlorentLM

I'm having the same issue, I'm running on NixOS with docker..

And I'm fairy certain it's something inside this container that causes the issue, if I jump into it and run

$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
ping: sendto: Network unreachable

If I do the exact same thing inside changedetection it works as expected:

ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=111 time=11.7 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=111 time=11.2 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=111 time=11.3 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=111 time=11.3 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=111 time=11.3 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=111 time=11.2 ms
^C
--- 8.8.8.8 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5007ms
rtt min/avg/max/mdev = 11.211/11.341/11.659/0.150 ms

Just a guess this image is based on alpine while changedetection is debian based, I have had dns issues with alpine based images before, any chance @dgtlmoon could try to release a version that is debian based? (or at least not alpine based) and see if that resolves the issue?

AnderssonPeter avatar Apr 24 '25 17:04 AnderssonPeter

I had the same problem and I just discovered after an hour of debugging that I had the "internal" network marked as internal: true and therefore the browser container was not allowed to reach the internet 🤦‍♂️ .

Before:

  ...

  sockpuppetbrowser:
    image: dgtlmoon/sockpuppetbrowser:latest
    ...
    networks:
      - changedetection-internal

networks:
  proxy:
    external: true
  changedetection-internal:
    internal: true

After:

  ...

  sockpuppetbrowser:
    image: dgtlmoon/sockpuppetbrowser:latest
    ...
    networks:
      - changedetection-internal

networks:
  proxy:
    external: true
  changedetection-internal:

robinvalk avatar Sep 05 '25 21:09 robinvalk