Jump to content


Photo

MediaBrowserServer no longer starting

sqlite missing crash startup sqlite3

Best Answer jose , 05 March 2015 - 12:08 AM

Uninstall the remi ImageMagick and run the following (the dependancies package should provide ImageMagick)

Also fixed the issue with the .config file so you shouldn't need to fix those anymore.

 

yum clean all --enablerepo=MediaBrowserServer-Dependancies

sudo yum --enablerepo=MediaBrowserServer-Dependancies install MediaBrowserServer-dev

Go to the full post


  • Please log in to reply
12 replies to this topic

#1 ViolentVotan OFFLINE  

ViolentVotan

    Member

  • Members
  • 20 posts
  • Local time: 10:15 PM

Posted 02 March 2015 - 11:41 AM

Hello,

 

my MediaBrowserServer is no longer starting and gives the following error:

One or more errors occurred
System.AggregateException
  at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) [0x00000] in <filename unknown>:0
  at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks) [0x00000] in <filename unknown>:0
  at MediaBrowser.Server.Mono.MainClass.RunApplication (MediaBrowser.Server.Implementations.ServerApplicationPaths appPaths, ILogManager logManager, MediaBrowser.Server.Startup.Common.StartupOptions options) [0x00000] in <filename unknown>:0
  at MediaBrowser.Server.Mono.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0
