{"record":{"id":"c0ddf4d23c48e9b7","repo":"juicedata/juicefs","slug":"find-executable-s","errorCode":null,"errorMessage":"find executable: %s","messagePattern":"find executable: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/mount_unix.go","lineNumber":998,"sourceCode":"\tif os.Getenv(\"JFS_INSIDE_CONTAINER\") != \"1\" {\n\t\tutils.AdjustOOMKiller(-1000)\n\t}\n\tutils.SetIOFlusher()\n\n\tif c.Bool(\"disable-transparent-hugepage\") {\n\t\tutils.DisableTHP()\n\t}\n\n\tif canShutdownGracefully(mp, conf) {\n\t\tshutdownGraceful(mp)\n\t}\n\tos.Setenv(\"_FUSE_FD_COMM\", serverAddress)\n\tserveFuseFD(serverAddress)\n\tdefer os.Remove(serverAddress)\n\n\tpath, err := os.Executable()\n\tif err != nil {\n\t\treturn fmt.Errorf(\"find executable: %s\", err)\n\t}\n\tstart := time.Now()\n\tfor attempt := 0; ; attempt++ {\n\t\tif attempt == 3 && time.Since(start) < time.Second*10 {\n\t\t\treturn fmt.Errorf(\"fail 3 times in %s, give up\", time.Since(start))\n\t\t}\n\t\t// For volcengine VKE serverless container, no umount before mount when\n\t\t// `JFS_NO_UMOUNT` environment provided\n\t\tnoUmount := os.Getenv(\"JFS_NO_UMOUNT\")\n\t\tif fuseFd == 0 && (attempt > 0 || noUmount == \"0\") {\n\t\t\t_ = doUmount(mp, true)\n\t\t}\n\t\tif runtime.GOOS == \"linux\" {\n\t\t\tif !utils.Exists(serverAddress) {\n\t\t\t\tserveFuseFD(serverAddress)\n\t\t\t}\n\t\t}\n","sourceCodeStart":980,"sourceCodeEnd":1016,"githubUrl":"https://github.com/juicedata/juicefs/blob/c9a67b23e8e08ec23ec331aa6f1675e2319e921c/cmd/mount_unix.go#L980-L1016","documentation":"Returned by launchMount when os.Executable fails to locate the path of the running juicefs binary. The FUSE fd mounting flow needs to re-exec itself, so without the executable path the launch cannot continue.","triggerScenarios":"Thrown at cmd/mount_unix.go:998 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run juicefs via its real file path (not through a deleted/replaced binary or odd procfs environment)","Reinstall/replace the binary if its path became invalid"],"exampleFix":null,"handlingStrategy":"fallback","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"}