Skip to content

0.5.0: flag provided but not defined: -if-replica-exists #774

@oscarcarlsson

Description

@oscarcarlsson

I was just testing the new release on my Kubernetes setup and noticed instant breakage for my setup. I could reproduce it on my macOS laptop as well.

For context, I use litestream first in an initContainer to restore, and then later as a sidecar to replicate data (no permanent storage). I noticed the breakage in my initContainer.

Bug Description

Run:

litestream restore -if-replica-exists

Receive the following error:

2025/10/02 15:29:16 ERROR failed to run error="flag provided but not defined: -if-replica-exists"

Environment

Litestream version:

0.5.0

Operating system & version:

macOS 26.0.1/arm64, and as a OCI container on Linux/amd64

Installation method:

Docker on Linux, binary download on macOS.

Storage backend:

Not relevant, but S3 compatible.

Steps to Reproduce

Run:

litestream restore -if-replica-exists

Expected behavior:

No breakage :)

Actual behavior:

2025/10/02 15:29:16 ERROR failed to run error="flag provided but not defined: -if-replica-exists"

Configuration

N/A (I think)

Logs

N/A

Additional Context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions