Issue installing RavenDb 2.5.2700 as a Windows Service

109 views
Skip to first unread message

David Negron

unread,
Sep 21, 2013, 9:06:23 AM9/21/13
to rav...@googlegroups.com
I used the MSI installer and from what I can tell everything installed correctly but the error message below was generated upon starting the service. This is a brand new installation on my development computer. I ran into the same issue when I attempted to install it on my production server. As an experiment I installed RavenDB-Unstable-Build-2711 in my development computer and everything worked fine unfortunately I need to be able to deploy this to a production environment eventually.

RavenDB service failed to start because of an error
System.InvalidOperationException: Could not open transactional storage: C:\RavenDb-Server\Database\System\Data ---> Microsoft.Isam.Esent.Interop.EsentSecondaryIndexCorruptedException: Secondary index is corrupt. The database must be defragmented
   at Microsoft.Isam.Esent.Interop.Api.Check(Int32 err) in C:\Work\ravendb\SharedLibs\Sources\managedesent-61618\EsentInterop\Api.cs:line 2736
   at Raven.Storage.Esent.TransactionalStorage.EnsureDatabaseIsCreatedAndAttachToDatabase() in c:\Builds\RavenDB-Stable\Raven.Database\Storage\Esent\TransactionalStorage.cs:line 440
   at Raven.Storage.Esent.TransactionalStorage.Initialize(IUuidGenerator uuidGenerator, OrderedPartCollection`1 documentCodecs) in c:\Builds\RavenDB-Stable\Raven.Database\Storage\Esent\TransactionalStorage.cs:line 337
   --- End of inner exception stack trace ---
   at Raven.Storage.Esent.TransactionalStorage.Initialize(IUuidGenerator uuidGenerator, OrderedPartCollection`1 documentCodecs) in c:\Builds\RavenDB-Stable\Raven.Database\Storage\Esent\TransactionalStorage.cs:line 351
   at Raven.Database.DocumentDatabase..ctor(InMemoryRavenConfiguration configuration) in c:\Builds\RavenDB-Stable\Raven.Database\DocumentDatabase.cs:line 226
   at Raven.Server.RavenDbServer..ctor(RavenConfiguration settings) in c:\Builds\RavenDB-Stable\Raven.Server\RavenDbServer.cs:line 30
   at Raven.Server.RavenService.<OnStart>b__0() in c:\Builds\RavenDB-Stable\Raven.Server\RavenService.cs:line 37

David Negron

unread,
Sep 21, 2013, 9:18:05 AM9/21/13
to rav...@googlegroups.com
I'm not sure if this is of any significance but I just tried to install RavenDb 2.5.2700 again after having uninstalled RavenDB-Unstable-Build-2711 and it all seems to be working perfectly now. It's almost as if installing RavenDB-Unstable-Build-2711 somehow knocked loose whatever was preventing RavenDb 2.5.2700 from working.

Oren Eini (Ayende Rahien)

unread,
Sep 22, 2013, 2:16:57 AM9/22/13
to ravendb
About the only time you are supposed to see that is when you are moving a database between different versions of the OS.



--
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+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

David Negron

unread,
Sep 22, 2013, 8:46:09 AM9/22/13
to rav...@googlegroups.com
Thanks for the reply. It seems that I had a previous version of RavenDb 2.0.2230 Windows Service installed on my development workstation that I had forgotten about. When I attempted to install RavenDb 2.5.2700 using the MSI installer it must have caused some sort of conflict even though the previous installation was in a different directory. I think that my uninstalling of the failed installation resolved whatever conflict existed. So perhaps the installation of the unstable build of RavenDb probably didn't matter.
Reply all
Reply to author
Forward
0 new messages