Raven Studio "Failed to load routed module" when editing Sql Replication document

117 views
Skip to first unread message

Jordan Brown

unread,
Apr 19, 2018, 10:59:03 AM4/19/18
to RavenDB - 2nd generation document database
We're using RavenDB Server/Client 35191 and are getting this Raven Studio error when editing a Sql Replication document:

Error during command execution Failed to load routed module! TypeError: Cannot read property 'container' of undefined
    at h.Pb.wa (main.js:16)
    at Function.notifySubscribers (libs.min.js:4)
    at Function.t.W (libs.min.js:4)
    at t [as script] (libs.min.js:4)
    at write (main.js:25)
    at l (libs.min.js:4)
    at Array.<anonymous> (main.js:12)
    at F.n._signal (ace.js:2)
    at F.onDocumentChange (ace.js:7)
    at g.n._signal (ace.js:2) undefined

The issue seems to be unrelated to the document contents. If I make a change, save the document, undo the change, save the document, the issue goes away when I refresh the page.

Thanks in advance for any help you can provide.

mar...@ayende.com

unread,
Apr 20, 2018, 5:35:39 AM4/20/18
to RavenDB - 2nd generation document database

Jordan Brown

unread,
Apr 23, 2018, 9:36:59 AM4/23/18
to RavenDB - 2nd generation document database
I'm using the second path you posted, /studio/index.html#databases/settings/editSqlReplication/<name>?&database=<database>

I'm mainly interested in accessing some of the other buttons on that page, such as the Reset SQL Replication button. But after the "Failed to load routed module" error appears, the button opens an empty modal dialog instead of confirming the reset.

Oren Eini (Ayende Rahien)

unread,
Apr 23, 2018, 11:52:14 AM4/23/18
to ravendb
Try using the incognito mode? It is possible that you have some bad stuff cached there in the browser?

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.

Jordan Brown

unread,
Apr 23, 2018, 12:09:35 PM4/23/18
to RavenDB - 2nd generation document database
I just tried incognito mode on Chrome / Firefox / Internet Explorer. All 3 are showing the same error dialog.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.

Oren Eini (Ayende Rahien)

unread,
Apr 23, 2018, 12:16:10 PM4/23/18
to ravendb
What do you see in Fiddler?
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.

Jordan Brown

unread,
Apr 23, 2018, 2:24:03 PM4/23/18
to RavenDB - 2nd generation document database
There are two errors I see in the network calls.

One is a 404 call to /databases/<database>/configuration/document/Raven/SqlReplication/Connections, which shouldn't be an issue since we define connections per document instead of using predefined connections. I tried adding a predefined connection, and the 404 becomes a 200, but the "Failed to load routed module" error still remains.

The other is a 404 call to /studio/Scripts/ace/worker-javascript.js with the message "The following embedded file was not available: Scripts/ace/worker-javascript.js. Please make sure that the Raven.Studio.Html5.zip file exist in the main directory (near to the Raven.Database.dll)." I assume this is also unrelated to the error.

mar...@ayende.com

unread,
Apr 24, 2018, 3:24:13 PM4/24/18
to RavenDB - 2nd generation document database
Hi, 

1. Please let us know the output of following command in google dev tools console:

require("common/bindingHelpers/aceEditorBindingHandler").currentEditor

and

require("common/bindingHelpers/aceEditorBindingHandler").currentEditor.container

2. Does it happen when you create new database and setup some SQL replication? 

3. Please make sure studio version matches server version (compare build numbers in studio in bottom right corner). 

4. If it is working on different database please share configuration document with us (sup...@ravendb.net). 


Marcin

Jordan Brown

unread,
Apr 30, 2018, 11:54:57 AM4/30/18
to RavenDB - 2nd generation document database
1.

First output is "undefined"

Second output is "Uncaught TypeError: Cannot read property 'container' of undefined at <anonymous>:1:71"

2.

The databases affected were created via Raven.Backup.exe to backup and Raven.Server.exe to restore. We create SQL replication documents for each database after they are restored.

The issue does not occur when I create SQL replication documents for a locally created database.

3.

The numbers do match. Server and Client are now 35247.

4.

I am not sure what you mean by "working on different database" -- could you clarify?

Oren Eini (Ayende Rahien)

unread,
Apr 30, 2018, 3:47:25 PM4/30/18
to ravendb
Can you send us the affected documents?
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.

Andrew Shansky

unread,
Aug 22, 2018, 5:56:12 PM8/22/18
to RavenDB - 2nd generation document database
Was there a resolution to this? We're experiencing the same issue. 

Oren Eini (Ayende Rahien)

unread,
Aug 23, 2018, 3:18:43 AM8/23/18
to ravendb
We haven't see this since, no.
Can you repeat your steps using incognito mode and ensure that you use the Raven.Studio.zip that was bundled with your RavenDB instance (and not an older one)

Oren Eini
CEO   /   Hibernating Rhinos LTD
Skype:  ayenderahien
Support:  sup...@ravendb.net

To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.

Andrew Shansky

unread,
Aug 23, 2018, 11:20:39 AM8/23/18
to RavenDB - 2nd generation document database
Yeah we tried incognito mode and other browsers. We also updated to the latest version of RavenDB to make sure that wasn't the issue. But it still continues to happen. We're taking a look to see if there's something we're missing. 

Oren Eini (Ayende Rahien)

unread,
Aug 23, 2018, 11:24:52 AM8/23/18
to ravendb
Can you send the exact list of steps to reproduce this, the browser / OS used and the RavenDB server version?
Reply all
Reply to author
Forward
0 new messages