You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running dapr run -f . and a local file secret store is used where the path is relative to the location where the dapr run command is started, Dapr should initialize the secret component successfully.
The local secrets.json file can't be found when running dapr run -f ..
Output:
time="2025-03-14T11:19:25.198140021Z" level=fatal msg="Fatal error from runtime: process component daprSecretStore error: [INIT_COMPONENT_FAILURE]: initialization error occurred for daprSecretStore (secretstores.local.file/v1): [INIT_COMPONENT_FAILURE]: initialization error occurred for daprSecretStore (secretstores.local.file/v1): open ./Resources/secrets.json: no such file or directory" app_id=workflow instance=15022173cb30 scope=dapr.runtime type=log ver=1.15.3
When the path in the secretstores.local.file is changed to
value: ./../Resources/secrets.json
The component is initialized successfully. But this is not the path relative to where the dapr run command is started.
When the regular dapr run command is used it does work with the relative path of value: ./Resources/secrets.json.
dapr run --app-id workflow-app --resources-path ./Resources --app-port 5253 --dapr-http-port 3516 -- dotnet run --project ./WorkflowApp/
Run dapr run -f . in the root of this repo. I'm using a devcontainer running in WSL on Windows (it also reproduces on Windows without a Linux devcontainer).
Release Note
RELEASE NOTE:
The text was updated successfully, but these errors were encountered:
Expected Behavior
When running
dapr run -f .
and a local file secret store is used where the path is relative to the location where the dapr run command is started, Dapr should initialize the secret component successfully.Actual Behavior
The local
secrets.json
file can't be found when runningdapr run -f .
.Output:
When the path in the secretstores.local.file is changed to
The component is initialized successfully. But this is not the path relative to where the
dapr run
command is started.When the regular
dapr run
command is used it does work with the relative path ofvalue: ./Resources/secrets.json
.Output
Steps to Reproduce the Problem
Run
dapr run -f .
in the root of this repo. I'm using a devcontainer running in WSL on Windows (it also reproduces on Windows without a Linux devcontainer).Release Note
RELEASE NOTE:
The text was updated successfully, but these errors were encountered: