Jump to content

Raspberry Pi B + Raspbian Stretch + Mono 5.14 -> crash on start-up


Recommended Posts

Posted

I'm new to Emby and am trying to install it on my Pi. When I try to run it, it crashes however.

 

Any idea what is going on and how I could solve this? Here is the output:

 

$ LD_LIBRARY_PATH=./lib mono ./MediaBrowser.Server.Mono.exe
Info Main: Emby
    Command line: /home/pi/1down/embyserver-35/MediaBrowser.Server.Mono.exe
    Operating system: Unix 4.14.52.0
    64-Bit OS: False
    64-Bit Process: False
    User Interactive: False
    Mono: 5.14.0.177 (tarball Mon Aug  6 10:53:50 UTC 2018)
    Processor count: 1
    Program data path: /home/pi/1down/embyserver-35/ProgramData-Server
    Application directory: /home/pi/1down/embyserver-35
appHost.Init
Could not load signature of ServiceStack.Net40PclExport:GetWeakDataMember due to: Could not load file or assembly 'System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
Error Main: UnhandledException
    *** Error Report ***
    Version: 3.5.2.0
    Command line: /home/pi/1down/embyserver-35/MediaBrowser.Server.Mono.exe
    Operating system: Unix 4.14.52.0
    64-Bit OS: False
    64-Bit Process: False
    User Interactive: False
    Mono: 5.14.0.177 (tarball Mon Aug  6 10:53:50 UTC 2018)
    Processor count: 1
    Program data path: /home/pi/1down/embyserver-35/ProgramData-Server
    Application directory: /home/pi/1down/embyserver-35
    System.TypeInitializationException: The type initializer for 'ServiceStack.Text.JsConfig' threw an exception. ---> System.TypeInitializationException: The type initializer for 'ServiceStack.LicenseUtils' threw an exception. ---> System.TypeInitializationException: The type initializer for 'ServiceStack.PclExport' threw an exception. ---> System.TypeLoadException: Parent class vtable failed to initialize, due to: VTable setup of type ServiceStack.Net40PclExport failed assembly:/home/pi/1down/embyserver-35/ServiceStack.Text.dll type:Net40PclExport member:(null)
       --- End of inner exception stack trace ---
      at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
      at ServiceStack.LicenseUtils..cctor () [0x00016] in <baf35bb601f84127ae4f5606cf82a48c>:0
       --- End of inner exception stack trace ---
      at ServiceStack.Text.JsConfig..cctor () [0x00051] in <baf35bb601f84127ae4f5606cf82a48c>:0
       --- End of inner exception stack trace ---
      at Emby.Common.Implementations.Serialization.JsonSerializer.Configure () [0x00000] in <ea7199aea78e429a84e168a1e154646a>:0
      at Emby.Common.Implementations.Serialization.JsonSerializer..ctor (MediaBrowser.Model.IO.IFileSystem fileSystem, MediaBrowser.Model.Logging.ILogger logger) [0x00014] in <ea7199aea78e429a84e168a1e154646a>:0
      at Emby.Server.Implementations.ApplicationHost.CreateJsonSerializer () [0x00016] in <ea7199aea78e429a84e168a1e154646a>:0
      at Emby.Server.Implementations.ApplicationHost.Init () [0x00050] in <ea7199aea78e429a84e168a1e154646a>:0
      at MediaBrowser.Server.Mono.MainClass.RunApplication (Emby.Server.Implementations.ServerApplicationPaths appPaths, MediaBrowser.Model.Logging.ILogManager logManager, Emby.Server.Implementations.StartupOptions options) [0x000c2] in <674f05e6c9e14fbaa7955ba5ed6025ed>:0
      at MediaBrowser.Server.Mono.MainClass.Main (System.String[] args) [0x0009c] in <674f05e6c9e14fbaa7955ba5ed6025ed>:0
    System.TypeInitializationException
      at Emby.Common.Implementations.Serialization.JsonSerializer.Configure () [0x00000] in <ea7199aea78e429a84e168a1e154646a>:0
      at Emby.Common.Implementations.Serialization.JsonSerializer..ctor (MediaBrowser.Model.IO.IFileSystem fileSystem, MediaBrowser.Model.Logging.ILogger logger) [0x00014] in <ea7199aea78e429a84e168a1e154646a>:0
      at Emby.Server.Implementations.ApplicationHost.CreateJsonSerializer () [0x00016] in <ea7199aea78e429a84e168a1e154646a>:0
      at Emby.Server.Implementations.ApplicationHost.Init () [0x00050] in <ea7199aea78e429a84e168a1e154646a>:0
      at MediaBrowser.Server.Mono.MainClass.RunApplication (Emby.Server.Implementations.ServerApplicationPaths appPaths, MediaBrowser.Model.Logging.ILogManager logManager, Emby.Server.Implementations.StartupOptions options) [0x000c2] in <674f05e6c9e14fbaa7955ba5ed6025ed>:0
      at MediaBrowser.Server.Mono.MainClass.Main (System.String[] args) [0x0009c] in <674f05e6c9e14fbaa7955ba5ed6025ed>:0
    InnerException: System.TypeInitializationException
    System.TypeInitializationException: The type initializer for 'ServiceStack.LicenseUtils' threw an exception. ---> System.TypeInitializationException: The type initializer for 'ServiceStack.PclExport' threw an exception. ---> System.TypeLoadException: Parent class vtable failed to initialize, due to: VTable setup of type ServiceStack.Net40PclExport failed assembly:/home/pi/1down/embyserver-35/ServiceStack.Text.dll type:Net40PclExport member:(null)
       --- End of inner exception stack trace ---
      at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
      at ServiceStack.LicenseUtils..cctor () [0x00016] in <baf35bb601f84127ae4f5606cf82a48c>:0
       --- End of inner exception stack trace ---
      at ServiceStack.Text.JsConfig..cctor () [0x00051] in <baf35bb601f84127ae4f5606cf82a48c>:0
      at ServiceStack.Text.JsConfig..cctor () [0x00051] in <baf35bb601f84127ae4f5606cf82a48c>:0
    InnerException: System.TypeInitializationException
    System.TypeInitializationException: The type initializer for 'ServiceStack.PclExport' threw an exception. ---> System.TypeLoadException: Parent class vtable failed to initialize, due to: VTable setup of type ServiceStack.Net40PclExport failed assembly:/home/pi/1down/embyserver-35/ServiceStack.Text.dll type:Net40PclExport member:(null)
       --- End of inner exception stack trace ---
      at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
      at ServiceStack.LicenseUtils..cctor () [0x00016] in <baf35bb601f84127ae4f5606cf82a48c>:0
      at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
      at ServiceStack.LicenseUtils..cctor () [0x00016] in <baf35bb601f84127ae4f5606cf82a48c>:0
    InnerException: System.TypeLoadException
    System.TypeLoadException: Parent class vtable failed to initialize, due to: VTable setup of type ServiceStack.Net40PclExport failed assembly:/home/pi/1down/embyserver-35/ServiceStack.Text.dll type:Net40PclExport member:(null)
    
