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

fatal error: invalid node URL: "beacon:4000" #52

Open
mgcrea opened this issue Aug 17, 2020 · 1 comment
Open

fatal error: invalid node URL: "beacon:4000" #52

mgcrea opened this issue Aug 17, 2020 · 1 comment

Comments

@mgcrea
Copy link

mgcrea commented Aug 17, 2020

Not sure if I'm missing something but trying to run the eth2stats client inside a docker-compose along a working beacon (reachable at beacon:4000), I end up with the following error on startup:

prysm_eth2stats | time="2020-08-17T09:02:05Z" level=info msg="Could not load config file. Falling back to args. Error: Config File \"config\" Not Found in \"[/]\"" module=main
prysm_eth2stats | time="2020-08-17T09:02:05Z" level=fatal msg="[core] invalid node URL: \"beacon:4000\""

Compose block:

  stats:
    image: alethio/eth2stats-client:latest
    restart: always
    container_name: prysm_eth2stats
    hostname: prysm_eth2stats
    environment:
      - TZ=${TZ}
    volumes:
      - "./volumes/eth2stats/data:/data:rw"
    command:
      - run
      - --eth2stats.node-name="mgcrea-prysm-01"
      - --data.folder="/data"
      - --eth2stats.addr="grpc.medalla.eth2stats.io:443"
      - --eth2stats.tls=true
      - --beacon.type="prysm"
      - --beacon.addr="beacon:4000"
      - --beacon.metrics-addr="http://beacon:8080/metrics"
    depends_on:
      - beacon
@mgcrea
Copy link
Author

mgcrea commented Aug 18, 2020

Issue is that the CLI parser does not support the (maybe escaped by compose) double quotes: ".

This does work:

stats:
    image: alethio/eth2stats-client:latest
    restart: always
    container_name: prysm_eth2stats
    hostname: prysm_eth2stats
    environment:
      - TZ=${TZ}
    volumes:
      - "./volumes/eth2stats/data:/data:rw"
    command:
      - run
      - --eth2stats.node-name=mgcrea-prysm-01
      - --data.folder=/data
      - --eth2stats.addr=grpc.medalla.eth2stats.io:443
      - --eth2stats.tls=true
      - --beacon.type=prysm
      - --beacon.addr=beacon:4000
      - --beacon.metrics-addr=http://beacon:8080/metrics
    depends_on:
      - beacon

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

No branches or pull requests

1 participant