Dapr time out issue while connecting to Azure Redis from local

504 views Asked by At

I have Dapr sample Counter application which working fine with local redis server, but if I try to connect with "Azure redis for cache" I am getting time out error.

My yaml file with sample azure redis connection string

enter image description here

Time out error

enter image description here

Need suggestion on the yaml file either I have configured properly or not.

1

There are 1 answers

3
Swarna Anipindi On BEST ANSWER

According to your YAML file, the problem appears to be the metadata value, which should be localhost and port 6379. This was a time-out issue; ensure that relay ports are enabled.

 metadata:
  - name: redisHost
    value: localhost:6379

NOTE: In this self-hosted mode, verify whether the component files are automatically created or not.

  **Windows**:  `%USERPROFILE%\.dapr\components\`
  **Linux/MacOS**:  `$HOME/.dapr/components`

refer below tutorial for more details.