Jump to content

Recommended Posts

Posted

Hey guys. I seem to have a recurring issue where the server isn't available and requires a restart. I haven't noticed a pattern to it yet, but went through and grabbed the logs to see if anyone could offer advice. Thank you!

2015-06-04 22:13:36.1604 Error - Main: UnhandledException
	*** Error Report ***
	Version: 3.0.5621.4
	Command line: /opt/emby-server/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg
	Operating system: Unix 3.13.0.46
	Processor count: 2
	64-Bit OS: True
	64-Bit Process: True
	Program data path: /var/lib/emby-server
	Mono: 4.0.1 (tarball Tue Jun  2 13:22:02 UTC 2015)
	Application Path: /opt/emby-server/MediaBrowser.Server.Mono.exe
	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, Int32 millisecondsTimeout) [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.Net.Sockets.SocketException
	Address already in use
	  at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000] in <filename unknown>:0 
	  at SocketHttpListener.Net.EndPointListener.CreateSocket () [0x00000] in <filename unknown>:0 
	  at SocketHttpListener.Net.EndPointListener..ctor (ILogger logger, System.Net.IPAddress addr, Int32 port, Boolean secure, System.String certificateLocation) [0x00000] in <filename unknown>:0 
	  at SocketHttpListener.Net.EndPointManager.GetEPListener (ILogger logger, System.String host, Int32 port, SocketHttpListener.Net.HttpListener listener, Boolean secure) [0x00000] in <filename unknown>:0 
	  at SocketHttpListener.Net.EndPointManager.AddPrefixInternal (ILogger logger, System.String p, SocketHttpListener.Net.HttpListener listener) [0x00000] in <filename unknown>:0 
	  at SocketHttpListener.Net.EndPointManager.AddListener (ILogger logger, SocketHttpListener.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.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [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 
	
2015-06-06 09:37:26.6722 Error - Main: UnhandledException
	*** Error Report ***
	Version: 3.0.5621.4
	Command line: /opt/emby-server/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg
	Operating system: Unix 3.13.0.46
	Processor count: 2
	64-Bit OS: True
	64-Bit Process: True
	Program data path: /var/lib/emby-server
	Mono: 4.0.1 (tarball Tue Jun  2 13:22:02 UTC 2015)
	Application Path: /opt/emby-server/MediaBrowser.Server.Mono.exe
	Object reference not set to an instance of an object
	System.NullReferenceException
	  at System.IO.InotifyWatcher.ProcessEvents (System.Byte[] buffer, Int32 length) [0x00000] in <filename unknown>:0 
	  at System.IO.InotifyWatcher.Monitor () [0x00000] in <filename unknown>:0 
	  at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0 
	
2015-06-05 12:23:45.0872 Error - Main: UnhandledException
	*** Error Report ***
	Version: 3.0.5621.4
	Command line: /opt/emby-server/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg
	Operating system: Unix 3.13.0.46
	Processor count: 2
	64-Bit OS: True
	64-Bit Process: True
	Program data path: /var/lib/emby-server
	Mono: 4.0.1 (tarball Tue Jun  2 13:22:02 UTC 2015)
	Application Path: /opt/emby-server/MediaBrowser.Server.Mono.exe
	Object reference not set to an instance of an object
	System.NullReferenceException
	  at System.IO.InotifyWatcher.ProcessEvents (System.Byte[] buffer, Int32 length) [0x00000] in <filename unknown>:0 
	  at System.IO.InotifyWatcher.Monitor () [0x00000] in <filename unknown>:0 
	  at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0 
	
2015-06-04 22:13:36.1604 Error - Main: UnhandledException
	*** Error Report ***
	Version: 3.0.5621.4
	Command line: /opt/emby-server/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg
	Operating system: Unix 3.13.0.46
	Processor count: 2
	64-Bit OS: True
	64-Bit Process: True
	Program data path: /var/lib/emby-server
	Mono: 4.0.1 (tarball Tue Jun  2 13:22:02 UTC 2015)
	Application Path: /opt/emby-server/MediaBrowser.Server.Mono.exe
	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, Int32 millisecondsTimeout) [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.Net.Sockets.SocketException
	Address already in use
	  at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000] in <filename unknown>:0 
	  at SocketHttpListener.Net.EndPointListener.CreateSocket () [0x00000] in <filename unknown>:0 
	  at SocketHttpListener.Net.EndPointListener..ctor (ILogger logger, System.Net.IPAddress addr, Int32 port, Boolean secure, System.String certificateLocation) [0x00000] in <filename unknown>:0 
	  at SocketHttpListener.Net.EndPointManager.GetEPListener (ILogger logger, System.String host, Int32 port, SocketHttpListener.Net.HttpListener listener, Boolean secure) [0x00000] in <filename unknown>:0 
	  at SocketHttpListener.Net.EndPointManager.AddPrefixInternal (ILogger logger, System.String p, SocketHttpListener.Net.HttpListener listener) [0x00000] in <filename unknown>:0 
	  at SocketHttpListener.Net.EndPointManager.AddListener (ILogger logger, SocketHttpListener.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.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [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 
	
thefirstofthe300
Posted

It looks like you have a stranded ffmpeg process. At least that is what the socket normally means. Have you tried a reboot? That is the easiest option. If that doesn't work or isn't an option let me know.

Posted

This happened again today (I feel like there's been a reboot before today). I'll do it again and keep my eye on things. That actually makes me think: I had Handbrake-CLI running a batch of jobs when this happened most recently (and probably in the past, too). Could that be related?

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