Jump to content

Folder Sync - Crashing/Stopping


NomadCF

Recommended Posts

NomadCF

So the "folder sync" plugin is crashing/Stopping because it can't find this directory or file (Both of which do exist and are world write & readable and are not in use (locked) by any other program). Is there away to have it continue on to the NEXT file or folder ?

2015-09-04 05:04:54.3589 Error - App: Error transferring sync job file
	*** Error Report ***
	Version: 3.0.5724.3
	Command line: C:\Users\Gaming\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
	Operating system: Microsoft Windows NT 6.1.7601 Service Pack 1
	Processor count: 4
	64-Bit OS: True
	64-Bit Process: False
	Program data path: C:\Users\Gaming\AppData\Roaming\Emby-Server
	Application Path: C:\Users\Gaming\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
	Could not find a part of the path 'C:\Temp\3b9d799584484b5caf0483406401c221\0c44833590f44c00ae6fcd58d4118ddc\b264f2a6b7d14ab381afc7ebe8e2166f.mp4'.
	System.IO.DirectoryNotFoundException
	   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
	   at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
	   at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
	   at FolderSync.SyncProvider.SendFile(String path, String[] pathParts, SyncTarget target, IProgress`1 progress, CancellationToken cancellationToken)
	   at MediaBrowser.Server.Implementations.Sync.MediaSync.<SendFile>d__52.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.<GetItem>d__2d.MoveNext()
	
2015-09-04 05:04:54.3839 Error - App: Error
	*** Error Report ***
	Version: 3.0.5724.3
	Command line: C:\Users\Gaming\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
	Operating system: Microsoft Windows NT 6.1.7601 Service Pack 1
	Processor count: 4
	64-Bit OS: True
	64-Bit Process: False
	Program data path: C:\Users\Gaming\AppData\Roaming\Emby-Server
	Application Path: C:\Users\Gaming\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
	Could not find a part of the path 'C:\Temp\3b9d799584484b5caf0483406401c221\0c44833590f44c00ae6fcd58d4118ddc\b264f2a6b7d14ab381afc7ebe8e2166f.mp4'.
	System.IO.DirectoryNotFoundException
	   at MediaBrowser.Server.Implementations.Sync.MediaSync.<GetItem>d__2d.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.<GetNewMedia>d__1f.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.<Sync>d__3.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.MultiProviderSync.<Sync>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 MediaBrowser.Common.Implementations.ScheduledTasks.ScheduledTaskWorker.<ExecuteInternal>d__c.MoveNext()
Link to comment
Share on other sites

NomadCF

Never mind figured it out, here is what I did in case any one else needs it.

 

(Winows only Version)

 

open Sync14.db (sqlite DB)

Run the fallowing query to display the "work" (replace the word 'files' with there ever your trancode location is 

SELECT 'IF NOT EXIST '||OutputPath||' echo DELETE FROM SyncJobItems WHERE OutputPath ="'||OutputPath||'";' FROM SyncJobItems WHERE OutputPath NOT LIKE "%files%" AND OutputPath != '';

Save the output to c:\check.bat and add to the TOP of the check.bat

@echo off

Run "check.bat" like so

c:\check.bat > c:\results.sql

Now open C:\results.sql and COPY everything in the file and past and run the SQL commands in against your Syn14.DB database

 

 

(Linux / Cygwin)

#!/bin/bash

(
sqlite3 sync14.db "SELECT OutputPath FROM SyncJobItems WHERE OutputPath NOT LIKE '%files%' AND OutputPath != '';" | while read FILEtoCHECK TRASH; do

 if [ ! -e "${FILEtoCHECK}" ]; then
  echo "DELETE FROM OutputPath FROM SyncJobItems WHERE OutputPath='${FILEtoCHECK}';"
 fi

done
) | sqlite3 sync14.db 
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...