TheWalkingGeek 0 Posted October 2, 2016 Posted October 2, 2016 Hello, So I've read just about everything I could on getting emby-server running on a Rpi2 and have successfully installed and ran emby. However as soon as I add my library (over 900 videos) the scanner will get to anywhere between 60-70% before the emby-server service crashes and exits. Based on the log files it appears to be a memory issue. I can confirm the memory usage pretty much tops out by monitoring memory usage in real time. Below is a snippet of the log to show the error. 2016-10-02 16:32:13.1609 Error App: Error in ffprobe *** Error Report *** Version: 3.0.7300.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.4.21.7 Processor count: 4 64-Bit OS: False 64-Bit Process: False Program data path: /var/lib/emby-server Mono: 4.4.2 (Stable 4.4.2.11/f72fe45 Tue Aug 30 16:31:51 UTC 2016) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe ApplicationName='/usr/bin/ffprobe', CommandLine='-i file:"/mnt/pimedia/Movies/The Invisible Man (1933)/The Invisible Man (1933).avi" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format', CurrentDirectory='', Native error= Out of memory System.ComponentModel.Win32Exception at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) <0x7041fd48 + 0x004a8> in <filename unknown>:0 I was only getting to about 61% before the crash but after releasing more GPU ram I have got to 80% (GPU Ram only at 32mb, giving almost all ram to system). At this point however, I don't think I have enough headroom to scan the library to 100% without a crash. Any ideas would be greatly appreciated.
TheWalkingGeek 0 Posted October 2, 2016 Author Posted October 2, 2016 Currently re-running scanner yet again and noticed two errors near the beginning of the scan. *** Error Report *** Version: 3.0.7300.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.4.21.7 Processor count: 4 64-Bit OS: False 64-Bit Process: False Program data path: /var/lib/emby-server Mono: 4.4.2 (Stable 4.4.2.11/f72fe45 Tue Aug 30 16:31:51 UTC 2016) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe One or more errors occurred. System.AggregateException at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7527f92c + 0x00024> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7527d448 + 0x000ab> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7527d3d0 + 0x0006f> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7527d388 + 0x0003f> in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x7527db78 + 0x0001b> in <filename unknown>:0 at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager+<SendAsyncInternal>c__async4.MoveNext () <0x710a5698 + 0x00e2b> in <filename unknown>:0 InnerException: System.Net.WebException Aborted. at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) <0x70e4bb98 + 0x0015c> in <filename unknown>:0 at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (IAsyncResult iar, System.Func`2 endFunction, System.Action`1 endAction, System.Threading.Tasks.Task`1 promise, Boolean requiresSynchronization) <0x75328a94 + 0x00087> in <filename unknown>:0 2016-10-02 17:11:52.9233 Error App: Error in The Open Movie Database *** Error Report *** Version: 3.0.7300.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.4.21.7 Processor count: 4 64-Bit OS: False 64-Bit Process: False Program data path: /var/lib/emby-server Mono: 4.4.2 (Stable 4.4.2.11/f72fe45 Tue Aug 30 16:31:51 UTC 2016) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe One or more errors occurred. MediaBrowser.Model.Net.HttpException at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager+<SendAsyncInternal>c__async4.MoveNext () <0x710a5698 + 0x01434> in <filename unknown>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7527f92c + 0x00024> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7527d448 + 0x000ab> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7527d3d0 + 0x0006f> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7527d388 + 0x0003f> in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x7527db78 + 0x0001b> in <filename unknown>:0 at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager+<SendAsync>c__async1.MoveNext () <0x710a49f0 + 0x001d3> in <filename unknown>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7527f92c + 0x00024> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7527d448 + 0x000ab> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7527d3d0 + 0x0006f> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7527d388 + 0x0003f> in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x7527db78 + 0x0001b> in <filename unknown>:0 at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager+<Get>c__async0.MoveNext () <0x710a4350 + 0x0014f> in <filename unknown>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7527f92c + 0x00024> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7527d448 + 0x000ab> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7527d3d0 + 0x0006f> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7527d388 + 0x0003f> in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x7527db78 + 0x0001b> in <filename unknown>:0 at MediaBrowser.Providers.Omdb.OmdbItemProvider+<GetSearchResultsInternal>c__async0.MoveNext () <0x64b1f6a0 + 0x0095f> in <filename unknown>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7527f92c + 0x00024> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7527d448 + 0x000ab> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7527d3d0 + 0x0006f> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7527d388 + 0x0003f> in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x7527db78 + 0x0001b> in <filename unknown>:0 at MediaBrowser.Providers.Omdb.OmdbItemProvider+<GetMovieImdbId>c__async3.MoveNext () <0x64b1f040 + 0x00177> in <filename unknown>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7527f92c + 0x00024> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7527d448 + 0x000ab> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7527d3d0 + 0x0006f> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7527d388 + 0x0003f> in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x7527db78 + 0x0001b> in <filename unknown>:0 at MediaBrowser.Providers.Omdb.OmdbItemProvider+<GetMovieResult>c__async2`1[T].MoveNext () <0x64d45cc8 + 0x0024f> in <filename unknown>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7527f92c + 0x00024> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7527d448 + 0x000ab> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7527d3d0 + 0x0006f> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7527d388 + 0x0003f> in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x7527db78 + 0x0001b> in <filename unknown>:0 at MediaBrowser.Providers.Manager.MetadataService`2+<ExecuteRemoteProviders>c__async8[TItemType,TIdType].MoveNext () <0x64fde728 + 0x00483> in <filename unknown>:0 InnerException: System.AggregateException One or more errors occurred. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7527f92c + 0x00024> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7527d448 + 0x000ab> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7527d3d0 + 0x0006f> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7527d388 + 0x0003f> in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x7527db78 + 0x0001b> in <filename unknown>:0 at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager+<SendAsyncInternal>c__async4.MoveNext () <0x710a5698 + 0x00e2b> in <filename unknown>:0 InnerException: System.Net.WebException Aborted. at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) <0x70e4bb98 + 0x0015c> in <filename unknown>:0 at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (IAsyncResult iar, System.Func`2 endFunction, System.Action`1 endAction, System.Threading.Tasks.Task`1 promise, Boolean requiresSynchronization) <0x75328a94 + 0x00087> in <filename unknown>:0 Scan is still running however. I expect the service will exit as soon as I hit about 80% yet again. Just thought I'd posts these errors as well. FYI ... I'm using the latest Raspian Jessie image and I didn't compile the ffmpeg binaries, rather used precompiled binaries found here.
Luke 42077 Posted October 2, 2016 Posted October 2, 2016 The Omdb error is just a request timeout. So either it's unable to access that domain or perhaps the system resource consumption is causing the request to take long enough that the server eventually aborts it. Do you have any plugins installed? If so I would try removing them and running with the core server. Thanks.
TheWalkingGeek 0 Posted October 2, 2016 Author Posted October 2, 2016 (edited) The Omdb error is just a request timeout. So either it's unable to access that domain or perhaps the system resource consumption is causing the request to take long enough that the server eventually aborts it. Do you have any plugins installed? If so I would try removing them and running with the core server. Thanks. No plugins. Every attempt has been a fresh install. I even fresh installed Raspbian itself once or twice. Here's a snippet from an earlier log: 2016-10-02 13:59:55.0510 Error App: Error in ffprobe *** Error Report *** Version: 3.0.7300.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.4.21.7 Processor count: 4 64-Bit OS: False 64-Bit Process: False Program data path: /var/lib/emby-server Mono: 4.4.2 (Stable 4.4.2.11/f72fe45 Tue Aug 30 16:31:51 UTC 2016) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe ApplicationName='/usr/bin/ffprobe', CommandLine='-i file:"/mnt/pimedia/Movies/Death at a Funeral (2010).mkv" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format', CurrentDirectory='', Native error= Out of memory System.ComponentModel.Win32Exception at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) <0x70114038 + 0x004a8> in <filename unknown>:0 Native error= Out of memory seems to be the common error? I'm not sure what else I can do at this point. For this current scan I have given as much system memory as possible (16mb GPU the rest to system) but I doubt that's even enough. Edited October 2, 2016 by TheWalkingGeek
TheWalkingGeek 0 Posted October 2, 2016 Author Posted October 2, 2016 Nope .... emby-server exited yet again. Arghhhh! emby-server.service - Emby Media Server Loaded: loaded (/lib/systemd/system/emby-server.service; enabled) Active: failed (Result: exit-code) since Sun 2016-10-02 17:44:08 EDT; 1min 43s ago Process: 3467 ExecStopPost=/usr/bin/emby-server clear (code=exited, status=0/SUCCESS) Process: 560 ExecStart=/usr/bin/emby-server start (code=exited, status=1/FAILURE) Main PID: 560 (code=exited, status=1/FAILURE) Oct 02 17:06:47 Pinix systemd[1]: Started Emby Media Server. Oct 02 17:06:48 Pinix su[560]: Successful su for emby by root Oct 02 17:06:48 Pinix su[560]: + ??? root:emby Oct 02 17:06:48 Pinix su[560]: pam_unix(su:session): session opened for use...0) Oct 02 17:44:08 Pinix systemd[1]: emby-server.service: main process exited,...RE Oct 02 17:44:08 Pinix systemd[1]: Unit emby-server.service entered failed state. Hint: Some lines were ellipsized, use -l to show in full.
TheWalkingGeek 0 Posted October 2, 2016 Author Posted October 2, 2016 Memory Usage 809.211 MB /usr/bin/mono-sgen
Solution TheWalkingGeek 0 Posted October 2, 2016 Author Solution Posted October 2, 2016 Wow ... I think it just scanned 100% and did so in 20minutes. The only thing I remember doing differently is disabling DLNA before the scan. Now I just have to figure out why it's missing 8 movies that Plex and Kodi find ....
Luke 42077 Posted October 2, 2016 Posted October 2, 2016 Once you determine what those 8 are, if you can go over some examples i'll look into it, thanks.
TheWalkingGeek 0 Posted October 3, 2016 Author Posted October 3, 2016 Once you determine what those 8 are, if you can go over some examples i'll look into it, thanks. It was just an issue with the folder structure. I had some sequel movies in their own folder within the main folder. Hopefully I can update the library without the server exiting like before. I know my pi kept freezing when I would use the web app search over and over again. Unfortunately I'm not sure if Emby is going to be an option on my Rpi2. It seems to absolutely slam this pi into complete submission when I do anything but let it idle.
TheWalkingGeek 0 Posted October 3, 2016 Author Posted October 3, 2016 How were the sequels named? Here's one example: Problem Child Problem Child (1990).avi Problem Child 2 Problem Child 2 (1991).avi Problem Child 3 Problem Child 3 - Junior In Love (1995).avi I simply moved the movies into the Problem Child folder and deleted the two empty sub folders and Emby saw them.
TheWalkingGeek 0 Posted October 3, 2016 Author Posted October 3, 2016 Thank you. Unfortunately I reimaged by Pi with my old setup, just didn't find Emby stable enough compared to alternatives. Sucks, because I really respect Emby's model. Everything I need can be done for free in Emby compared to others. For that alone I would have bought it. I hate when I'm forced to purchase something that I feel is important basic functionality (Parental Controls for example). Anyways, I just wanted to give you props Luke. You're all over these forums trying to help people and get things working. I can't say the same thing for many other products/forums out there. I appreciate what you're doing here brother!
Luke 42077 Posted October 4, 2016 Posted October 4, 2016 Thanks. We keep making it more efficient so give it another shot in the future
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