UnhandledException
System.TypeInitializationException: The type initializer for 'ServiceStack.Text.JsConfig' threw an exception. ---> System.TypeInitializationException: The type initializer for 'ServiceStack.LicenseUtils' threw an exception. ---> System.TypeInitializationException: The type initializer for 'ServiceStack.PclExport' threw an exception. ---> System.TypeLoadException: Parent class vtable failed to initialize, due to: VTable setup of type ServiceStack.Net40PclExport failed assembly:/home/pi/1down/embyserver-35/ServiceStack.Text.dll type:Net40PclExport member:(null)
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at ServiceStack.LicenseUtils..cctor () [0x00016] in <baf35bb601f84127ae4f5606cf82a48c>:0
   --- End of inner exception stack trace ---
  at ServiceStack.Text.JsConfig..cctor () [0x00051] in <baf35bb601f84127ae4f5606cf82a48c>:0
   --- End of inner exception stack trace ---
  at Emby.Common.Implementations.Serialization.JsonSerializer.Configure () [0x00000] in <ea7199aea78e429a84e168a1e154646a>:0
  at Emby.Common.Implementations.Serialization.JsonSerializer..ctor (MediaBrowser.Model.IO.IFileSystem fileSystem, MediaBrowser.Model.Logging.ILogger logger) [0x00014] in <ea7199aea78e429a84e168a1e154646a>:0
  at Emby.Server.Implementations.ApplicationHost.CreateJsonSerializer () [0x00016] in <ea7199aea78e429a84e168a1e154646a>:0
  at Emby.Server.Implementations.ApplicationHost.Init () [0x00050] in <ea7199aea78e429a84e168a1e154646a>:0
  at MediaBrowser.Server.Mono.MainClass.RunApplication (Emby.Server.Implementations.ServerApplicationPaths appPaths, MediaBrowser.Model.Logging.ILogManager logManager, Emby.Server.Implementations.StartupOptions options) [0x000c2] in <674f05e6c9e14fbaa7955ba5ed6025ed>:0
  at MediaBrowser.Server.Mono.MainClass.Main (System.String[] args) [0x0009c] in <674f05e6c9e14fbaa7955ba5ed6025ed>:0
