Fail to read/write block Peercoin-qt v0.6

I am becoming very frustrated, as I have not have access to my wallet since March because I am not technically proficient enough to do what needs to be done (as my wallet is older and was not compatible with PeerUnity update version). I was waiting for this new program to be released, but alas I have more problems. I downloaded the new program, V0.6, and it begins scanning the blockchain but gets an error and crashes; the errors are either “Failed to read block” or “Failed to write block.” I rename Peercoin folder so it doesn’t use that destination anymore, I re-download the program, it doesn’t work. I don’t have any folder named “Peercoin” or “PPCoin” anymore, but it makes a new Peercoin folder each time I open the V0.6 and continues to fail to scan the blockchain. I deleted the wallet.dat file (I have backups), I delete everything inside the folder, but it still gives me the same errors. I don’t understand how to get access to files like “Peercoin.conf” or how to make these files, as have been suggested by other threads. I tried to download the app for my phone but it appears to be an old app and warns me to use it at my own risk; a warning I heed and deleted the app at once. I know my PPC still exist on the blockchain, but they are just in stasis. Could someone please explain to me step by step what I need to do? Starting with the first step being “Click the start button” and approaching it from that tack keeping in mind my technical incompetence?
Thank you in advance.
I have Windows 7, 64 bit.

1 Like

the wallet creates a directory in %APPDATA%\PPCoin , so when you install a new client it still uses the same data for blockchain and wallet. I think you want to try and redownload the blockchain? You can do so by deleting blk*.dat from that directory, everything else can stay.

or maybe your disk is full? (because the failed to write error)

1 Like

or damaged…?

1 Like

First of all make sure your wallet.dat is securely backed up!
With a backup, we will be able to help you for sure!

Retrieving your private keys from your wallet.dat is also a good idea (see ultimate recover in troubleshooting here: Update #7: Peercoin v0.6.1 Now Released, Upgrade Today! Blockchain Redownload Required! (Instructions Inside) )
You don’t need to download the blockchain to export your keys.

1 Like

It doesn’t create the PPCoin folder, it creates “Peercoin” folder. I rename this folder each time I re-try the program, so now I have eight different instances of this folder in Appdata. It restarts downloading the blockchain each time but seems to make less progress each time. The first time I got down to 260 weeks to go, but now I don’t get under 270 weeks.

I have hundreds of gigabytes of space, supposedly, remaining on my harddrive.

I’m willing to entertain the idea that my hard drive is damaged somehow, but I’ve not had any other problems with it, but it is years old.

I’m concerned that because I have two different user accounts on my computer (administrator and regular account), it is messing things up, as there are two different Appdata folders, but I renamed the PPCoin directory on my regular account and the Peercoin folder does not get made there when I run the program on my administrator account.

1 Like

@PeerCat

  1. Backup your wallet.dat to secure location.
  2. Move all the PPCoin, Peercoin, whatever folders you have out of your AppData this ensures the node will not pick one of those.
  3. Start your client without a PPCoin or Peercoin folder in any AppData folder.
  4. Let it sync overnight.
  5. When it fully synced, stop your peercoin application, copy your backed-up wallet.dat to the now single existing Peercoin folder.
  6. Restart your client.
  7. If you still have issues come back here.
3 Likes

I moved all PPCoin and Peercoin folders out of appdata/roaming folders into a different destination before those folders in the path. No difference. Fail to write/read block. I’m the only person having this problem?

1 Like

you mentioned you have different users? if so you, also have different appdata directories, default they are in C:\Users\username\AppData\Roaming

1 Like

Did it create a new Peercoin folder in one of the folders you moved the old stuff out?

1 Like

I moved all PPCoin and Peercoin folders out of Appdata for all the user accounts on my computer. Fail to read block.

It created a new Peercoin folder each time I do this. It may be crashing sooner now than it did before, but I can’t be sure. There is no appreciable difference in the integrity of the program.

2 Likes

can you show what is in debug.log?
(last couple of lines)

1 Like

2017-11-12 02:54:38 ProcessBlock: ACCEPTED
2017-11-12 02:54:38 received block 000000000013e44279b40d5a9284ea5b3837e82447da79c3b83ffbe10657889d
2017-11-12 02:54:38 net thread interrupt
2017-11-12 02:54:38 addcon thread interrupt
2017-11-12 02:54:38 stakeminter thread interrupt
2017-11-12 02:54:38 ThreadStakeMinter exiting
2017-11-12 02:54:38 dumpaddr thread stop
2017-11-12 02:54:38 ProcessBlock: ORPHAN BLOCK, prev=000000000008cb736bb3d82c1f607c3351c852caab981eeeb26990564b1e0d9e
2017-11-12 02:54:38 msghand thread interrupt
2017-11-12 02:54:40 connection timeout
2017-11-12 02:54:40 opencon thread interrupt
2017-11-12 02:54:40 Shutdown : In progress…
2017-11-12 02:54:40 Flush(false)
2017-11-12 02:54:40 DBFlush(false) ended 0ms
2017-11-12 02:54:40 StopNode()
2017-11-12 02:54:40 UPNP_DeletePortMapping() returned : 0
2017-11-12 02:54:40 upnp thread interrupt
2017-11-12 02:54:41 Flushed 3770 addresses to peers.dat 47ms
2017-11-12 02:54:41 Committing 1252 changed transactions to coin database…
2017-11-12 02:54:41 Flush(true)
2017-11-12 02:54:41 wallet.dat refcount=0
2017-11-12 02:54:41 wallet.dat checkpoint
2017-11-12 02:54:41 wallet.dat detach
2017-11-12 02:54:41 wallet.dat closed
2017-11-12 02:54:41 DBFlush(true) ended 109ms
2017-11-12 02:54:41 Shutdown : done

2 Likes

can you try running it as administrator, or are you already doing that?
you can try using a different disk if possible with appending -datadir=X:\yourdatadir

(running out of ideas)

1 Like

please upload a full debug.log to gist.github.com or pastebin or something.

2 Likes

Irritant tells me that he worked with PeerCat to solve his issue.

2 Likes

I have the exact same problem today with the v0.6.3.
What was the solution @irritant suggested?

I gave up trying to make this work, it was a problem with my computer. Once I downloaded the wallet on a new computer, it worked fine. I’m pretty sure the issue was that I had multiple instances of the wallet downloaded and installed on my computer, potentially with different accesses/permissions from my various user accounts. I’m not a good computerist, so I couldn’t identify exactly what I had done in the past and was unable to right it.

Irritant helped me fix my problem of the wallet PPC amount not matching the Blockchain website figure, which was why I was trying to rescan the wallet.

Thanks for the feedback. I actually found what caused the error in my case: it was the anti-virus software recognizing the peercoin software as malware and blocked the computer resources access from its process. After white-listing peercoin in my antivirus (and erasing the database and re-syncing) then it was all OK. Thanks.