openvcash / vcash

A decentralized currency for the internet.
https://vcash.info
GNU Affero General Public License v3.0
36 stars 35 forks source link

Sudden system shutdown and wallet stopped working. #46

Open JafferWilson opened 6 years ago

JafferWilson commented 6 years ago

Please have a look at the output I got while running the wallet again. My system is Ubuntu 16.04

PC@PC:~/vcash$ ./vcashd 
[INFO] - create_directories: Stack creating path = /home/PC/.Vcash/data/.
[INFO] - create_directories: Stack creating path = /home/PC/.Vcash/data/blockchain/.
[INFO] - create_directories: Stack creating path = /home/PC/.Vcash/data/blockchain/peer/.
[INFO] - backup_last_wallet_file: Stack doesn't need to backup wallet file, too soon.
[INFO] - load: Configuration is loading from disk.
[INFO] - start: Stack loaded configuration from disk.
[INFO] - open: Database environment log path = /home/PC/.Vcash/data/database.
[INFO] - open: Database environment cache size = 25.
[INFO] - start: Stack is loading block index...
[INFO] - load_block_index_guts: Database transaction got genesis block.
[INFO] - load_block_index: DB TX synchronized checkpoint 15e96604fbcf7cd7e93d072a06f07ccfe1f8fd0099270a075c761c447403a783.
[INFO] - load_block_index: DB TX is verifying 1500 blocks at level << 1.
terminate called after throwing an instance of 'std::runtime_error'
  what():  read (file) failed
Aborted (core dumped)
sum01 commented 6 years ago

Like it says, it couldn't read the file. Are your permissions on the ~/.Vcash dir (or its contents) set to not allow read/write?

JafferWilson commented 6 years ago

@sum01 Is that the only issue? I thought my wallet got corrupted. Let me check it again if t works then I will let you know.

JafferWilson commented 6 years ago

@sum01 I tried giving permissions to all the files in the folder. It doesn't work. Please can suggest something other.

sum01 commented 6 years ago

Hmm. I would try moving your entire ~/.Vcash folder somewhere safe, then starting the daemon to see what happens.

JafferWilson commented 6 years ago

@sum01 If I move it somewhere else or delete the folder, the program creates new ~/.Vcash folder and start all over again. Time consuming and deceitful.

sum01 commented 6 years ago

I wasn't trying to be decietful, I was just curious as to what happens when it tries to create an entirely new folder.