KeychainMDIP / kc

Reference implementation of the Multi Dimensional Identity Protocol (MDIP)
MIT License
8 stars 0 forks source link

Wallet permission denied! #139

Open macterra opened 2 months ago

macterra commented 2 months ago

If tess-mediator or btc-mediator is the first to create an id, then

./kc create-id David BTC
Error: EACCES: permission denied, open 'data/wallet.json'
    at Object.openSync (node:fs:601:3)
    at Object.writeFileSync (node:fs:2249:35)
    at saveWallet (file:///home/david/self/kc/keymaster.js:23:8)
    at Module.createId (file:///home/david/self/kc/keymaster.js:442:5)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Command.<anonymous> (file:///home/david/self/kc/keychain-cli.js:94:25) {
  errno: -13,
  syscall: 'open',
  code: 'EACCES',
  path: 'data/wallet.json'
}
macterra commented 1 month ago

Workaround for now is to fix the permission manually like so

sudo chown david.david data/wallet.json (using your own id of course)