Collection 01

Errors

Read the message literally, then find the layer that produced it.

Error names are not explanations. Each entry starts from the exact text a program or tool returns and narrows the cause to a path, a permission, a state, or an encoding.

Index

On this shelf

NameNamespaceWhat to check
Reading a Python UnicodeDecodeError Question & Answer Encoding Which byte, encoding, and position caused the decode error?
EACCES During Path Traversal Question & Answer Filesystem Which directory in a path is denying access?
ENOENT and Relative Paths Question & Answer Filesystem Why can a relative path work in the shell but fail inside a program?
Why Git Rejects a Non-Fast-Forward Push Question & Answer Git What does a non-fast-forward rejection mean, and when is force-push safe?

Reading path

A way in

If a path is the suspect, start with ENOENT and the working-directory entry it links to. If the path exists but one directory denies access, continue with EACCES.

  1. 01 ENOENT and Relative PathsA relative path is resolved against the calling process's current working directory, so it works in the shell but fails in a program that a service manager, IDE, or cron started somewhere else. Anchor the path to the script's own directory or another absolute location instead of relying on the launcher's directory.
  2. 02 EACCES During Path TraversalEACCES means the kernel could not traverse the path because some directory component lacks search (x) permission for your effective user, or the final file lacks the requested access; the error does not identify the component. Check every ancestor with namei -l and inspect modes, ACLs, and mount options rather than only the leaf file.

All entries

Full catalog