Author Topic: Strange error, blockchain reset in v0.4.23.1 [osx 10.7.3]  (Read 1158 times)

0 Members and 1 Guest are viewing this topic.

Offline Riverhead

Mine did the same thing last night. I relaunched with the --resync flag and it figured itself out.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Code: [Select]
20141105T043620.677877 th_a:invoke handle_message           push_block ] attempt to switch to fork failed: 6 key_not_found_exception: Key Not Found

That seems to me that something happened with your chain state ..
1) go to %APPDATA%\BitShares X
2) delete the folders "peer_leveldb" and "chains"
3) do NOT TOUCH the "wallets" folder
4) relaunch the client and let it sync completely before attempting to do a transaction

Offline ElMato

  • Sr. Member
  • ****
  • Posts: 288
    • View Profile
I was using the cli client but wanted to take a screenshot so i closed the cli and started the GUI version.

I went to the console first (inside the GUI) and type "wallet_open test" (because i wanted to see if a missing transaction was finally there)

The GUI locks, i try to put the "test" wallet password, it didn't work so i re-entered the "default" wallet password .. i'm in again.

No connection ... and after a while (1 minute) it starts to download the blockchain from the beginin. (Your last block is 10xd old message)

Code: [Select]
(wallet closed) >>> info
{
  "blockchain_head_block_num": 23970,
  "blockchain_head_block_age": "15 weeks old",
  "blockchain_head_block_timestamp": "2014-07-22T01:27:30",
  "blockchain_average_delegate_participation": "0.01 %",
  "blockchain_confirmation_requirement": 1,
  "blockchain_delegate_pay_rate": "2.31959 BTSX",
  "blockchain_share_supply": "1,999,998,736.91903 BTSX",
  "blockchain_blocks_left_in_round": 68,
  "blockchain_next_round_time": "at least 11 minutes in the future",
  "blockchain_next_round_timestamp": "2014-11-05T04:50:50",
  "blockchain_random_seed": "45b49063507163d58a061907f000ee8122e71d6f",
  "client_data_dir": "/Users/matias/Library/Application Support/BitShares X",
  "client_version": "v0.4.23.1",
  "network_num_connections": 0,
  "network_num_connections_max": 200,
  "network_chain_downloader_running": false,
  "network_chain_downloader_blocks_remaining": null,
  "ntp_time": "2014-11-05T04:39:30",
  "ntp_time_error": -0.051547999999999997,
  "wallet_open": false,
  "wallet_unlocked": null,
  "wallet_unlocked_until": null,
  "wallet_unlocked_until_timestamp": null,
  "wallet_last_scanned_block_timestamp": null,
  "wallet_scan_progress": null,
  "wallet_block_production_enabled": null,
  "wallet_next_block_production_time": null,
  "wallet_next_block_production_timestamp": null
}

And now i'm stuck at block 23970.


Quote
    {"block_id":"cd1f95dca148ce7c93f4ec1c137d84085ba64f1e"}
    th_a  chain_database.cpp:573 switch_to_fork, reverting         chain_database.cpp:1617
20141105T043620.676411 th_a:invoke handle_message                store ] storing error in database: {"code":6,"name":"key_not_found_exception","message":"Key Not Found","stack":[{"context":{"level":"error","file":"level_map.hpp","line":106,"method":"fetch","hostname":"","thread_name":"th_a","timestamp":"20141105T043620.676094"},"format":"unable to find key ${key}","data":{"key":"2acd1a253129d4a274efba03ca9faf8ccdbf033d"}},{"context":{"level":"warn","file":"level_map.hpp","line":116,"method":"fetch","hostname":"","thread_name":"th_a","timestamp":"20141105T043620.676114"},"format":"error fetching key ${key}","data":{"key":"2acd1a253129d4a274efba03ca9faf8ccdbf033d"}},{"context":{"level":"warn","file":"chain_database.cpp","line":1119,"method":"pop_block","hostname":"","thread_name":"th_a","timestamp":"20141105T043620.676133"},"format":"","data":{}},{"context":{"level":"warn","file":"chain_database.cpp","line":573,"method":"switch_to_fork","hostname":"","thread_name":"th_a","timestamp":"20141105T043620.676154"},"format":"","data":{"block_id":"2acd1a253129d4a274efba03ca9faf8ccdbf033d"}},{"context":{"level":"warn","file":"chain_database.cpp","line":1629,"method":"push_block","hostname":"","thread_name":"th_a","timestamp":"20141105T043620.676218"},"format":"","data":{"block_data":{"previous":"3463f500b1993d7e8b6e5b4c64db7c51f8f4c4d0","block_num":23973,"timestamp":"20140722T012800","transaction_digest":"c8cf12fe3180ed901a58a0697a522f1217de72d04529bd255627a4ad6164f0f0","next_secret_hash":"3aa9cac06eb3838f92baa9b235d941fef73b2038","previous_secret":"73ef8c051808fa2259579d900973aa103d43a66f","delegate_signature":"20c01cc938ba535b6e5d758ebc02a13cd4b78b936c0d846bfd9384840fb61aa30afa096847f194c9223031eb7e45b58100fb1ab9db58cb0ecf32c39b61d72ccdd1","user_transactions":[]}}},{"context":{"level":"warn","file":"client.cpp","line":1222,"method":"on_new_block","hostname":"","thread_name":"th_a","timestamp":"20141105T043620.676282"},"format":"Error pushing block ${block_number} - ${block_id}","data":{"block_id":"cd1f95dca148ce7c93f4ec1c137d84085ba64f1e","block_number":23973,"block":{"previous":"3463f500b1993d7e8b6e5b4c64db7c51f8f4c4d0","block_num":23973,"timestamp":"20140722T012800","transaction_digest":"c8cf12fe3180ed901a58a0697a522f1217de72d04529bd255627a4ad6164f0f0","next_secret_hash":"3aa9cac06eb3838f92baa9b235d941fef73b2038","previous_secret":"73ef8c051808fa2259579d900973aa103d43a66f","delegate_signature":"20c01cc938ba535b6e5d758ebc02a13cd4b78b936c0d846bfd9384840fb61aa30afa096847f194c9223031eb7e45b58100fb1ab9db58cb0ecf32c39b61d72ccdd1","user_transactions":[]}}}]}         client.cpp:518
20141105T043620.677877 th_a:invoke handle_message           push_block ] attempt to switch to fork failed: 6 key_not_found_exception: Key Not Found
unable to find key 2acd1a253129d4a274efba03ca9faf8ccdbf033d
    {"key":"2acd1a253129d4a274efba03ca9faf8ccdbf033d"}
    th_a  level_map.hpp:106 fetch
error fetching key 2acd1a253129d4a274efba03ca9faf8ccdbf033d
    {"key":"2acd1a253129d4a274efba03ca9faf8ccdbf033d"}
    th_a  level_map.hpp:116 fetch

    {}
    th_a  chain_database.cpp:1119 pop_block