{"record":{"id":"9780bda4ed35de8c","repo":"juicedata/juicefs","slug":"mount-point-mismatch-s-s","errorCode":null,"errorMessage":"mount point mismatch: \n%s\n%s","messagePattern":"mount point mismatch: \n(.+?)\n(.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/debug.go","lineNumber":266,"sourceCode":"}\n\n// check pprof service status\nfunc checkPort(port int, amp string) error {\n\turl := fmt.Sprintf(\"http://localhost:%d/debug/pprof/cmdline?debug=1\", port)\n\tresp, err := getRequest(url, 3*time.Second)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"error checking pprof alive: %v\", err)\n\t}\n\tresp = bytes.ReplaceAll(resp, []byte{0}, []byte{' '})\n\tfields := strings.Fields(string(resp))\n\tflag := false\n\tfor _, field := range fields {\n\t\tif amp == field {\n\t\t\tflag = true\n\t\t}\n\t}\n\tif !flag {\n\t\treturn fmt.Errorf(\"mount point mismatch: \\n%s\\n%s\", resp, amp)\n\t}\n\treturn nil\n}\n\ntype metricItem struct {\n\tname, url string\n}\n\nfunc reqAndSaveMetric(name string, metric metricItem, outDir string, timeout time.Duration) error {\n\tresp, err := getRequest(metric.url, timeout)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"error getting metric: %v\", err)\n\t}\n\tretPath := filepath.Join(outDir, fmt.Sprintf(\"juicefs.%s\", metric.name))\n\tretFile, err := os.Create(retPath)\n\tif err != nil {\n\t\tlogger.Fatalf(\"error creating metric file %s: %v\", retPath, err)\n\t}","sourceCodeStart":248,"sourceCodeEnd":284,"githubUrl":"https://github.com/juicedata/juicefs/blob/c9a67b23e8e08ec23ec331aa6f1675e2319e921c/cmd/debug.go#L248-L284","documentation":"Returned by checkPort when the pprof cmdline of the process on the discovered port does not contain the expected mount point argument. The debug tool connected to a pprof service, but it belongs to a different JuiceFS mount, so collecting diagnostics for the requested mount would be wrong.","triggerScenarios":"Thrown at cmd/debug.go:266 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the pid/mount-point pair passed to `juicefs debug` corresponds to the right process"],"exampleFix":null,"handlingStrategy":"validation","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-14T05:17:10.506Z"}