example 4 not working
See original GitHub issueI’ve tried to set up example 4 with a local redis, but it isn’t working. Here’s what I’ve done:
- Everything is running in minikube. If used the “non-helm” setup, so everything is in the
default
namespace in my minikube cluster. - Added a redis deployment/service like so:
kind: Service
apiVersion: v1
metadata:
name: redis-service
labels:
app: redis-service
spec:
selector:
app: redis-service
ports:
- protocol: TCP
port: 6379
targetPort: 6379
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis-service
labels:
app: redis-service
spec:
replicas: 1
selector:
matchLabels:
app: redis-service
template:
metadata:
labels:
app: redis-service
spec:
containers:
- name: redis-service
image: redis
command: ["redis-server", "--requirepass", "yourpassword"]
ports:
- containerPort: 6379
imagePullPolicy: Always
configured the redis.yml
file:
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: messagebus
spec:
type: pubsub.redis
metadata:
- name: "redisHost"
value: "redis-service.default.svc.cluster.local:6379"
- name: "redisPassword"
value: "yourpassword"
I’ve used kubectl port-forward
to verify that the redis instance is indeed working using the specified password.
The react-app has problems when starting (output from the daprd sidecar):
time="2019-11-14T20:05:34Z" level=error msg="error getting topics from app: invalid character '<' looking for beginning of value"
time="2019-11-14T20:05:34Z" level=warning msg="failed to init actors: actors: state store must be present to initialize the actor runtime"
The other pods also log errors (output from the daprd sidecars):
time="2019-11-14T20:04:57Z" level=warning msg="failed to init actors: actors: state store must be present to initialize the actor runtime"
time="2019-11-14T20:04:57Z" level=info msg="http server is running on port 3500"
time="2019-11-14T20:04:57Z" level=info msg="gRPC server is running on port 50001"
time="2019-11-14T20:04:57Z" level=info msg="dapr initialized. Status: Running. Init Elapsed 38.008444000000004ms"
as far as I can see there’s very little health checking going on here (both in the apps and in dapr itself), giving the impression that everything is running as it should when in fact nothing is working.
I just cloned the samples repo just to see what dapr is about, apart from it looking like an interesting thing.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Material Angular expansion-panel example not working
Go to app.modules.js and change in imports: remove NoopAnimationsModule; add BrowserAnimationsModule. In app.modules.js.
Read more >Not sure why this code doesn't work - simplest example I ...
After testing your code line by line, it comes down to the default case. For some reason the SCT is seeing the word...
Read more >Troubleshooting - What to do when it won't work! - YouTube
And, many times, when I ask for more details it becomes obvious that they ... But, by using a systematic approach to troubleshooting...
Read more >What is troubleshooting and why is it important?
Troubleshooting is systematic approach to problem-solving. Learn how it works, the seven steps troubleshooters often use and other helpful resources.
Read more >Excel VLOOKUP not working - fixing #N/A and #VALUE ...
Is your VLOOKUP pulling wrong data or you cannot get it to work at all? This tutorial shows how you can quickly fix...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Still having this problem
with the dapr release
1.0.0
. Only happens on react-form, if I attempt to publish via cli:I receive:
Even though everything is running:
Checked the redis version inside the container, it’s v=6.0.10
Yep… docker pull redis:latest and with Redis 5.0.7 works. I guess the key is in the documentation " enabled in Redis versions => 5". Realistically the DAPR init should get the correct docker image! 😃