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
{{ message }}
Repository navigation
echo_app fails with error nitialization error occurred for pubsub (pubsub.redis/v1) #49
Getting the following errors when trying to compile and run the example application.
WARN[0000] error processing component, daprd process will exit gracefully app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
FATA[0000] process component pubsub error: [INIT_COMPONENT_FAILURE]: initialization error occurred for pubsub (pubsub.redis/v1): redis streams: error connecting to redis at localhost:6379: dial tcp 127.0.0.1:6379: connect: connection refused app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
❌ The daprd process exited with error code: exit status 1
⚠ Could not update sidecar metadata for cliPID: PUT http://127.0.0.1:36265/v1.0/metadata/cliPID giving up after 5 attempt(s): Put "http://127.0.0.1:36265/v1.0/metadata/cliPID": dial tcp 127.0.0.1:36265: connect: connection refused
ℹ️ Updating metadata for appPID: 1513
⚠ Could not update sidecar metadata for appPID: PUT http://127.0.0.1:36265/v1.0/metadata/appPID giving up after 5 attempt(s): Put "http://127.0.0.1:36265/v1.0/metadata/appPID": dial tcp 127.0.0.1:36265: connect: connection refused
ℹ️ Updating metadata for app command: ./echo_app callee 6000
⚠ Could not update sidecar metadata for appCommand: PUT http://127.0.0.1:36265/v1.0/metadata/appCommand giving up after 5 attempt(s): Put "http://127.0.0.1:36265/v1.0/metadata/appCommand": dial tcp 127.0.0.1:36265: connect: connection refused
ℹ️
terminated signal received: shutting down
❌ Error exiting Dapr: exit status 1
✅ Exited App successfully
root@ad92d6cc7e69:/workspaces/cpp-sdk/examples/echo_app# dapr run --app-id callee --app-protocol grpc --app-port 6000 ./echo_app callee 6000
ℹ️ Starting Dapr with id callee. HTTP Port: 36265. gRPC Port: 33535
== APP == Start echo app (callee) - callee: , Dapr gRPC Port: 33535, Echo App Port: 6000
== APP == Server listening on 127.0.0.1:6000
INFO[0000] starting Dapr Runtime -- version 1.10.4 -- commit 42964736b1e99c9c03595c80c61fbe77912391c8 app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
INFO[0000] log level set to: info app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
INFO[0000] metrics server started on :39473/ app_id=callee instance=ad92d6cc7e69 scope=dapr.metrics type=log ver=1.10.4
INFO[0000] Resiliency configuration loaded. app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
INFO[0000] standalone mode configured app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
INFO[0000] app id: callee app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
INFO[0000] mTLS is disabled. Skipping certificate request and tls validation app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
INFO[0000] Dapr trace sampler initialized: DaprTraceSampler(P=1.000000) app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
INFO[0000] local service entry announced: callee -> 172.17.0.2:39465 app_id=callee component="mdns (nameResolution/v1)" instance=ad92d6cc7e69 scope=dapr.contrib type=log ver=1.10.4
INFO[0000] Initialized name resolution to mdns app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
INFO[0000] loading components app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
WARN[0000] error processing component, daprd process will exit gracefully app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
FATA[0000] process component pubsub error: [INIT_COMPONENT_FAILURE]: initialization error occurred for pubsub (pubsub.redis/v1): redis streams: error connecting to redis at localhost:6379: dial tcp 127.0.0.1:6379: connect: connection refused app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
❌ The daprd process exited with error code: exit status 1
⚠ Could not update sidecar metadata for cliPID: PUT http://127.0.0.1:36265/v1.0/metadata/cliPID giving up after 5 attempt(s): Put "http://127.0.0.1:36265/v1.0/metadata/cliPID": dial tcp 127.0.0.1:36265: connect: connection refused
ℹ️ Updating metadata for appPID: 1513
⚠ Could not update sidecar metadata for appPID: PUT http://127.0.0.1:36265/v1.0/metadata/appPID giving up after 5 attempt(s): Put "http://127.0.0.1:36265/v1.0/metadata/appPID": dial tcp 127.0.0.1:36265: connect: connection refused
ℹ️ Updating metadata for app command: ./echo_app callee 6000
⚠ Could not update sidecar metadata for appCommand: PUT http://127.0.0.1:36265/v1.0/metadata/appCommand giving up after 5 attempt(s): Put "http://127.0.0.1:36265/v1.0/metadata/appCommand": dial tcp 127.0.0.1:36265: connect: connection refused
ℹ️
terminated signal received: shutting down
❌ Error exiting Dapr: exit status 1
✅ Exited App successfully
Activity
sumitadhikari1 commentedon Mar 17, 2023
Complete log with execution command.
root@ad92d6cc7e69:/workspaces/cpp-sdk/examples/echo_app# dapr run --app-id callee --app-protocol grpc --app-port 6000 ./echo_app callee 6000
ℹ️ Starting Dapr with id callee. HTTP Port: 36265. gRPC Port: 33535
== APP == Start echo app (callee) - callee: , Dapr gRPC Port: 33535, Echo App Port: 6000
== APP == Server listening on 127.0.0.1:6000
INFO[0000] starting Dapr Runtime -- version 1.10.4 -- commit 42964736b1e99c9c03595c80c61fbe77912391c8 app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
INFO[0000] log level set to: info app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
INFO[0000] metrics server started on :39473/ app_id=callee instance=ad92d6cc7e69 scope=dapr.metrics type=log ver=1.10.4
INFO[0000] Resiliency configuration loaded. app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
INFO[0000] standalone mode configured app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
INFO[0000] app id: callee app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
INFO[0000] mTLS is disabled. Skipping certificate request and tls validation app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
INFO[0000] Dapr trace sampler initialized: DaprTraceSampler(P=1.000000) app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
INFO[0000] local service entry announced: callee -> 172.17.0.2:39465 app_id=callee component="mdns (nameResolution/v1)" instance=ad92d6cc7e69 scope=dapr.contrib type=log ver=1.10.4
INFO[0000] Initialized name resolution to mdns app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
INFO[0000] loading components app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
WARN[0000] error processing component, daprd process will exit gracefully app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
FATA[0000] process component pubsub error: [INIT_COMPONENT_FAILURE]: initialization error occurred for pubsub (pubsub.redis/v1): redis streams: error connecting to redis at localhost:6379: dial tcp 127.0.0.1:6379: connect: connection refused app_id=callee instance=ad92d6cc7e69 scope=dapr.runtime type=log ver=1.10.4
❌ The daprd process exited with error code: exit status 1
⚠ Could not update sidecar metadata for cliPID: PUT http://127.0.0.1:36265/v1.0/metadata/cliPID giving up after 5 attempt(s): Put "http://127.0.0.1:36265/v1.0/metadata/cliPID": dial tcp 127.0.0.1:36265: connect: connection refused
ℹ️ Updating metadata for appPID: 1513
⚠ Could not update sidecar metadata for appPID: PUT http://127.0.0.1:36265/v1.0/metadata/appPID giving up after 5 attempt(s): Put "http://127.0.0.1:36265/v1.0/metadata/appPID": dial tcp 127.0.0.1:36265: connect: connection refused
ℹ️ Updating metadata for app command: ./echo_app callee 6000
⚠ Could not update sidecar metadata for appCommand: PUT http://127.0.0.1:36265/v1.0/metadata/appCommand giving up after 5 attempt(s): Put "http://127.0.0.1:36265/v1.0/metadata/appCommand": dial tcp 127.0.0.1:36265: connect: connection refused
ℹ️
terminated signal received: shutting down
❌ Error exiting Dapr: exit status 1
✅ Exited App successfully
asd9001 commentedon Jul 31, 2023
Did you solve the problem?
I had a same issue and am writing for helping others.
My issue is that there are some garbase yaml file in "%USERPROFILE%.dapr\components"
I guess when I execute
dapr initwithout --slim, it made some components yaml file.So, I deleted all of yaml file in that path, dapr work normally.
I Hope it helps you.
DrLeh commentedon Oct 23, 2025
Had same issue, my issue was docker wasn't running