Can't run RavenDB 4 on Azure VM (Server 2012 R2 or 2016). Sparrow type initializer exception

463 views
Skip to first unread message

dylan bevan

unread,
Jun 23, 2017, 3:13:48 PM6/23/17
to RavenDB - 2nd generation document database
Hey folks,
First time trying RavenDB and I'm getting blocked right out of the gate. I've spun up two VM's in Azure (Standard DS3 v2 (4 cores, 14 GB memory)), one with Server 2012 R2 and the other with Server 2016.
I navigate to C:\Raven\Server where I've extracted the 64 bit exe to (RavenDB-4.0.0-beta-40015-windows-x64) and just try to run the server.exe with no arguments. The output is:
       _____                       _____  ____
      |  __ \                     |  __ \|  _ \
      | |__) |__ ___   _____ _ __ | |  | | |_) |
      |  _  // _` \ \ / / _ \ '_ \| |  | |  _ <
      | | \ \ (_| |\ V /  __/ | | | |__| | |_) |
      |_|  \_\__,_| \_/ \___|_| |_|_____/|____/

      Safe by default, optimized for efficiency
 Build 40015, Version 4.0, SemVer 4.0.0-beta-40015, Commit b51473c
 PID 2472, 64 bits, 4 Cores, Phys Mem 14 GBytes
 Source Code (git repo): https://github.com/ravendb/ravendb
 Built with love by Hibernating Rhinos and awesome contributors!
+---------------------------------------------------------------+
Error during shutdown
System.TypeInitializationException: The type initializer for 'Sparrow.Platform.W
in32.WinSodium' threw an exception. ---> Sparrow.Platform.IncorrectDllException:
 libsodium.dll probably contains the wrong version or not usable on the current
platform. Make sure that this machine has the appropriate C runtime for libsodiu
m.dll. ---> System.DllNotFoundException: Unable to load DLL 'libsodium.dll': The
 specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at Sparrow.Platform.Win32.WinSodium.sodium_init()
   at Sparrow.Platform.Win32.WinSodium..cctor() in C:\Builds\RavenDB-4.0-Beta\sr
c\Sparrow\Platform\Win32\WinSodium.cs:line 16
   --- End of inner exception stack trace ---
   at Sparrow.Platform.Win32.WinSodium..cctor() in C:\Builds\RavenDB-4.0-Beta\sr
c\Sparrow\Platform\Win32\WinSodium.cs:line 25
   --- End of inner exception stack trace ---
   at Sparrow.Platform.Win32.WinSodium.crypto_box_publickeybytes()
   at Sparrow.Sodium.crypto_box_publickeybytes() in C:\Builds\RavenDB-4.0-Beta\s
rc\Sparrow\Sodium.cs:line 244
   at Raven.Server.RavenServer..ctor(RavenConfiguration configuration) in C:\Bui
lds\RavenDB-4.0-Beta\src\Raven.Server\RavenServer.cs:line 83
   at Raven.Server.Program.Main(String[] args) in C:\Builds\RavenDB-4.0-Beta\src
\Raven.Server\Program.cs:line 95

Any ideas as to what may be causing this? My settings.json file looks like this
{
  "Raven/ServerUrl": "http://localhost:8080",
  "Raven/WorkingDir": "C:\\RavenData",
  "Raven/AllowAnonymousUserToAccessTheServer": false,
  "Raven/AnonymousUserAccessMode": "Admin",
  "Raven/RunInMemory": false
}

Oren Eini (Ayende Rahien)

unread,
Jun 23, 2017, 3:21:02 PM6/23/17
to ravendb
Make sure that this machine has the appropriate C runtime for libsodiu
m.dll.


You are probably missing VCRUNTIME140.DLL


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.

Fabian Wetzel

unread,
Jul 20, 2017, 11:54:49 AM7/20/17
to RavenDB - 2nd generation document database
Hi!

I had the same error and the the suggested solution worked!

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

Cutie Honey

unread,
Jan 26, 2018, 11:07:15 PM1/26/18
to RavenDB - 2nd generation document database
I have the Visual C++ Redistributable x64 installed for every version of Visual Studio from 2008 to 2017 and I'm still getting this error.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.

Cutie Honey

unread,
Jan 26, 2018, 11:25:26 PM1/26/18
to RavenDB - 2nd generation document database
The error that I am getting is different from the above.

System.TypeInitializationException: The type initializer for 'Sparrow.Platform.Win32.WinSodium' threw an exception. ---> Sparrow.Platform.IncorrectDllException: libsodium.x64.dll version might be invalid or not usable on current platform. Initialization error could also be caused by missing 'Microsoft Visual C++ 2015 Redistributable Package' (or newer). It can be downloaded from https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads ---> System.DllNotFoundException: Unable to load DLL 'libsodium.x64.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Sparrow.Platform.Win32.WinSodium.X64.sodium_init() at Sparrow.Platform.Win32.WinSodium.X64.Initialize() in C:\Builds\RavenDB-4.0-RC\src\Sparrow\Platform\Win32\WinSodium.cs:line 817

Justin A

unread,
Jan 27, 2018, 5:19:02 AM1/27/18
to RavenDB - 2nd generation document database
@dylan - have you tried using the latest RC instead? 40025? (you said you were on 40015 which is 7 months old now)

Oren Eini (Ayende Rahien)

unread,
Jan 28, 2018, 3:01:59 AM1/28/18
to ravendb
Yes, let's start with this, because that should certainly work

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


On Sat, Jan 27, 2018 at 12:19 PM, Justin A <jus...@adler.com.au> wrote:
@dylan - have you tried using the latest RC instead? 40025? (you said you were on 40015 which is 7 months old now)

--
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.
Reply all
Reply to author
Forward
0 new messages