InnerException: System.DllNotFoundException
libsqlite3.so.0
libsqlite3.so.0
  at (wrapper managed-to-native) System.Data.SQLite.UnsafeNativeMethods:sqlite3_libversion ()
  at System.Data.SQLite.SQLite3.get_SQLiteVersion () [0x00000] in <filename unknown>:0
  at System.Data.SQLite.SQLiteConnection.get_SQLiteVersion () [0x00000] in <filename unknown>:0
  at MediaBrowser.Server.Implementations.Persistence.SqliteExtensions+<ConnectToDb>c__async0.MoveNext () [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[System.Data.IDbConnection].GetResult () [0x00000] in <filename unknown>:0
  at MediaBrowser.Server.Implementations.Persistence.SqliteUserRepository+<Initialize>c__async0.MoveNext () [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <filename unknown>:0
  at MediaBrowser.Server.Startup.Common.ApplicationHost+<GetUserRepository>c__async4.MoveNext () [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[MediaBrowser.Controller.Persistence.IUserRepository].GetResult () [0x00000] in <filename unknown>:0
  at MediaBrowser.Server.Startup.Common.ApplicationHost+<RegisterResources>c__async2.MoveNext () [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <filename unknown>:0
  at MediaBrowser.Common.Implementations.BaseApplicationHost`1+<Init>c__async0[MediaBrowser.Server.Implementations.ServerApplicationPaths].MoveNext () [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <filename unknown>:0
  at MediaBrowser.Server.Startup.Common.ApplicationHost+<Init>c__async1.MoveNext () [0x00000] in <filename unknown>:0

From what I can see, it does not see the sqlite lib. 

 

I use MediaBrowserServer-dev on a centos7 and use the repository from MediaBrowser. To make sure, I verified if sqlite is installed correctly:

 

yum list sqlite

sqlite.x86_64    3.8.2-2.1     @MediaBrowserServer-Dependancies

 

so it is installed. Let's see if the files that it is unable to find are there:

find / -name libsqlite3.so.0
/usr/lib64/libsqlite3.so.0
 
so the file does exist. Where is MediaBrowserServer looking for the file? Or what is going wrong?


#2 jose OFFLINE  

jose

    Advanced Member

  • Developers
  • 323 posts
  • Local time: 05:15 PM

Posted 02 March 2015 - 07:16 PM

What does System.Data.SQLite.dll.config located at /opt/Media.../Media..Server/bin contains?

#3 ViolentVotan OFFLINE  

ViolentVotan

    Member

  • Members
  • 20 posts
  • Local time: 10:15 PM

Posted 03 March 2015 - 04:07 AM

What does System.Data.SQLite.dll.config located at /opt/Media.../Media..Server/bin contains?

 

<configuration><dllmap dll="sqlite3" target="libsqlite3.so.0
libsqlite3.so.0" os="linux"/></configuration>


#4 jose OFFLINE  

jose

    Advanced Member

  • Developers
  • 323 posts
  • Local time: 05:15 PM

Posted 03 March 2015 - 07:53 AM


<configuration><dllmap dll="sqlite3" target="libsqlite3.so.0
libsqlite3.so.0" os="linux"/></configuration>


a change was made in the dev package as i was experimenting for the server to identify the installed library names, sometimes is .so.2 or .so or .so.0 ... i should say
<configuration><dllmap dll="sqlite3" target="libsqlite3.so.0" os="linux"/></configuration>

#5 ViolentVotan OFFLINE  

ViolentVotan

    Member

  • Members
  • 20 posts
  • Local time: 10:15 PM

Posted 03 March 2015 - 01:41 PM

a change was made in the dev package as i was experimenting for the server to identify the installed library names, sometimes is .so.2 or .so or .so.0 ... i should say
<configuration><dllmap dll="sqlite3" target="libsqlite3.so.0" os="linux"/></configuration>

 

Thank you, that did fix my sqlite problem, now I se that I get an ImageMagick error?

2015-03-03 18:36:51.2030 Error - ImageProcessor: Error loading ImageMagick:
        *** Error Report ***
        Version: 3.0.5540.13178
        Command line: /opt/MediaBrowser/MediaBrowserServer/bin/MediaBrowser.Server.Mono.exe -programdata /var/opt/MediaBrowser/MediaBrowserServer
        Operating system: Unix 3.10.0.123
        Processor count: 8
        64-Bit OS: True
        64-Bit Process: True
        Program data path: /var/opt/MediaBrowser/MediaBrowserServer
        Mono: 3.10.0 (tarball Sat Nov 15 03:35:34 UTC 2014)
        Application Path: /opt/MediaBrowser/MediaBrowserServer/bin/MediaBrowser.Server.Mono.exe
        IsMagickWandInstantiated
        System.EntryPointNotFoundException
          at (wrapper managed-to-native) ImageMagickSharp.WandInterop:IsMagickWandInstantiated ()
          at ImageMagickSharp.Wand.InitializeEnvironment () [0x00000] in <filename unknown>:0
          at ImageMagickSharp.Wand..ctor () [0x00000] in <filename unknown>:0
          at ImageMagickSharp.Wand.<.cctor>b__0 () [0x00000] in <filename unknown>:0
          at System.Lazy`1[ImageMagickSharp.Wand].InitValue () [0x00000] in <filename unknown>:0

I have ImageMagick installed, the default CentOS7 one:

ImageMagick.x86_64     6.7.8.9-10.el7

 

The ImageMagickSharp.dll.config says:
<configuration><dllmap dll="CORE_RL_Wand_.dll" target="libMagickWand.so.5" os="linux"/></configuration>

And the file does exist:

find / -name libMagickWand*
/usr/lib64/libMagickWand.so.5
/usr/lib64/libMagickWand.so.5.0.0

Edited by ViolentVotan, 03 March 2015 - 01:55 PM.


#6 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146228 posts
  • Local time: 04:15 PM

Posted 03 March 2015 - 02:00 PM

If you're seeing an ImageMagick error then it means you're running brand new code in the dev branch so we're not going to have all the answers yet. If you want to stay on dev then you need to roll up your sleeves and help figure it out or go back to the stable branch.



#7 jose OFFLINE  

jose

    Advanced Member

  • Developers
  • 323 posts
  • Local time: 05:15 PM

Posted 03 March 2015 - 06:57 PM

the dev does get updated everytime a commit is done so errors may happen if the current dev has some problems do you have the latest
yum clean all
yum update MediaBrowserServer-dev

I will check when i get in front of my server to see if i have the same problem

 

I updated my server to the latest dev and is currently running, any luck?


Edited by jose, 03 March 2015 - 08:22 PM.


#8 jose OFFLINE  

jose

    Advanced Member

  • Developers
  • 323 posts
  • Local time: 05:15 PM

Posted 03 March 2015 - 08:56 PM

Also try installing a the newer version of ImageMagick from the remi repo:

remove the current version of ImageMagick

 

yum remove ImageMagick

 

to get the repo:

wget http://rpms.famillec...i-release-7.rpm
rpm -Uvh remi-release-7.rpm

 

then 

 

yum --enablerepo=remi install ImageMagick-last

 

after that re install the server.



#9 ViolentVotan OFFLINE  

ViolentVotan

    Member

  • Members
  • 20 posts
  • Local time: 10:15 PM

Posted 04 March 2015 - 10:39 AM

Also try installing a the newer version of ImageMagick from the remi repo:

remove the current version of ImageMagick

 

yum remove ImageMagick

 

to get the repo:

wget http://rpms.famillec...i-release-7.rpm
rpm -Uvh remi-release-7.rpm

 

then 

 

yum --enablerepo=remi install ImageMagick-last

 

after that re install the server.

 

I do have the remi repo, although the MediaBrowserServer-dev package seems to have a dependency on the regular ImageMagick. When I try to remove ImageMagick it wants to remove MediaBrowserServer as well. Same goes for when I install ImageMagick-last manually and then MEdiaBrowser, it fails to install as it wants to replace ImageMagick-last with ImageMagick and then fails the dependecies.

 

I did remove ImageMAgick manually via rpm directly and replaced it with ImageMagick-last, but I still get the ImageMagick error in the startup, and also the webinterface does not display correctly (the blurred names are on purpose, they are displayed normally):

screenie.jpg


Edited by ViolentVotan, 04 March 2015 - 10:54 AM.


#10 jose OFFLINE  

jose

    Advanced Member

  • Developers
  • 323 posts
  • Local time: 05:15 PM

Posted 04 March 2015 - 06:30 PM

I will try today with a vm with centos7 to see what i need to do with the package. ImageMagick was added recently to dev and i havent had the time to test with other distros

#11 jose OFFLINE  

jose

    Advanced Member

  • Developers
  • 323 posts
  • Local time: 05:15 PM

Posted 05 March 2015 - 12:08 AM   Best Answer

Uninstall the remi ImageMagick and run the following (the dependancies package should provide ImageMagick)

Also fixed the issue with the .config file so you shouldn't need to fix those anymore.

 

yum clean all --enablerepo=MediaBrowserServer-Dependancies

sudo yum --enablerepo=MediaBrowserServer-Dependancies install MediaBrowserServer-dev


  • ViolentVotan likes this

#12 ViolentVotan OFFLINE  

ViolentVotan

    Member

  • Members
  • 20 posts
  • Local time: 10:15 PM

Posted 05 March 2015 - 05:05 AM

This fixed it, now everything seems to work fine again. Will MediaBrowser stick to including its own ImageMagick for now or will this be removed in the future?

 

Thank you.



#13 jose OFFLINE  

jose

    Advanced Member

  • Developers
  • 323 posts
  • Local time: 05:15 PM

Posted 05 March 2015 - 05:12 AM

For the fedora centos versioN the package being provided by the repo svould continue to be supply just as mono-opt





Also tagged with one or more of these keywords: sqlite, missing, crash, startup, sqlite3

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users