juicedata/juicefs · error
Aborted
Error message
Aborted
What it means
Returned by `juicefs objbench` when, after warning that the endpoint looks like a file path without an explicit --storage type, the user declines the confirmation prompt. It signals an intentional abort of benchmark setup, not an underlying failure.
Source
Thrown at cmd/objbench.go:164
}
ak, sk, token := ctx.String("access-key"), ctx.String("secret-key"), ctx.String("session-token")
if ak == "" {
ak = os.Getenv("ACCESS_KEY")
}
if sk == "" {
sk = os.Getenv("SECRET_KEY")
}
if token == "" {
token = os.Getenv("SESSION_TOKEN")
}
endpoint := ctx.Args().First()
storageType := strings.ToLower(ctx.String("storage"))
if storageType == "file" {
if strings.Contains(endpoint, "://") {
warn("The bucket \"%s\" doesn't look like a file path.", endpoint)
warn("Did you forget to specify the `--storage <type>`?")
if !userConfirmed() {
return errors.New("Aborted")
}
}
var err error
if endpoint, err = filepath.Abs(endpoint); err != nil {
logger.Fatalf("invalid path %q: %s", endpoint, err)
}
}
var blobOrigin object.ObjectStorage
var err error
shards := ctx.Int("shards")
if shards > 1 {
blobOrigin, err = object.NewSharded(storageType, endpoint, ak, sk, token, shards)
} else {
blobOrigin, err = object.CreateStorage(storageType, endpoint, ak, sk, token)
}
if err != nil {
logger.Fatalf("create storage failed: %v", err)
}View on GitHub (pinned to c9a67b23e8)
Solutions
- Specify the correct --storage <type> for the endpoint
- Re-run and answer the confirmation prompt affirmatively if the endpoint is correct
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at cmd/objbench.go:164 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of juicedata/juicefs@c9a67b23e8 (2026-09-06).
Data as JSON: /api/errors/0b702ea4cb69f560.
Report an issue: GitHub.