-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect Dapr Redis StateStore Source Used #1302
Comments
Dapr will connect to the Redis instance defined in the In your case, it seems more like an issue with the Windows/WSL networking stack, since you had two instances of Redis (listening on the same port)? |
Tracking. At the very least, it might be helpful to make a note of this in the documentation (maybe in the Initialize Dapr document, as well as this section) as this was pretty difficult for someone new to Dapr to pinpoint on first approach. |
I think this may make sense. @mukundansundar this seems more of a CLI issue, can you transfer the issue please? |
This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had activity in the last 67 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue, help wanted or triaged/resolved. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue, help wanted or triaged/resolved. Thank you for your contributions. |
In what area(s)?
/area runtime
What version of Dapr?
Expected Behavior
When initializing Dapr via
dapr --init
and interfacing with the Redis store component, Dapr should be interfacing with the dapr_redis Docker container.Actual Behavior
If Redis is already installed and running somewhere else on the machine, Dapr will interface with the previously installed instance of Redis vs. the Docker container initialized by Dapr.
Steps to Reproduce the Problem
On my Windows 11 machine, I already had Redis installed in WSL prior to installing and initializing Dapr. These steps will assume no artifacts of Dapr previously exist
Install Redis in WSL Ubuntu
Install the Dapr CLI
Initialize Dapr and start a Dapr app
Store and Retrieve Data in Dapr State Store
Connect to dapr_redis Container and Check Data
Connect to WSL Redis Instance and Check Data
Output
Remediate Problem
I honestly had forgotten that I installed Redis in WSL at an earlier point and spent a long time trying to figure out what I had done wrong. Nothing about the scenario made sense until I remembered that I had installed it. Data was able to be stored and retrieved via the Dapr REST methods, but I could not find any trace of it in the dapr_redis instance.
Once I understood what was happening, I was able to get everything working after the following steps:
Remove all Redis artifacts from Ubuntu
Purge / Clean Docker for Desktop and Restart.
From an administrative command prompt:
Start the Dapr app
Store and Retrieve State Store Data
Output
Connect to dapr_redis and verify data:
Release Note
RELEASE NOTE:
The text was updated successfully, but these errors were encountered: