cryptonotefoundation / cryptonote

CryptoNote protocol implementation. This is the reference repository for starting a new CryptoNote currency. See /src/cryptonote_config.h
https://cryptonote.org/
990 stars 6.1k forks source link

Failed to initialize blockchain #29

Open shamuel22 opened 7 years ago

shamuel22 commented 7 years ago

Please Help! In Windows:

2017-May-04 15:55:11.152894 WARNING No actual blockchain indices for BlockchainE xplorer found, rebuilding... 2017-May-04 15:55:11.166895 INFO Height 0 of 11245 2017-May-04 15:55:11.248899 INFO Height 1000 of 11245 2017-May-04 15:55:11.351905 INFO Height 2000 of 11245 2017-May-04 15:55:11.581918 INFO Height 3000 of 11245 2017-May-04 15:55:11.840933 INFO Height 4000 of 11245 2017-May-04 15:55:12.081947 INFO Height 5000 of 11245 2017-May-04 15:55:12.406965 INFO Height 6000 of 11245 2017-May-04 15:55:12.685981 INFO Height 7000 of 11245 2017-May-04 15:55:12.958997 INFO Height 8000 of 11245 2017-May-04 15:55:13.240013 INFO Height 9000 of 11245 2017-May-04 15:55:13.636036 INFO Height 10000 of 11245 2017-May-04 15:55:14.044059 INFO Height 11000 of 11245 2017-May-04 15:55:14.166066 INFO Rebuilding blockchain indices took: 2.99917 2017-May-04 15:55:14.178067 ERROR Failed to init: genesis block mismatch. Prob ably you set --testnet flag with data dir with non-test blockchain or another ne twork. 2017-May-04 15:55:14.201068 ERROR Failed to initialize blockchain storage 2017-May-04 15:55:14.212069 ERROR Failed to initialize core 2017-May-04 15:55:14.220069 INFO Mining has been stopped, 0 finished SwappedVector cache hits: 1, misses: 22492 (100.00%)

In Linux:

2017-May-04 21:58:41.823358 WARNING [80.241.219.50:39756 INC] Exception in connectionHandler: TcpConnection::read 2017-May-04 21:58:43.824922 WARNING [80.241.219.50:50266 INC] Exception in connectionHandler: TcpConnection::read 2017-May-04 21:58:45.827105 WARNING [80.241.219.50:37750 INC] Exception in connectionHandler: TcpConnection::read 2017-May-04 21:58:47.828842 WARNING [80.241.219.50:54592 INC] Exception in connectionHandler: TcpConnection::read 2017-May-04 21:58:49.830553 WARNING [80.241.219.50:58064 INC] Exception in connectionHandler: TcpConnection::read 2017-May-04 21:58:51.832174 WARNING [80.241.219.50:60197 INC] Exception in connectionHandler: TcpConnection::read 2017-May-04 21:58:53.833739 WARNING [80.241.219.50:38920 INC] Exception in connectionHandler: TcpConnection::read 2017-May-04 21:58:55.835386 WARNING [80.241.219.50:56952 INC] Exception in connectionHandler: TcpConnection::read 2017-May-04 21:58:57.837205 WARNING [80.241.219.50:51995 INC] Exception in connectionHandler: TcpConnection::read

exploshot commented 7 years ago

same here

bodzie commented 7 years ago

Help please, I have the same problem

loldlm1 commented 7 years ago

I fixed it running my cryptocoin in two VPS ubuntu, it means that it needs two seeds for work.

SoraKohaku commented 6 years ago

ah so that it need 2 nodes

zhmrab commented 6 years ago

Hey guys, I having the same issue, running 2 seeds nodes on 2 ubuntu VPS and keep on getting this when opening the wallet on my computer :

SwappedVector cache hits: 1, misses: 1 (50.00%) SwappedVector cache hits: 1, misses: 1 (50.00%) 2017-Dec-27 02:03:57.909769 INFO Closing DB. 2017-Dec-27 02:03:57.915461 ERROR Exception: TcpListener::TcpListener, bind failed, result=49, Can't assign requested address

If you guys found a fix could you please post it here?

Thanks!

SoraKohaku commented 6 years ago

you already running it before. try kill process~or you failed debug it. try remove the old chain on your home

On Dec 27, 2017 4:07 PM, "zhmrab" notifications@github.com wrote:

Hey guys, I having the same issue, running 2 seeds nodes on 2 ubuntu VPS and keep on getting this when opening the wallet on my computer :

SwappedVector cache hits: 1, misses: 1 (50.00%) SwappedVector cache hits: 1, misses: 1 (50.00%) 2017-Dec-27 02:03:57.909769 INFO Closing DB. 2017-Dec-27 02:03:57.915461 ERROR Exception: TcpListener::TcpListener, bind failed, result=49, Can't assign requested address

If you guys found a fix could you please post it here?

Thanks!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/29#issuecomment-354064916, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tfS7u2XWI6xdVgEoTL59tORBP1ffks5tEeydgaJpZM4NRJeB .

zhmrab commented 6 years ago

Which process should I kill?

Also can you detail about how remove the old blockchain on my home folder?

I'm not sure what to do exactly everything else in the setup seems fine :/

SoraKohaku commented 6 years ago

go to home there will .[name folder]. or try this

rm -rf [your app name or your coin name] on home. this because crash the old chain to new chain. so you need generate carefully~

On Dec 28, 2017 3:39 AM, "zhmrab" notifications@github.com wrote:

Which process should I kill?

Also can you detail about how remove the old blockchain on my home folder?

I'm not sure what to do exactly everything else in the setup seems fine :/

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/29#issuecomment-354156760, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tUphKgCNGgCnimUwOu1NNJ49wJRFks5tEo7UgaJpZM4NRJeB .

zhmrab commented 6 years ago

Ok thanks!

Now that I deleted and tried again the daemon opens and I get this

2017-Dec-28 16:13:44.473420 INFO Net service binded on 0.0.0.0:xxxxx 2017-Dec-28 16:13:44.473523 INFO Attempting to add IGD port mapping. 2017-Dec-28 16:13:46.234940 ERROR UPNP_AddPortMapping failed. 2017-Dec-28 16:13:46.235390 INFO P2p server initialized OK 2017-Dec-28 16:13:46.236242 INFO Starting core rpc server on address 127.0.0.1:xxxxx 2017-Dec-28 16:13:46.236550 INFO Core rpc server started ok 2017-Dec-28 16:13:46.236707 INFO Starting p2p net loop... 2017-Dec-28 16:13:46.236836 INFO Starting node_server

and then nothing..

when I try bc_height it's 0 and when I try to open the wallet I get

[BlockchainSynchronizer] Failed to query outdated pool transaction: NodeErrorCategory:3, Network error ERROR [BlockchainSynchronizer] Failed to query blocks: NodeErrorCategory:3, Network error

Not sure what I'm doing wrong but I feel like it's almost there!

SoraKohaku commented 6 years ago

try ip public or your ip. since 127.x.x.x not sure binding success. make sure port not blocked

On Dec 29, 2017 6:20 AM, "zhmrab" notifications@github.com wrote:

Ok thanks!

Now that I deleted and tried again the daemon opens and I get this

2017-Dec-28 16:13:44.473420 INFO Net service binded on 0.0.0.0:xxxxx 2017-Dec-28 16:13:44.473523 INFO Attempting to add IGD port mapping. 2017-Dec-28 16:13:46.234940 ERROR UPNP_AddPortMapping failed. 2017-Dec-28 16:13:46.235390 INFO P2p server initialized OK 2017-Dec-28 16:13:46.236242 INFO Starting core rpc server on address 127.0.0.1:xxxxx 2017-Dec-28 16:13:46.236550 INFO Core rpc server started ok 2017-Dec-28 16:13:46.236707 INFO Starting p2p net loop... 2017-Dec-28 16:13:46.236836 INFO Starting node_server

and then nothing..

when I try bc_height it's 0 and when I try to open the wallet I get

[BlockchainSynchronizer] Failed to query outdated pool transaction: NodeErrorCategory:3, Network error ERROR [BlockchainSynchronizer] Failed to query blocks: NodeErrorCategory:3, Network error

Not sure what I'm doing wrong but I feel like it's almost there!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/29#issuecomment-354359699, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tZfi9OcqkxraM3NpQadIp8e7f2SBks5tFAYtgaJpZM4NRJeB .

zhmrab commented 6 years ago

Ok thank you so much! I started over and it worked but now I got that :

Sync data returned unknown top block: 1 -> 1 [0 blocks (0 days) behind] 2017-Dec-30 03:52:14.970409 INFO SYNCHRONIZATION started Failed to handle NOTIFY_REQUEST_CHAIN. block_ids doesn't end with genesis block ID

and it repeats non stop

Do you know a fix for this?

NOTE: I did print-genesis and then put it in the config file

SoraKohaku commented 6 years ago

configure need change in network and bootstrap. try look on P2p/P2pNetworks.h with your configuration~

On Dec 30, 2017 5:54 PM, "zhmrab" notifications@github.com wrote:

Ok thank you so much! I started over and it worked but now I got that :

Sync data returned unknown top block: 1 -> 1 [0 blocks (0 days) behind] 2017-Dec-30 03:52:14.970409 INFO SYNCHRONIZATION started Failed to handle NOTIFY_REQUEST_CHAIN. block_ids doesn't end with genesis block ID

and it repeats non stop

Do you know a fix for this?

NOTE: I did print-genesis and then put it in the config file

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/29#issuecomment-354535063, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tRpnQQ4ih65SECzWlJTdccwYckHIks5tFfoogaJpZM4NRJeB .

mrtass commented 6 years ago

@zhmrab u mind sharing ur solution ? and config file is possible

SoraKohaku commented 6 years ago

config file need put on .folder[files bootstrap]

On Jan 15, 2018 9:48 AM, "carlos" notifications@github.com wrote:

@zhmrab https://github.com/zhmrab u mind sharing ur solution ? and config file is possible

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/29#issuecomment-357557482, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tTzMIVVYPa6sscRAorgQThkSxS9pks5tKqBtgaJpZM4NRJeB .

mrtass commented 6 years ago

i keep getting this error

WARNING [192.168.0.157:54072 INC] Exception in connectionHandler: TcpConnection::read 192.168.0.157 is my node ip

mrtass commented 6 years ago

@FndNur1Labs u mind sharing a sample config file ? i cannot seem to find one

SoraKohaku commented 6 years ago

i made example for easy. try used same config on windows used. you can addnodes=[your ip] on configuration of second server

On Jan 15, 2018 10:46 AM, "carlos" notifications@github.com wrote:

@FndNur1Labs https://github.com/fndnur1labs u mind sharing a sample config file ? i cannot seem to find one

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/29#issuecomment-357563011, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tdKPEYY7m8iE8uhmDNNdxXeath3Eks5tKq4KgaJpZM4NRJeB .

rainmanp7 commented 6 years ago

Whipe the cahce off the main .somethig

Make sure in your cmake file that you specify a special something at the top. Inside the file it may be there it may not = so change or put it there. In the main cmakelists.txt

set(PER_BLOCK_CHECKPOINT 0)

Then make sure built files are cleared. Make sure Cmake folders are cleared. Compile and run.

Eveytime you change something that would change the block ,this clearing is needed By whiping the main .coin folder....

SoraKohaku commented 6 years ago

closed

On Feb 1, 2018 2:51 PM, "PHFirecoin" notifications@github.com wrote:

Whipe the cahce off the main .somethig Then make sure built files are cleared. Make sure Cmake folders are cleared. Compile and run.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/29#issuecomment-362165961, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tXhZQdYzCz3bfi_hR3aKkWG_zMvSks5tQVDYgaJpZM4NRJeB .

Dev1Dev2Dev5 commented 6 years ago

I followed FndNur1Labs’ ideas on how to fix genesis mismatch error by “remove block chain and make again after that print genesis then copy and make again.” This worked for me but now I get error: “Failed to handle NOTIFY_REQUEST_CHAIN. block_ids doesn't end with genesis block ID” and “Sync data returned unknown top block: 0 -> 1 [1 blocks (0 days) behind]”

How do I fix this?

I see advice to: “configure need change in network and bootstrap. try look on P2p/P2pNetworks.h with your configuration~” or “config file need put on .folder[files bootstrap]” or “Whipe the cahce off the main .somethig” and “Make sure in your cmake file that you specify a special something at the top” and “By whiping the main .coin folder”

I’ve been trying these fixes but am likely doing them wrong. Can you please provide details on how to fix my issue?

SoraKohaku commented 6 years ago

i already fixed on my repo removed genesis generated. this will attack backend trace. see commit i did. thank you~

On Feb 2, 2018 7:23 AM, "Dev1Dev2Dev5" notifications@github.com wrote:

I followed FndNur1Labs’ ideas on how to fix genesis mismatch error by “remove block chain and make again after that print genesis then copy and make again.” This worked for me but now I get error: “Failed to handle NOTIFY_REQUEST_CHAIN. block_ids doesn't end with genesis block ID” and “Sync data returned unknown top block: 0 -> 1 [1 blocks (0 days) behind]”

How do I fix this?

I see advice to: “configure need change in network and bootstrap. try look on P2p/P2pNetworks.h with your configuration~” or “config file need put on .folder[files bootstrap]” or “Whipe the cahce off the main .somethig” and “Make sure in your cmake file that you specify a special something at the top” and “By whiping the main .coin folder”

I’ve been trying these fixes but am likely doing them wrong. Can you please provide details on how to fix my issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/29#issuecomment-362422163, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tfgNNbIbsBQPB8W9ZZVZIpoykprsks5tQjlOgaJpZM4NRJeB .

Dev1Dev2Dev5 commented 6 years ago

Sorry I'm a noob. I dont know what to do. Can you please tell me what steps to take to fix the “Failed to handle NOTIFY_REQUEST_CHAIN. block_ids doesn't end with genesis block ID” error?

SoraKohaku commented 6 years ago

look here https://cnhv.co/dyrf

PS : whenever they said we make people out here wrong. we keep original files and and fixed everything.

DirhamCli Repo rules distribute who can learn about cryptoworl, and studied it learn about decentralize free change like cryptonote you can change files distribute or help us as contributor all copyright is cryptonote, bytecoin and kohaku team[we] bugs from old fixed there read doc/ for guide installation unofficial contributor can pun on release notes.txt develop tree for new future cryptonote token, coin,etc

Welcome to Join Cryptonote Family

On Feb 2, 2018 5:39 PM, "Dev1Dev2Dev5" notifications@github.com wrote:

Sorry I'm a noob. I dont know what to do. Can you please tell me what steps to take to fix the “Failed to handle NOTIFY_REQUEST_CHAIN. block_ids doesn't end with genesis block ID” error?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/29#issuecomment-362521340, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tR3fjZYEnc_f_h9TZhZ6K3Y_S0HBks5tQsm4gaJpZM4NRJeB .

Dev1Dev2Dev5 commented 6 years ago

I appreciate the help. I went to your website and see the CryptoNote instructions, but don't see any way to fix the “Failed to handle NOTIFY_REQUEST_CHAIN. block_ids doesn't end with genesis block ID” error. Can you please let me know what steps I need to take to fix this error?

Your advice to fix gensis mismatch by "“remove block chain and make again after that print genesis then copy and make again.” worked great for me. Please let me know how I can fix the block_ids doesn't end with genesis block ID error.

SoraKohaku commented 6 years ago

see doc on repo bro~

On Feb 3, 2018 5:54 AM, "carlos" notifications@github.com wrote:

@Dev1Dev2Dev5 https://github.com/dev1dev2dev5 im ready to help u contact me on whatsapp +96171781511 <+961%2071%20781%20511>

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/29#issuecomment-362704473, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tfvuJJ6xaCze8toYkR0GPr3WeGyWks5tQ3YggaJpZM4NRJeB .

Dev1Dev2Dev5 commented 6 years ago

Sorry I feel stupid. I looked at all of your repo and opened all the docs, even those edited 30 minutes ago, but I don't see any advice on how to fix my “Failed to handle NOTIFY_REQUEST_CHAIN. block_ids doesn't end with genesis block ID" error.

I'm on https://github.com/FndNur1Labs/DirhamCli/tree/master/doc

Please let me know where to look for the doc in your repo.

zhmrab commented 6 years ago

@Dev1Dev2Dev5 you need to delete your old blockchain folder

rm -rf .yourcoin

SoraKohaku commented 6 years ago

remove blocksbin and blockindex.bin on .[yourprojectcoin]. see doc section. i forgot this old case. don't remove all folder because your coin will gone. just generate new .bin ok!

On Feb 3, 2018 11:08 AM, "zhmrab" notifications@github.com wrote:

@Dev1Dev2Dev5 https://github.com/dev1dev2dev5 you need to delete your old blockchain folder

rm -rf .yourcoin

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/29#issuecomment-362766054, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tTrJCk9H3Z08hZ1KO8wswNt2t1VVks5tQ7-egaJpZM4NRJeB .

SoraKohaku commented 6 years ago

added doc on branch develop~

On Feb 3, 2018 2:10 PM, "hatta yuthafiga" crbru.yuthafiga@gmail.com wrote:

remove blocksbin and blockindex.bin on .[yourprojectcoin]. see doc section. i forgot this old case. don't remove all folder because your coin will gone. just generate new .bin ok!

On Feb 3, 2018 11:08 AM, "zhmrab" notifications@github.com wrote:

@Dev1Dev2Dev5 https://github.com/dev1dev2dev5 you need to delete your old blockchain folder

rm -rf .yourcoin

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/29#issuecomment-362766054, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tTrJCk9H3Z08hZ1KO8wswNt2t1VVks5tQ7-egaJpZM4NRJeB .