RavenDB build #2330 strange studio issue running on Azure

163 views
Skip to first unread message

Mauro Servienti

unread,
Mar 31, 2013, 1:14:37 PM3/31/13
to rav...@googlegroups.com

I have a worker role on Azure that runs fine with build #2261, I’ve tried to update the role to build #2330 but accessing the server via the studio I get this error:

Could not parse: [] ---> System.Exception: Error reading RavenJToken from JsonReader.

 

And the database server is unusable, the full stack trace (on the client) is:

 

   at Raven.Studio.Infrastructure.InvocationExtensions.Catch(Task parent, Func`2 func)

   at Raven.Studio.Infrastructure.InvocationExtensions.Catch(Task parent, Action`1 action)

   at Raven.Studio.Infrastructure.InvocationExtensions.Catch(Task parent)

   at Raven.Studio.Models.ServerModel.TimerTickedAsync()

   at Raven.Studio.Models.ServerModel.Initialize()

   at Raven.Studio.Models.ServerModel..ctor(String url)

   at Raven.Studio.Models.ServerModel..ctor()

   at Raven.Studio.Models.ApplicationModel..ctor()

   at Raven.Studio.Models.ApplicationModel..cctor()

   at Raven.Studio.Models.DatabaseSelectionModel..ctor()

   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)

   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)

   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)

   at System.Activator.CreateInstance(Type type, Boolean nonPublic)

   at MS.Internal.XamlManagedRuntimeRPInvokes.CreateInstance(XamlTypeToken inXamlType, XamlQualifiedObject& newObject)

   at MS.Internal.XcpImports.Application_LoadComponentNative(IntPtr pContext, IntPtr pComponent, UInt32 cUriStringLength, String uriString, UInt32 cXamlStrLength, Byte* pXamlStr, UInt32 cAssemblyStrLength, String assemblyStr)

   at MS.Internal.XcpImports.Application_LoadComponent(IManagedPeerBase componentAsDO, String resourceLocator, UnmanagedMemoryStream stream, UInt32 numBytesToRead, String assemblyString)

   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)

   at Raven.Studio.Features.Databases.DatabaseSelectionView.InitializeComponent()

   at Raven.Studio.Features.Databases.DatabaseSelectionView..ctor()

   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)

   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)

   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)

   at System.Activator.CreateInstance(Type type, Boolean nonPublic)

   at MS.Internal.XamlManagedRuntimeRPInvokes.CreateInstance(XamlTypeToken inXamlType, XamlQualifiedObject& newObject)

   at MS.Internal.XcpImports.Application_LoadComponentNative(IntPtr pContext, IntPtr pComponent, UInt32 cUriStringLength, String uriString, UInt32 cXamlStrLength, Byte* pXamlStr, UInt32 cAssemblyStrLength, String assemblyStr)

   at MS.Internal.XcpImports.Application_LoadComponent(IManagedPeerBase componentAsDO, String resourceLocator, UnmanagedMemoryStream stream, UInt32 numBytesToRead, String assemblyString)

   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)

   at Raven.Studio.MainPage.InitializeComponent()

   at Raven.Studio.App.Application_Startup(Object sender, StartupEventArgs e)

   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)

   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)

 

Client side exception:

