Jump to content

emby-server beta failing to start


eiwoh

Recommended Posts

I'm running emby-server-beta on CentOS 7.2. I updated the server to version 3.1.226.0 and now when I try to start it I get a segmentation fault almost immediately.  While troubleshooting a newer version 3.1.227.0 was released so I updated again.  With 3.1.227.0 my log file starts with an Unhandled Exception.  I don't have problems using the stable version 3.0.8500.0. Here are the links to my log files.

 

3.1.226.0 log https://paste2.org/UJKGH8kL

3.1.227.0 log https://paste2.org/7Ktt9jss

 

 

Link to comment
Share on other sites

zombieagain

Luke, just installed build 228 and I still cannot start the server. This is the entire content of the log:


Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly or one of its dependencies.
File name: 'SQLitePCLRaw.provider.sqlite3, Version=1.0.0.0, Culture=neutral, PublicKeyToken=62684c7b4f184e3f'

I'm on OpenSUSE. Any ideas?

Link to comment
Share on other sites

zombieagain

Just tried 231. Still no luck. This is the log:

Unhandled Exception:
System.DllNotFoundException: libsqlite3.so
  at (wrapper managed-to-native) SQLitePCL.SQLite3Provider_sqlite3+NativeMethods:sqlite3_libversion_number ()
  at SQLitePCL.SQLite3Provider_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number () [0x00000] in <0f70d70ac1af4218ba025cd0b256d429>:0 
  at SQLitePCL.raw.SetProvider (SQLitePCL.ISQLite3Provider imp) [0x00000] in <56e4d2fa2d61421297af8c578bef7977>:0 
  at MediaBrowser.Server.Mono.MainClass.SetSqliteProvider () [0x00005] in <3b7ec3afa79942e4b14c349422372b7d>:0 
  at MediaBrowser.Server.Mono.MainClass.Main (System.String[] args) [0x00018] in <3b7ec3afa79942e4b14c349422372b7d>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: libsqlite3.so
  at (wrapper managed-to-native) SQLitePCL.SQLite3Provider_sqlite3+NativeMethods:sqlite3_libversion_number ()
  at SQLitePCL.SQLite3Provider_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number () [0x00000] in <0f70d70ac1af4218ba025cd0b256d429>:0 
  at SQLitePCL.raw.SetProvider (SQLitePCL.ISQLite3Provider imp) [0x00000] in <56e4d2fa2d61421297af8c578bef7977>:0 
  at MediaBrowser.Server.Mono.MainClass.SetSqliteProvider () [0x00005] in <3b7ec3afa79942e4b14c349422372b7d>:0 
  at MediaBrowser.Server.Mono.MainClass.Main (System.String[] args) [0x00018] in <3b7ec3afa79942e4b14c349422372b7d>:0 
Link to comment
Share on other sites

I still had the same problem with build 232 but did some more searching.  I couldn't find the libsqlite3.so file that is appears to be looking for anywhere on my system.  I did find a libembysqlite3.so.0.8.6 in /usr/lib/emby-server/lib64.  There was also a link to this file named libembysqlite3.so.0.  I created a new link to libembysqlite3.so.0.8.6 and named it libsqlite3.so and the emby-server started up with no problems. 

 

Here is a link to my log file : https://paste2.org/IDC5y6Ep

 

Well, there are a couple of errors in the log file, but the server appears to be functioning.

Edited by eiwoh
  • Like 1
Link to comment
Share on other sites

zombieagain

I still had the same problem with build 232 but did some more searching.  I couldn't find the libsqlite3.so file that is appears to be looking for anywhere on my system.  I did find a libembysqlite3.so.0.8.6 in /usr/lib/emby-server/lib64.  There was also a link to this file named libembysqlite3.so.0.  I created a new link to libembysqlite3.so.0.8.6 and named it libsqlite3.so and the emby-server started up with no problems. 

 

Here is a link to my log file : https://paste2.org/IDC5y6Ep

 

Well, there are a couple of errors in the log file, but the server appears to be functioning.

