ceremonyclient icon indicating copy to clipboard operation
ceremonyclient copied to clipboard

Problem with fetching balance

Open ThePatrykOOO opened this issue 1 year ago • 6 comments

I have problem with fetching balance. My docker is running properly. Look at below. Repo is up to date

~/ceremonyclient# docker-compose exec node go run ./... -balance
panic: error getting token info: rpc error: code = Unknown desc = get token info: get highest candidate data clock frame: item not found

goroutine 1 [running]:
main.main()
	/opt/ceremonyclient/node/main.go:101 +0x7f4
exit status 2

ThePatrykOOO avatar Feb 27 '24 13:02 ThePatrykOOO

Please see this https://github.com/QuilibriumNetwork/ceremonyclient/issues/54. It takes some time for your node to be synced.

sercanCyberVision avatar Feb 27 '24 14:02 sercanCyberVision

~/ceremonyclient# nc -zv 0.0.0.0 8337
Connection to 0.0.0.0 8337 port [tcp/*] succeeded!
root@quadlirium-2:~/ceremonyclient# docker-compose exec node go run ./... -balance
panic: error getting token info: rpc error: code = Unknown desc = get token info: get highest candidate data clock frame: item not found

goroutine 1 [running]:
main.main()
	/opt/ceremonyclient/node/main.go:101 +0x7f4
exit status 2

ThePatrykOOO avatar Feb 27 '24 17:02 ThePatrykOOO

@ThePatrykOOO, based on my limited experience, you are good. Your node is connected, it will take 4-5 hours (depends on network) for node to be synced. After that you will see your balance as zero.

sercanCyberVision avatar Feb 27 '24 17:02 sercanCyberVision

If you call GetNodeInfo over gRPC and the response has no maxFrame then it seems that the node is still in an early state. Obviously it should not crash, this is a bug.

Calling GetTokenInfo also fails in this state.

This is how you can make these gRPC calls: https://github.com/mscurtescu/ceremonyclient/wiki/gRPCurl-How-To#getnodeinfo

mscurtescu avatar Feb 28 '24 02:02 mscurtescu

Hello, am getting this err panic: error getting token info: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:8337: connect: connection refused"

goroutine 1 [running]: main.printBalance(0xc0003ea309?) /home/roxstacr/q/ceremonyclient/node/main.go:527 +0x259 main.main() /home/roxstacr/q/ceremonyclient/node/main.go:126 +0x7ff exit status 2

cratharavi avatar May 10 '24 11:05 cratharavi

Hello, am getting this err panic: error getting token info: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:8337: connect: connection refused"

goroutine 1 [running]: main.printBalance(0xc0003ea309?) /home/roxstacr/q/ceremonyclient/node/main.go:527 +0x259 main.main() /home/roxstacr/q/ceremonyclient/node/main.go:126 +0x7ff exit status 2

Is your gRPC port configured? Is the node actually running?

How did you install the node, following what instructions? On what type of server? What OS?

What command did you try to run when you got this error?

mscurtescu avatar May 11 '24 04:05 mscurtescu

process ****/exe/node just listened 8336 after I run GOEXPERIMENT=arenas go run ./... no process listened 8337 -> gRPC was not running? ubuntu 22.04 The startup log output is as follows:

{"level":"info","ts":1716532677.4011705,"caller":"master/master_clock_consensus_engine.go:229","msg":"broadcasting self-test info"}
{"level":"info","ts":1716532677.6084948,"caller":"master/master_clock_consensus_engine.go:215","msg":"peers in store","peer_store_count":96,"network_peer_count":67}
{"level":"info","ts":1716532687.3644497,"caller":"p2p/blossomsub.go:348","msg":"connecting to bootstrap","peer_id":"QmSN9RPRSwK54GwB48SkSsyWFEDTnixxuzXBkaor25J6kV"}
{"level":"info","ts":1716532687.609508,"caller":"master/master_clock_consensus_engine.go:215","msg":"peers in store","peer_store_count":96,"network_peer_count":67}

sleeply7777 avatar May 24 '24 06:05 sleeply7777

@sleeply7777 could you elaborate on the issue that you're facing? I'm not sure I understand your message

agostbiro avatar May 26 '24 10:05 agostbiro

After running GOEXPERIMENT=arenas go run ./... and waiting for some time with continuous logging, such as {"level":"info","ts":1716780783.9985313,"caller":"node/main.go:422","msg":"generating 65536 degree proof metric"}, I opened a new terminal and ran GOEXPERIMENT=arenas go run ./... -balance, but received an error message: "transport: Error while dialing: dial tcp 127.0.0.1:8337: connect: connection refused". I checked and confirmed that there is no process occupying port 8337.

Is the Quilibrium Node running normally? How can I check the balance?

sleeply7777 avatar May 27 '24 03:05 sleeply7777

now , I find it is ok

sleeply7777 avatar May 27 '24 03:05 sleeply7777