System.TypeInitializationException
  at Emby.Common.Implementations.Serialization.JsonSerializer.Configure () [0x00000] in <ea7199aea78e429a84e168a1e154646a>:0
  at Emby.Common.Implementations.Serialization.JsonSerializer..ctor (MediaBrowser.Model.IO.IFileSystem fileSystem, MediaBrowser.Model.Logging.ILogger logger) [0x00014] in <ea7199aea78e429a84e168a1e154646a>:0
  at Emby.Server.Implementations.ApplicationHost.CreateJsonSerializer () [0x00016] in <ea7199aea78e429a84e168a1e154646a>:0
  at Emby.Server.Implementations.ApplicationHost.Init () [0x00050] in <ea7199aea78e429a84e168a1e154646a>:0
  at MediaBrowser.Server.Mono.MainClass.RunApplication (Emby.Server.Implementations.ServerApplicationPaths appPaths, MediaBrowser.Model.Logging.ILogManager logManager, Emby.Server.Implementations.StartupOptions options) [0x000c2] in <674f05e6c9e14fbaa7955ba5ed6025ed>:0
  at MediaBrowser.Server.Mono.MainClass.Main (System.String[] args) [0x0009c] in <674f05e6c9e14fbaa7955ba5ed6025ed>:0
InnerException: System.TypeInitializationException
System.TypeInitializationException: The type initializer for 'ServiceStack.LicenseUtils' threw an exception. ---> System.TypeInitializationException: The type initializer for 'ServiceStack.PclExport' threw an exception. ---> System.TypeLoadException: Parent class vtable failed to initialize, due to: VTable setup of type ServiceStack.Net40PclExport failed assembly:/home/pi/1down/embyserver-35/ServiceStack.Text.dll type:Net40PclExport member:(null)
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at ServiceStack.LicenseUtils..cctor () [0x00016] in <baf35bb601f84127ae4f5606cf82a48c>:0
   --- End of inner exception stack trace ---
  at ServiceStack.Text.JsConfig..cctor () [0x00051] in <baf35bb601f84127ae4f5606cf82a48c>:0
  at ServiceStack.Text.JsConfig..cctor () [0x00051] in <baf35bb601f84127ae4f5606cf82a48c>:0
InnerException: System.TypeInitializationException
System.TypeInitializationException: The type initializer for 'ServiceStack.PclExport' threw an exception. ---> System.TypeLoadException: Parent class vtable failed to initialize, due to: VTable setup of type ServiceStack.Net40PclExport failed assembly:/home/pi/1down/embyserver-35/ServiceStack.Text.dll type:Net40PclExport member:(null)
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at ServiceStack.LicenseUtils..cctor () [0x00016] in <baf35bb601f84127ae4f5606cf82a48c>:0
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at ServiceStack.LicenseUtils..cctor () [0x00016] in <baf35bb601f84127ae4f5606cf82a48c>:0
InnerException: System.TypeLoadException
System.TypeLoadException: Parent class vtable failed to initialize, due to: VTable setup of type ServiceStack.Net40PclExport failed assembly:/home/pi/1down/embyserver-35/ServiceStack.Text.dll type:Net40PclExport member:(null)

Posted

Hi, I'm afraid we haven't tested mono 5.14 yet. 5.12 is as high as we've gone.

 

What model RPI is this? Because if the architecture is armhf then you should just use our debian package instead:

 

https://emby.media/linux-server.html

Posted

Thanks for the reply!

 

It's a model B. I tried the package initially but it seemed to use the dotnet runtime from Microsoft which doesn't support this CPU yet.

 

Raspbian has Mono 4.6 in its repositories, but as that seemed to old I added the Mono Project repository and updated everything to the version from there. Is there a way to get version 5.12 instead?

Posted

What cpu is it? What happened when you tried the package on our website?

Posted

Here's more info on the CPU:

$ cat /proc/cpuinfo
processor    : 0
model name    : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS    : 697.95
Features    : half thumb fastmult vfp edsp java tls
CPU implementer    : 0x41
CPU architecture: 7
CPU variant    : 0x0
CPU part    : 0xb76
CPU revision    : 7

