io

Diagnostic `nanook::auth::io`

Summary

io error on `{0}`

Help

verify the path exists and the running user can read it

Details

When this fires

Wraps a std::io::Error from the filesystem operations in nanook-auth: reading ~/.nanook/admin/id_ed25519 for Identity::load, reading the authorized_keys file pointed at by [admin].authorized_keys, or creating ~/.nanook/ with mode 0700 during Identity::save. The string in the error is the path that failed; the underlying source carries the OS reason (ENOENT, EACCES, EROFS, etc).

What to check

  • For EACCES, check parent directory permissions, not just the file's.
  • If you have not run nanook keygen yet, do that to lay down ~/.nanook/admin/id_ed25519 cleanly.
  • On agent hosts, double-check ownership against the user the agent runs as (often a dedicated system user).