Jump to content

Series sync job hangs on 1 episode


MischaBoender

Recommended Posts

MischaBoender

I've setup a sync job for a TV show, but one of the episodes does not want to sync. The current status is "transferring", but the temp sync folder has no transcoded media. I've tried to cancel the episode in the sync job, but nothing happens. If I create a new sync job for only that episode it gets cancelled immediately.

 

Here's the relevant portion of the server log:

2016-02-25 20:04:46.7462 Info HttpServer: HTTP DELETE http://172.17.2.3:8096/emby/Sync/JobItems/b18f838a843a48db97322328ebafdd4b. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/14.14267
2016-02-25 20:04:46.7623 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 /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh
Operating system: Unix 3.13.0.77
Processor count: 4
64-Bit OS: True
64-Bit Process: True
Program data path: /var/lib/emby-server
Mono: 4.2.1 (Stable 4.2.1.102/6dd2d0d Thu Dec  3 04:04:55 UTC 2015)
Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
Operation is not valid for this job item
System.ArgumentException
  at MediaBrowser.Server.Implementations.Sync.SyncManager+<CancelJobItem>c__asyncC.MoveNext () <0x410d3090 + 0x001b3> in <filename unknown>:0

2016-02-25 20:04:46.7623 Error HttpServer: Error processing request for /emby/Sync/JobItems/b18f838a843a48db97322328ebafdd4b
*** Error Report ***
Version: 3.0.5871.0
Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh
Operating system: Unix 3.13.0.77
Processor count: 4
64-Bit OS: True
64-Bit Process: True
Program data path: /var/lib/emby-server
Mono: 4.2.1 (Stable 4.2.1.102/6dd2d0d Thu Dec  3 04:04:55 UTC 2015)
Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
Operation is not valid for this job item
ServiceStack.HttpError
No Stack Trace Available

2016-02-25 20:04:46.7835 Info HttpServer: HTTP Response 400 to 172.17.2.191. Time: 37ms. http://172.17.2.3:8096/emby/Sync/JobItems/b18f838a843a48db97322328ebafdd4b

 

Link to comment
Share on other sites

Is this episode a plain video file? I looked through the code and it does not allow cancellation of something in the transfering state, so i am going to remove that.

 

If I had to guess, the video probably encoded but the encoded output got deleted somehow, either by emby server or by you. Now Emby Server is not recovering from that by re-queuing it for encoding again, and since you can't cancel, the job item is effectively stuck.

 

I am going to look through the code to see if i can find any possible situations in which synced files might get deleted before transferring. i'm also going to make it more resilient to re-queue if it notices the synced output has been deleted.

 

When did you first create this sync job, do you remember? 

Link to comment
Share on other sites

MischaBoender

I've only been running Emby for less than a week (it was love at first sight), but I can't remember the exact day. The sync job was created for the show (not individual episodes).

Link to comment
Share on other sites

ok, the reason i was asking is because the server purges logs that are older than 3 days, so if you created the sync job less than 3 days ago, you might still have logs, but it's a moot point because I'm pretty sure I have a handle on what happened, thanks.

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