Skip to content

export: never-indexed ledger fails with a bare error — auto-index or say the fix #1574

Closed

Description

@aaj3f

From the same live plugin field test (re-verified by hand): on a fresh ledger that has commits but has never been indexed, fluree export mydb -o mydb.flpack fails with no binary index available for export (is the ledger indexed?). Running fluree index first fixes it.

The parenthetical is doing a lot of work — it hints at the cause but not the command. Two options, in rough preference order:

  1. Auto-index on export when no index exists (possibly behind a --no-index opt-out for scripts that want the fail-fast). Export already implies "I want the current state packaged"; making the user learn the index/commit distinction first seems like ceremony.
  2. Minimally, make the error prescriptive: no binary index available for export; run 'fluree index' first.

Also worth a clause in docs/cli/export.md either way. (The plugin's workflow recipe now includes the fluree index step, so agent-side is covered — this is about the raw CLI experience.)

Activity

  1. added
    P3
    area:cli
    on Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3area:cli

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions