Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: toasterthegamer on January 13, 2014, 08:15:14 PM



Title: Bitcoin Daemon Vagrant DataDir
Post by: toasterthegamer on January 13, 2014, 08:15:14 PM
Hi,

I'm using vagrant, a virtual machine development environment, to setup a test server to develop with bitcoin, and I have a script that auto compiles bitcoin on the linux guest and creates a link from home/user/.bitcoin to a shared folder on the host machine(a windows PC). When I start the daemon using: "./bitcoind -daemon" I receive this error(from the log file):

Code:
init message: Loading block index...
Opening LevelDB in /home/vagrant/.bitcoin/blocks/index
: Error opening block database.
Do you want to rebuild the block database now?
Flush(false)
DBFlush(false) ended               1ms
StopNode()
Flushed 0 addresses to peers.dat  5ms
Flush(true)
DBFlush(true) ended               0ms

I made sure that the folder and files within .bitcoin have the correct permissions. I've deleted everything in /home/vagrant/.bitcoin but I still get the same error. I have a feeling this has something to do with the fact that the windows machine is NTFS compared to the linux machine which is ext3.

Has anyone run into any similar issues or have any suggestions on how I can fix this?


Title: Re: Bitcoin Daemon Vagrant DataDir
Post by: Shahrukh on January 14, 2014, 11:07:42 PM
If vagrant is not really that important I wrote a tut on how to set this up