Error starting kmd (kmd data dir not secure)

Executing the command

$ goal kmd start -t 3600

the following error is returned:

    ERRO[0000] [Stack] goroutine 1 [running]:
    runtime/debug.Stack(0xc000212070, 0xc000214000, 0xc00016aa10)
            runtime/debug/stack.go:24 +0x9f, 0xc000214000, 0x116f7c6, 0x32, 0xc000118de0, 0x2, 0x2)
   +0x4a*KMDController).StartKMD(0xc00039fc28, 0xe10, 0x0, 0x0, 0x0)
    main.startKMDForDataDir(0xc00003a070, 0x5, 0xc00003804e, 0x9, 0xc00013ea20, 0x12)
    main.glob..func64.1(0xc00003804e, 0x9)
    main.glob..func64(0x204e480, 0xc000118d40, 0x0, 0x2)
   +0x71*Command).execute(0x204e480, 0xc000118d00, 0x2, 0x2, 0x204e480, 0xc000118d00)
   +0x29f*Command).ExecuteC(0x204b2a0, 0x0, 0x118f05c, 0xc3)
   +0x98  file=kmdControl.go function="*KMDController).StartKMD" line=195
    ERRO[0000] /opt/data/kmd-v0.5: kmd data dir exists but is too permissive (755)  file=kmdControl.go function="*KMDController).StartKMD" line=195
    Failed to start kmd: kmd data dir not secure

Does anyone know how to solve this problem?

How did you create the data dir. It looks like the wrong permissions on the directory.

1 Like

I didn’t create any dir, I just ran the command described above.

What install did you use from this page?

If you are using the non deb/rpm installs you have to make sure your data directory is either set in env variable or you specify the data directory when you start: goal kmd start -t 3600 -d data

I’m actually using sandbox to run a

kmd on sanbox should start automtically. Run ./sandbox test and you should see:

~$ curl localhost:4002/v1/wallets -H “X-KMD-API-Token: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa”

1 Like

yes you’re right, I was a little confused. Thank you I appreciate your help.

No problem. Glad it’s working for you.