Running Raven.Server.exe for first time - "Invalid or unknown language id"

55 views
Skip to first unread message

James Crowley

unread,
Jun 20, 2012, 7:20:56 AM6/20/12
to rav...@googlegroups.com
I've just tried running Raven.Server.exe as an administrator on a
development server for the first time, but it doesn't seem to be able
to create an empty database. I'm getting the following error:

A critical error occurred while starting the server. Please see the
exception details bellow for more details:
System.InvalidOperationException: Could not open transactional
storage: C:\inetpub\wwwroot\ravendb\App_Data\Data\Data --->
System.InvalidOperationException: Could not create index: by_id --->
Microsoft.Isam.Esent.Interop.EsentInvalidLanguageIdException: Invalid
or unknown language id
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.SchemaCreator.CreateIndexes(JET_TABLEID
tableid, JET_INDEXCREATE[] indexes) in
c:\Builds\RavenDB-Unstable-v1.2\Raven.Storage.Esent\SchemaCreator.cs:line
361
--- End of inner exception stack trace ---
at Raven.Storage.Esent.SchemaCreator.CreateIndexes(JET_TABLEID
tableid, JET_INDEXCREATE[] indexes) in
c:\Builds\RavenDB-Unstable-v1.2\Raven.Storage.Esent\SchemaCreator.cs:line
368
at Raven.Storage.Esent.SchemaCreator.CreateDocumentsTable(JET_DBID
dbid) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Storage.Esent\SchemaCreator.cs:line
305
at Raven.Storage.Esent.SchemaCreator.Create(String database) in
c:\Builds\RavenDB-Unstable-v1.2\Raven.Storage.Esent\SchemaCreator.cs:line
33
at Raven.Storage.Esent.TransactionalStorage.EnsureDatabaseIsCreatedAndAttachToDatabase()
in c:\Builds\RavenDB-Unstable-v1.2\Raven.Storage.Esent\TransactionalStorage.cs:line
294
at Raven.Storage.Esent.TransactionalStorage.Initialize(IUuidGenerator
uuidGenerator) in
c:\Builds\RavenDB-Unstable-v1.2\Raven.Storage.Esent\TransactionalStorage.cs:line
204
--- End of inner exception stack trace ---
at Raven.Storage.Esent.TransactionalStorage.Initialize(IUuidGenerator
uuidGenerator) in
c:\Builds\RavenDB-Unstable-v1.2\Raven.Storage.Esent\TransactionalStorage.cs:line
217
at Raven.Database.DocumentDatabase..ctor(InMemoryRavenConfiguration
configuration) in
c:\Builds\RavenDB-Unstable-v1.2\Raven.Database\DocumentDatabase.cs:line
184
at Raven.Server.RavenDbServer..ctor(RavenConfiguration settings) in
c:\Builds\RavenDB-Unstable-v1.2\Raven.Server\RavenDbServer.cs:line 30
at Raven.Server.Program.RunServerInDebugMode(RavenConfiguration
ravenConfiguration, Boolean lauchBrowser) in
c:\Builds\RavenDB-Unstable-v1.2\Raven.Server\Program.cs:line 267
at Raven.Server.Program.RunInDebugMode(Nullable`1
anonymousUserAccessMode, RavenConfiguration ravenConfiguration,
Boolean launchBrowser) in
c:\Builds\RavenDB-Unstable-v1.2\Raven.Server\Program.cs:line 245
at Raven.Server.Program.<>c__DisplayClass1c.<InteractiveRun>b__11()
in c:\Builds\RavenDB-Unstable-v1.2\Raven.Server\Program.cs:line 119
at Raven.Server.Program.InteractiveRun(String[] args) in
c:\Builds\RavenDB-Unstable-v1.2\Raven.Server\Program.cs:line 161
at Raven.Server.Program.Main(String[] args) in
c:\Builds\RavenDB-Unstable-v1.2\Raven.Server\Program.cs:line 37
Press any key to continue...

Any idea what might be causing this?

Thanks

James
---
James Crowley
CTO, FundApps - a new generation in financial services software -
http://www.fundapps.co/
Founder, developerFusion - the global developer community -
http://www.developerfusion.com/

linkedin: http://linkedin.com/in/jamescrowley
twitter: http://twitter.com/jamescrowley

Oren Eini (Ayende Rahien)

unread,
Jun 20, 2012, 7:28:06 AM6/20/12
to rav...@googlegroups.com
What build are you using?
Can you try with 960?

We are now forcing our indexes to be culture invariant, but it may be that you don't have this on your machine?

What are the machine regional settings?

James Crowley

unread,
Jun 20, 2012, 7:35:01 AM6/20/12
to rav...@googlegroups.com
This is with 1.2.2017-Unstable. It's on a machine with a English/UK
locale, running Windows Server SP2 (not R2).

And yes, just tried 960 and that works fine - thanks. As does running
960, shutting it down, and then starting up 1.2.2017-Unstable.

J
--

Oren Eini (Ayende Rahien)

unread,
Jun 20, 2012, 7:38:17 AM6/20/12
to rav...@googlegroups.com
Okay, it is something there, then.

Can you check what does this returns on your machine?

CultureInfo.InvariantCulture.LCID

Oren Eini (Ayende Rahien)

unread,
Jun 20, 2012, 7:39:58 AM6/20/12
to rav...@googlegroups.com
Also, what does this gives you?
CultureInfo.GetCultureInfo(CultureInfo.InvariantCulture.LCID).DisplayName

James Crowley

unread,
Jun 20, 2012, 7:41:26 AM6/20/12
to rav...@googlegroups.com
127
Invariant Language (Invariant Country)

Oren Eini (Ayende Rahien)

unread,
Jun 20, 2012, 7:51:09 AM6/20/12
to rav...@googlegroups.com
Okay, this is what it is supposed to do.
At any rate, it isn't important and I can change that, will be fixed in the next build.

Simone Chiaretta

unread,
Jun 25, 2012, 7:09:38 AM6/25/12
to rav...@googlegroups.com
Hi, I'm encountering the same problem.
Has it been fixed in 1.2.2022?

Thx
Simone

Oren Eini (Ayende Rahien)

unread,
Jun 25, 2012, 7:14:36 AM6/25/12
to rav...@googlegroups.com
It should have, yes

Simone Chiaretta

unread,
Jun 25, 2012, 7:21:27 AM6/25/12
to rav...@googlegroups.com
yep.. just updated... had to delete the old data folder (running as embedded) but now it gives me another error, further down in process :)
So that ok for this problem. Will write another question in another message :)

Simone
Reply all
Reply to author
Forward
0 new messages