Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Block download starts from zero after crash/restart  (Read 519 times)

0 Members and 1 Guest are viewing this topic.

38PTSWarrior

  • Guest
Block download starts from zero after crash/restart
« on: January 10, 2015, 08:51:56 AM »

Please someone help me. I built the latest version and everything worked fine. I was at block 600000 or something when it stopped downloading. Then I closed the programn and started again which resulted in continuing downloading. This was a big success because before it always didn*t download anymore.

Then it stopped again and I went to bed shutting down the computer. Now I had a nice sleep and wake up in the hope for the best. Then "critical error, please start again".

Someone told me to delete the config.json, which I did. Then it started again but surprise surprise, blocks start to download from zero again. Why?


Offline pc

  • Hero Member
  • *****
  • Posts: 1012
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BTS: cyrano
  • Witness: cyrano
  • Payrate: 100%
Re: Block download starts from zero after crash/restart
« Reply #1 on: January 10, 2015, 09:15:20 AM »
If the client crashes or is otherwise forcefully terminated it is likely that the chain database was in an inconsistent state. In that case the client starts with an empty database again.
Please vote for my BitShares witness "cyrano" and for my STEEM witness "cyrano.witness"!
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline abit

Re: Block download starts from zero after crash/restart
« Reply #2 on: January 10, 2015, 10:16:11 AM »
Then it stopped again and I went to bed shutting down the computer. Now I had a nice sleep and wake up in the hope for the best. Then "critical error, please start again".
It's best to quit the wallet (by clicking menu File->Quit) before shut down the computer.
BTS account: abit
BTS committee member: abit
BTS witness: in.abit

38PTSWarrior

  • Guest
Re: Block download starts from zero after crash/restart
« Reply #3 on: January 10, 2015, 02:41:56 PM »
The problem is that the program creates so much RAM usage that after several hours of downloading blocks, it will get a ram access error (forgot the english term). I have 2 GB now.  Of course I always use "Quit".

Edit: Now it shows 1,3 GB ram usage in the taskmanager. In a while it will show 1,6666666 TB!
Then crash.

E2: This problem has been there since such a long time, I cannot check my balance since months!
« Last Edit: January 10, 2015, 02:45:45 PM by 38PTSWarrior »

Offline abit

Re: Block download starts from zero after crash/restart
« Reply #4 on: January 10, 2015, 03:04:37 PM »
The problem is that the program creates so much RAM usage that after several hours of downloading blocks, it will get a ram access error (forgot the english term). I have 2 GB now.  Of course I always use "Quit".

Edit: Now it shows 1,3 GB ram usage in the taskmanager. In a while it will show 1,6666666 TB!
Then crash.

E2: This problem has been there since such a long time, I cannot check my balance since months!

2GB is a bit tight..
When you find it's eating much RAM, you could try Quit and re-launch the wallet.
Wish it helps.
BTS account: abit
BTS committee member: abit
BTS witness: in.abit

38PTSWarrior

  • Guest
Re: Block download starts from zero after crash/restart
« Reply #5 on: January 10, 2015, 03:05:25 PM »
That*s exactly my plan, thanks abit

Offline xiahui135

  • Sr. Member
  • ****
  • Posts: 496
    • View Profile
Block download starts from zero after crash/restart
« Reply #6 on: January 11, 2015, 02:27:34 AM »
The user firstly want to open the client ,and then watch his/her account credit. So i think it may be better firstly allow open the client, then load the newest blocks and the higher blocks. The history blockchain may load after those. I do not know the client can be realized like this. If there is some mistakes, please correct me.

38PTSWarrior

  • Guest
Re: Block download starts from zero after crash/restart
« Reply #7 on: January 11, 2015, 11:06:04 AM »
This time I tried to run the client only for half an hour. I hit "Quit" and it closed without errors. When I started it again, it showed "error, please start the program again". Then I deleted the config.json because otherwise it would show the same error again.

After deleting the config.json it started normally but the blocks where downloading from zero again. Should I give up?


« Last Edit: January 11, 2015, 02:18:53 PM by 38PTSWarrior »

Offline abit

Re: Block download starts from zero after crash/restart
« Reply #8 on: January 11, 2015, 03:57:35 PM »
Sorry I have no idea.. maybe it will help if you send your log files to the devs?
BTS account: abit
BTS committee member: abit
BTS witness: in.abit

38PTSWarrior

  • Guest
Re: Block download starts from zero after crash/restart
« Reply #9 on: January 11, 2015, 04:06:09 PM »
Do you know which log files abit? Blockchain, default, p2p, rpc?

Offline abit

Re: Block download starts from zero after crash/restart
« Reply #10 on: January 11, 2015, 04:18:01 PM »
Do you know which log files abit? Blockchain, default, p2p, rpc?
How about all?
BTS account: abit
BTS committee member: abit
BTS witness: in.abit

38PTSWarrior

  • Guest
Re: Block download starts from zero after crash/restart
« Reply #11 on: January 11, 2015, 04:27:19 PM »
Thank you

38PTSWarrior

  • Guest
Re: Block download starts from zero after crash/restart
« Reply #12 on: January 11, 2015, 04:31:30 PM »
default and logs have together 1.4 GB file size :D

Offline abit

Re: Block download starts from zero after crash/restart
« Reply #13 on: January 11, 2015, 04:42:17 PM »
default and logs have together 1.4 GB file size :D
Only the most recent logs (or around the time when errors occurred) are needed.
Compress them.
BTS account: abit
BTS committee member: abit
BTS witness: in.abit

Offline vikram

Re: Block download starts from zero after crash/restart
« Reply #14 on: January 13, 2015, 12:23:55 AM »
The log files you sent looked pretty normal. I think this might just be a problem of low memory + the client might have a memory leak. We've have reports in the past of crashing and other problems due to too low memory. We'll do some checking to see if we can find a leak, but otherwise, you might have better luck waiting for the next release (should be out very soon).

 

Google+