juicedata/juicefs · error

can't create bucket: %s

Error message

can't create bucket: %s

What it means

Returned by `juicefs objbench` when creating the benchmark bucket on the object store fails. It wraps the backend Create error — bad credentials, insufficient permission, or an invalid bucket name/endpoint.

Source

Thrown at cmd/objbench.go:229

		skipped = fmt.Sprintf("%s%dm%s%s", COLOR_SEQ, YELLOW, skipped, RESET_SEQ)
		pass = fmt.Sprintf("%s%dm%s%s", COLOR_SEQ, GREEN, pass, RESET_SEQ)
		failed = fmt.Sprintf("%s%dm%s%s", COLOR_SEQ, RED, failed, RESET_SEQ)
	}
	if runtime.GOOS != "windows" {
		nobody, err := user.Lookup("nobody")
		if err != nil {
			logger.Fatalf("lookup nobody user failed: %v", err)
		} else {
			group, err := user.LookupGroupId(nobody.Gid)
			if err != nil {
				logger.Fatalf("lookup nobody's group failed: %v", err)
			}
			groupName = group.Name
		}
	}
	if ctx.Bool("skip-functional-tests") {
		if err := blob.Create(ctx.Context); err != nil {
			return fmt.Errorf("can't create bucket: %s", err)
		}
	} else {
		var result [][]string
		result = append(result, []string{"CATEGORY", "TEST", "RESULT"})
		fmt.Println("Start Functional Testing ...")
		functionalTesting(ctx.Context, blob, &result, colorful)
		printResult(result, -1, colorful)
		fmt.Println()
	}
	fmt.Println("Start Performance Testing ...")
	var pResult [][]string
	pResult = append(pResult, []string{"ITEM", "VALUE", "COST"})

	apis := []apiInfo{
		{
			name:  "smallput",
			count: sCount,
			title: "put small objects",

View on GitHub (pinned to c9a67b23e8)

Solutions

  1. Verify access keys and permissions allow bucket creation on the endpoint
  2. Ensure the bucket name is valid and does not violate the provider's rules
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at cmd/objbench.go:229 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/2aeabff3fa7d9533. Report an issue: GitHub.