Z_God 0 Posted August 9, 2018 Posted August 9, 2018 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.exeInfo 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-35appHost.InitCould 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) UnhandledExceptionSystem.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>:0System.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>:0InnerException: System.TypeInitializationExceptionSystem.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>:0InnerException: System.TypeInitializationExceptionSystem.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>:0InnerException: System.TypeLoadExceptionSystem.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)
Luke 42078 Posted August 9, 2018 Posted August 9, 2018 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
Z_God 0 Posted August 9, 2018 Author Posted August 9, 2018 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?
Luke 42078 Posted August 9, 2018 Posted August 9, 2018 What cpu is it? What happened when you tried the package on our website?
Z_God 0 Posted August 9, 2018 Author Posted August 9, 2018 Here's more info on the CPU: $ cat /proc/cpuinfoprocessor : 0model name : ARMv6-compatible processor rev 7 (v6l)BogoMIPS : 697.95Features : half thumb fastmult vfp edsp java tlsCPU implementer : 0x41CPU architecture: 7CPU variant : 0x0CPU part : 0xb76CPU revision : 7Hardware : BCM2835Revision : 000eSerial : 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
Luke 42078 Posted August 10, 2018 Posted August 10, 2018 What process did you use to install the server?
Z_God 0 Posted August 10, 2018 Author Posted August 10, 2018 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.
Luke 42078 Posted August 10, 2018 Posted August 10, 2018 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.
Z_God 0 Posted August 10, 2018 Author Posted August 10, 2018 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?
Luke 42078 Posted August 11, 2018 Posted August 11, 2018 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.
Z_God 0 Posted August 11, 2018 Author Posted August 11, 2018 I just tried that package, but it gives me this output: $ mono ./EmbyServer.exeUnhandled 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?
Z_God 0 Posted August 11, 2018 Author Posted August 11, 2018 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.
Z_God 0 Posted September 29, 2018 Author Posted September 29, 2018 Let me know if there's already any update on this. I'll be glad to try a newer version again!
Luke 42078 Posted September 29, 2018 Posted September 29, 2018 Yes you could try the latest beta server, thanks.
Z_God 0 Posted November 18, 2018 Author Posted November 18, 2018 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.
Luke 42078 Posted November 18, 2018 Posted November 18, 2018 Can you please attach the emby server log? thanks.
tdiguy 99 Posted November 19, 2018 Posted November 19, 2018 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now