Jump to content

Recommended Posts

Posted

The server config backup plugin isn't creating backups. It shows (failed) in the Scheduled Tasks page. Emby is running in Docker

Here is the log:

2022-08-24 17:07:19.615 Error Server Configuration Backup: Error Copying /config/data/ScheduledTasks/c623dbe7-7c91-ebed-cb4c-80409cdb79ee.js to /mnt/Nasuni/AppData/emby-server/backup/Emby Backup - 2022-08-24 17.7.19 - Auto/ScheduledTasks/c623dbe7-7c91-ebed-cb4c-80409cdb79ee.js
	*** Error Report ***
	Version: 4.7.6.0
	Command line: /app/emby/EmbyServer.dll -programdata /config -ffdetect /app/emby/ffdetect -ffmpeg /app/emby/ffmpeg -ffprobe /app/emby/ffprobe -restartexitcode 3
	Operating system: Linux version 5.4.0-121-generic (buildd@lcy02-amd64-013) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #137-Ubuntu SMP Wed Jun 15 13:33:07 UTC 2
	Framework: .NET 6.0.2
	OS/Process: x64/x64
	Runtime: app/emby/System.Private.CoreLib.dll
	Processor count: 56
	Data path: /config
	Application path: /app/emby
	System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/config/data/ScheduledTasks/c623dbe7-7c91-ebed-cb4c-80409cdb79ee.js' is denied.
	 ---> System.IO.IOException: Permission denied
	   --- End of inner exception stack trace ---
	   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
	   at Interop.CheckIo(Error error, String path, Boolean isDirectory, Func`2 errorRewriter)
	   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
	   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
	   at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite)
	   at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
	   at Emby.Server.Implementations.IO.ManagedFileSystem.CopyFile(String source, String target, Boolean overwrite)
	   at MBBackup.ServerEntryPoint.CopyFile(String source, String target, Boolean createDirectory)
	Source: System.Private.CoreLib
	TargetSite: Void ThrowExceptionForIoErrno(ErrorInfo, System.String, Boolean, System.Func`2[Interop+ErrorInfo,Interop+ErrorInfo])
	InnerException: System.IO.IOException: Permission denied
	Source: 
	TargetSite: 
	
2022-08-24 17:07:19.617 Error TaskManager: Error
	*** Error Report ***
	Version: 4.7.6.0
	Command line: /app/emby/EmbyServer.dll -programdata /config -ffdetect /app/emby/ffdetect -ffmpeg /app/emby/ffmpeg -ffprobe /app/emby/ffprobe -restartexitcode 3
	Operating system: Linux version 5.4.0-121-generic (buildd@lcy02-amd64-013) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #137-Ubuntu SMP Wed Jun 15 13:33:07 UTC 2
	Framework: .NET 6.0.2
	OS/Process: x64/x64
	Runtime: app/emby/System.Private.CoreLib.dll
	Processor count: 56
	Data path: /config
	Application path: /app/emby
	System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/config/data/ScheduledTasks/c623dbe7-7c91-ebed-cb4c-80409cdb79ee.js' is denied.
	 ---> System.IO.IOException: Permission denied
	   --- End of inner exception stack trace ---
	   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
	   at Interop.CheckIo(Error error, String path, Boolean isDirectory, Func`2 errorRewriter)
	   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
	   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
	   at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite)
	   at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
	   at Emby.Server.Implementations.IO.ManagedFileSystem.CopyFile(String source, String target, Boolean overwrite)
	   at MBBackup.ServerEntryPoint.CopyFile(String source, String target, Boolean createDirectory)
	   at MBBackup.ServerEntryPoint.CopyAllFiles(String sourceDir, String targetDir, Boolean recursive)
	   at MBBackup.ServerEntryPoint.ExecuteBackup(BackupProfile settings, CancellationToken cancellationToken, IProgress`1 progress, Boolean isAuto)
	   at MBBackup.Entities.ScheduledBackupTask.Execute(CancellationToken cancellationToken, IProgress`1 progress)
	   at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
	Source: System.Private.CoreLib
	TargetSite: Void ThrowExceptionForIoErrno(ErrorInfo, System.String, Boolean, System.Func`2[Interop+ErrorInfo,Interop+ErrorInfo])
	InnerException: System.IO.IOException: Permission denied
	Source: 
	TargetSite: 
	
2022-08-24 17:07:19.617 Debug TaskManager: Configuration Backup Failed after 0 minute(s) and 0 seconds

 

The backup is actually showing in the list, and some of the files are copying over to the backup location...

Here's the .js files that won't copy and their attributes:

4 -rwxr-x--- 1 abc abc 1687 Aug 24 17:07 a1e4a796-2c72-ac5e-4914-97598d1ee479.js
4 -rwxr-x--- 1 abc abc  219 Aug 24 17:05 a27c5425-9520-b2e5-c509-def68c8f4c45.js
4 -rwxr-x--- 1 abc abc  208 Aug 24 17:05 c27fda37-dfb6-e39b-e141-191aaa1c3060.js
4 -rwxr-x--- 1 abc abc  206 Aug 24 17:05 4ccba258-b890-b2b7-3ee3-e1d0ceec11e9.js
4 -rwxr-x--- 1 abc abc  216 Aug 24 17:05 1cc2f60a-05be-fec8-b153-2ac44630a00f.js

 

Posted

Hi, how did you install Emby Server?

Posted
1 minute ago, Luke said:

Hi, how did you install Emby Server?

It's my original post...it's in docker. I used the Linux server io image 

Posted

Can you try our official docker image and see how that compares?

  • 1 year later...
Posted

Ah sorry this started working and if I remember correctly it was after I deleted one of the users

Posted
7 minutes ago, joncy92 said:

Ah sorry this started working and if I remember correctly it was after I deleted one of the users

Great, thanks for following up !

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