List of OS error codes

The following document contains a partial list of Operating System (OS) error codes that can be reported when running QuestDB and brief descriptions for them.

Where to find error codes#

QuestDB includes OS error codes into the [<code>] part of the exception message written to the error logs:

io.questdb.cairo.CairoException: [24] could not open read-only [file=/root/.questdb/db/cpu/service.k]

The above message reports error code 24 which is "Too many open files" on Linux.

Some of the error log messages may also include errno=<code> key/value pair:

2022-02-01T13:40:10.636014Z E i.q.c.l.t.LineTcpConnectionContext [8655] could not process line data [table=test_table, msg=could not mmap [size=248, offset=0, fd=1766, memUsed=314809894008, fileLen=8192], errno=12]

The above message reports error code 12 which is "Out of memory" on Linux.

Linux error codes#

Error numberError nameDescription
1EPERMOperation not permitted.
2ENOENTNo such file or directory.
3ESRCHNo such process.
4EINTRInterrupted system call.
5EIOI/O error.
6ENXIONo such device or address.
7E2BIGArgument list too long.
8ENOEXECExec format error.
9EBADFBad file number.
10ECHILDNo child processes.
11EAGAINTry again.
12ENOMEMOut of memory.
13EACCESPermission denied.
14EFAULTBad address.
15ENOTBLKBlock device required.
16EBUSYDevice or resource busy.
17EEXISTFile exists.
18EXDEVCross-device link.
19ENODEVNo such device.
20ENOTDIRNot a directory.
21EISDIRIs a directory.
22EINVALInvalid argument.
23ENFILEFile table overflow.
24EMFILEToo many open files.
25ENOTTYNot a typewriter.
26ETXTBSYText file busy.
27EFBIGFile too large.
28ENOSPCNo space left on device.
29ESPIPEIllegal seek.
30EROFSRead-only file system.
31EMLINKToo many links.
32EPIPEBroken pipe.
33EDOMMath argument out of domain of func.
34ERANGEMath result not representable.
35EDEADLKResource deadlock would occur.
36ENAMETOOLONGFile name too long.
37ENOLCKNo record locks available.
38ENOSYSFunction not implemented.
39ENOTEMPTYDirectory not empty.
40ELOOPToo many symbolic links encountered.
42ENOMSGNo message of desired type.
43EIDRMIdentifier removed.
44ECHRNGChannel number out of range.
45EL2NSYNCLevel 2 not synchronized.
46EL3HLTLevel 3 halted.
47EL3RSTLevel 3 reset.
48ELNRNGLink number out of range.
49EUNATCHProtocol driver not attached.
50ENOCSINo CSI structure available.
51EL2HLTLevel 2 halted.
52EBADEInvalid exchange.
53EBADRInvalid request descriptor.
54EXFULLExchange full.
55ENOANONo anode.
56EBADRQCInvalid request code.
57EBADSLTInvalid slot.
59EBFONTBad font file format.
60ENOSTRDevice not a stream.
61ENODATANo data available.
62ETIMETimer expired.
63ENOSROut of streams resources.
64ENONETMachine is not on the network.
65ENOPKGPackage not installed.
66EREMOTEObject is remote.
67ENOLINKLink has been severed.
68EADVAdvertise error.
69ESRMNTSrmount error.
70ECOMMCommunication error on send.
71EPROTOProtocol error.
72EMULTIHOPMultihop attempted.
73EDOTDOTRFS specific error.
74EBADMSGNot a data message.
75EOVERFLOWValue too large for defined data type.
76ENOTUNIQName not unique on network.
77EBADFDFile descriptor in bad state.
78EREMCHGRemote address changed.
79ELIBACCCan not access a needed shared library.
80ELIBBADAccessing a corrupted shared library.
81ELIBSCN.lib section in a.out corrupted.
82ELIBMAXAttempting to link in too many shared libraries.
83ELIBEXECCannot exec a shared library directly.
84EILSEQIllegal byte sequence.
85ERESTARTInterrupted system call should be restarted.
86ESTRPIPEStreams pipe error.
87EUSERSToo many users.
88ENOTSOCKSocket operation on non-socket.
89EDESTADDRREQDestination address required.
90EMSGSIZEMessage too long.
91EPROTOTYPEProtocol wrong type for socket.
92ENOPROTOOPTProtocol not available.
93EPROTONOSUPPORTProtocol not supported.
94ESOCKTNOSUPPORTSocket type not supported.
95EOPNOTSUPPOperation not supported on transport endpoint.
96EPFNOSUPPORTProtocol family not supported.
97EAFNOSUPPORTAddress family not supported by protocol.
98EADDRINUSEAddress already in use.
99EADDRNOTAVAILCannot assign requested address.
100ENETDOWNNetwork is down.
101ENETUNREACHNetwork is unreachable.
102ENETRESETNetwork dropped connection because of reset.
103ECONNABORTEDSoftware caused connection abort.
104ECONNRESETConnection reset by peer.
105ENOBUFSNo buffer space available.
106EISCONNTransport endpoint is already connected.
107ENOTCONNTransport endpoint is not connected.
108ESHUTDOWNCannot send after transport endpoint shutdown.
109ETOOMANYREFSToo many references: cannot splice.
110ETIMEDOUTConnection timed out.
111ECONNREFUSEDConnection refused.
112EHOSTDOWNHost is down.
113EHOSTUNREACHNo route to host.
114EALREADYOperation already in progress.
115EINPROGRESSOperation now in progress.
116ESTALEStale NFS file handle.
117EUCLEANStructure needs cleaning.
118ENOTNAMNot a XENIX named type file.
119ENAVAILNo XENIX semaphores available.
120EISNAMIs a named type file.
121EREMOTEIORemote I/O error.
122EDQUOTQuota exceeded.
123ENOMEDIUMNo medium found.
124EMEDIUMTYPEWrong medium type.
125ECANCELEDOperation Canceled.
126ENOKEYRequired key not available.
127EKEYEXPIREDKey has expired.
128EKEYREVOKEDKey has been revoked.
129EKEYREJECTEDKey was rejected by service.
130EOWNERDEADOwner died.
131ENOTRECOVERABLEState not recoverable.

Windows error codes#

A complete list of Windows error codes may be found here.

Error numberError nameDescription
1ERROR_INVALID_FUNCTIONIncorrect function.
2ERROR_FILE_NOT_FOUNDThe system cannot find the file specified.
3ERROR_PATH_NOT_FOUNDThe system cannot find the path specified.
4ERROR_TOO_MANY_OPEN_FILESThe system cannot open the file.
5ERROR_ACCESS_DENIEDAccess is denied.
6ERROR_INVALID_HANDLEThe handle is invalid.
7ERROR_ARENA_TRASHEDThe storage control blocks were destroyed.
8ERROR_NOT_ENOUGH_MEMORYNot enough storage is available to process this command.
9ERROR_INVALID_BLOCKThe storage control block address is invalid.
10ERROR_BAD_ENVIRONMENTThe environment is incorrect.
11ERROR_BAD_FORMATAn attempt was made to load a program with an incorrect format.
12ERROR_INVALID_ACCESSThe access code is invalid.
13ERROR_INVALID_DATAThe data is invalid.
14ERROR_OUTOFMEMORYNot enough storage is available to complete this operation.
15ERROR_INVALID_DRIVEThe system cannot find the drive specified.
16ERROR_CURRENT_DIRECTORYThe directory cannot be removed.
17ERROR_NOT_SAME_DEVICEThe system cannot move the file to a different disk drive.
18ERROR_NO_MORE_FILESThere are no more files.
19ERROR_WRITE_PROTECTThe media is write protected.
20ERROR_BAD_UNITThe system cannot find the device specified.
21ERROR_NOT_READYThe device is not ready.
22ERROR_BAD_COMMANDThe device does not recognize the command.
23ERROR_CRCData error (cyclic redundancy check).
24ERROR_BAD_LENGTHThe program issued a command but the command length is incorrect.
25ERROR_SEEKThe drive cannot locate a specific area or track on the disk.
26ERROR_NOT_DOS_DISKThe specified disk or diskette cannot be accessed.
27ERROR_SECTOR_NOT_FOUNDThe drive cannot find the sector requested.
28ERROR_OUT_OF_PAPERThe printer is out of paper.
29ERROR_WRITE_FAULTThe system cannot write to the specified device.
30ERROR_READ_FAULTThe system cannot read from the specified device.
31ERROR_GEN_FAILUREA device attached to the system is not functioning.
32ERROR_SHARING_VIOLATIONThe process cannot access the file because it is being used by another process.
33ERROR_LOCK_VIOLATIONThe process cannot access the file because another process has locked a portion of the file.
34ERROR_WRONG_DISKThe wrong diskette is in the drive. Insert %2 (Volume Serial Number: %3) into drive %1.
36ERROR_SHARING_BUFFER_EXCEEDEDToo many files opened for sharing.
38ERROR_HANDLE_EOFReached the end of the file.
39ERROR_HANDLE_DISK_FULLThe disk is full.
87ERROR_INVALID_PARAMETERThe parameter is incorrect.
112ERROR_DISK_FULLThe disk is full.
123ERROR_INVALID_NAMEThe file name, directory name, or volume label syntax is incorrect.
1450ERROR_NO_SYSTEM_RESOURCESInsufficient system resources exist to complete the requested service.