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] metrics not work in 2.42.0 release #7366

Closed
TangMonk opened this issue Apr 22, 2023 · 7 comments
Closed

[BUG] metrics not work in 2.42.0 release #7366

TangMonk opened this issue Apr 22, 2023 · 7 comments

Comments

@TangMonk
Copy link

TangMonk commented Apr 22, 2023

System information

Erigon version: 2.42.0

OS & Version: Linux

Concensus Layer: prysm

Chain/Network: Mainnet

Erigon Command (with flags/config): /mnt1/erigon-2.42.0 --config /mnt1/erigon.toml

erigon.toml config file:

datadir="/mnt1/archive"
port=30304

"authrpc.port"=8557
"authrpc.addr"="0.0.0.0"
"authrpc.vhosts"="*"
"authrpc.jwtsecret"="/home/david/ethereum/consensus2/jwt.hex"
externalcl=true

metrics=true
"metrics.addr"="0.0.0.0"

"torrent.port"=42071
"private.api.addr"="127.0.0.1:9091"
chain="mainnet"
http=true
ws=true
"http.addr"="0.0.0.0"
"http.api"=["eth","debug","net","trace","web3","erigon","admin", "txpool", "ots"]
"http.corsdomain"="*"
"http.port"=7546
$ curl http://localhost:6060/debug/metrics/prometheus
curl: (7) Failed to connect to localhost port 6060 after 0 ms: Connection refused
@TangMonk TangMonk changed the title metrics not work in 2.42.0 release [BUG] metrics not work in 2.42.0 release Apr 22, 2023
@AskAlexSharov
Copy link
Collaborator

  1. are you on same host with erigon? no docker?
  2. show erigon startup logs

@TangMonk
Copy link
Author

TangMonk commented Apr 23, 2023

  1. are you on same host with erigon? no docker?
  2. show erigon startup logs

no docker, start log is fine, nothing different