Amazing! Thank you, after three days emby is alive again!

Link to comment
Share on other sites

cranst0n

FYI, issue is still seems to be there.

3.1.234~beta-1720.1
Unhandled Exception:
System.DllNotFoundException: libsqlite3.so
  at (wrapper managed-to-native) SQLitePCL.SQLite3Provider_sqlite3+NativeMethods:sqlite3_libversion_number ()
  at SQLitePCL.SQLite3Provider_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number () [0x00000] in <0f70d70ac1af4218ba025cd0b256d429>:0 
  at SQLitePCL.raw.SetProvider (SQLitePCL.ISQLite3Provider imp) [0x00000] in <56e4d2fa2d61421297af8c578bef7977>:0 
  at MediaBrowser.Server.Mono.MainClass.SetSqliteProvider () [0x00005] in <ff9e0e349a8c4e7abe50845582894a79>:0 
  at MediaBrowser.Server.Mono.MainClass.Main (System.String[] args) [0x00018] in <ff9e0e349a8c4e7abe50845582894a79>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: libsqlite3.so
  at (wrapper managed-to-native) SQLitePCL.SQLite3Provider_sqlite3+NativeMethods:sqlite3_libversion_number ()
  at SQLitePCL.SQLite3Provider_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number () [0x00000] in <0f70d70ac1af4218ba025cd0b256d429>:0 
  at SQLitePCL.raw.SetProvider (SQLitePCL.ISQLite3Provider imp) [0x00000] in <56e4d2fa2d61421297af8c578bef7977>:0 
  at MediaBrowser.Server.Mono.MainClass.SetSqliteProvider () [0x00005] in <ff9e0e349a8c4e7abe50845582894a79>:0 
  at MediaBrowser.Server.Mono.MainClass.Main (System.String[] args) [0x00018] in <ff9e0e349a8c4e7abe50845582894a79>:0
Link to comment
Share on other sites

 

FYI, issue is still seems to be there.

3.1.234~beta-1720.1

 

This build worked for me.  Have you tried to reinstall the embysqlite package?  I did a remove of the emby-server-beta and deleted the /usr/lib/emby-server directory.  Since I did not remove the embysqlite and embymagick I had all kinds of problems starting emby.  Once I realized this and removed and reinstall all 3 packages it started right up.

 

 

 

 

Apologies for the inconvenience. We're looking into it, thanks.

 

Luke,  

 

Thanks for the help.

Edited by eiwoh
Link to comment
Share on other sites

adam.niescierowicz

If anyone have problem with missing libsqlite3.so, temporary solution is creating symoblic link from libsqlite3.so.0 to libsqlite3.so

Procedure for Debian/Ubuntu

dpkg -l |grep sqlite                                                                                                               # return sqlite package name Quote

dpkg -L libsqlite3-0:amd64                                                                                                  # return location of library

ln -s /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 /usr/lib/x86_64-linux-gnu/libsqlite3.so          # create symbolik link

 

 

Link to comment
Share on other sites

cranst0n

Spoke too soon about the workaround.

 

When I try to playback anything I get a bunch of stacktraces in my log. I can post if it's helpful but this is a workaround to begin with so it may not be worth pursuing. So I'm back to the original issue of emby not starting as described above.

 

Not sure if it's relevant but I'm running this on a 32-bit machine using:

3.1.236~beta-1722.1
Link to comment
Share on other sites

Locate the emby server install folder. There will be a file called

System.Data.Sqlite.dll.config

Copy this file to

SQLitePCLRaw.provider.sqlite3.dll.config

That's what we need to update the Emby package to do before this can hit the stable channel. So that should get you back up and running.

Link to comment
Share on other sites

Locate the emby server install folder. There will be a file called

System.Data.Sqlite.dll.config
Copy this file to
SQLitePCLRaw.provider.sqlite3.dll.config
That's what we need to update the Emby package to do before this can hit the stable channel. So that should get you back up and running.

CentOS/Fedora packages are already updated with this change. If you are still having problems please report them so we can look into it.

 

 

Sent from my iPhone using Tapatalk

  • Like 1
