Weird behaviour in Studio, web app not working

55 views
Skip to first unread message

mare

unread,
May 24, 2013, 11:29:42 AM5/24/13
to rav...@googlegroups.com
Running the Embedded edition, the Studio says there are docs (and they should be) but fails to display a list of them, see the attached file. The web app is not working because it cannot find the document. I attached the log screenshot to inspect.

The same web app is working server-side - I copied the database over with FTP (and retried it multiple times, with the web app turned off server side). On the server everything works fine and the docs are there.
raven-studio-strange.png
raven-studio-userauths-log.png

Chris Marisic

unread,
May 24, 2013, 12:58:56 PM5/24/13
to rav...@googlegroups.com
What OS is the database created on, what OS is the database FTP'd to?

mare

unread,
May 24, 2013, 1:07:54 PM5/24/13
to rav...@googlegroups.com
Initially the DB was created on Windows 7, FTPed to Azure (Windows Server 2012 instance), ran there for a few weeks and now FTPed back to my computer with Windows 7. It is on this computer that this database now just doesn't want to work. RavenDB version is 2360 on both sides (well it's embedded so I guess that's kinda obvious).

I always wondered how to manually shutdown the Embedded instance. I usually just shutdown the IIS website, wait a few seconds and then copy it. I do this a lot and while sometimes Filezilla will say that Raven files are still locked, most of the time copying would work (if not the first time, it would on retry). 

In this latest case the copy completes successfully but obviously something is wrong with the copied DB.

mare

unread,
May 25, 2013, 4:38:10 AM5/25/13
to rav...@googlegroups.com
I can't seem to get this DB to work. I tried running esentutl /d Data and it says that recovery should be run first. When I run esentutl /r it says "Invalid API parameter". What does it look for? I have no parameters in web.config and I am doing this when the embedded server is not running.

?

mare

unread,
May 25, 2013, 4:50:47 AM5/25/13
to rav...@googlegroups.com
Ok, I managed to get this working. For some reason, when I downloaded the DB and immediately ran the app (and the embedded server with HTTP server on) the database got corrupted immediately. Now I downloaded again, ran the esentutl /d Data first and then start the app/server and now it is working.

Ryan Heath

unread,
May 25, 2013, 8:03:36 AM5/25/13
to rav...@googlegroups.com
Perhaps the esent versions of win server2012 and win7 are not really compatible?

// Ryan


--
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,
May 25, 2013, 8:37:57 AM5/25/13
to rav...@googlegroups.com

I've had this happen before too. If you change operating systems you have to defrag the database before using it or bad things can happen. Its recoverable but is a little painful.

Daniel Dar

unread,
May 26, 2013, 2:26:07 AM5/26/13
to rav...@googlegroups.com
you can also do export from the original PC and import to the new

Chris Marisic

unread,
May 28, 2013, 9:55:05 AM5/28/13
to rav...@googlegroups.com
win7 esent is a major version behind server2012. It would be like trying to take a Sql Server 2012.mdf file and directly attaching it to Sql Server 2008.
Reply all
Reply to author
Forward
0 new messages