Skip to content

Commit 69883b2

Browse files
authored
Merge pull request #2130 from andyzhangx/add-logging-blobfuse-proxy
cleanup: add more logging in blobfuse-proxy when blobfuse2 not found
2 parents ef4cc31 + 8e7e1ba commit 69883b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/blobfuse-proxy/server/server.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ func (server *MountServer) MountAzureBlob(_ context.Context,
101101
result.Output = string(output)
102102
klog.V(2).Infof("blobfuse output: %s\n", result.Output)
103103
if err != nil {
104+
if strings.Contains(err.Error(), "executable file not found") {
105+
return &result, fmt.Errorf("%w, PATH=%s, %s", err, os.Getenv("PATH"), result.Output)
106+
}
104107
return &result, fmt.Errorf("%w %s", err, result.Output)
105108
}
106109
return &result, nil

0 commit comments

Comments
 (0)