Jump to content

Dropbox not removing watched files


ctrlaltdefeat

Recommended Posts

ctrlaltdefeat

I have set sync jobs to sync my "Next up" to Dropbox. 

I have enabled the "Sync unwatched videos only" setting, however files are not removed after they are set to watched.

 

Is this a known issue or design or anything?

Link to comment
Share on other sites

Watched by whom?

 

I'm not sure cloud-sync is designed to remove watched videos because it doesn't operate in the context of a user.

Link to comment
Share on other sites

ctrlaltdefeat

From my point of view it would be logical that when the person that made the sync job sets an ep to watched, that that file would be removed from dropbox.

 

The sync job even displays the ep as Removed from device.

 

If it is design that files will not be removed, then the option should be removed all together

Link to comment
Share on other sites

Honestly, I'm not positive exactly how we handle this with the cloud-sync and folder-sync scenarios.  Luke will know though.

Link to comment
Share on other sites

ctrlaltdefeat

Well, if it's supported... It's not working for me. I just tested it again to be certain.

In the sync job the episode is listed as removed, but the file remains in Dropbox.

Link to comment
Share on other sites

ctrlaltdefeat

Found this in log, seems the plugin is trying to delete the fail but fails to do so.

2015-12-05 16:35:50.4566 Debug - SyncManager: Getting ML-INUC/data.json from Dropbox
2015-12-05 16:35:50.4566 Info - App: HttpClientManager GET: https://api.dropbox.com/1/metadata/auto/ML-INUC/data.json?file_limit=25000&include_deleted=false
2015-12-05 16:35:51.1563 Info - App: HttpClientManager GET: https://api-content.dropbox.com/1/files/auto/ML-INUC/data.json
2015-12-05 16:35:51.4786 Info - App: HttpClientManager POST: https://api.dropbox.com/1/delta
2015-12-05 16:35:51.8839 Info - SyncManager: Adding ItemIdsToRemove 5195328bd5f34eb5be3df97099ef6c50 because IsMarkedForRemoval is set.
2015-12-05 16:35:51.8839 Info - SyncManager: Adding ItemIdsToRemove ec7a0030adb04287acc842df78f80c50 because IsMarkedForRemoval is set.
2015-12-05 16:35:51.8839 Debug - SyncManager: Getting ML-INUC/data.json from Dropbox
2015-12-05 16:35:51.8839 Info - App: HttpClientManager GET: https://api.dropbox.com/1/metadata/auto/ML-INUC/data.json?file_limit=25000&include_deleted=false
2015-12-05 16:35:52.1092 Info - App: HttpClientManager GET: https://api-content.dropbox.com/1/files/auto/ML-INUC/data.json
2015-12-05 16:35:52.4334 Debug - App: Removing /ML-INUC/Original-High/TV/Shakugan no Shana Second/[SS-Eclipse] Shakugan no Shana Second - 03 [HD TV].eng.srt from DropBox.
2015-12-05 16:35:52.4334 Info - App: HttpClientManager POST: https://api.dropbox.com/1/fileops/delete
2015-12-05 16:35:52.8260 Error - App: Error getting response from https://api.dropbox.com/1/fileops/delete
	*** Error Report ***
	Version: 3.0.5781.4
	Command line: C:\Users\Mathijs\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
	Operating system: Microsoft Windows NT 6.2.9200.0
	Processor count: 4
	64-Bit OS: True
	64-Bit Process: False
	Program data path: C:\Users\Mathijs\AppData\Roaming\Emby-Server
	Application Path: C:\Users\Mathijs\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
	One or more errors occurred.
	System.AggregateException
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
	   at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager.<SendAsyncInternal>d__1b.MoveNext()
	InnerException: System.Net.WebException
	The remote server returned an error: (404) Not Found.
	   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
	   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
	
2015-12-05 16:35:52.8260 Error - App: Error deleting item from device. Id: 5195328bd5f34eb5be3df97099ef6c50
	*** Error Report ***
	Version: 3.0.5781.4
	Command line: C:\Users\Mathijs\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
	Operating system: Microsoft Windows NT 6.2.9200.0
	Processor count: 4
	64-Bit OS: True
	64-Bit Process: False
	Program data path: C:\Users\Mathijs\AppData\Roaming\Emby-Server
	Application Path: C:\Users\Mathijs\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
	File not found
	System.IO.FileNotFoundException
	   at Dropbox.DropboxServerSyncProvider.<DeleteFile>d__9.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at MediaBrowser.Server.Implementations.Sync.MediaSync.<RemoveItem>d__48.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
	   at MediaBrowser.Server.Implementations.Sync.MediaSync.<SyncData>d__d.MoveNext()
	InnerException: MediaBrowser.Model.Net.HttpException
	One or more errors occurred.
	   at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager.<SendAsyncInternal>d__1b.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager.<SendAsync>d__5.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
	   at Dropbox.Api.ApiService.<PostRequest>d__9`1.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
	   at Dropbox.Api.DropboxApi.<Delete>d__a.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
	   at Dropbox.DropboxServerSyncProvider.<DeleteFile>d__9.MoveNext()
	InnerException: System.AggregateException
	One or more errors occurred.
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
	   at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager.<SendAsyncInternal>d__1b.MoveNext()
	InnerException: System.Net.WebException
	The remote server returned an error: (404) Not Found.
	   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
	   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)

Link to comment
Share on other sites

  • 2 weeks later...

Please retry on the next stable release. An issue has been found relating to deletion of synced files with folder sync and it may affect this. Thanks.

Link to comment
Share on other sites

ctrlaltdefeat

@Luke. thanks, most is now removed. However one or two files are not.

 

The above given error message is gone

 

EDIT; i also noticed (empty) folders are not removed

Edited by ctrlaltdefeat
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...