Informix Error -8008: The file filename could not be opened. The operating system was asked to open it for reading.
Cause and resolution
The file filename could not be opened. The operating system was asked to open it for reading.
Check the spelling of the filename. Make sure that the file exists and that your account name has read access to it. If the file is in a directory other than the current directory, you might have to enter a complete pathname.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-8008 fires when the ACE compiler can't open a named file for reading — per the official guidance.
- A misspelled filename, per the official guidance — the first named cause.
- The file doesn't exist, per the official guidance — the second named cause.
- The account lacks read access, per the official guidance — the third named cause.
Solutions / Resolution
- Check the spelling of the filename, per the official guidance.
- Make sure the file exists and the account has read access to it, per the official guidance.
- Enter a complete pathname if the file is in a directory other than the current directory, per the official guidance.
Examples
Checking file existence and permissions
$ ls -l filename
Diagnostic Checks
- Check the filename's spelling, its existence, its read permission, and whether a full path is needed.
Related Errors / Related Topics
- -8010 — "The file filename could not be opened. The operating system was asked to open it for writing..." The equivalent failure, for opening a file to write rather than read.
A file couldn't be opened for reading — check spelling, existence, read permission, and pathname.