Bitcoin Forum

Other => Beginners & Help => Topic started by: mikeenikee on December 02, 2011, 09:27:32 PM



Title: Error loading Blkindex.dat file on Windows 8 Dev Preview
Post by: mikeenikee on December 02, 2011, 09:27:32 PM
Hello everybody! I am running windows 8 developer preview build and I came across an error saying "error loading Blkindex.dat." I have been checking other forums about this issue and they said trying to remove that file from their %APPDATA% but I'm pretty sure windows 8 did away with that and just has a tmp folder now instead. So I checked the tmp folder and it wasn't there either.

I'm 99.99% sure this isn't a windows 8 problem. I just need some help and any feedback will be greatly appreciated! Thanks! :)


Title: Re: Error loading Blkindex.dat file on Windows 8 Dev Preview
Post by: tysat on December 02, 2011, 11:01:09 PM
Is this a new installation?

If so then try running it with the flag -datadir=(full filepath, C:\..\..\) to a different location.  That will cause it to store all of the data in the specified folder, it will generate a new wallet this way.

If you already have a wallet, just place it in the directory you specify.


Title: Re: Error loading Blkindex.dat file on Windows 8 Dev Preview
Post by: mikeenikee on December 02, 2011, 11:15:39 PM
How do I run it with a different flag? Can you explain it a bit more in steps please? Sorry, I'm still new to this. Thanks!


Title: Re: Error loading Blkindex.dat file on Windows 8 Dev Preview
Post by: dark_st3alth on December 02, 2011, 11:50:29 PM
How do I run it with a different flag? Can you explain it a bit more in steps please? Sorry, I'm still new to this. Thanks!

In "cmd.exe" you do this (search for it or use run):

cd directory/where/program/is
program_name.exe -datadir "C:\trolls\"

EDIT: That would be my thought on it...


Title: Re: Error loading Blkindex.dat file on Windows 8 Dev Preview
Post by: deepceleron on December 03, 2011, 12:05:03 AM
It sounds like the blockchain database is corrupted. Did Bitcoin ever work?

The user data directory is %APPDATA%/Bitcoin (you can type that in to windows explorer or a search to bring up that folder.) The blockchain is the two files blk0001.dat and blkindex.dat in that directory. You can delete these two files and all the log files in the "database" subdirectory, and then re-launch Bitcoin, which will make it begin downloading all the blocks again.

You must also be able to read and write data to this directory. This is a user directory, so permissions to save program data should be not an issue.

You can refer to this thread (https://bitcointalk.org/index.php?topic=51456) for more details about the blockchain and downloading it.


Title: Re: Error loading Blkindex.dat file on Windows 8 Dev Preview
Post by: mikeenikee on December 03, 2011, 01:22:04 AM
No this is not a new installation. It worked for 1 day and went corrupt. Also there is no %APPDATA% in Windows 8. I also tried all command line prompts you suggested and I just got back an error saying it didn't recognize my input as a readable file or batch file. Please help. Can somebody recommend any online wallets that I can use for the meantime while I mine?


Title: Re: Error loading Blkindex.dat file on Windows 8 Dev Preview
Post by: deepceleron on December 04, 2011, 07:06:59 PM
http://www.computerperformance.co.uk/win8/windows8-appdata_folder.htm

The user appdata seems the same, and it has the environment variables. C:\Users\[username]\AppData\Roaming\Bitcoin is where you would be browsing to. Note that the Appdata folder may be hidden, you may need to change folder options to show hidden files and show file extensions.