question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

docker-compose up is not working

See original GitHub issue

while running the application with docker-compose up, it’s not working. I tried with dapr version defined in the docker-compose file and also with the latest dapr version. every time following 3 containers are not spinning up with the following error.

Environment: Windows 11, Docker Desktop 4.2

Containers

  1. eshopondapr_ordering-api_1
  2. eshopondapr_identity-api_1
  3. eshopondapr_catalog-api_1

Error: `Unhandled exception. Dapr.DaprException: Bulk secret operation failed: the Dapr endpoint indicated a failure. See InnerException for details.

—> Grpc.Core.RpcException: Status(StatusCode=“Internal”, Detail=“Error starting gRPC call. HttpRequestException: Connection refused (127.0.0.1:50001) SocketException: Connection refused”, DebugException="System.Net.Http.HttpRequestException: Connection refused (127.0.0.1:50001)

—> System.Net.Sockets.SocketException (111): Connection refused

at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)

at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)

at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)

at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)

— End of inner exception stack trace —

at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)

at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)

at System.Net.Http.HttpConnectionPool.AddHttp2ConnectionAsync(HttpRequestMessage request)

at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)

at System.Net.Http.HttpConnectionPool.GetHttp2ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)

at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)

at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)

at Grpc.Net.Client.Internal.GrpcCall2.RunCall(HttpRequestMessage request, Nullable1 timeout)")

at Dapr.Client.DaprClientGrpc.GetBulkSecretAsync(String storeName, IReadOnlyDictionary`2 metadata, CancellationToken cancellationToken)

— End of inner exception stack trace —

at Dapr.Client.DaprClientGrpc.GetBulkSecretAsync(String storeName, IReadOnlyDictionary`2 metadata, CancellationToken cancellationToken)

at Dapr.Extensions.Configuration.DaprSecretStore.DaprSecretStoreConfigurationProvider.LoadAsync()

at Dapr.Extensions.Configuration.DaprSecretStore.DaprSecretStoreConfigurationProvider.Load()

at Microsoft.Extensions.Configuration.ConfigurationManager.AddSource(IConfigurationSource source)

at Microsoft.Extensions.Configuration.ConfigurationManager.Microsoft.Extensions.Configuration.IConfigurationBuilder.Add(IConfigurationSource source)

at Dapr.Extensions.Configuration.DaprSecretStoreConfigurationExtensions.AddDaprSecretStore(IConfigurationBuilder configurationBuilder, String store, DaprClient client, IReadOnlyDictionary`2 metadata)

at Microsoft.eShopOnDapr.Services.Catalog.API.ProgramExtensions.AddCustomConfiguration(WebApplicationBuilder builder) in /src/src/Services/Catalog/Catalog.API/ProgramExtensions.cs:line 12

at Program.<Main>$(String[] args) in /src/src/Services/Catalog/Catalog.API/Program.cs:line 4`

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ajaysingh77commented, Dec 9, 2021

after applying #69 changes now sometimes order and identity api start running but catalog api is still failing everytime. seems there is an issue in dapr dotnet sdk https://github.com/dapr/dotnet-sdk/issues/779

0reactions
amolenkcommented, May 31, 2022

Tracking the remaining work for enabling the Dapr configuration provider in #100

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker-compose up does not start a container
If you just want to start a container and interact with it via terminal, don't use docker-compose up -d , use the following...
Read more >
docker compose up
When the command exits, all containers are stopped. Running docker compose up --detach starts the containers in the background and leaves them running....
Read more >
`docker compose up` doesn't start containers (error message
docker compose up doesn't start containers (error message: "volume [volume name] already exists but was not created by Docker Compose.
Read more >
docker-compose up command did not work well
working with Laravel 9 and I have installed docker toolkit as well and I am running windows 7 as well. when I run...
Read more >
'docker compose up' is not using the latest changes in ...
I have been making changes and then running 'docker compose up' with no issue until now. EDIT: I want to clarify a few...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found