Error on first session.Load<>() in Raven 4.0.2

70 views
Skip to first unread message

Kyle Levien

unread,
Apr 18, 2018, 9:55:27 PM4/18/18
to RavenDB - 2nd generation document database
Working on migrating a 3.x to 4.0 and am getting this error on the first session.Load<> after initializing a DocumentStore:

This stream does not support seek operations.
   at System.Net.ConnectStream.set_Position(Int64 value)
   at Raven.Client.Exceptions.ExceptionDispatcher.<GetJson>d__7.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.Exceptions.ExceptionDispatcher.<Throw>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 Raven.Client.Http.RequestExecutor.<HandleUnsuccessfulResponse>d__87`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__72`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Raven.Client.Http.RequestExecutor.<ExecuteAsync>d__72`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.<UpdateTopologyAsync>d__60.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.<FirstTopologyUpdate>d__67.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Raven.Client.Util.AsyncHelpers.RunSync(Func`1 task)
   at Raven.Client.Documents.Session.DocumentSession.Load[T](String id)

Could this be related to something with my server setup? I'm running against the default command line server (no auth, port 8080)

Thanks,
Kyle

Paweł Pekról

unread,
Apr 19, 2018, 4:17:20 AM4/19/18
to RavenDB - 2nd generation document database
Hi Kyle,

we have encountered this problem with certain thread cultures. The problem was related to the fact that in those cultures (e.g. Swedish) header values were send with invalid characters causing Kestrel to deny processing the request. This should be resolved in 4.0.3-patch-40034. Can you try using this version of client and server?

P.

Kyle Levien

unread,
Apr 19, 2018, 11:34:48 AM4/19/18
to RavenDB - 2nd generation document database
I am still seeing the error after upgrading the client and server to 4.0.3-patch-40034
the Thread.CurrentThread.CurrentCulture also looks pretty standard en-US:
Auto Generated Inline Image 1

Kyle Levien

unread,
Apr 19, 2018, 12:21:41 PM4/19/18
to RavenDB - 2nd generation document database
Wait, may have found it. The url it was using was http://localhost/:8080. Fixing that to http://localhost:8080 no longer throws "stream not supported" error, but I do get a new 'Service Unavailable':
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Raven.Client.Http.RequestExecutor.ThrowFailedToContactAllNodes[TResult](RavenCommand`1 command, HttpRequestMessage request)
   at Raven.Client.Http.RequestExecutor.<ExecuteAsync>d__72`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Raven.Client.Http.RequestExecutor.<ExecuteAsync>d__72`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.<UpdateTopologyAsync>d__60.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.<FirstTopologyUpdate>d__67.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Raven.Client.Util.AsyncHelpers.RunSync(Func`1 task)
   at Raven.Client.Documents.Session.DocumentSession.Load[T](String id)

Kyle Levien

unread,
Apr 19, 2018, 12:30:01 PM4/19/18
to RavenDB - 2nd generation document database
Update: running the server as a service (setup-as-service.ps1) looks to be working. Something was just up with running as standard console app.

Paweł Pekról

unread,
Apr 20, 2018, 3:26:51 AM4/20/18
to RavenDB - 2nd generation document database
Great to hear that, although I do not recall any differences between those two that could result in such a different behavior. Can you tell us how you were starting the console app (some external script? parameters? run.ps1?).

With regards,
P.

Oren Eini (Ayende Rahien)

unread,
Apr 22, 2018, 2:06:59 AM4/22/18
to ravendb
Most likely reason was permissions issues on the ports?

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.

Reply all
Reply to author
Forward
0 new messages