-
Notifications
You must be signed in to change notification settings - Fork 531
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
hello-k8s: ECONNREFUSED when trying to access redis state-store from node-app #421
Comments
tried |
In the error you are getting, this indicates that the node app is failing to connect to daprd. The daprd logs should be able to tell us more. I take it this is for the hello-kubernetes example? In which case, can you run Also, what method did you use to install redis? Did you use helm as suggested in the statestore pubsub guide? |
@wcs1only I'm reproducing a similar issue... in my case they pythonapp can't talk to the node app. This is what I see:
I also see this when looking at the logs for the sidecar injector:
Any ideas on what this could be? |
@amsoedal So in your case, it looks like the sidecar injector is failing TLS handshakes with the kubernetes control plane. The Is this a fresh kubernetes cluster with a fresh Dapr install? The first thing that I would try (provided this is not a cluster that is running production Dapr apps) is:
|
Whenever I send the command suggested I get the same response as @amsoedal
And if I try the command on the hello k8s tutorial:
Also, if I type
I get an infinite loop of :
Even further:
|
Ok, that does indeed look like the sidecar is not being injected as all. Are you getting a similar TLS handshake error in the sidecar logs?
Some other commands that might tell us something:
This shows us that dapr is healthy.
Should tell us if the pod was injected, but didn't come up for some reason. Also, just so I know, what flavor of Kubernetes are you using? |
and last:
The only strange thing you might find is that it is pulling from my custom image "vfilenga/dapr-lab-k8s-nodeapp:latest" These are the only silly changes I had to make to try and get it running (git diff output) The dappr gRPC port and HTTP port were empty, I fixed the http one with this modification, but gRPC seems to be still empty:
It is an EKS cluster! |
It is possible, though running your own namespace should work. As for the sidecar logs you'll need to modify the command slightly, assuming you installed the dapr control plane to the dapr-lab namespace:
Also, FYI: This issue queue isn't checked daily, so you might find yourself waiting a bit for replies. We have a community discord that might get you some quicker response times: |
Closing this because of inactivity. Please feel free to reopen it if needed. |
Hi @filenda were you able to get Dapr + Redis working? I'd love to see you get to a successful place. |
I have exactly the same issue, I'm getting the error "error: container daprd is not valid for pod nodeapp-6b65576f5-sqrnp" and it also looks like the sidecar is not being injected at all |
Expected Behavior
Node app should save order id 42 on redis
Actual Behavior
request to http://localhost:3500/v1.0/state/statestore/order failed, reason: connect ECONNREFUSED 127.0.0.1:3500
Steps to Reproduce the Problem
follow along with the tutorial
The text was updated successfully, but these errors were encountered: