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] Stuck at "connecting" when I restart the app #2699

Closed
Drazzerss opened this issue Jun 5, 2023 · 21 comments
Closed

[Synchronization] Stuck at "connecting" when I restart the app #2699

Drazzerss opened this issue Jun 5, 2023 · 21 comments
Assignees
Labels

Comments

@Drazzerss
Copy link

Detail of the issue

Hello guys,

So the first time i installed the wallet it worked perfectly but whenever i try to restart it i get stuck at "connnecting".
I already checked the other post about the subject and tried many suggestions but it doesnt work.
In task manager i have ckb running using 25-30% of CPU like it's downloading or something like that.
Thank for your help guys !

neuron_debug_1685999757873.zip

bundled-ckb.log

No response

main.log

No response

status.log

No response

@Drazzerss Drazzerss changed the title [Synchronization] Synchro stuck at 100% when i restart the app [Synchronization] Stuck at "connecting" when I restart the app Jun 5, 2023
@Drazzerss
Copy link
Author

main.log

@yanguoyu
Copy link
Collaborator

yanguoyu commented Jun 6, 2023

Hi, @Drazzerss
Due to the impact of hard disk and CPU performance, the built-in ckb nodes are processing data for a period of time after startup and cannot connect.
You can temporarily solve it according to the following steps:

  1. Open Neuron and click Preference/Settings -> Data, then click the directory icon to open the ckb node data directory, close Neuron.
  2. After the system open the ckb node data directory, goto ./data/network/peer_store, and backup and remove addr_manager.db
  3. Restart Neuron.

If the Neuron can not sync normally still, you can try with #2701

@Drazzerss
Copy link
Author

THANK YOU !
I tested so much thing and this one worked perfectly i will just do it everytime it doesn't work and it looks to fix the problem everytime now.

Thanks to the community !

@0xfather
Copy link

./data/network/peer_store/addr_manager.db
What file is this? After deleting it, it can be synchronized normally, and it seems that it will no longer be automatically generated. Is it necessary for this file to exist? If not, can the file be directly not generated or detected and automatically deleted when Neuron starts

@yanguoyu
Copy link
Collaborator

./data/network/peer_store/addr_manager.db
What file is this? After deleting it, it can be synchronized normally, and it seems that it will no longer be automatically generated. Is it necessary for this file to exist? If not, can the file be directly not generated or detected and automatically deleted when Neuron starts

It caches ckb peer nodes' information. After we delete it, it will retrieve and cache. Currently, it cost unexpectedly much time to load addr_manager.db, so we delete it before starting ckb to temporarily avoidance of this issue. it has been fixed by nervosnetwork/ckb#4000. So after we update the ckb version next time, we will not encounter this problem.

@sampro2001
Copy link

Hi guys there IS one mont im trying to have neuron wallah but no way and i wrote ti help and export m'y débug informations they Sand me to do thing but i still cant because i cant im not so good in this

@sampro2001
Copy link

I dont knothow to find .data_network/_peer_store if someone Can help

@sampro2001
Copy link

sampro2001 commented Jul 20, 2023 via email

@Orionstell
Copy link

Orionstell commented Jul 20, 2023

[sampro2001]
Ya but i cant find thé data /network peer / store

  • go to Help: Wallet, Edit , Tools , windows, help, at the top of your wallet,
  • click the help drop-down menu, you will see the setting section,
  • click on setting,
  • then you have a window that opens with this written: General , Wallets, Network , data,
  • click on DATA, and there you see two options, CKB node config & storage and you can see where your info is written like this C:/users/ect.... and look carefully there is a small folder icon at the end of this line,
  • click on it , click on the small folder icon. You have Data , and below 3 files you see.
  • Click on DATA, then you will see the Network folder,
  • click on the network folder, and then you will see the peer-store folder,
  • click on the peer-store folder, then you go to backup and you will find the deleted file, if you do not see the backup folder you should see the addr_manager.db file.
  • I don't know if this will help you but this is step by step, what I did.

@sampro2001
Copy link

sampro2001 commented Jul 20, 2023 via email

@sampro2001
Copy link

sampro2001 commented Jul 20, 2023 via email

@Orionstell
Copy link

Orionstell commented Jul 20, 2023

da

sampro2001

@sampro2001
Copy link

sampro2001 commented Jul 20, 2023 via email

@sampro2001
Copy link

I did everything they asked me but i still Can t arrive in 2% and it start to count down7
Its about 47days i speny all m'y days on it and cant get this xallet

@sampro2001
Copy link

Can someone help me

@0xfather
Copy link

I did everything they asked me but i still Can t arrive in 2% and it start to count down7 Its about 47days i speny all m'y days on it and cant get this xallet

  1. Open the "Settings" - "Data" section of the Neuron wallet and view the directory address of the CKB node data folder (remember this address)
  2. Close Neuron
  3. Open the data folder address you just found and delete it with ./data/network/peer_store/addr_manager.db file
  4. Reopening Neuron should enable normal synchronization

If you find that synchronization cannot be done in the future, please follow the steps above to delete addr_manager.db file and Restart Neuron

But sometimes when the synchronization is completed and the balance is found to be incorrect, it is necessary to "clear the cache" - "rebuild the index" in "Settings"

@sampro2001
Copy link

sampro2001 commented Jul 27, 2023 via email

@sampro2001
Copy link

sampro2001 commented Jul 27, 2023 via email

@sampro2001
Copy link

sampro2001 commented Jul 27, 2023 via email

@yanguoyu
Copy link
Collaborator

@sampro2001

Now its synchronizing but its frol 92%going down to 00

Could you upload the debug information again when it from 92%going down to 00?

@sampro2001
Copy link

sampro2001 commented Jul 28, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants
@Keith-CY @yanguoyu @0xfather @Drazzerss @Orionstell @sampro2001 and others