Jump to content

Question about folder permissions


pctravel

Recommended Posts

pctravel

Appreciate any assistance. 

 

I'm running Emby Server 4.3.1 in a jail on 11.2. FreeNas itself is updated to 11.3. Used a scripted install and not the plugin. Everything is working in Emby but after purchasing premier I decided to install the "Server Configuration Backup" plugin.  

 

I was able to set the folder to backup to however it appears emby is unable to create the folder. Do I need to add some permissions? I'm very green with Freenas so need to understand what I need to do to get this working. Here is the error report in the log:

 

2020-04-26 00:10:00.003 Info TaskManager: DailyTrigger fired for task: Configuration Backup
2020-04-26 00:10:00.003 Info TaskManager: Executing Configuration Backup
2020-04-26 00:10:00.004 Error Server Configuration Backup: Could not create backup directory /usr/local/Emby Backup - 2020-04-26 00.10.0 - Auto
    *** Error Report ***
    Version: 4.3.1.0
    Command line: /usr/local/lib/emby-server/system/EmbyServer.exe -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server -updatepackage emby-server-freebsd11_{version}_amd64.txz -noautorunwebapp
    Operating system: Unix 11.3.7.0
    64-Bit OS: True
    64-Bit Process: True
    User Interactive: False
    Mono: 5.10.1.57 (5.10.1.57 Tue Dec 10 07:40:49 UTC 2019)
    Runtime: file:///usr/local/lib/mono/4.5/mscorlib.dll
    Processor count: 2
    Program data path: /var/db/emby-server
    Application directory: /usr/local/lib/emby-server/system
    System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path "/usr/local/Emby Backup - 2020-04-26 00.10.0 - Auto" is denied.
     at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0005e] in <0e06830de9a44394a7e366951eabca52>:0
     at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <0e06830de9a44394a7e366951eabca52>:0
     at Emby.Server.Implementations.IO.ManagedFileSystem.CreateDirectory (System.String path) [0x0001b] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0
     at MBBackup.ServerEntryPoint+<ExecuteBackup>d__62.MoveNext () [0x00170] in <72c4d03ab2dc45d195f8ecfd6a90dcf3>:0
    Source: mscorlib
    TargetSite: System.IO.DirectoryInfo CreateDirectoriesInternal(System.String)
    

Link to comment
Share on other sites

mastrmind11
 System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path "/usr/local/Emby Backup - 2020-04-26 00.10.0 - Auto" is denied.

so yes, emby needs write access there.

Link to comment
Share on other sites

pctravel

That's exactly what I needed, updated and the backup ran perfect. Thanks for directing me to the guide. 

  • Like 1
Link to comment
Share on other sites

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