Apr 23 21:24:22 local-ubuntu systemd[1]: Started erigon.
Apr 23 21:24:22 local-ubuntu erigon-2.42.0[393482]: [WARN] [04-23|21:24:22.770] no log dir set, console logging only
Apr 23 21:24:22 local-ubuntu erigon-2.42.0[393482]: [WARN] [04-23|21:24:22.781] no log dir set, console logging only
Apr 23 21:24:22 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:22.781] Build info                               git_branch=HEAD git_tag=v2.42.0 git_commit=beb97784d43ece5acde365a74efe8763692ebdba
Apr 23 21:24:22 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:22.781] Starting Erigon on Ethereum mainnet...
Apr 23 21:24:22 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:22.800] Maximum peer count                       ETH=100 total=100
Apr 23 21:24:22 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:22.800] starting HTTP APIs                       APIs=eth,debug,net,trace,web3,erigon,admin,txpool,ots
Apr 23 21:24:22 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:22.800] torrent verbosity                        level=WRN
Apr 23 21:24:22 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:22.805] [torrent] Public IP                      ip=100.78.230.228
Apr 23 21:24:22 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:22.806] Set global gas cap                       cap=50000000
Apr 23 21:24:22 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:22.834] [Downloader] Runnning with               ipv6-enabled=true ipv4-enabled=true download.rate=16mb upload.rate=4mb
Apr 23 21:24:22 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:22.834] Opening Database                         label=chaindata path=/mnt1/archive/chaindata
Apr 23 21:24:22 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:22.836] Initialised chain configuration          config="{ChainID: 1, Homestead: 1150000, DAO: 1920000, DAO Support: true, Tangerine Whistle: 2463000, Spurious Dragon: 2675000, Byzantium: 4370000, Constantinople: 7280000, Petersburg: 7280000, Istanbul: 9069000, Muir Glacier: 9200000, Berlin: 12244000, London: 12965000, Arrow Glacier: 13773000, Gray Glacier: 15050000, Terminal Total Difficulty: 58750000000000000000000, Merge Netsplit: <nil>, Shanghai: 1681338455, Cancun: <nil>, Sharding: <nil>, Prague: <nil>, Engine: ethash}" genesis=0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3
Apr 23 21:24:22 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:22.836] Effective                                prune_flags= snapshot_flags="--snapshots=true" history.v3=false
Apr 23 21:24:29 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:29.168] Initialising Ethereum protocol           network=1
Apr 23 21:24:29 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:29.168] Disk storage enabled for ethash DAGs     dir=/mnt1/archive/ethash-dags count=2
Apr 23 21:24:29 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:29.425] Starting private RPC server              on=127.0.0.1:9091
Apr 23 21:24:29 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:29.425] new subscription to logs established
Apr 23 21:24:29 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:29.425] rpc filters: subscribing to Erigon events
Apr 23 21:24:29 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:29.425] New txs subscriber joined
Apr 23 21:24:29 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:29.425] new subscription to newHeaders established
Apr 23 21:24:29 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:29.426] Reading JWT secret                       path=/home/david/ethereum/consensus2/jwt.hex
Apr 23 21:24:29 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:29.426] HTTP endpoint opened for Engine API      url=[::]:8557 ws=true ws.compression=true
Apr 23 21:24:29 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:29.427] HTTP endpoint opened                     url=[::]:7546 ws=true ws.compression=true grpc=false
Apr 23 21:24:29 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:29.463] Mapped network port                      proto=tcp extport=30303 intport=30303 interface=NAT-PMP(192.168.50.1)
Apr 23 21:24:29 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:29.463] Mapped network port                      proto=udp extport=30303 intport=30303 interface=NAT-PMP(192.168.50.1)
Apr 23 21:24:29 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:29.463] Mapped network port                      proto=udp extport=30304 intport=30304 interface=NAT-PMP(192.168.50.1)
Apr 23 21:24:29 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:29.463] Mapped network port                      proto=tcp extport=30304 intport=30304 interface=NAT-PMP(192.168.50.1)
Apr 23 21:24:29 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:29.463] [txpool] Started
Apr 23 21:24:29 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:29.466] [1/15 Snapshots] Fetching torrent files metadata
Apr 23 21:24:29 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:29.524] Started P2P networking                   version=68 self=enode://719e45dad02438b16a6fac90800e64199c36fbf4070079b221f919db8e39e115eba17bcf357ac7a7c25f4c4e4e1219de9ade55a97c7d5dc474e11967ac4a4ddf@100.78.230.228:30304 name=erigon/v2.42.0-stable-beb97784/linux-amd64/go1.19.4
Apr 23 21:24:29 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:29.526] Started P2P networking                   version=67 self=enode://719e45dad02438b16a6fac90800e64199c36fbf4070079b221f919db8e39e115eba17bcf357ac7a7c25f4c4e4e1219de9ade55a97c7d5dc474e11967ac4a4ddf@100.78.230.228:30303 name=erigon/v2.42.0-stable-beb97784/linux-amd64/go1.19.4
Apr 23 21:24:29 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:29.588] [snapshots] Blocks Stat                  blocks=17019k indices=17019k alloc=2.5GB sys=2.7GB
Apr 23 21:24:29 local-ubuntu erigon-2.42.0[393482]: [INFO] [04-23|21:24:29.589] [2/15 Headers] Waiting for Consensus Layer...

@AskAlexSharov
Copy link
Collaborator

@TangMonk start log is fine - no.
there is no line about metrics server start. example:

INFO[04-24|10:22:36.575] Starting metrics server                  addr=http://127.0.0.1:6060/debug/metrics/prometheus

so, erigon doesn't see your --metrics flag

@AskAlexSharov
Copy link
Collaborator

I guess it's fixed by: #7089

@TangMonk
Copy link
Author

TangMonk commented Apr 24, 2023

So is this a confirmed issue? @AskAlexSharov

@github-actions
Copy link

github-actions bot commented Jun 4, 2023

This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Jun 4, 2023
@github-actions
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 12, 2023
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

2 participants