cannot open datadir

+1 vote

Hi I am trying to create a chain in a directory (win7 x64) like this and here what is says:

multichain-util create shain1 -datadir='C:\Multichain\Chain1\data'
MultiChain utilities build 1.0 beta 1 protocol 10008

Cannot create chain parameter set, cannot open file c:\MultiChain\bin\'C:\Multichain\Chain1\data'\params.dat for writing
ERROR: Blockchain parameter set was not generated.

Am I missing something?

asked Jun 8, 2017 by karbofoss80

1 Answer

0 votes

I think you need to specify the data directory as an absolute path on the main disk, rather than including that disk name. Please try:

-datadir="\Multichain\Chain1\data"

And please let us know if it works or if you get an error message.

answered Jun 8, 2017 by MultiChain
I tried this, same effect:

current folder: c:\Multichain
$ multichain-util create chain3 -datadir=Chain3\data
MultiChain utilities build 1.0 beta 1 protocol 10008

Cannot create chain parameter set, cannot open file c:\Multichain\Chain3\data\params.dat for writing
ERROR: Blockchain parameter set was not generated.

Tried path both with and without quotes.
You need to make sure the directory exists before instructing MultiChain to use it in the -datadir command.
I got the same error. I am trying to save chain data in different folder.
Is your error resolved?
...