gandlafbtc / nutstash-wallet

Cashu Wallet with multi-mint and send-to-nostr-key functionality
https://v2.nutstash.app
GNU General Public License v3.0
44 stars 10 forks source link

File access errors on mints.json and tokens.json #84

Closed TheFockinFury closed 1 year ago

TheFockinFury commented 1 year ago

Describe the bug When running the latest version in docker, I see file access errors repeatedly in the container's console:

[Error: ENOENT: no such file or directory, open './data/mints.json'] {

  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: './data/mints.json'
}
[Error: EACCES: permission denied, open './tokens.json'] {
  errno: -13,
  code: 'EACCES',
  syscall: 'open',
  path: './tokens.json'
}

To Reproduce Steps to reproduce the behavior:

  1. Deploy nutstash-wallet:0.1.11-d
  2. Access the web UI on whatever port you exposed
  3. Enable selfhosted backup option in 'settings'
  4. Add some mints, receive some tokens
  5. Browse to a few more pages in the wallet

Expected behavior No errors

Desktop (please complete the following information):