Skip to content

RustFS never starts on macOS: "Volume not found" because the data path contains a space #62

Description

@1stevengrant

RustFS installs but never starts on macOS. Flock restarts it every 30 seconds, and the log shows:

{"level":"ERROR","message":"Local disk initialization failed","error":"VolumeNotFound",...}
[FATAL] Server runtime failed: Volume not found
[flock] rustfs exited: exit status 1

Cause

rustfs() in internal/catalog/kinds.go passes the absolute data directory as the volume:

rustfs server ... --secret-key rustfsadmin /Users/me/Library/Application Support/Flock/services/rustfs/data/1

RustFS splits its volume arguments at spaces, so it gets /Users/me/Library/Application and Support/Flock/..., and neither exists. The same RustFS 1.0.3 binary starts fine with a data directory that has no space. This is the same kind of bug as #46 (MariaDB's basedir).

TestIntegrationInstallAndRun already uses a root with a space for this case, and FLOCK_CATALOG_INTEGRATION=rustfs fails on develop with the error above.

Proposed fix

Run RustFS from inside its data directory and pass . as the volume, the same way Meilisearch and MongoDB already use Dir: p.Data:

"--access-key", RustFSAccessKey, "--secret-key", RustFSSecretKey, "."},
Dir:        p.Data, // RustFS splits its volumes at spaces, as in ~/Library/Application Support

I have a branch with this change and a unit test (TestRustFSVolumeHasNoSpace) that fails before the change and passes after. With the fix, the RustFS integration test passes too. I'm happy to open the PR against develop if this is approved.

Environment: macOS 27.0 (arm64), RustFS 1.0.3 build 1.

Activity

  1. added theissue type on Oct 25, 2026
  2. onairmarc commented on Oct 25, 2026

    @onairmarc
    Member

    @1stevengrant I've assigned you the issue, so you should be able to open the PR with your changes now.

  3. 1stevengrant commented on Oct 25, 2026

    @1stevengrant
    ContributorAuthor

    Thanks @onairmarc! The fix is up in #64.

  4. added this to the v1.x milestone on Nov 3, 2026
  5. added a commit that references this issue on Nov 3, 2026
    d93fac8
  6. removed this from the v1.1.0 milestone on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions