Informix Error -4826: The file file_name cannot be written. Accompanying OS message : OS_Message.
Cause and resolution
The file file_name cannot be written. Accompanying OS message : OS_Message.
The file cannot be written. Check that your username, has permission to write to the file. Look for the accompanying error messages from the operating system. Possibly, the file is already closed, or the disk is full, or a hardware failure occurred.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4826 fires when a file I/O Write operation fails — per the official guidance.
- Insufficient permission to write to the file, per the official guidance — the first named cause.
- The file is already closed, per the official guidance — the second named cause.
- A full disk, per the official guidance — the third named cause.
- A hardware failure, per the official guidance — the fourth named cause.
Solutions / Resolution
- Check that the account has permission to write to the file, per the official guidance.
- Look for the accompanying operating-system error message, per the official guidance, for the specific cause.
Examples
Checking write permission and free space
$ ls -l filename
$ df -h .
Diagnostic Checks
- Check the accompanying OS message, write permission on the file, disk space, and underlying storage health.
Related Errors / Related Topics
- -4821 — "The file file_name cannot be created or opened." A related file I/O failure, about opening rather than writing.
- -4824 — "The file "%s" cannot be read." A related file I/O failure, about reading rather than writing.
A file couldn't be written — check the accompanying OS message, permissions, disk space, and hardware.