neuron icon indicating copy to clipboard operation
neuron copied to clipboard

Neuron won't sync - Neuron Version v0.101.2 | CKB Client Version v0.101.1

Open BlindD3V opened this issue 3 years ago • 57 comments

The wallet stays at 0% synced the whole time. I have tried, restarting, uninstalling, re-installing, restarting in between both. Clear cache, rebuild index, delete wallets, install just for one user, for all users, nothing works.

image

Attached my latest debug information.

neuron_debug_1644278682675.zip

BlindD3V avatar Feb 08 '22 00:02 BlindD3V

Did you solve this issue? Same here

simonsanchezj avatar Feb 11 '22 14:02 simonsanchezj

@BlindD3V The bundled CKB node didn't ran on your device: image

Please install the vc++ redist and then restart Neuron again: https://docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170 image

kellyshang avatar Feb 12 '22 10:02 kellyshang

@BlindD3V The bundled CKB node didn't ran on your device: image

Please install the vc++ redist and then restart Neuron again: https://docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170 image

I already did prior to posting. The log I uploaded was after the that installation.

BlindD3V avatar Feb 12 '22 19:02 BlindD3V

@BlindD3V :

  1. After started the Neuron, can you please help check if there is any process of ckb.exe and ckb-indexer.exe running on your PC? e.g.
    image

  2. Can you please take a screenshot of the result after executing the cmd of: REG QUERY HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64

kellyshang avatar Feb 15 '22 07:02 kellyshang

@BlindD3V :

  1. After started the Neuron, can you please help check if there is any process of ckb.exe and ckb-indexer.exe running on your PC? e.g. image
  2. Can you please take a screenshot of the result after executing the cmd of: REG QUERY HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64

Hello, thanks for your answer.

Regarding your questions:

  1. No.

image

BlindD3V avatar Feb 15 '22 10:02 BlindD3V

@BlindD3V , could you have a try to download the CKB binary directly from https://github.com/nervosnetwork/ckb/releases/tag/v0.101.1 : image

Then unzip it to any folder, open a cmd window under the folder, then type cmd as follow:

  1. ckb.exe init to generate a local node configure files of mainnet;
  2. then type ckb.exe run to see if it works.

(FYI. here is the more detailed doc of steps of how to run a mainnet node: https://docs.nervos.org/docs/basics/guides/mainnet )

kellyshang avatar Feb 15 '22 12:02 kellyshang

@BlindD3V , could you have a try to download the CKB binary directly from https://github.com/nervosnetwork/ckb/releases/tag/v0.101.1 : image

Then unzip it to any folder, open a cmd window under the folder, then type cmd as follow:

  1. ckb.exe init to generate a local node configure files of mainnet;
  2. then type ckb.exe run to see if it works.

(FYI. here is the more detailed doc of steps of how to run a mainnet node: https://docs.nervos.org/docs/basics/guides/mainnet )

Hello, I think I found out the bug. It is related with a special character on my name. In this case it's the ~ caracter. I was able to successfully reproduce the issue by:

  • Creating a new folder under C:
  • Name the folder "My Nãme Folder Test"
  • Extract ckb binary into "My Nãme Folder Test"
  • Under the folder run ckb.exe init
  • Under the folder run ckb.exe run

I got the following output:

C:\My Nãme Folder Test>ckb.exe init
WARN: mining feature is disabled because of lacking the block assembler config options
Initialized CKB directory in C:\My Nãme Folder Test
create ckb.toml
create ckb-miner.toml
create default.db-options
Genesis Hash: 0x92b197aa1fba0f63633922c61c92375c9c074a93e85963554f5499fe1450d0e5

C:\My Nãme Folder Test>ckb.exe run
2022-02-17 21:23:06.807 +00:00 main INFO ckb_bin::subcommand::run  ckb version: 0.101.1 (fb1e5dd 2021-10-27)
2022-02-17 21:23:06.808 +00:00 main INFO ckb_launcher  Miner is disabled, edit ckb.toml to enable it
2022-02-17 21:23:06.814 +00:00 main ERROR panic  thread 'main' panicked at 'Internal(DataCorrupted(failed to load the options file: IO error: No such file or directory: Failed to open NewSequentialFileC:\My Nãme Folder Test\default.db-options: The system cannot find the path specified.
))': db\src\db.rs:99   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: <unknown>
  18: <unknown>
  19: rustsecp256k1_v0_2_0_ecdsa_verify
  20: BaseThreadInitThunk
  21: RtlUserThreadStart

It works fine if i remove the ~ character from the folder.

Some things to note:

  • My user hasn't changed.
  • The previous Neuron wallet worked fine with my name.

BlindD3V avatar Feb 17 '22 21:02 BlindD3V

@BlindD3V, great thanks for your response. That's very helpfull infomation for us. I have feed back your issue to the CKB core team and see if there is any response of solution.

kellyshang avatar Feb 18 '22 06:02 kellyshang

@BlindD3V, great thanks for your response. That's very helpfull infomation for us. I have feed back your issue to the CKB core team and see if there is any response of solution.

From their feedback is that it's better to make sure the file path of the bundled ckb node to be UTF-8 encoding, otherwise it may fail to run ckb node, especially on windows.

kellyshang avatar Mar 01 '22 09:03 kellyshang

hey guys I'm also having this issue. ckb node wont sync. I've read the suggestions you gave to @BlindD3V and all wont work. As for the suggestion on the file path for the bundled ckb node to UTF-8 encoding please i need some clarification. Thank you

Perosky007 avatar Mar 17 '22 16:03 Perosky007

hey guys I'm also having this issue. ckb node wont sync. I've read the suggestions you gave to @BlindD3V and all wont work. As for the suggestion on the file path for the bundled ckb node to UTF-8 encoding please i need some clarification. Thank you

@Perosky007

  1. If your OS is windows, please install the vc++ redist(x64) from https://docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170 , then restart Neuron;
  2. If your OS is mac, make sure your macOS version is or abolve v10.15 which is available for the ckb node running;
  3. If still any problem, please export the debug info from the Help menu and upload it here to let us check what problem was.

kellyshang avatar Mar 18 '22 06:03 kellyshang

эй, ребята, у меня тоже есть эта проблема. узел ckb не синхронизируется. Я прочитал предложения, которые вы дали @BlindD3V, и все они не работают. Что касается предложения о пути к файлу для связанного узла ckb с кодировкой UTF-8, пожалуйста, мне нужно некоторое разъяснение. Спасибо

@Perosky007

  1. Если ваша ОС Windows, установите vc++ redist(x64) с https://docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170 , затем перезапустите Neuron. ;
  2. Если ваша ОС — mac, убедитесь, что ваша версия macOS не ниже v10.15, которая доступна для работающего узла ckb;
  3. Если все еще есть проблема, экспортируйте информацию об отладке из Helpменю и загрузите ее сюда, чтобы мы могли проверить, в чем проблема.

good day! I don't really understand this, but I ran into the same problem. It doesn't sync at all. I installed the Windows OS package, install vc++ redist(x64), nothing helped.Where should I send the debug file for verification?

sergey799 avatar Apr 21 '22 15:04 sergey799

эй, ребята, у меня тоже есть эта проблема. узел ckb не синхронизируется. Я прочитал предложения, которые вы дали @BlindD3V, и все они не работают. Что касается предложения о пути к файлу для связанного узла ckb с кодировкой UTF-8, пожалуйста, мне нужно некоторое разъяснение. Спасибо

@Perosky007

  1. Если ваша ОС Windows, установите vc++ redist(x64) с docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170 , затем перезапустите Neuron. ;
  2. Если ваша ОС — mac, убедитесь, что ваша версия macOS не ниже v10.15, которая доступна для работающего узла ckb;
  3. Если все еще есть проблема, экспортируйте информацию об отладке из Helpменю и загрузите ее сюда, чтобы мы могли проверить, в чем проблема.

good day! I don't really understand this, but I ran into the same problem. It doesn't sync at all. I installed the Windows OS package, install vc++ redist(x64), nothing helped.Where should I send the debug file for verification?

Hi @sergey799 , there's no sensitive info in debug logs so you can post it here, or in a brand new issue for clarity.

If you do care it, you may join our discord https://discord.com/invite/N9nZ3JE2Gg and request help, our developer would connect you

Keith-CY avatar Apr 22 '22 04:04 Keith-CY

Good afternoon! No problem. I am waiting for an answer from you to solve my problem. Thank neuron_debug_1650555790497.zip s

sergey799 avatar Apr 22 '22 09:04 sergey799

Good afternoon! No problem. I am waiting for an answer from you to solve my problem. Thank neuron_debug_1650555790497.zip s

Hi @sergey799 sorry for relying late.

I guess the problem is quite similar to the one mentioned in this comment of this issue. In his/her case, the character ã, which is out of UTF8 set, leads to failure of running CKB node.

In your logs, I notice that a similar character й in the file path. To check if it is resulted by the й, you may create another account in your PC and naming it without й, then start Neuron as you did before to see if it works.

Keith-CY avatar Apr 27 '22 13:04 Keith-CY

thank you so much! everything turned out to be done as you advised. now everything is working. thanks for the feedback.

sergey799 avatar Apr 27 '22 17:04 sergey799

Good afternoon! the problem is solved, but not quite. synchronization now does not go through to the end. It's been hanging like this for 2 days. I tried to turn off, turn on the computer. rebooted it, nothing helps. What could be the problem? IMG_2022_04_29_11_21_27_811541746878700774690

sergey799 avatar Apr 29 '22 08:04 sergey799

Good afternoon! the problem is solved, but not quite. synchronization now does not go through to the end. It's been hanging like this for 2 days. I tried to turn off, turn on the computer. rebooted it, nothing helps. What could be the problem? IMG_2022_04_29_11_21_27_811541746878700774690

Hi @sergey799 The screenshot indicates that the CKB Node inside Neuron reached its best known block(tip block) but is stuck at 7009878, meaning that the internal CKB Node keeps working but stops communicating with other Nodes.

This happens in many cases, e.g. disk is full so no more data can be written. We need bundled-ckb.log exported with debug info to find out the reason and get a solution.

Keith-CY avatar May 02 '22 12:05 Keith-CY

neuron_debug_1651499561354.zip

It seems that Neuron continues synchronization from the last logs. There're two time points to notice

04/29 14:27 CKB Node says

2022-04-29 14:27:28.461 +03:00 ChainService INFO ckb_chain::chain  block: 7010942, hash: 0x42d9e019f725118d5e49e99467243454bd834fb3db68816030c814f86d33880e, epoch: 5350(444/1632), total_diff: 0x2cad45cb08a1e346550a1, txs: 1

And Neuron says

[2022-04-29 14:27:31.126] [info] Database:	saved synced block #7010942

Then Neuron is shut down and reopened at 05/02 16:52

CKB Node says

2022-05-02 16:52:40.999 +03:00 ChainService INFO ckb_chain::chain  block: 7011011, hash: 0x4a63ad7a721a03beff5a1f006e48959de3a51af96ed8f045f9a669faec2ec480, epoch: 5350(513/1632), total_diff: 0x2cad89cf78f72cd72ffb4, txs: 1

And Neuron says

[2022-05-02 16:52:39.667] [info] Database:	saved synced block #7010995

We can see that both of Neuron and CKB Node are updating their tip blocks(63 blocks in 10s).

There may be an error stopped CKB Node, but the errors are flushed out of logs so I cannot locate it. Luckily, it works again.

Keith-CY avatar May 02 '22 14:05 Keith-CY

it's good. What should I do? How to launch it? It has been updated for 3 days and not as it will not be updated

sergey799 avatar May 02 '22 14:05 sergey799

it's good. What should I do? How to launch it? It has been updated for 3 days and not as it will not be updated

Just keep Neuron open. The global tip block is 7,033,195 now and synchronization should be done in about 10h if it keeps the speed(63 blocks in 10s).

Next version we'll enable a feature of CKB Node to boost synchronization, ref: https://github.com/nervosnetwork/neuron/pull/2300

Keith-CY avatar May 02 '22 14:05 Keith-CY

it's good. What should I do? How to launch it? It has been updated for 3 days and not as it will not be updated

Just keep Neuron open. The global tip block is 7,033,195 now and synchronization should be done in about 10h if it keeps the speed(63 blocks in 10s).

Next version we'll enable a feature of CKB Node to boost synchronization, ref: #2300

Correct me, it should be done in 1h.

Keith-CY avatar May 02 '22 14:05 Keith-CY

I was using very old version and updated it when old version started synching slowly. I tried everything and I still get this error: ... [2022-05-11 19:50:40.614] [info] Database: saved synced block #7076079 ... [2022-05-14 12:59:11.977] [info] CKB: external RPC on default uri not detected, starting bundled CKB node. [2022-05-14 12:59:14.676] [info] CKB: Initializing node... [2022-05-14 12:59:14.677] [info] CKB: init: config file detected, skip ckb init. [2022-05-14 12:59:14.677] [info] CKB: starting node... [2022-05-14 12:59:15.615] [info] CKB: process closed

Any ideas?

itask avatar May 14 '22 10:05 itask

[2022-05-14 12:59:11.977] [info] CKB: external RPC on default uri not detected, starting bundled CKB node. [2022-05-14 12:59:14.676] [info] CKB: Initializing node... [2022-05-14 12:59:14.677] [info] CKB: init: config file detected, skip ckb init. [2022-05-14 12:59:14.677] [info] CKB: starting node... [2022-05-14 12:59:15.615] [info] CKB: process closed

Hi @itask

The log [2022-05-14 12:59:15.615] [info] CKB: process closed follows [2022-05-14 12:59:14.677] [info] CKB: starting node... says ckb node inside neuron was shut down just after start

Could you upload bundled-ckb.log exported along with export debug info so we can find out the underlying error of ckb node.

Keith-CY avatar May 14 '22 10:05 Keith-CY

@Keith-CY Thank you for your reply. Please see attached neuron_debug.zip .

itask avatar May 14 '22 10:05 itask

@Keith-CY Thank you for your reply. Please see attached neuron_debug.zip .

The content in bundled-ckb.log is

EINVAL: invalid argument, read

which is exactly the same as https://github.com/nervosnetwork/neuron/issues/2264#issuecomment-1037114175 mentioned, and CKB node is not started successfully.

This error usually comes along with a non-utf8 character in the file path. However, I didn't find a non-utf8 character in logs.

Could you download the CKB node(https://github.com/nervosnetwork/ckb/releases/tag/v0.103.0) and start it manually to see if it can be launched? With the result, we can make clear which part of Neuron doesn't work correctly.

To start CKB node,

  1. download and unzip ckb node from the release page https://github.com/nervosnetwork/ckb/releases/tag/v0.103.0
  2. open a powershell(you can search it in the menu) and change the directory to where ckb node is, say we download it in C:\Users\Administrator\Downloads, we can change directory by cd 'C:\Users\Administrator\Downloads\ckb_v0.103.0_x86_64-pc-windows-msvc\'
  3. Initialize and start CKB by
    .\ckb.exe init --chain mainnet
    .\ckb.exe run
    

After above steps, please check if it is printing as image

If not, please append the content it prints.

Keith-CY avatar May 14 '22 18:05 Keith-CY

Добрый день! проблема решена, но не совсем. синхронизация теперь не проходит до конца. Он висит так уже 2 дня. Я попытался выключить, включить компьютер. перезагрузил его, ничего не помогает. В чем может быть проблема? IMG_2022_04_29_11_21_27_811541746878700774690

Good afternoon! and I'm still not syncing. I've been waiting for 2 weeks for everything to set up. What should I do? Tell me please.

sergey799 avatar May 15 '22 06:05 sergey799

Добрый день! проблема решена, но не совсем. синхронизация теперь не проходит до конца. Он висит так уже 2 дня. Я попытался выключить, включить компьютер. перезагрузил его, ничего не помогает. В чем может быть проблема? IMG_2022_04_29_11_21_27_811541746878700774690

Good afternoon! and I'm still not syncing. I've been waiting for 2 weeks for everything to set up. What should I do? Tell me please.

Hi @sergey799

From the logs you uploaded before, neuron has reached 7011011 (https://github.com/nervosnetwork/neuron/issues/2264#issuecomment-1114951737)

2022-05-02 16:52:40.999 +03:00 ChainService INFO ckb_chain::chain  block: 7011011, hash: 0x4a63ad7a721a03beff5a1f006e48959de3a51af96ed8f045f9a669faec2ec480, epoch: 5350(513/1632), total_diff: 0x2cad89cf78f72cd72ffb4, txs: 1

But the screenshot indicates it back to 7009878, have you cleared with menu -> tools -> clear all synchronized data or something that removed all synchronized files?

Keith-CY avatar May 15 '22 06:05 Keith-CY

I didn't clean the icegg. I just turn off the computer sometimes. After it is turned on for 2 days. And then I turn it on and wait again for a very long time.

sergey799 avatar May 15 '22 06:05 sergey799