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

Running myLocalTon with openton API #36

Open
dkatzan opened this issue Aug 13, 2024 · 3 comments
Open

Running myLocalTon with openton API #36

dkatzan opened this issue Aug 13, 2024 · 3 comments

Comments

@dkatzan
Copy link

dkatzan commented Aug 13, 2024

Hi, not sure if this is a localton issue or openton issue

I have a running localton, and I'm trying to also run opentonapi with it
https://github.com/tonkeeper/opentonapi

I'm setting the litesetver env var to point to my running localton
and when running it getting these errors constantly:

based on the logs I see, it looks like there is some connection, since the seqno of the block are the ones being currently issued by the localton, but it failing to apply them?

thx

{"level":"error","ts":1723543573.128525,"caller":"indexer/indexer.go:64","msg":"failed to get next chunk","error":"error code: 651 message: block (0,c000000000000000,252) is not applied (possibly out of sync: shard_client_seqno=250 ls_seqno=250)\nerror code: 651 message: block (0,4000000000000000,248) is not applied (possibly out of sync: shard_client_seqno=250 ls_seqno=250)","stacktrace":"github.com/tonkeeper/opentonapi/pkg/blockchain/indexer.(*Indexer).Run\n\t/opentonapi/pkg/blockchain/indexer/indexer.go:64"}
{"level":"error","ts":1723543586.7695994,"caller":"indexer/indexer.go:64","msg":"failed to get next chunk","error":"error code: 651 message: cannot find block (-1,8000000000000000) seqno=259: block (-1,8000000000000000,259):E651CD5C49355178CD246F4F77AACE5D6879F7A9E8F60482627589D49C291211:1EC2D271D79AC9E6AED14F065193EA1E8EA10CA0806766A41F89110AD9D9232D is not applied (last known masterchain block: 258)","stacktrace":"github.com/tonkeeper/opentonapi/pkg/blockchain/indexer.(*Indexer).Run\n\t/opentonapi/pkg/blockchain/indexer/indexer.go:64"}
{"level":"error","ts":1723543589.4475331,"caller":"indexer/indexer.go:64","msg":"failed to get next chunk","error":"error code: 651 message: block (0,4000000000000000,258) is not applied (possibly out of sync: shard_client_seqno=260 ls_seqno=260)\nerror code: 651 message: block (0,c000000000000000,262) is not applied (possibly out of sync: shard_client_seqno=260 ls_seqno=260)","stacktrace":"github.com/tonkeeper/opentonapi/pkg/blockchain/indexer.(*Indexer).Run\n\t/opentonapi/pkg/blockchain/indexer/indexer.go:64"}
{"level":"error","ts":1723543598.159781,"caller":"indexer/indexer.go:64","msg":"failed to get next chunk","error":"error code: 651 message: cannot find block (-1,8000000000000000) seqno=267: block (-1,8000000000000000,267):29509003258644E836FD2DF5F0DE458E74D77E10E875E51BA2B8232DEE43A8E9:C0B15BC967548724B2E3AA60758398314464FE9CE6C03C670DE3774B1AEBC520 is not applied (last known masterchain block: 266)","stacktrace":"github.com/tonkeeper/opentonapi/pkg/blockchain/indexer.(*Indexer).Run\n\t/opentonapi/pkg/blockchain/indexer/indexer.go:64"}
@neodix42
Copy link
Owner

I will try to reproduce it and get back to you.

@neodix42
Copy link
Owner

Could you please check if you still have this issue with MyLocalTon of v124?

@dkatzan
Copy link
Author

dkatzan commented Dec 2, 2024

Hi @neodix42 , sorry for my late response
We have tried to upgrade to v124, but it seems to be introducing new flkainess

the node seems to be crashing after a few minutes of running
We tried looking into the logs a bit, and I think this is the most relevant part
looks like at some point the nodes are crashing, and there is a command to rerun each node, but some of them seem to fail, and from that point on no new blocks are being produced, and we fail to connect to it

