Cannot connect to GRPC port when node is running
fussybeaver opened this issue · 4 comments
I have a node running (fussybeaver
on the dashboard). Logs of the first 100 lines: https://gist.github.com/fussybeaver/68a32d24479d753834a58ba2c9275457
However, I cannot use concordium-client
properly:
concordium-client consensus status
Error: I/O error: Cannot establish connection to GRPC endpoint.
netstat shows port 10000 is not open (only port 8888). I'm running Arch Linux kernel 5.10.17-1-lts.
The concordium-client will by default try to connect to localhost on port 10000. Localhost is almost always 127.0.0.1, but it could be configured differently on your system. Try changing IP and/or port by using --grpc-ip
and --grpc-port
flags.
@fussybeaver, just saw that you discussed the issue already to some extend in discord. So I guess setting the flags as mentioned in my previous post doesn't help?
Ah yes, setting the flags does indeed work:
concordium-client --grpc-ip 127.0.0.1 --grpc-port 10000 consensus status
Best block: 4e1ded5ed0ef0c7c955f7b4abd6fd6b4c0e5f9161517440d4c5bcdb513adb5d7
Genesis block: 0b525cb7b154386b37b735e176cf7106aa0ff37cf061f1f7c3903be62fe12cf1
Genesis time: 2021-01-13 11:00:00 UTC
Slot duration: 250
Epoch duration: 3600000
Last finalized block: 4e1ded5ed0ef0c7c955f7b4abd6fd6b4c0e5f9161517440d4c5bcdb513adb5d7
Best block height: 314469
Last finalized block height: 314469
Blocks received count: 372
Block last received time: Wed, 24 Feb 2021 08:39:29 UTC
Block receive latency: 265 ms (EMA), 1899 ms (EMSD)
Block receive period: 11504 ms (EMA), 16687 ms (EMSD)
Blocks verified count: 372
Block last arrived time: Wed, 24 Feb 2021 08:39:29 UTC
Block arrive latency: 280 ms (EMA), 1900 ms (EMSD)
Block arrive period: 11504 ms (EMA), 16696 ms (EMSD)
Transactions per block: 0.865 (EMA), 1.508 (EMSD)
Finalization count: 357
Last finalized time: Wed, 24 Feb 2021 08:39:29 UTC
Finalization period: 14035 ms (EMA), 17976 ms (EMSD)
seems to be working now.. I'll close this