Link to comment
Share on other sites

Hi,
I have updated to latest version 3.1.237~beta-1723.1, but I have problem start server with this error:
 

Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
File name: 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
File name: 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

I have tried to install libsqlite3 package, and rename files as mentioned in post #18.

I have enabled debug logging, but this is only log file which I found. Folder in /var/lib/emby-server/logs is empty..

Any help ?

thank You

system: debian 8.6
Linux nas 4.8.4 #1 SMP Sat Oct 22 19:48:54 CEST 2016 x86_64 GNU/Linux
Link to comment
Share on other sites

Hi, please see post #18. After that, if the issue persists, please attach the complete emby server log. Thanks !

Link to comment
Share on other sites

Jdiesel

Locate the emby server install folder. There will be a file called

System.Data.Sqlite.dll.config
Copy this file to
SQLitePCLRaw.provider.sqlite3.dll.config
That's what we need to update the Emby package to do before this can hit the stable channel. So that should get you back up and running.

Can confirm this works on Ubuntu 16.04. The file is located in /usr/lib/emby-server/bin

Link to comment
Share on other sites

Hi, please see post #18. After that, if the issue persists, please attach the complete emby server log. Thanks !

 

As I mentioned in my previous post, I already did this step before.

  

ls /usr/lib/emby-server/bin/*.config
/usr/lib/emby-server/bin/ImageMagickSharp.dll.config                     
/usr/lib/emby-server/bin/MediaBrowser.Server.Startup.Common.dll.config
/usr/lib/emby-server/bin/MediaBrowser.Server.Implementations.dll.config  
/usr/lib/emby-server/bin/SQLitePCLRaw.provider.sqlite3.dll.config
/usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe.config

Debug is enabled,

 

grep -i debug /var/lib/emby-server/config/system.xml
<EnableDebugLevelLogging>true</EnableDebugLevelLogging>

 

 

but this is only log which I see in /var/log/emby-server.log

 

Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
File name: 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
File name: 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
Link to comment
Share on other sites

Andy777

I'm not running beta, but for past couple of weeks the same thing in dev branch (currently emby-server-dev (3.1.6176.1177~dev-41.1) on Ubuntu 16) could be fixed by this method:

$ sudo cp /usr/lib/emby-server/bin/System.Data.SQLite.dll.config /usr/lib/emby-server/bin/SQLitePCLRaw.provider.sqlite3.dll.config
$ sudo service emby-server start


The installer/updater creates both .config files, but with the original configuration of:

$ cat /usr/lib/emby-server/bin/System.Data.SQLite.dll.config 
<configuration>
  <dllmap dll="sqlite3" target="libsqlite3.so.0" os="linux"/>
</configuration>

$ cat /usr/lib/emby-server/bin/SQLitePCLRaw.provider.sqlite3.dll.config
<configuration>
  <dllmap dll="sqlite3" target="libsqlite3.so" os="linux"/>
</configuration>

the server will complain about missing file (and does not start). When both files identically point to the libsqlite3.so.0, then the server will start..

 

It is possible that this is different in the Beta branch.

 

BR,

Andy777

  • Like 1
Link to comment
Share on other sites

I'm having the same configuration (with server beta 239):

root@OMV3-Server:/usr/lib/emby-server/bin# cat /usr/lib/emby-server/bin/System.Data.SQLite.dll.config
<configuration>
  <dllmap dll="sqlite3" target="libsqlite3.so.0" os="linux"/>
</configuration>root@OMV3-Server:/usr/lib/emby-server/bin# cat /usr/lib/emby-server/bin/SQLitePCLRaw.provider.sqlite3.dll.config
<configuration>
  <dllmap dll="sqlite3" target="libsqlite3.so" os="linux"/>
</configuration>root@OMV3-Server:/usr/lib/emby-server/bin# 

and with changing to libsqlite3.so.0 under SQLitePCLRaw.provider.sqlite3.dll.config everything worked. Thank you for this post @@Andy777

Edited by Huberer
Link to comment
Share on other sites

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...