AllTopologyNodesDownException when running RavenDB 40014 docker

265 views
Skip to first unread message

marcus

unread,
Jun 13, 2017, 1:52:23 PM6/13/17
to RavenDB - 2nd generation document database
I'm testing the beta 40014 on Ubuntu using docker and the same version of the client.

My database is online https://cl.ly/kuv3 and the cluster seems to be active as well https://cl.ly/ktPP

This is how I connect to RavenDB

      Store = new DocumentStore
      {
        Urls = new[] { "http://172.17.0.2:8080 },
        Database = "canvas.io"
      }.Initialize();

I can also use http://localhost:8080 but that givs me the same exception.

Any ideas?


fail: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[0]
      An unhandled exception has occurred while executing the request
Raven.Client.Exceptions.AllTopologyNodesDownException: Tried to send request to all configured nodes in the topology, all of them seem to be down or not responding. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> Sys
tem.Net.Http.CurlException: Couldn't resolve host name
   at System.Net.Http.CurlHandler.ThrowIfCURLEError(CURLcode error)
   at System.Net.Http.CurlHandler.MultiAgent.FinishRequest(StrongToWeakReference`1 easyWrapper, CURLcode messageResult)
   --- End of inner exception stack trace ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at System.Net.Http.HttpClient.<FinishSendAsync>d__58.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Raven.Client.Http.RequestExecutor.<ExecuteAsync>d__42`1.MoveNext()
   --- End of inner exception stack trace ---
   at Raven.Client.Http.RequestExecutor.<ExecuteAsync>d__42`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Raven.Client.Http.RequestExecutor.<UnlikelyExecuteAsync>d__37`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Raven.Client.Http.RequestExecutor.<ExecuteAsync>d__36`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Raven.Client.Documents.Session.AsyncDocumentQuery`1.<ExecuteActualQueryAsync>d__114.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Raven.Client.Documents.Session.AsyncDocumentQuery`1.<InitAsync>d__113.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Raven.Client.Documents.Session.AsyncDocumentQuery`1.<ToListAsync>d__103.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Aperture.Controllers.FileController.<Get>d__8.MoveNext() in /home/maqe/Projects/aperture/src/Controllers/FileController.cs:line 34
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ObjectMethodExecutor.<CastToObject>d__40`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__27.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextActionFilterAsync>d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextResourceFilter>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ResourceExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeAsync>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Builder.RouterMiddleware.<Invoke>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.<Invoke>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.<Invoke>d__7.MoveNext()

Oren Eini (Ayende Rahien)

unread,
Jun 14, 2017, 2:57:38 AM6/14/17
to ravendb
This is a known issue related to the way docker exposed the external url.
Basically, we need you to define Raven/ServerUrl as something that is both available internally and externally, and that is hard to do.

We have Raven/PublicServerUrl in later versions to handle that, and we'll have a beta2  in the next few days to resolve that.

Try running it outside of docker on the local machine, and it will work.

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

marcus

unread,
Jun 14, 2017, 2:59:42 AM6/14/17
to RavenDB - 2nd generation document database
Ok, I see. Let me know if you need help with testing.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.

marcus

unread,
Jun 19, 2017, 7:32:07 AM6/19/17
to RavenDB - 2nd generation document database
This error still exists in the 40015 release of the docker container?

This is the exception I get from using this release:

fail: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[0]
     
An unhandled exception has occurred while executing the request
Raven.Client.Exceptions.AllTopologyNodesDownException: Tried to send request to all configured nodes in the topology, all of them seem to be down or not responding. ---> System.Net.Http.HttpRequestException: An error occurred while
sending t
he request
. ---> System.Net.Http.CurlException: Couldn't resolve host name

Oren Eini (Ayende Rahien)

unread,
Jun 19, 2017, 7:47:15 AM6/19/17
to ravendb
Are you sending Raven/PublicServerUrl ?
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.

marcus

unread,
Jun 19, 2017, 8:03:59 AM6/19/17
to RavenDB - 2nd generation document database
I'm using https://github.com/ravendb/ravendb/blob/v4.0/docker/run-ubuntu1604.ps1 and I start the script with ./run-ubuntu1604.ps1 -AllowAnonymousUserToAccessTheServer

The server is available here:

Access RavenDB Studio on http://172.17.0.2:8080
Listening for TCP connections on: 172.17.0.2:38888

and I'm using http://172.17.0.2:8080 when I create the store.

marcus

unread,
Jun 19, 2017, 8:33:33 AM6/19/17
to RavenDB - 2nd generation document database
it seems like ./run-ubuntu1604.ps1 -AllowAnonymousUserToAccessTheServer -PublicServerUrl "http://localhost:8080" did the trick

Den måndag 19 juni 2017 kl. 13:47:15 UTC+2 skrev Oren Eini:

Egor Nazarov

unread,
Aug 21, 2017, 2:10:11 AM8/21/17
to RavenDB - 2nd generation document database
No, it did not. What is the approach for it now? It's a real showstopper. 

Oscar Castro

unread,
Sep 6, 2017, 1:17:30 PM9/6/17
to RavenDB - 2nd generation document database
After a numerous attempts, this worked. Seems to be a workaround though? Using the 40018 beta.

Oren Eini (Ayende Rahien)

unread,
Sep 6, 2017, 1:25:56 PM9/6/17
to ravendb
We are going to release RC very soon, and that should have the proper fix to make this easy
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages