Error with using kmd

I started node with no blockchain data.
Then I command ‘./kmd’ then It shows Error.

user@user:~/node$ ./kmd

ERRO[0000] [Stack] goroutine 1 [running]:
runtime/debug.Stack(0xc00023c410, 0xc0001f4038, 0xc00023c4b0)
/home/travis/.gimme/versions/go1.11.2.linux.amd64/src/runtime/debug/stack.go:24 +0xa7
github.com/algorand/go-algorand/logging.logger.Errorf(0xc00023c410, 0xc0001f4038, 0xde2712, 0x23, 0x0, 0x0, 0x0)
/home/travis/gopath/src/github.com/algorand/go-algorand/logging/log.go:223 +0x4b
main.main()
/home/travis/gopath/src/github.com/algorand/go-algorand/cmd/kmd/main.go:33 +0x971
file=main.go function=main.main line=33
ERRO[0000] dataDir (-d) is a required argument file=main.go function=main.main line=33

This is expected, I believe. You need to specify a data directory with the -d option.

You don’t need to explicitly start kmd for normal use-cases. We will manage its lifetime and start it when it is needed. But yes, if you manually start it you need to point it at the data directory (eg ~/node/data/kmd-v0.5)

1 Like