config_io

Diagnostic `nanook::config::io`

Summary

failed to read config file `{0}`

Help

check that the file exists and is readable by the current user

Details

When this fires

ConfigError::Io (see crates/nanook-core/src/config/error.rs) wraps a std::io::Error from reading the config file off disk. Most common causes are the path passed via --config (or the default search path used by nanook run / nanook check) not existing, the file being unreadable for the current user, or a directory in the path not being traversable. The message includes the path that was attempted.

What to check

Under systemd, the reading user is whatever User= resolves to, so check perms against that. --config must point at a file, not a directory.

nanook check --config /etc/nanook/nanook.toml