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

Synchronization hangs after a transaction #407

Open
Keith-CY opened this issue Jun 26, 2024 · 9 comments
Open

Synchronization hangs after a transaction #407

Keith-CY opened this issue Jun 26, 2024 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@Keith-CY
Copy link
Member

我发现一个issue,mac,Neuron 版本: 0.116.2
CKB 节点版本: v0.116.1
CKB 轻节点版本: v0.3.7
在我这里发生过好几次了,我是每天存一点CKB,我昨天存完就一直放着没退出,然后今天我在存之前确认过同步区块正常同步,能看到区块数量在跟着链上的数据跑着的,这时我存入NervosDAO,进入了列表中,但我预计当同步到该交易上链了之后,列表里没有更新状态,且停止区块同步。
进程里看到两个Neuron Helper
退出Neuron之后残留一个Neuron Helper。而我清楚地记得,昨天我是清掉了残留的Neuron Helper才启动Neuron钱包的。
新启动Neuron之后,开始同步了。这个过程在昨天也同样发生过,现象一模一样。其中做的交易我猜不一定需要存DAO,只要发出交易就出现

neuron_debug_1719378733894.zip

@Keith-CY Keith-CY added the bug Something isn't working label Jun 26, 2024
@Keith-CY
Copy link
Member Author

An error

[2024-06-25T11:47:11.220Z] [warn] status tracking error: TransactionNotStartedError: Transaction is not started yet, start transaction before committing or rolling it back.
[2024-06-25T11:47:11.222Z] [error] Sync:ChildProcess: [2024-06-25T11:47:11.220Z] [warn] status tracking error: TransactionNotStartedError: Transaction is not started yet, start transaction before committing or rolling it back.

[2024-06-25T11:47:11.222Z] [error] Unhandled Rejection in task: Reason: TransactionNotStartedError: Transaction is not started yet, start transaction before committing or rolling it back.

can be found in the log.

@silySuper
Copy link

I will try to sync and keep neuron open,then close the computer for a while,then check whether the helper process is exit.

@silySuper
Copy link

Click refresh constantly firstly ,then exit Neuron manually,open neuron again,sync abnormal(stay 88.84% for a long time).

Image

Image

main.log

bundled-ckb.log

@yanguoyu please have a look~

@yanguoyu
Copy link

An error

[2024-06-25T11:47:11.220Z] [warn] status tracking error: TransactionNotStartedError: Transaction is not started yet, start transaction before committing or rolling it back.
[2024-06-25T11:47:11.222Z] [error] Sync:ChildProcess: [2024-06-25T11:47:11.220Z] [warn] status tracking error: TransactionNotStartedError: Transaction is not started yet, start transaction before committing or rolling it back.

[2024-06-25T11:47:11.222Z] [error] Unhandled Rejection in task: Reason: TransactionNotStartedError: Transaction is not started yet, start transaction before committing or rolling it back.

can be found in the log.

I have tried throwing this exception, but this exception will not break the sync process.

@yanguoyu
Copy link

Click refresh constantly firstly ,then exit Neuron manually,open neuron again,sync abnormal(stay 88.84% for a long time).

Image

Image

main.log

bundled-ckb.log

@yanguoyu please have a look~

silySuper's Neuron includes a wallet for testing performance. So the sync process is not stuck, it just sync slows.

@silySuper
Copy link

OK,I will try click refresh constantly again,and show the sync time to check whether is slow or stop

@silySuper
Copy link

Cost about 1.5 hour to sync 100%

@silySuper
Copy link

Please make database abnormal first,then I will try to sync again. @yanguoyu

@yanguoyu
Copy link

Please make database abnormal first,then I will try to sync again. @yanguoyu

#407 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🏗 In Progress
Development

No branches or pull requests

3 participants