Jump to content

Sync DB


geoffishere

Recommended Posts

geoffishere
Posted

Hi

 

I had an issue with my library db (playback of files had stopped) i fixed this by deleting the library db and letting it rebuild.

 

I am now getting this error when trying to run the convert media task.

 

Convert media failed.
a minute ago
Object reference not set to an instance of an object
 
 I am guessing that there is something in the sync db that emby doesn't like. The log is showing
 
2016-02-28 22:05:35.1896 Info HttpServer: HTTP GET http://192.168.0.13:8096/emby/Sync/Jobs. UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36
2016-02-28 22:05:35.1984 Info HttpServer: HTTP Response 200 to 192.168.0.7. Time: 17ms. http://192.168.0.13:8096/emby/ScheduledTasks?IsEnabled=true
2016-02-28 22:05:35.6217 Error DtoUtils: ServiceBase<TRequest>::Service Exception
	*** Error Report ***
	Version: 3.0.5871.0
	Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /config -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh
	Operating system: Unix 4.1.13.0
	Processor count: 2
	64-Bit OS: True
	64-Bit Process: True
	Program data path: /config
	Mono: 4.2.1 (Stable 4.2.1.102/6dd2d0d Tue Jan 19 01:36:09 UTC 2016)
	Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
	Object reference not set to an instance of an object
	System.NullReferenceException
	  at MediaBrowser.Server.Implementations.Sync.SyncJobProcessor+<GetItemsForSync>c__async3.MoveNext () <0x41e7bef0 + 0x0089f> in <filename unknown>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x2ab54ef50790 + 0x00029> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x2ab54ef4e760 + 0x000b3> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x2ab54ef4e6c0 + 0x00093> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x2ab54ef4e670 + 0x0003a> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x2ab54ef4edd0 + 0x00017> in <filename unknown>:0 
	  at MediaBrowser.Server.Implementations.Sync.SyncJobProcessor+<GetItemsForSync>c__async2.MoveNext () <0x41e7b0d0 + 0x0030b> in <filename unknown>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x2ab54ef50790 + 0x00029> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x2ab54ef4e760 + 0x000b3> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x2ab54ef4e6c0 + 0x00093> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x2ab54ef4e670 + 0x0003a> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x2ab54ef4edd0 + 0x00017> in <filename unknown>:0 
	  at MediaBrowser.Server.Implementations.Sync.SyncManager+<FillMetadata>c__async4.MoveNext () <0x41e75a80 + 0x0083f> in <filename unknown>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x2ab54ef50790 + 0x00029> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x2ab54ef4e760 + 0x000b3> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x2ab54ef4e6c0 + 0x00093> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x2ab54ef4e670 + 0x0003a> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () <0x2ab54ef4ebd0 + 0x00012> in <filename unknown>:0 
	  at MediaBrowser.Server.Implementations.Sync.SyncManager+<GetJobs>c__async3.MoveNext () <0x41e73d90 + 0x0037d> in <filename unknown>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x2ab54ef50790 + 0x00029> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x2ab54ef4e760 + 0x000b3> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x2ab54ef4e6c0 + 0x00093> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x2ab54ef4e670 + 0x0003a> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x2ab54ef4edd0 + 0x00017> in <filename unknown>:0 
	  at MediaBrowser.Api.Sync.SyncService+<Get>c__async0.MoveNext () <0x41e736b0 + 0x0017d> in <filename unknown>:0 
	
2016-02-28 22:05:35.6371 Error HttpServer: Error processing request for /emby/Sync/Jobs
	*** Error Report ***
	Version: 3.0.5871.0
	Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /config -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh
	Operating system: Unix 4.1.13.0
	Processor count: 2
	64-Bit OS: True
	64-Bit Process: True
	Program data path: /config
	Mono: 4.2.1 (Stable 4.2.1.102/6dd2d0d Tue Jan 19 01:36:09 UTC 2016)
	Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
	Object reference not set to an instance of an object
	ServiceStack.HttpError
	No Stack Trace Available

I was thinking of just deleting the sync db but i am guessing this will have a knock on affect on the currently synced media.

 

Can i delete the db to fix the error and if so will i need to manually delete the already synced media

 

Many thanks

 

Geoff

Posted

The sync.db is probably now pointing to a media uuid that doesn't exist anymore in library.db.

Posted

I will add a null check in that method, thanks.

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