{"record":{"id":"55e4f91af50aca13","repo":"rustfs/rustfs","slug":"volume-is-not-empty","errorCode":null,"errorMessage":"volume is not empty","messagePattern":"volume is not empty","errorType":"exception","errorClass":"DiskError","httpStatus":null,"severity":"error","filePath":"crates/ecstore/src/disk/error.rs","lineNumber":98,"sourceCode":"    #[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'\")]\n    TooManyOpenFiles,\n\n    #[error(\"file name too long\")]\n    FileNameTooLong,\n\n    #[error(\"volume already exists\")]\n    VolumeExists,\n\n    #[error(\"not of regular file type\")]\n    IsNotRegular,\n\n    #[error(\"path not found\")]\n    PathNotFound,\n\n    #[error(\"volume not found\")]\n    VolumeNotFound,\n\n    #[error(\"volume is not empty\")]","sourceCodeStart":80,"sourceCodeEnd":116,"githubUrl":"https://github.com/rustfs/rustfs/blob/5dca076efed96e7b842de07c4c2111035ae7c7a2/crates/ecstore/src/disk/error.rs#L80-L116","documentation":"Guard returned when deleting (or renaming away) a bucket directory that still contains entries. The S3 delete-bucket flow surfaces it as BucketNotEmpty: leftover objects, incomplete multipart uploads, or stray metadata files prevent removal. Callers must empty the bucket (including aborting in-progress multipart uploads) before retrying the delete.","triggerScenarios":"Thrown at crates/ecstore/src/disk/error.rs:98 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Delete all objects and versions inside the volume before removing it","If the volume should be empty, inspect for orphaned files and clean them","Retry the delete after the contents are removed"],"exampleFix":null,"handlingStrategy":"try-catch","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-14T00:17:10.932Z"}