Raven.Imports.Newtonsoft.Json.JsonSerializationException: Could not parse: [] ---> System.Exception: Error reading RavenJToken from JsonReader.

   at Raven.Json.Linq.RavenJToken.ReadFrom(JsonReader reader)

   at Raven.Json.Linq.RavenJToken.Parse(String json)

   --- End of inner exception stack trace ---

   at Raven.Json.Linq.RavenJToken.Parse(String json)

   at Raven.Client.Silverlight.Connection.HttpJsonRequest.<ReadResponseJsonAsync>b__2(Task`1 task)

   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()

   at System.Threading.Tasks.Task.Execute()

 

.m

Oren Eini (Ayende Rahien)

unread,
Apr 1, 2013, 9:05:57 PM4/1/13
to ravendb
Just to let you know, we are pretty sure that this is a bug in the way we are handling auth for /databases
I hope to get around to it today.


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

Jahmai Lay

unread,
Apr 1, 2013, 9:38:08 PM4/1/13
to rav...@googlegroups.com
I believe we're getting the same thing, bit of a show stopper because we can't access any data via studio...

Oren Eini (Ayende Rahien)

unread,
Apr 1, 2013, 11:20:55 PM4/1/13
to ravendb
It will be fixed later today

Oren Eini (Ayende Rahien)

unread,
Apr 2, 2013, 12:37:29 AM4/2/13
to ravendb
This should be resolved in the next build.

Mauro Servienti

unread,
Apr 2, 2013, 1:31:51 AM4/2/13
to rav...@googlegroups.com

Amazing, thanks.

Jahmai Lay

unread,
Apr 2, 2013, 1:33:35 AM4/2/13
to rav...@googlegroups.com

Will there be a fix for 23xx or need to wait for 2.5 stable?

Oren Eini (Ayende Rahien)

unread,
Apr 2, 2013, 6:59:21 AM4/2/13
to ravendb
This will be a 23xx build. Should be out in a few minutes.

Piers Lawson

unread,
Apr 2, 2013, 4:25:42 PM4/2/13
to rav...@googlegroups.com
Hi Oren,
 
I had this same issue. I have tried #2332 assuming that was the build with the fix. However, when I browse to Raven Studio I get a browser error (I've tried IE 8 and IE 10):
 
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
Timestamp: Tue, 2 Apr 2013 20:24:40 UTC

Message: Unhandled Error in Silverlight Application
Code: 2104   
Category: InitializeError      
Message: 2104 An error has occurred.    
Line: 57
Char: 4
Code: 0
URI: http://localhost:8080/raven/studio.html

Oren Eini (Ayende Rahien)

unread,
Apr 2, 2013, 5:39:28 PM4/2/13
to ravendb
What happens when you hit /stats
Or when you try to go to /silverlight/Raven.Studio.xap

Piers Lawson

unread,
Apr 2, 2013, 5:39:54 PM4/2/13
to rav...@googlegroups.com
If I revert to #2330, the Silverlight app does load... but if I don't change to <add key="Raven/AnonymousAccess" value="All"/> I get the Could not parse: [] error again.
 
Thanks
 
Piers

Piers Lawson

unread,
Apr 2, 2013, 5:47:01 PM4/2/13
to rav...@googlegroups.com
/stats downloads a JSON file OK
/Silverlight/Raven.Studio.xap  pops up a dialog box asking me what I want to do with the file

Oren Eini (Ayende Rahien)

unread,
Apr 2, 2013, 5:51:56 PM4/2/13
to rav...@googlegroups.com
Hm
That says that you should be fine wrt to the studio
Can you get a fiddler capture?
--

Piers Lawson

unread,
Apr 2, 2013, 6:04:37 PM4/2/13
to rav...@googlegroups.com
Below is the capture. I notice it is not reloading the HTML page, but I presume that doesn't matter?
 
GET http://XX.XX.XX.XX:8080/ HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: en-GB
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)
Accept-Encoding: gzip, deflate
Host: XX.XX.XX.XX:8080
DNT: 1
Connection: Keep-Alive
Authorization: Negotiate TlRMTVNTUAABAAAAl4II4gAAAAAAAAAAAAAAAAAAAAAGAvAjAAAADw==

HTTP/1.1 302 Found
Location: /raven/studio.html
Server: Microsoft-HTTPAPI/1.0
Raven-Server-Build: 2332
Temp-Request-Time: 0 ms
Date: Tue, 02 Apr 2013 21:54:43 GMT
Content-Length: 0
 
------------------------------------------------------------------
GET http://XX.XX.XX.XX:8080/raven/studio.html HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: en-GB
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)
Accept-Encoding: gzip, deflate
Host: XX.XX.XX.XX:8080
DNT: 1
Connection: Keep-Alive
If-None-Match: 635005081940000000studio.html

HTTP/1.1 304 Not Modified
Content-Length: 0
Content-Type: text/html
Content-Encoding: gzip
Server: Microsoft-HTTPAPI/1.0
Raven-Server-Build: 2332
Temp-Request-Time: 0 ms
Date: Tue, 02 Apr 2013 21:54:43 GMT
 
------------------------------------------------------------------
GET http://XX.XX.XX.XX:8080/silverlight/Raven.Studio.xap HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)
Host: XX.XX.XX.XX:8080
DNT: 1
Connection: Keep-Alive
Authorization: Negotiate TlRMTVNTUAABAAAAl4II4gAAAAAAAAAAAAAAAAAAAAAGAvAjAAAADw==

HTTP/1.1 404 Not Found
Transfer-Encoding: chunked
Content-Type: application/x-silverlight-2
Server: Microsoft-HTTPAPI/1.0
Raven-Server-Build: 2332
Temp-Request-Time: 0 ms
Date: Tue, 02 Apr 2013 21:54:43 GMT
0
 
------------------------------------------------------------------
 
 
 

Piers Lawson

unread,
Apr 2, 2013, 6:07:07 PM4/2/13
to rav...@googlegroups.com
Now I try to go direct to the xap in a fresh browser, I do get the 404 Not Found error.
 
Sorry, I should have tried a new browser instance earlier

Piers Lawson

unread,
Apr 2, 2013, 6:24:43 PM4/2/13
to rav...@googlegroups.com
I have Silverlight 5.1 installed so I presume that is not the issue.

 

Oren Eini (Ayende Rahien)

unread,
Apr 3, 2013, 5:13:09 AM4/3/13
to ravendb
Okay, I think that this is a bug in our build script, I'll generate a new build, should fix this


On Wed, Apr 3, 2013 at 1:24 AM, Piers Lawson <piers....@gmail.com> wrote:
I have Silverlight 5.1 installed so I presume that is not the issue.

 

--

Piers Lawson

unread,
Apr 3, 2013, 6:19:55 AM4/3/13
to rav...@googlegroups.com
Whilst you are looking at the build... is there a reason Raven.Abstractions.dll is not included in the Backup directory... it needs manually copying in before Raven.Backup.exe will execute.

Oren Eini (Ayende Rahien)

unread,
Apr 3, 2013, 6:22:56 AM4/3/13
to ravendb
No, there isn't.
fixed in the next build

Piers Lawson

unread,
Apr 3, 2013, 6:24:44 AM4/3/13
to rav...@googlegroups.com
Thank you, I'll give it a go when it is available.

Piers Lawson

unread,
Apr 3, 2013, 10:27:06 AM4/3/13
to rav...@googlegroups.com
#2333 Fixes both the original authentication issue of #2330 and the missing raven studio of #2332.
 
Thank you

Jahmai Lay

unread,
Apr 3, 2013, 9:33:58 PM4/3/13
to rav...@googlegroups.com
Great :)

Oren, will there be a NuGet package for 2333?

Oren Eini (Ayende Rahien)

unread,
Apr 4, 2013, 3:12:46 AM4/4/13
to ravendb
Yes

  1. RavenDB Unstable - http://www.myget.org/F/ravendb/

Jahmai Lay

unread,
Apr 5, 2013, 9:21:08 PM4/5/13
to rav...@googlegroups.com

I tried 2334 because it was the latest listed at the myget.org nuget source but Studio doesn't load.
It prompts for silverlight, which I install.
Then it gives the raven icon next to the address bar like it has found the page.
But then there is no silverlight loading dial and its just a blank page.
No error in the log.
Reloading does nothing.

Fitzchak Yitzchaki

unread,
Apr 7, 2013, 4:29:51 AM4/7/13
to <ravendb@googlegroups.com>
It seems like we have an issue to embed the XAP in this build. 
Reply all
Reply to author
Forward
0 new messages