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.
4 entries
Download the collection index (JSON)Index
On this shelf
| Name | Namespace | What 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.
- 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.
- 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
- EACCES During Path Traversal EACCES 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.
- ENOENT and Relative Paths A 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.
- Reading a Python UnicodeDecodeError UnicodeDecodeError names the codec, the offending byte, and its zero-based position; the usual causes are a wrong encoding assumption, a truncated multi-byte sequence, or binary data. Read exc.encoding, exc.object, exc.start, exc.end, and exc.reason, inspect the bytes around the failure, then decode with the encoding the data actually uses.
- Why Git Rejects a Non-Fast-Forward Push A non-fast-forward rejection means the remote branch contains commits your local branch does not have, so the update would discard them; fetch and integrate the remote work, then push. Force-push only on branches you control, and prefer --force-with-lease over --force.