Jump to content

Nvidia Shield with Emby server Version 4.8.1.0 backup failed to NAS


jpmak
Go to solution Solved by Luke,

Recommended Posts

jpmak

This new Server version 4.8.x.x failed to create backup to shared NAS folder. It copies a lot of files but the database itself wont backup because of I/O error.

No errors can be seen in the logs of the NAS server, only successful file processing via SMB.

Here are the part of emby server log file.

 

2024-02-12 18:06:48.520 Debug Backup & Restore: TryCopyFile /storage/emulated/0/Android/data/com.emby.embyserver/files/data/livetv/timers.json to /storage/ASUSTOR1004T/plexdata/embyserver-backup-full/data/livetv/timers.json
2024-02-12 18:06:48.541 Debug Backup & Restore: TryCopyFile /storage/emulated/0/Android/data/com.emby.embyserver/files/data/connect.txt to /storage/ASUSTOR1004T/plexdata/embyserver-backup-full/data/connect.txt
2024-02-12 18:06:48.546 Debug Backup & Restore: TryCopyFile /storage/emulated/0/Android/data/com.emby.embyserver/files/data/device.txt to /storage/ASUSTOR1004T/plexdata/embyserver-backup-full/data/device.txt
2024-02-12 18:06:48.600 Info App: Begin BackupDatabase SqliteItemRepository
2024-02-12 18:06:48.605 Info SqliteItemRepository: Backing up to file /storage/ASUSTOR1004T/plexdata/Cache/cache/temp/047852ec0dcd44579fa2a7d321e6c87a/library.db
2024-02-12 18:06:48.739 Info App: Sqlite: 1034 - os_unix.c:40969: (1) full_fsync(/storage/ASUSTOR1004T/plexdata/Cache/cache/temp/047852ec0dcd44579fa2a7d321e6c87a/library.db-journal) - Operation not permitted
2024-02-12 18:06:48.766 Error TaskManager: Error
	*** Error Report ***
	Version: 4.8.1.0
	Command line: /data/app/~~QeJLT3RWkUGOE8vQ4ByK2Q==/com.emby.embyserver-wFeGHJJljFGf8P1RG_zmig==/base.apk
	Operating system: Android 11 (REL) SDK:30 BuildId:RQ1A.210105.003  Incremental:7825230_3167.5736 Patch-Level: 2022-04-05
	Framework: Mono 6.12.0 (2020-02/c633fe92383) 4.0.50524.0
	OS/Process: Arm64/Arm64
	Runtime: mscorlib.dll
	Processor count: 4
	Data path: /storage/emulated/0/Android/data/com.emby.embyserver/files
	Application path: /data/user/0/com.emby.embyserver
	Fingerprint: NVIDIA/darcy/darcy:11/RQ1A.210105.003/7825230_3167.5736:user/release-keys
	Model: SHIELD Android TV - NVIDIA/NVIDIA
	Hardware: darcy/darcy/darcy/darcy
	SupportedAbis: arm64-v8a, armeabi-v7a, armeabi
	SQLitePCL.pretty.SQLiteException: IOErrorFSync: disk I/O error
	SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown.
	  at SQLitePCL.pretty.SQLiteException.CheckOk (System.Int32 rc) [0x00043] in <155e1bcbe3474b2c93dc5209ea1c5b3c>:0 
	  at SQLitePCL.pretty.DatabaseBackupImpl.Step (System.Int32 nPages) [0x00032] in <155e1bcbe3474b2c93dc5209ea1c5b3c>:0 
	  at SQLitePCL.pretty.DatabaseConnection.Backup (SQLitePCL.pretty.SQLiteDatabaseConnection This, System.String dbName, SQLitePCL.pretty.SQLiteDatabaseConnection destConn, System.String destDbName) [0x0000a] in <155e1bcbe3474b2c93dc5209ea1c5b3c>:0 
	  at SQLitePCL.pretty.DatabaseConnection.Backup (SQLitePCL.pretty.SQLiteDatabaseConnection This, SQLitePCL.pretty.SQLiteDatabaseConnection destConn) [0x00000] in <155e1bcbe3474b2c93dc5209ea1c5b3c>:0 
	  at Emby.Sqlite.BaseSqliteRepository.BackupToFile (SQLitePCL.pretty.SQLiteDatabaseConnection sourceDb, System.String destinationFile, MediaBrowser.Model.Logging.ILogger logger) [0x0006b] in <e06f14d7c32845b6a8c90627646d47f9>:0 
	  at Emby.Sqlite.BaseSqliteRepository.BackupToFile (System.String file) [0x00021] in <e06f14d7c32845b6a8c90627646d47f9>:0 
	  at Emby.Sqlite.BaseSqliteRepository.BackupToDirectory (System.String directory) [0x00014] in <e06f14d7c32845b6a8c90627646d47f9>:0 
	  at Emby.Server.Implementations.ApplicationHost.BackupDatabase (Emby.Sqlite.BaseSqliteRepository db, System.String destinationFolder) [0x0002a] in <0cac6f1e304b4694a4618d07c28f0b16>:0 
	  at Emby.Server.Implementations.ApplicationHost.BackupDatabases (System.String destinationFolder) [0x00042] in <0cac6f1e304b4694a4618d07c28f0b16>:0 
	  at MBBackup.ServerEntryPoint.ExecuteBackup (MBBackup.Configuration.PluginConfiguration configuration, System.Threading.CancellationToken cancellationToken, System.IProgress`1[T] progress) [0x003e6] in <fe7d00f26157474795ee51319479a938>:0 
	  at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal (MediaBrowser.Model.Tasks.TaskOptions options) [0x00258] in <0cac6f1e304b4694a4618d07c28f0b16>:0 
	Source: mscorlib
	TargetSite: Void Throw()
	
2024-02-12 18:06:48.766 Info TaskManager: Emby Server Backup Failed after 0 minute(s) and 9 seconds
Link to comment
Share on other sites

Hi, the backup folder that you configured, what kind of drive is it?

Link to comment
Share on other sites

jpmak

Hi, It's a Asustor 1004T and the backup folder are shared using SMB and mounted directly to Shield. All my other files like are also there. Shield have RW access to that backup folder and RO to others. Here is a picture of it. Emby create this folder structure as a part of backup schedule before the actual error happen. Previous Emby versions this work fine, but this 4.8.x.x starts to fail.

image.png.2e16b1a720113509d4d008ef06af51fe.png

Link to comment
Share on other sites

  • 2 weeks later...
  • Solution

@jpmakyou've configured the server cache path to be here:

/storage/ASUSTOR1004T/plexdata/Cache

Is this necessary? Putting the server cache files on a network device will likely degrade performance, in addition to causing this error.

Can you try blanking out that setting, clicking save, and then see if the backup succeeds after that?

Link to comment
Share on other sites

jpmak

Thanks @luke, the problem was solved with this instruction, the backup works fine now, at least according to the log files.

2024-02-26 00:38:00.191 Debug TaskManager: Emby Server Backup Completed after 28 minute(s) and 0 seconds

BR

jpmak

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