Skip to content

dapr workflow list not working Mongo stores 1.17 #1606

@MyMirelHub

Description

@MyMirelHub

Expected Behavior

With MongoDB as the actor state store, dapr workflow list -a <app-id> should work:

  • Without -c: gRPC ListInstanceIDs on the sidecar should succeed (same as Redis).
  • With -c (Mongo URI): if gRPC is unavailable, the CLI fallback should still be able to list workflows using that connection string.

Actual Behavior

With MongoDB as the actor state store, dapr workflow list fails in both cases:

  1. No connection string
    Fails with: “connection string is required for all database drivers for Dapr pre v1.17” (CLI goes to DB fallback but can’t open Mongo without a URI).

  2. With connection string (-c 'mongodb://...')
    Still fails with ❌ No workflow found in namespace

With Redis as actor store, workflow list without -c works.

Steps to Reproduce the Problem

  1. Run MongoDB as a replica set and configure a Mongo state store with actorStateStore: true.
  2. Run a workflow app using only that store (e.g. run template under cli/repros/mongo-workflow).
  3. dapr workflow run ... -a <app-id> — instance starts.
  4. dapr workflow list -a <app-id>fails (no -c).
  5. dapr workflow list -a <app-id> -c 'mongodb://...'also fails (or empty/wrong) without additional CLI fixes.

Release Note

RELEASE NOTE: FIX dapr workflow list with MongoDB actor state store (gRPC list and/or CLI fallback).

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions