{"record":{"id":"6522e4cb203d909c","repo":"juicedata/juicefs","slug":"dump-dir-d-failed","errorCode":null,"errorMessage":"dump dir %d failed","messagePattern":"dump dir (.+?) failed","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/meta/sql.go","lineNumber":5119,"sourceCode":"\t\tbar.Increment()\n\t\tif trash != nil {\n\t\t\ttrash.Name = \"Trash\"\n\t\t\tbar.IncrTotal(1)\n\t\t\tbar.Increment()\n\t\t}\n\t\tshowProgress := func(totalIncr, currentIncr int64) {\n\t\t\tif !useTotal {\n\t\t\t\tbar.IncrTotal(totalIncr)\n\t\t\t}\n\t\t\tbar.IncrInt64(currentIncr)\n\t\t}\n\t\tif m.snap != nil {\n\t\t\t_ = m.dumpDirFast(root, tree, bw, 1, showProgress)\n\t\t} else {\n\t\t\tshowProgress(int64(len(tree.Entries)), 0)\n\t\t\tif err = m.dumpDir(s, root, tree, bw, 1, threads, showProgress); err != nil {\n\t\t\t\tlogger.Errorf(\"dump dir %d failed: %s\", root, err)\n\t\t\t\treturn fmt.Errorf(\"dump dir %d failed\", root) // don't retry\n\t\t\t}\n\t\t}\n\t\tif trash != nil {\n\t\t\tif _, err = bw.WriteString(\",\"); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tif m.snap != nil {\n\t\t\t\t_ = m.dumpDirFast(TrashInode, trash, bw, 1, showProgress)\n\t\t\t} else {\n\t\t\t\tshowProgress(int64(len(trash.Entries)), 0)\n\t\t\t\tif err = m.dumpDir(s, TrashInode, trash, bw, 1, threads, showProgress); err != nil {\n\t\t\t\t\tlogger.Errorf(\"dump trash failed: %s\", err)\n\t\t\t\t\treturn fmt.Errorf(\"dump trash failed\") // don't retry\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif _, err = bw.WriteString(\"\\n}\\n\"); err != nil {\n\t\t\treturn err","sourceCodeStart":5101,"sourceCodeEnd":5137,"githubUrl":"https://github.com/juicedata/juicefs/blob/c9a67b23e8e08ec23ec331aa6f1675e2319e921c/pkg/meta/sql.go#L5101-L5137","documentation":"Returned by dbMeta.DumpMeta when recursively dumping the root directory tree fails (non-fast path). The inner error is logged; the outer 'don't retry' wording exists because partial JSON output has already been written, so retrying would produce a corrupt append rather than fix it.","triggerScenarios":"Thrown at pkg/meta/sql.go:5119 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the logged inner error (DB read failures)","Restart the dump from scratch into a fresh output file"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c9a67b23e8e08ec23ec331aa6f1675e2319e921c","analyzedAt":"2026-09-06T17:55:48.476Z","contentChangedAt":"2026-09-06T17:55:48.476Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}