Hardware    : BCM2835
Revision    : 000e
Serial        : 00000000dbc3e38c

 

With the package it segfaulted with an invalid instruction if I remember correctly. I think it's this issue: https://github.com/dotnet/coreclr/issues/10605

Posted

What process did you use to install the server?

Posted

With the package, I had just used 'dpkg -i' on it.

 

For the Mono build, I unzipped embyserver-mono_3.5.2.0.zip from the releases page on Github. I had to create a symlink for libsqlite3.so because it's called libsqlite3.so.0 on my system. (I put that symlink in a subdirectory lib. That's why I added the LD_LIBRARY_PATH.) Then I ran mono as you see in my output.

Posted

Ok, sadly, the best i can say right now would be to figure out how to get an older version of mono onto your system, and I don't have the answers on how to do that.

If there is enough user demand then we'll consider an armv6 mono package. We're starting to create new mono packages now to fill in support for devices that .net core can't reach. Thanks.

Posted

Thanks! I'd be happy to test anything that comes out of that effort! I'll see if I can find an older Mono version for now. Do you know what kind of changes would be needed to make Emby run on a newer Mono version? Would that be a matter of compiling it for that version or are more changes needed?

Posted

I really haven't looked at 5.14 yet so it's hard to say.  You could also try the netframework zip instead. Going forward that's going to replace the mono zip. The outcome might just be the same though.

Posted

I just tried that package, but it gives me this output:

$ mono ./EmbyServer.exe

Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
File name: 'System.Runtime.InteropServices.RuntimeInformation, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
  at EmbyServer.Program+<Main>d__11.MoveNext () [0x00048] in <810800dc032d4ca9ae1f9cf140cbc0c4>:0
--- End of stack trace from previous location where exception was thrown ---
  at EmbyServer.Program.<Main> (System.String[] args) [0x0000c] in <810800dc032d4ca9ae1f9cf140cbc0c4>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
File name: 'System.Runtime.InteropServices.RuntimeInformation, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
  at EmbyServer.Program+<Main>d__11.MoveNext () [0x00048] in <810800dc032d4ca9ae1f9cf140cbc0c4>:0
--- End of stack trace from previous location where exception was thrown ---
  at EmbyServer.Program.<Main> (System.String[] args) [0x0000c] in <810800dc032d4ca9ae1f9cf140cbc0c4>:0

 

I searched a bit and found a package with this library, but it has version 4.0.0.0 instead of 4.0.2.0:

$ dpkg -L libmono-system-runtime-interopservices-runtimeinformation4.0-cil
/.
/usr
/usr/lib
/usr/lib/mono
/usr/lib/mono/4.5
/usr/lib/mono/gac
/usr/lib/mono/gac/System.Runtime.InteropServices.RuntimeInformation
/usr/lib/mono/gac/System.Runtime.InteropServices.RuntimeInformation/4.0.0.0__b03f5f7f11d50a3a
/usr/lib/mono/gac/System.Runtime.InteropServices.RuntimeInformation/4.0.0.0__b03f5f7f11d50a3a/System.Runtime.InteropServices.RuntimeInformation.dll
/usr/share
/usr/share/doc
/usr/share/doc/libmono-system-runtime-interopservices-runtimeinformation4.0-cil
/usr/share/doc/libmono-system-runtime-interopservices-runtimeinformation4.0-cil/changelog.Debian.gz
/usr/share/doc/libmono-system-runtime-interopservices-runtimeinformation4.0-cil/copyright
/usr/lib/mono/4.5/System.Runtime.InteropServices.RuntimeInformation.dll

 

Maybe it would be possible to make it less strict regarding the version of that library?

Posted

Try the one on the beta server.

Posted

I tried both the mono and netframework packages for 3.6.0.2-beta but they seem to be have the same as their 3.5.2 variants. Or you meant something else with 'the beta server'? I wasn't completely sure.

  • 1 month later...
Posted

Let me know if there's already any update on this. I'll be glad to try a newer version again!

Posted

Yes you could try the latest beta server, thanks.

  • 1 month later...
Posted

I just tried the latest version of the beta server, embyserver-netframework_3.6.0.65.zip.

 

It still has the 4.0.0.0 VS 4.0.2.0 problem.

Posted

Can you please attach the emby server log? thanks.

Posted

If you wish to pin mono to a certain version you will want to use a source formatted something like this:

deb http://download.mono-project.com/repo/debian wheezy/snapshots/4.8.1 main

But modify the end part there to proper version. I think mono also has instructions on doing this.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...