Problem running on Ubuntu 16.04

341 views
Skip to first unread message

Mike Moore

unread,
Jul 9, 2018, 7:30:34 PM7/9/18
to RavenDB - 2nd generation document database
I am attempting to get RavenDb running on a Ubuntu 16.04 AWS VM.  I have attempted to follow the steps in the documentation and have installed RavenDB. Initiall when I attempted to run the server I got the following:

root@ip-172-31-1-43:/home/ubuntu/RavenDB/Server# ./Raven.Server
Failed to load x1�, error: libunwind.so.8: cannot open shared object file: No such file or directory
Failed to bind to CoreCLR at '/home/ubuntu/RavenDB/Server/libcoreclr.so'

I did some googling and found a discussion here advising to sudo apt-get install libunwind8, which I did and seemed to get past the initial problem.

Then when I ran the server I got the following:

Build 40045, Version 4.0, SemVer 4.0.5, Commit 49f124a
 PID
2714, 64 bits, 2 Cores, Phys Mem 7.508 GBytes, Arch: X64
 
Source Code (git repo): https://github.com/ravendb/ravendb
 
Built with love by Hibernating Rhinos and awesome contributors!
+---------------------------------------------------------------+
System.TypeInitializationException: The type initializer for 'Raven.Server.ServerWide.BackgroundTasks.LatestVersionCheck' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Net.Http.CurlHandler' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Http' threw an exception. ---> System.TypeInitializationException: The type initializer for 'HttpInitializer' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'System.Net.Http.Native': The specified module or one of its dependencies could not be found.
 
(Exception from HRESULT: 0x8007007E)
   at
Interop.Http.GetSslVersionDescription()
   at
Interop.HttpInitializer..cctor()
   
--- End of inner exception stack trace ---
   at
Interop.Http..cctor()
   
--- End of inner exception stack trace ---
   at
Interop.Http.GetSupportedFeatures()
   at
System.Net.Http.CurlHandler..cctor()
   
--- End of inner exception stack trace ---
   at
System.Net.Http.CurlHandler..ctor()
   at
System.Net.Http.HttpClientHandler..ctor()
   at
System.Net.Http.HttpClient..ctor()
   at
Raven.Server.ServerWide.BackgroundTasks.LatestVersionCheck..cctor() in C:\Builds\RavenDB-Stable-4.0\src\Raven.Server\ServerWide\BackgroundTasks\LatestVersionCheck.cs:line 28
   
--- End of inner exception stack trace ---
   at
Raven.Server.ServerWide.BackgroundTasks.LatestVersionCheck.Check(ServerStore serverStore) in C:\Builds\RavenDB-Stable-4.0\src\Raven.Server\ServerWide\BackgroundTasks\LatestVersionCheck.cs:line 40
   at
Raven.Server.ServerWide.ServerStore.Initialize() in C:\Builds\RavenDB-Stable-4.0\src\Raven.Server\ServerWide\ServerStore.cs:line 529
   at
Raven.Server.RavenServer.Initialize() in C:\Builds\RavenDB-Stable-4.0\src\Raven.Server\RavenServer.cs:line 132
   at
Raven.Server.Program.Main(String[] args) in C:\Builds\RavenDB-Stable-4.0\src\Raven.Server\Program.cs:line 141

I did some more searching and found this thread which discusses the same problem. In his case he had forgotten to install the .Net Core Runtime. However, I have previously installed the .Net Core Runtime as shown here:

root@ip-172-31-1-43:/home/ubuntu/RavenDB# dotnet --list-runtimes
Microsoft.AspNetCore.All 2.1.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

I am not sure where to go from here. Any suggestions would be appreciated.


Oren Eini (Ayende Rahien)

unread,
Jul 10, 2018, 2:14:12 AM7/10/18
to ravendb
Can you try to make sure that the prerequisites are there?

By default, we use the bundled .NET Core version, so you shouldn't have to install it globally. 
Can you check that the RavenDB folder does have the relevant file?

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.

Mike Moore

unread,
Jul 10, 2018, 2:40:59 AM7/10/18
to RavenDB - 2nd generation document database
Can you try to make sure that the prerequisites are there?

The page that you referenced in your link says:

.NET Core native installers are available for supported Linux distributions/versions. The native installers require admin (sudo) access to the server. The advantage of using a native installer is that all of the .NET Core native dependencies are installed. Native installers also install the .NET Core SDK system-wide.

When I installed .Net Core 2.1 Runtime I followed the instructions (see attached screen capture) to install the native installer which should have resolved all of the prerequisites, right?

Can you check that the RavenDB folder does have the relevant file?

What file are you referring to?

By default, we use the bundled .NET Core version, so you shouldn't have to install it globally. 

If RavenDb is using a bundled version of .Net Core why the Type Initializer exception?
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
ScreenClip.png

Paweł Pekról

unread,
Jul 10, 2018, 2:55:26 AM7/10/18
to rav...@googlegroups.com
Hi Mike,

version 4.0.5 is running on .NET Core 2.0 and the list of prerequisites is a bit different than for the .NET Core 2.1. Can you try issuing following command:
sudo apt-get install libunwind8 liblttng-ust0 libcurl3 libssl1.0.0 libuuid1 libkrb5-3 zlib1g libicu55 libsodium18

Those are the prerequisites for the .NET Core 2.0. Starting from 4.0.6 RavenDB will be running on .NET Core 2.1.

Mike Moore

unread,
Jul 10, 2018, 3:21:54 AM7/10/18
to RavenDB - 2nd generation document database
sudo apt-get install libunwind8 liblttng-ust0 libcurl3 libssl1.0.0 libuuid1 libkrb5-3 zlib1g libicu55 libsodium18

Pawel, that solved the problem. Thanks a lot.
Reply all
Reply to author
Forward
0 new messages