{"record":{"id":"ff90e1d3a894f6bf","repo":"rustfs/rustfs","slug":"too-many-open-files-please-increase-ulimit-n","errorCode":null,"errorMessage":"too many open files, please increase 'ulimit -n'","messagePattern":"too many open files, please increase 'ulimit -n'","errorType":"exception","errorClass":"DiskError","httpStatus":null,"severity":"error","filePath":"crates/ecstore/src/disk/error.rs","lineNumber":80,"sourceCode":"    #[error(\"inconsistent drive found\")]\n    InconsistentDisk,\n\n    #[error(\"drive does not support O_DIRECT\")]\n    UnsupportedDisk,\n\n    #[error(\"drive path full\")]\n    DiskFull,\n\n    #[error(\"disk not a dir\")]\n    DiskNotDir,\n\n    #[error(\"disk not found\")]\n    DiskNotFound,\n\n    #[error(\"drive still did not complete the request\")]\n    DiskOngoingReq,\n\n    #[error(\"drive is part of root drive, will not be used\")]\n    DriveIsRoot,\n\n    #[error(\"remote drive is faulty\")]\n    FaultyRemoteDisk,\n\n    #[error(\"drive is faulty\")]\n    FaultyDisk,\n\n    #[error(\"drive access denied\")]\n    DiskAccessDenied,\n\n    #[error(\"file not found\")]\n    FileNotFound,\n\n    #[error(\"file version not found\")]\n    FileVersionNotFound,\n\n    #[error(\"too many open files, please increase 'ulimit -n'\")]","sourceCodeStart":62,"sourceCodeEnd":98,"githubUrl":"https://github.com/rustfs/rustfs/blob/5dca076efed96e7b842de07c4c2111035ae7c7a2/crates/ecstore/src/disk/error.rs#L62-L98","documentation":"TooManyOpenFiles is a DiskError sentinel: the process hit its file-descriptor limit (EMFILE) opening files/sockets on this drive. The message names the fix: raise 'ulimit -n'; under load it appears as spurious open failures across all drives.","triggerScenarios":"Thrown at crates/ecstore/src/disk/error.rs:80 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Raise the fd limit (ulimit -n / systemd LimitNOFILE) and restart the service","Reduce concurrent workload or leaking fd holders","Monitor fd usage to catch leaks before they exhaust the limit"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5dca076efed96e7b842de07c4c2111035ae7c7a2","analyzedAt":"2026-08-20T21:57:04.799Z","contentChangedAt":"2026-08-20T21:57:04.799Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}