Jump to content

Emby Server not starting


Recommended Posts

Posted

Hi,

 

I have a Linux box with armhf CPU, and I installed Ubuntu 16.04 LTS.

 

The apt installation of Emby runs with no problem (Downloading also all the Mono dependencies) but I wasn't able to start the Server.

 

Here is the content of /var/log/emby-server.txt

[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at MediaBrowser.Server.Mono.MainClass.Main (System.String[] args) <0xb52641f8 + 0x00200> in <filename unknown>:0
Could not load signature of Patterns.Logging.ILogger:FatalException due to: Could not load file or assembly or one of its dependencies. assembly:System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type:<unknown type> member:<none>
exception inside UnhandledException handler: Object reference not set to an instance of an object

exception inside UnhandledException handler: Object reference not set to an instance of an object

Enyone knows how to fix it?

 

Thank you in advance  :)

Posted

Thank you very much!
I wasn't able to find this article on google, maybe because it is too new and it is not indicized yet.

Posted

Hi, we're looking into this but in the meantime you can find a workaround here:

 

http://emby.media/community/index.php?/topic/38583-last-update-on-ubuntu-server-broke-emby/

 

Tried the solution, same issue.  Removed mono-complete, removed emby-server.  Re-installed mono-complete then emby-server.

 

devon@emby:/var/lib/emby-server$ tail /var/log/emby-server.log  
        64-Bit Process: True
        Program data path: /var/lib/emby-server
        Mono: 4.4.2 (Stable 4.4.2.11/f72fe45 Tue Aug 30 16:43:57 UTC 2016)
        Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at MediaBrowser.Server.Mono.MainClass.Main (System.String[] args) <0x411540e0 + 0x00225> in <filename unknown>:0 
exception inside UnhandledException handler: Object reference not set to an instance of an object

exception inside UnhandledException handler: Object reference not set to an instance of an object
Posted

You might want to double check that thread and compare your procedure to theirs.

Posted

You might want to double check that thread and compare your procedure to theirs.

 

I did...I I just realized what's happening.  I need to remove the entire /var/lib/emby-server directory for it to work.  If I restore my config and data folders, it crashes with the error below.  If that's that case, If I can just recover my watched status, I'll be ok rebuilding everything from scratch.  Hell, that's the reason I started to use Emby anyway, to sync watch status between my Kodi devices.

UnhandledException
One or more errors occurred.
System.AggregateException
  at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) <0x7f1364ee6480 + 0x005a9> in <filename unknown>:0 
  at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks, Int32 millisecondsTimeout) <0x7f1364ee6420 + 0x00028> in <filename unknown>:0 
  at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks) <0x7f1364ee6390 + 0x00016> in <filename unknown>:0 
  at MediaBrowser.Server.Mono.MainClass.RunApplication (MediaBrowser.Server.Implementations.ServerApplicationPaths appPaths, ILogManager logManager, MediaBrowser.Server.Startup.Common.StartupOptions options) <0x40aefab0 + 0x00408> in <filename unknown>:0 
  at MediaBrowser.Server.Mono.MainClass.Main (System.String[] args) <0x40a950e0 + 0x001c7> in <filename unknown>:0 
InnerException: System.UnauthorizedAccessException
Access to the path "/var/lib/emby-server/config/encoding.xml" is denied.
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) <0x7f1364fa6a60 + 0x005ed> in <filename unknown>:0 
  at System.IO.FileStream..ctor (System.String path, FileMode mode) <0x7f1364fa6610 + 0x00053> in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode)
  at MediaBrowser.Common.Implementations.Serialization.XmlSerializer.SerializeToFile (System.Object obj, System.String file) <0x40e2b4f0 + 0x0009f> in <filename unknown>:0 
  at MediaBrowser.Common.Implementations.Configuration.BaseConfigurationManager.SaveConfiguration (System.String key, System.Object configuration) <0x40e2aa10 + 0x003b7> in <filename unknown>:0 
  at MediaBrowser.MediaEncoding.Encoder.MediaEncoder.InitPaths () <0x40e286a0 + 0x000f6> in <filename unknown>:0 
  at MediaBrowser.MediaEncoding.Encoder.MediaEncoder+<Init>c__async0.MoveNext () <0x40e28000 + 0x00077> in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f1364e412a0 + 0x00029> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f1364e3f170 + 0x000a7> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f1364e3f0f0 + 0x0006b> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f1364e3f0a0 + 0x0003a> in <filename unknown>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () <0x7f1364e3f6e0 + 0x00012> in <filename unknown>:0 
  at MediaBrowser.Server.Startup.Common.ApplicationHost+<RunStartupTasks>c__async0.MoveNext () <0x40e14ea0 + 0x0064d> in <filename unknown>:0 


Posted

   Access to the path "/var/lib/emby-server/config/encoding.xml" is denied.

 
 
chown -R emby:emby /var/lib/emby-server
 
 
should fix your error with your backup

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