ViolentVotan 0 Posted March 2, 2015 Posted March 2, 2015 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?
jose 73 Posted March 2, 2015 Posted March 2, 2015 What does System.Data.SQLite.dll.config located at /opt/Media.../Media..Server/bin contains?
ViolentVotan 0 Posted March 3, 2015 Author Posted March 3, 2015 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>
jose 73 Posted March 3, 2015 Posted March 3, 2015 <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>
ViolentVotan 0 Posted March 3, 2015 Author Posted March 3, 2015 (edited) 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 March 3, 2015 by ViolentVotan
Luke 38880 Posted March 3, 2015 Posted March 3, 2015 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.
jose 73 Posted March 3, 2015 Posted March 3, 2015 (edited) 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 latestyum clean allyum update MediaBrowserServer-devI 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 March 4, 2015 by jose
jose 73 Posted March 4, 2015 Posted March 4, 2015 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.famillecollet.com/enterprise/remi-release-7.rpmrpm -Uvh remi-release-7.rpm then yum --enablerepo=remi install ImageMagick-last after that re install the server.
ViolentVotan 0 Posted March 4, 2015 Author Posted March 4, 2015 (edited) 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.famillecollet.com/enterprise/remi-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): Edited March 4, 2015 by ViolentVotan
jose 73 Posted March 4, 2015 Posted March 4, 2015 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
Solution jose 73 Posted March 5, 2015 Solution Posted March 5, 2015 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 1
ViolentVotan 0 Posted March 5, 2015 Author Posted March 5, 2015 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.
jose 73 Posted March 5, 2015 Posted March 5, 2015 For the fedora centos versioN the package being provided by the repo svould continue to be supply just as mono-opt
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