PowerLoom / snapshotter-lite-v2

Snapshotter Lite: New Protocol
Apache License 2.0
3 stars 1 forks source link

Proto V2: host.docker.internal unreachable on certain OS's #44

Closed Seth-Schmidt closed 3 weeks ago

Seth-Schmidt commented 3 weeks ago

Describe the bug

Some node operators have reported that their node is failing to submit the test submissions on startup. The node fails to resolve the host.docker.internal hostname for the local collector, causing the retries to exhaust and throw an error.

To Reproduce

Affected versions: fa7346af5fbaf9d0ec80c6943261637787713993

Steps to reproduce the behavior:

  1. Clone the snapshotter-lite-v2 repo into a Linux distribution. (I reproduced with Ubuntu 24.04 (LTS) x64)
  2. Proceed with setup as normal following: https://docs.powerloom.io/docs/build-with-powerloom/snapshotter-node/lite-node-v2/getting-started
  3. The node should fail to send the simulation submissions after running ./build.sh and throw [Errno -2] Name or service not known

Expected behavior The node should successfully connect to the local collector and send submissions.

Proposed Solution The docker-compose.yaml should be updated with the extra_hosts field to support operating systems that cannot resolve host.docker.internal.

Caveats N/A

Additional context N/A