Ballistic 8 Posted November 21, 2014 Share Posted November 21, 2014 Hello, I have been running MB on BSD for a few days now but the system is far from stable. Mediabrowser crashes at least a couple times a day. Most of the times it seems to crash during a library scan. MB logs don't show anything usefull. Mediabrowser seems to run on Mono, a .NEt framework emulator. I don't have much experience with this system. What is the best way to start debugging the crash issue? Link to comment Share on other sites More sharing options...
woodsb02 17 Posted November 21, 2014 Share Posted November 21, 2014 It's a bit hard if nothing is in your logs. Are you using the FreeBSD port? When you say it is crashing, do you mean you can no longer see mono running with ps aux or service mediabrowser status, or simply that the web page or media playback stops working? The best initial step is to enable debugging from the mediabrowser settings web interface. That will add a bunch of extra stuff to the logs. Also, if you are using DLNA I think there is a separate DLNA debugging setting. If you are running with the FreeBSD port, you could try removing the -f from the arguments list in /usr/local/etc/rc.d/mediabrowser file... That would make everything print to the console stdout and stderr... It's a lot of text on the screen, but you can filter through it. Either of these methods might show you the last thing it was trying to do before the crash. Link to comment Share on other sites More sharing options...
Ballistic 8 Posted November 25, 2014 Author Share Posted November 25, 2014 (edited) When MB crashed, Mono also crashes. So ps aux is empty. Last MB log entrys from the latest crash, debug enabled: 2014-11-24 14:14:11.7551 Debug - App: Running EpisodeNfoProvider for /storage/vod/datastore2/TV-Shows/The.Good.Wife/Season.6/The.Good.Wife.S06E10.mkv 2014-11-24 14:14:11.7561 Debug - App: Running FFProbeProvider for /storage/vod/datastore2/TV-Shows/The.Good.Wife/Season.6/The.Good.Wife.S06E10.mkv 2014-11-24 14:14:11.7849 Info - App: HttpClientManager POST: http://api.opensubtitles.org/xml-rpc 2014-11-24 14:14:11.8272 Info - App: HttpClientManager POST: http://api.opensubtitles.org/xml-rpc 2014-11-24 14:14:11.8670 Debug - ProviderManager: Saving /storage/vod/datastore2/TV-Shows/The.Good.Wife/Season.6/The.Good.Wife.S06E10.mkv to Xbmc Nfo. 2014-11-24 14:14:11.8684 Debug - App: Saving /storage/vod/datastore2/TV-Shows/The.Good.Wife/Season.6/The.Good.Wife.S06E10.mkv to database. I just started MB again without the -f. Once it crashes i will post results Edited November 24, 2014 by Ballistic Link to comment Share on other sites More sharing options...
Ballistic 8 Posted November 25, 2014 Author Share Posted November 25, 2014 It took a couple of tries but i finally got something Stacktrace: at <unknown> <0xffffffff> at (wrapper managed-to-native) System.Threading.Thread.Thread_internal (System.Threading.Thread,System.MulticastDelegate) <0xffffffff> at System.Threading.Thread.Start () <0x0017a> at System.Threading.Thread.Start (object) <0x00052> at System.Threading.Tasks.TpScheduler.QueueTask (System.Threading.Tasks.Task) <0x0011b> at System.Threading.Tasks.Task.Schedule (bool) <0x0004b> at System.Threading.Tasks.Task.Start (System.Threading.Tasks.TaskScheduler) <0x000c6> at System.Threading.Tasks.TaskFactory.StartNew (System.Action,System.Threading.CancellationToken,System.Threading.Tasks.TaskCreationOptions,System.Threading.Tasks.TaskScheduler) <0x00099> at System.Threading.Tasks.Parallel.InitTasks (System.Threading.Tasks.Task[],int,System.Action,System.Threading.Tasks.ParallelOptions) <0x000c9> at System.Threading.Tasks.Parallel.ForEach<TSource, TLocal> (System.Func`2<int, System.Collections.Generic.IList`1<System.Collections.Generic.IEnumerator`1<TSource>>>,System.Threading.Tasks.ParallelOptions,System.Func`1<TLocal>,System.Func`4<TSource, System.Threading.Tasks.ParallelLoopState, TLocal, TLocal>,System.Action`1<TLocal>) <0x00553> at System.Threading.Tasks.Parallel.ForEach<TSource, TLocal> (System.Collections.Concurrent.Partitioner`1<TSource>,System.Threading.Tasks.ParallelOptions,System.Func`1<TLocal>,System.Func`4<TSource, System.Threading.Tasks.ParallelLoopState, TLocal, TLocal>,System.Action`1<TLocal>) <0x000f5> at System.Threading.Tasks.Parallel.ForEach<TSource> (System.Collections.Generic.IEnumerable`1<TSource>,System.Action`1<TSource>) <0x0029c> at MediaBrowser.Server.Implementations.Library.LibraryManager.ResolvePaths<T> (System.Collections.Generic.IEnumerable`1<System.IO.FileSystemInfo>,MediaBrowser.Controller.Providers.IDirectoryService,MediaBrowser.Controller.Entities.Folder,string) <0x002e1> at MediaBrowser.Controller.Entities.Folder.GetNonCachedChildren (MediaBrowser.Controller.Providers.IDirectoryService) <0x00081> at MediaBrowser.Controller.Entities.Folder/<ValidateChildrenInternal>c__async1.MoveNext () <0x00364> at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<MediaBrowser.Controller.Entities.Folder/<ValidateChildrenInternal>c__async1> (MediaBrowser.Controller.Entities.Folder/<ValidateChildrenInternal>c__async1&) <0x00073> at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal (System.IProgress`1<double>,System.Threading.CancellationToken,bool,bool,MediaBrowser.Controller.Providers.MetadataRefreshOptions,MediaBrowser.Controller.Providers.IDirectoryService) <0x002a1> at MediaBrowser.Controller.Entities.Folder.ValidateChildrenWithCancellationSupport (System.IProgress`1<double>,System.Threading.CancellationToken,bool,bool,MediaBrowser.Controller.Providers.MetadataRefreshOptions,MediaBrowser.Controller.Providers.IDirectoryService) <0x0004b> at MediaBrowser.Controller.Entities.Folder/<ValidateSubFolders>c__async4.MoveNext () <0x007f3> at (wrapper unbox) MediaBrowser.Controller.Entities.Folder/<ValidateSubFolders>c__async4.MoveNext () <0xffffffff> at System.Threading.Tasks.AwaiterActionContinuation.Execute () <0x00085> at System.Threading.Tasks.Task.ProcessCompleteDelegates () <0x0005f> at System.Threading.Tasks.Task.Finish () <0x0010d> at System.Threading.Tasks.Task`1.TrySetResult (TResult) <0x0010c> at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetResult () <0x00022> at MediaBrowser.Controller.Entities.Folder/<ValidateChildrenInternal>c__async1.MoveNext () <0x02807> at (wrapper unbox) MediaBrowser.Controller.Entities.Folder/<ValidateChildrenInternal>c__async1.MoveNext () <0xffffffff> at System.Threading.Tasks.AwaiterActionContinuation.Execute () <0x00085> at System.Threading.Tasks.Task.ProcessCompleteDelegates () <0x0005f> at System.Threading.Tasks.Task.Finish () <0x0010d> at System.Threading.Tasks.Task`1.TrySetResult (TResult) <0x0010c> at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetResult () <0x00022> at MediaBrowser.Server.Implementations.Persistence.SqliteItemRepository/<SaveChildren>c__async6.MoveNext () <0x0096d> at (wrapper unbox) MediaBrowser.Server.Implementations.Persistence.SqliteItemRepository/<SaveChildren>c__async6.MoveNext () <0xffffffff> at System.Threading.Tasks.AwaiterActionContinuation.Execute () <0x00085> at System.Threading.Tasks.Task.ProcessCompleteDelegates () <0x0005f> at System.Threading.Tasks.Task.Finish () <0x0010d> at System.Threading.Tasks.Task.ThreadStart () <0x00777> at System.Threading.Tasks.Task.Execute () <0x00014> at System.Threading.Tasks.TpScheduler.TaskExecuterCallback (object) <0x00053> at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff> ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= Link to comment Share on other sites More sharing options...
Ballistic 8 Posted December 3, 2014 Author Share Posted December 3, 2014 Any ideas on this? It is replicable on multiple systems. Meaning Mediabrowser for FreeBSD is currently not stable (and if you ask me, not useable) Link to comment Share on other sites More sharing options...
Luke 36881 Posted December 3, 2014 Share Posted December 3, 2014 i haven't seen it but please always post the complete log Link to comment Share on other sites More sharing options...
Ballistic 8 Posted December 9, 2014 Author Share Posted December 9, 2014 Some more log info: crashlog file 5eca1a6.txt 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.ServerApplication.IO.StartupOptions options) [0x00000] in <filename unknown>:0 at MediaBrowser.Server.Mono.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 InnerException: System.Net.Sockets.SocketException Access denied at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000] in <filename unknown>:0 at WebSocketSharp.Net.EndPointListener..ctor (ILogger logger, System.Net.IPAddress addr, Int32 port, Boolean secure) [0x00000] in <filename unknown>:0 at WebSocketSharp.Net.EndPointManager.GetEPListener (ILogger logger, System.String host, Int32 port, WebSocketSharp.Net.HttpListener listener, Boolean secure) [0x00000] in <filename unknown>:0 at WebSocketSharp.Net.EndPointManager.AddPrefixInternal (ILogger logger, System.String p, WebSocketSharp.Net.HttpListener listener) [0x00000] in <filename unknown>:0 at WebSocketSharp.Net.EndPointManager.AddListener (ILogger logger, WebSocketSharp.Net.HttpListener listener) [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.ServerApplication.ApplicationHost+<Init>c__async1.MoveNext () [0x00000] in <filename unknown>:0 Last few log entries from the normal log file 2014-12-09 18:25:06.1699 Debug - App: Running EpisodeNfoProvider for /storage/vod/datastore2/TV-Shows/Switched.at.birth/Season.3/Switched.at.Birth.S03E22.mkv 2014-12-09 18:25:06.1707 Debug - App: Running FFProbeProvider for /storage/vod/datastore2/TV-Shows/Switched.at.birth/Season.3/Switched.at.Birth.S03E22.mkv 2014-12-09 18:25:06.2053 Info - App: HttpClientManager POST: http://api.opensubtitles.org/xml-rpc 2014-12-09 18:25:06.2499 Debug - ProviderManager: Saving /storage/vod/datastore2/TV-Shows/Switched.at.birth/Season.3/Switched.at.Birth.S03E22.mkv to Xbmc Nfo. 2014-12-09 18:25:06.2514 Debug - App: Saving /storage/vod/datastore2/TV-Shows/Switched.at.birth/Season.3/Switched.at.Birth.S03E22.mkv to database. Link to comment Share on other sites More sharing options...
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