2024-12-02 10:27:47 08:27:47.654 [MyLocalTon - Dump Block 633] DEBUG o.t.e.liteclient.LiteClientExecutor - execute: /app/myLocalTon/genesis/bin/lite-client --timeout 10 --global-config /app/myLocalTon/genesis/db/my-ton-local.config.json -c last
2024-12-02 10:27:48 08:27:48.236 [MyLocalTon - genesis Status Monitor] DEBUG o.t.e.liteclient.LiteClientExecutor - execute: /app/myLocalTon/genesis/bin/lite-client --timeout 10 --global-config /app/myLocalTon/genesis/db/my-ton-local.config.json -c last
2024-12-02 10:27:48 08:27:48.236 [MyLocalTon - node2 Status Monitor] DEBUG o.t.e.liteclient.LiteClientExecutor - execute: /app/myLocalTon/node2/bin/lite-client --timeout 10 --global-config /app/myLocalTon/node2/db/my-ton-local.config.json -c last
2024-12-02 10:27:48 08:27:48.236 [MyLocalTon - node3 Status Monitor] DEBUG o.t.e.liteclient.LiteClientExecutor - execute: /app/myLocalTon/node3/bin/lite-client --timeout 10 --global-config /app/myLocalTon/node3/db/my-ton-local.config.json -c last
2024-12-02 10:27:48 08:27:48.237 [MyLocalTon - node4 Status Monitor] DEBUG o.t.e.liteclient.LiteClientExecutor - execute: /app/myLocalTon/node4/bin/lite-client --timeout 10 --global-config /app/myLocalTon/node4/db/my-ton-local.config.json -c last
2024-12-02 10:27:48 08:27:48.237 [MyLocalTon - node5 Status Monitor] DEBUG o.t.e.liteclient.LiteClientExecutor - execute: /app/myLocalTon/node5/bin/lite-client --timeout 10 --global-config /app/myLocalTon/node5/db/my-ton-local.config.json -c last
2024-12-02 10:27:48 08:27:48.237 [MyLocalTon - node6 Status Monitor] DEBUG o.t.e.liteclient.LiteClientExecutor - execute: /app/myLocalTon/node6/bin/lite-client --timeout 10 --global-config /app/myLocalTon/node6/db/my-ton-local.config.json -c last
2024-12-02 10:27:48 08:27:48.237 [MyLocalTon - node7 Status Monitor] DEBUG o.t.e.liteclient.LiteClientExecutor - execute: /app/myLocalTon/node7/bin/lite-client --timeout 10 --global-config /app/myLocalTon/node7/db/my-ton-local.config.json -c last
2024-12-02 10:27:48 08:27:48.243 [MyLocalTon - node2 Status Monitor] INFO  org.ton.actions.MyLocalTon - node2 is ready
2024-12-02 10:27:48 08:27:48.244 [MyLocalTon - node6 Status Monitor] INFO  org.ton.actions.MyLocalTon - node6 is ready
2024-12-02 10:27:48 08:27:48.244 [MyLocalTon - node5 Status Monitor] INFO  org.ton.actions.MyLocalTon - node5 is ready
2024-12-02 10:27:48 08:27:48.245 [MyLocalTon - node3 Status Monitor] INFO  org.ton.actions.MyLocalTon - node3 is ready
2024-12-02 10:27:48 08:27:48.246 [MyLocalTon - node4 Status Monitor] INFO  org.ton.actions.MyLocalTon - node4 is ready
2024-12-02 10:27:48 08:27:48.246 [MyLocalTon - node7 Status Monitor] INFO  org.ton.actions.MyLocalTon - node7 is ready
2024-12-02 10:27:48 08:27:48.655 [MyLocalTon - Dump Block 633] DEBUG o.t.e.liteclient.LiteClientExecutor - execute: /app/myLocalTon/genesis/bin/lite-client --timeout 10 --global-config /app/myLocalTon/genesis/db/my-ton-local.config.json -c last
2024-12-02 10:27:49 08:27:49.656 [MyLocalTon - Dump Block 633] DEBUG o.t.e.liteclient.LiteClientExecutor - execute: /app/myLocalTon/genesis/bin/lite-client --timeout 10 --global-config /app/myLocalTon/genesis/db/my-ton-local.config.json -c last
2024-12-02 10:27:50 08:27:50.657 [MyLocalTon - Dump Block 633] DEBUG o.t.e.liteclient.LiteClientExecutor - execute: /app/myLocalTon/genesis/bin/lite-client --timeout 10 --global-config /app/myLocalTon/genesis/db/my-ton-local.config.json -c last
2024-12-02 10:27:51 08:27:51.438 [MyLocalTon - Validation Monitor] DEBUG o.t.e.liteclient.LiteClientExecutor - execute: /app/myLocalTon/genesis/bin/lite-client --timeout 10 --global-config /app/myLocalTon/genesis/db/my-ton-local.config.json -c getconfig 12
2024-12-02 10:27:51 08:27:51.658 [MyLocalTon - Dump Block 633] DEBUG o.t.e.liteclient.LiteClientExecutor - execute: /app/myLocalTon/genesis/bin/lite-client --timeout 10 --global-config /app/myLocalTon/genesis/db/my-ton-local.config.json -c last
2024-12-02 10:27:52 08:27:52.659 [MyLocalTon - Dump Block 633] DEBUG o.t.e.liteclient.LiteClientExecutor - execute: /app/myLocalTon/genesis/bin/lite-client --timeout 10 --global-config /app/myLocalTon/genesis/db/my-ton-local.config.json -c last
2024-12-02 10:27:53 08:27:53.659 [MyLocalTon - Dump Block 633] DEBUG o.t.e.liteclient.LiteClientParser - Error parsing lite-client's last command! Output: using liteserver 0 with addr [127.0.0.1:4443]
2024-12-02 10:27:53 zerostate set to -1:8A36C320B015BD07119B1DC818DEA1A7DB4E3435158A9877851F50CB467FE9D6:799210CD1883A075DF56AAE7911AE4CF4F3F0A45ADF0767B3C9C1B69DCD45DFA
2024-12-02 10:27:53
2024-12-02 10:27:53 08:27:53.659 [MyLocalTon - Dump Block 633] DEBUG org.ton.actions.MyLocalTon - last block is null
2024-12-02 10:27:53 08:27:53.660 [MyLocalTon - Dump Block 633] DEBUG o.t.e.liteclient.LiteClientExecutor - execute: /app/myLocalTon/genesis/bin/lite-client --timeout 10 --global-config /app/myLocalTon/genesis/db/my-ton-local.config.json -c last
2024-12-02 10:27:54 08:27:54.657 [MyLocalTon - Dump Block 633] DEBUG o.t.e.liteclient.LiteClientParser - Error parsing lite-client's last command! Output: using liteserver 0 with addr [127.0.0.1:4443]
2024-12-02 10:27:54 zerostate set to -1:8A36C320B015BD07119B1DC818DEA1A7DB4E3435158A9877851F50CB467FE9D6:799210CD1883A075DF56AAE7911AE4CF4F3F0A45ADF0767B3C9C1B69DCD45DFA
2024-12-02 10:27:54
2024-12-02 10:27:54 08:27:54.657 [MyLocalTon - Dump Block 633] DEBUG org.ton.actions.MyLocalTon - last block is null

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

3 participants
@neodix42 @dkatzan and others