Jump to content

Installed Emby Server 4.7.14.0, resulted in failed to start.


Recommended Posts

Posted

Installed update, failed to start. attempted restart and reinstall and failed, reverted back to .13 and all working again, syslog revealed the following:

Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: Error GlobalExceptionHandler: UnhandledException
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011System.AggregateException: System.AggregateException: One or more errors occurred. (Access to th
e path '/var/lib/emby/logs' is denied.)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011 ---> System.UnauthorizedAccessException: Access to the path '/var/lib/emby/logs' is denied.
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011 ---> System.IO.IOException: Permission denied
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011   --- End of inner exception stack trace ---
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011   at System.IO.FileSystem.CreateDirectory(String fullPath)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011   at System.IO.Directory.CreateDirectory(String path)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011   at Emby.Server.Implementations.Logging.FileLogger..ctor(String path)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011   at Emby.Server.Implementations.Logging.SimpleLogManager.ReloadLogger(LogSeverity severity, Ca
ncellationToken cancellationToken)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011   --- End of inner exception stack trace ---
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011   at System.Threading.Tasks.Task.WaitAllCore(Task[] tasks, Int32 millisecondsTimeout, Cancellat
ionToken cancellationToken)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011   at System.Threading.Tasks.Task.WaitAll(Task[] tasks)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011   at EmbyServer.Program.Main(String[] args)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011Source: System.Private.CoreLib
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011TargetSite: Void ThrowAggregateException(System.Collections.Generic.List`1[System.Exception])
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011InnerException: System.UnauthorizedAccessException: Access to the path '/var/lib/emby/logs' is d
enied.
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011Source: System.Private.CoreLib
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011TargetSite: Void CreateDirectory(System.String)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011   at System.IO.FileSystem.CreateDirectory(String fullPath)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011   at System.IO.Directory.CreateDirectory(String path)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011   at Emby.Server.Implementations.Logging.FileLogger..ctor(String path)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011   at Emby.Server.Implementations.Logging.SimpleLogManager.ReloadLogger(LogSeverity severity, Ca
ncellationToken cancellationToken)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011InnerException: System.IO.IOException: Permission denied
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011Source:
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011TargetSite:
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: #011
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: UnhandledException
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: System.AggregateException: System.AggregateException: One or more errors occurred. (Access to the pa
th '/var/lib/emby/logs' is denied.)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]:  ---> System.UnauthorizedAccessException: Access to the path '/var/lib/emby/logs' is denied.
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]:  ---> System.IO.IOException: Permission denied
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]:    --- End of inner exception stack trace ---
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]:    at System.IO.FileSystem.CreateDirectory(String fullPath)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]:    at System.IO.Directory.CreateDirectory(String path)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]:    at Emby.Server.Implementations.Logging.FileLogger..ctor(String path)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]:    at Emby.Server.Implementations.Logging.SimpleLogManager.ReloadLogger(LogSeverity severity, Cancel
lationToken cancellationToken)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]:    --- End of inner exception stack trace ---
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]:    at System.Threading.Tasks.Task.WaitAllCore(Task[] tasks, Int32 millisecondsTimeout, CancellationT
oken cancellationToken)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]:    at System.Threading.Tasks.Task.WaitAll(Task[] tasks)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]:    at EmbyServer.Program.Main(String[] args)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: Source: System.Private.CoreLib
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: TargetSite: Void ThrowAggregateException(System.Collections.Generic.List`1[System.Exception])
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: InnerException: System.UnauthorizedAccessException: Access to the path '/var/lib/emby/logs' is denie
d.
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: Source: System.Private.CoreLib
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: TargetSite: Void CreateDirectory(System.String)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]:    at System.IO.FileSystem.CreateDirectory(String fullPath)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]:    at System.IO.Directory.CreateDirectory(String path)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]:    at Emby.Server.Implementations.Logging.FileLogger..ctor(String path)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]:    at Emby.Server.Implementations.Logging.SimpleLogManager.ReloadLogger(LogSeverity severity, Cancel
lationToken cancellationToken)
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: InnerException: System.IO.IOException: Permission denied
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: Source:
Aug 26 14:02:59 emby2-OptiPlex-7060 emby-server[2470]: TargetSite:
 

Posted

Hi, is this a very old installation?

Posted

God I have been running this install now for 3+ years.  Just upgrading it every time a new version comes out.

 

Posted

Could be related to your old report about this:

We have been trying to deprecate old code of ours that touches the old path that we used to use, because it can cause other issues.

Does /var/lib/emby exist for you?

crookedview
Posted

I also had an issue upgrading an older (couple years at least) install from 4.7.13.0 to 4.7.14.0 where my Emby server started from defaults and I had to go through setup again.  Reinstalled 4.7.13.0 and it picked up my old config again.

Posted

NO here are the emby dirs I have:
drwxr-xr-x 10 emby          emby          4.0K Jun  3  2022 emby-old
drwxr-xr-x 12 emby          emby          4.0K Apr 22 20:17 emby-server
 

 

crookedview
Posted

For what it's worth, I do have both /var/lib/emby and /var/lib/emby-server.

Posted

Hi guys, please stop the emby-server service, rename the `/var/lib/emby-server` directory to `/var/lib/emby` and start the service again, should get you back on your feet.

It's okay to delete `/var/lib/emby` before, it's automatically created when it's not found, please make sure the directory you rename still belongs to the `emby` user though.

  • Like 2
  • Thanks 1
Posted

Perhaps rename instead of delete and create backups just in case. Then clean up after everything is working again.

  • Agree 1
Posted

Copied emby-server to emby-old, mv emby-server to emby, ran 4.7.14 upgrade, everything working fine.!!!!

 

Thanks very much

  • Thanks 1

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