Enable debug logging in SickRage settings, reproduce the error (be sure to disable after the bug is fixed)
Branch/Commit: master / 6172c8727c76fe4e26364104f930556129e0d2c6
OS: Ubuntu 14.04 x64
What you did: Post Processing
My Sickrage Setup:
General -> root directories -> /home2/plex/TV
My Post Processing Dir: /home2/plex/Downloads (which is where my torrent client puts completed downloads)
What I am doing wrong here? Please someone point it out
Logs:
2017-03-05 08:38:19 INFO POSTPROCESSOR-AUTO :: Auto post processing task for /home2/plex/Downloads completed
2017-03-05 08:38:19 INFO POSTPROCESSOR-AUTO :: Successfully processed
2017-03-05 08:38:19 DEBUG POSTPROCESSOR-AUTO :: Unable to figure out what folder to process. If your downloader and SickRage aren't on the same PC make sure you fill out your TV download dir in the config.
2017-03-05 08:38:19 DEBUG POSTPROCESSOR-AUTO :: Parsed the.blacklist.s04e15.720p.hdtv.x264-sva.rar into the blacklist - S04E15 [GROUP: sva.rar] [ABD: False] [ANIME: False] [whichReg: [u'standard']]
2017-03-05 08:38:19 DEBUG POSTPROCESSOR-AUTO :: Converted parsed result the.blacklist.s04e15.720p.hdtv.x264-sva.rar into the blacklist - S04E15 [GROUP: sva.rar] [ABD: False] [ANIME: False] [whichReg: [u'standard']]
2017-03-05 08:38:19 DEBUG POSTPROCESSOR-AUTO :: Processing folder /home2/plex/Downloads/The.Blacklist.S04E15.720p.HDTV.x264-SVA
2017-03-05 08:38:19 DEBUG POSTPROCESSOR-AUTO :: Adding extracted directory to the list of directories to process: /home2/plex/TV/the.blacklist.s04e15.720p.hdtv.x264-sva
2017-03-05 08:38:19 DEBUG POSTPROCESSOR-AUTO :: Unpacking archive: the.blacklist.s04e15.720p.hdtv.x264-sva.rar
2017-03-05 08:38:19 DEBUG POSTPROCESSOR-AUTO :: Using cached parse result for: /home2/plex/TV/the.blacklist.s04e15.720p.hdtv.x264-sva
2017-03-05 08:38:19 DEBUG POSTPROCESSOR-AUTO :: Checking if archive is valid and contains a video: /home2/plex/Downloads/The.Blacklist.S04E15.720p.HDTV.x264-SVA/the.blacklist.s04e15.720p.hdtv.x264-sva.rar
2017-03-05 08:38:19 DEBUG POSTPROCESSOR-AUTO :: Using cached parse result for: /home2/plex/Downloads/The.Blacklist.S04E15.720p.HDTV.x264-SVA
2017-03-05 08:38:19 DEBUG POSTPROCESSOR-AUTO :: Packed Releases detected: ['the.blacklist.s04e15.720p.hdtv.x264-sva.rar']
2017-03-05 08:38:19 DEBUG POSTPROCESSOR-AUTO :: Parsed the.blacklist.s04e15.720p.hdtv.x264-sva.rar into the blacklist - S04E15 [GROUP: sva.rar] [ABD: False] [ANIME: False] [whichReg: [u'standard']]
2017-03-05 08:38:19 DEBUG POSTPROCESSOR-AUTO :: Converted parsed result the.blacklist.s04e15.720p.hdtv.x264-sva.rar into the blacklist - S04E15 [GROUP: sva.rar] [ABD: False] [ANIME: False] [whichReg: [u'standard']]
2017-03-05 08:38:19 DEBUG POSTPROCESSOR-AUTO :: Processing folder /home2/plex/Downloads
2017-03-05 08:38:19 INFO POSTPROCESSOR-AUTO :: Processing /home2/plex/Downloads
2017-03-05 08:38:19 DEBUG POSTPROCESSOR-AUTO :: Processing in folder /home2/plex/Downloads
2017-03-05 08:38:19 INFO POSTPROCESSOR-AUTO :: Beginning auto post processing task: /home2/plex/Downloads
2017-03-05 08:38:14 INFO POSTPROCESSOR :: Auto post processing task for /home2/plex/Downloads was added to the queue
Thanks for the issue report! Before a real human comes by, please make sure your report has all the below criteria checked
Please make sure you also read how to create an issue and followed all of the steps.
The title should describe your issue. Having "SR not working" or "I get this bug" for 100 issues, isn't really helpful. We will close issues if there isn't enough information.
Sometimes the devs may seem like grunts and respond with short answers. This isn't (always) because the dev hates you, but because he's on mobile or busy fixing bugs. If something isn't clear, please let us know, and this bot may get updated to automatically answer you.
Thanks!
@deepsh4h
Did you change the Unpack Directory in Post-Processing settings?

It looks like it unpacks in your TV root directory,
_Please empty it if so, and test again._
I'm not sure if that's the problem but it's not the correct way to set it up.
The unpack directory is empty but still I'm getting the error.
I still don't get it what am I doing wrong ?
That was my only idea.
~Try to shutdown SickRage, edit config.ini, locate unpack_dir= and set it to unpack_dir="", then start SickRage and try post processing again.~
Won't fix that either.
~Also before you try post process again,
Make sure you don't already have this episode anywhere in your TV Root Dir,
and do a re-scan of that show in SickRage~
Just compared your logs to the code, it's not the issue.
I'm trying to replicate your issue but I'm not getting there.
Okay, please post the latest auto post-processor debug logs.
````
2017-03-07 09:48:32 INFO POSTPROCESSOR-AUTO :: Auto post processing task for /home2/plex/Downloads completed
2017-03-07 09:48:32 INFO POSTPROCESSOR-AUTO :: Successfully processed
2017-03-07 09:48:32 DEBUG POSTPROCESSOR-AUTO :: Unable to figure out what folder to process. If your downloader and SickRage aren't on the same PC make sure you fill out your TV download dir in the config.
2017-03-07 09:48:32 DEBUG POSTPROCESSOR-AUTO :: Parsed scorpion.318.720p-dimension.rar into scorpion - S03E18 [GROUP: dimension.rar] [ABD: False] [ANIME: False] [whichReg: [u'bare']]
2017-03-07 09:48:32 DEBUG POSTPROCESSOR-AUTO :: Converted parsed result scorpion.318.720p-dimension.rar into scorpion - S03E18 [GROUP: dimension.rar] [ABD: False] [ANIME: False] [whichReg: [u'bare']]
2017-03-07 09:48:32 DEBUG POSTPROCESSOR-AUTO :: Processing folder /home2/plex/Downloads/Scorpion.S03E18.720p.HDTV.X264-DIMENSION
2017-03-07 09:48:32 DEBUG POSTPROCESSOR-AUTO :: Adding extracted directory to the list of directories to process: /home2/plex/Downloads/Scorpion.S03E18.720p.HDTV.X264-DIMENSION/scorpion.318.720p-dimension
2017-03-07 09:48:32 DEBUG POSTPROCESSOR-AUTO :: Unpacking archive: scorpion.318.720p-dimension.rar
2017-03-07 09:48:32 DEBUG POSTPROCESSOR-AUTO :: Using cached parse result for: /home2/plex/Downloads/Scorpion.S03E18.720p.HDTV.X264-DIMENSION/scorpion.318.720p-dimension
2017-03-07 09:48:32 DEBUG POSTPROCESSOR-AUTO :: Checking if archive is valid and contains a video: /home2/plex/Downloads/Scorpion.S03E18.720p.HDTV.X264-DIMENSION/scorpion.318.720p-dimension.rar
2017-03-07 09:48:32 DEBUG POSTPROCESSOR-AUTO :: Using cached parse result for: /home2/plex/Downloads/Scorpion.S03E18.720p.HDTV.X264-DIMENSION
2017-03-07 09:48:32 DEBUG POSTPROCESSOR-AUTO :: Packed Releases detected: ['scorpion.318.720p-dimension.rar']
2017-03-07 09:48:32 DEBUG POSTPROCESSOR-AUTO :: Parsed scorpion.318.720p-dimension.rar into scorpion - S03E18 [GROUP: dimension.rar] [ABD: False] [ANIME: False] [whichReg: [u'bare']]
2017-03-07 09:48:32 DEBUG POSTPROCESSOR-AUTO :: Converted parsed result scorpion.318.720p-dimension.rar into scorpion - S03E18 [GROUP: dimension.rar] [ABD: False] [ANIME: False] [whichReg: [u'bare']]
2017-03-07 09:48:32 INFO SEARCHQUEUE-DAILY-SEARCH :: No needed episodes found
2017-03-07 09:48:32 INFO SEARCHQUEUE-DAILY-SEARCH :: No episodes needed.
2017-03-07 09:48:32 DEBUG SEARCHQUEUE-DAILY-SEARCH :: Seeing if we need anything from Scorpion
2017-03-07 09:48:32 DEBUG POSTPROCESSOR-AUTO :: Processing folder /home2/plex/Downloads
2017-03-07 09:48:32 INFO POSTPROCESSOR-AUTO :: Processing /home2/plex/Downloads
2017-03-07 09:48:32 INFO SEARCHQUEUE-DAILY-SEARCH :: Beginning daily search for new episodes
2017-03-07 09:48:32 DEBUG POSTPROCESSOR-AUTO :: Processing in folder /home2/plex/Downloads
2017-03-07 09:48:32 INFO POSTPROCESSOR-AUTO :: Beginning auto post processing task: /home2/plex/Downloads
`````
I'm having trouble understanding what does your Downloads directory contain...
I'm seeing:
File (archive): scorpion.318.720p-dimension.rar
Folder: Scorpion.S03E18.720p.HDTV.X264-DIMENSION
Inside that folder is another file (archive): scorpion.318.720p-dimension.rar?
What files and folders does each of them contain?
/home2/plex/Downloads contains only a single folder :
Folder: Scorpion.S03E18.720p.HDTV.X264-DIMENSION
Files inside the above folder: scorpion.318.720p-dimension.nfo scorpion.318.720p-dimension.r16
scorpion.318.720p-dimension.r00 scorpion.318.720p-dimension.r17
scorpion.318.720p-dimension.r01 scorpion.318.720p-dimension.r18
scorpion.318.720p-dimension.r02 scorpion.318.720p-dimension.r19
scorpion.318.720p-dimension.r03 scorpion.318.720p-dimension.r20
scorpion.318.720p-dimension.r04 scorpion.318.720p-dimension.r21
scorpion.318.720p-dimension.r05 scorpion.318.720p-dimension.r22
scorpion.318.720p-dimension.r06 scorpion.318.720p-dimension.r23
scorpion.318.720p-dimension.r07 scorpion.318.720p-dimension.r24
scorpion.318.720p-dimension.r08 scorpion.318.720p-dimension.r25
scorpion.318.720p-dimension.r09 scorpion.318.720p-dimension.r26
scorpion.318.720p-dimension.r10 scorpion.318.720p-dimension.r27
scorpion.318.720p-dimension.r11 scorpion.318.720p-dimension.r28
scorpion.318.720p-dimension.r12 scorpion.318.720p-dimension.r29
scorpion.318.720p-dimension.r13 scorpion.318.720p-dimension.rar
scorpion.318.720p-dimension.r14 scorpion.318.720p-dimension.sfv
scorpion.318.720p-dimension.r15
All scene releases are released in such a way...
OK, now I'll test with your configuration and a folder with similar files, and get back to you :+1:
PS:- I had problems with unrar earlier. I am using unrar-free on Ubuntu 14.04.
Well...
It's working just fine for me, but I'm on Windows with WinRAR
PS:- I had problems with unrar earlier. I am using unrar-free on Ubuntu 14.04.
I assume it's working right now, because I'm not seeing any errors with the unrar.
I've got error with files withour rar archives:
Processing failed for /home2/plex/Downloads/Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA/Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA.mkv: File is locked for reading/writing
Then post those logs too please
2017-03-07 10:48:36 INFO POSTPROCESSOR-AUTO :: Auto post processing task for /home2/plex/Downloads completed
2017-03-07 10:48:36 INFO POSTPROCESSOR-AUTO :: /home2/plex/Downloads/Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA/Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA.mkv : Processing failed: File is locked for reading/writing
2017-03-07 10:48:36 INFO POSTPROCESSOR-AUTO :: Some items were not processed.
2017-03-07 10:48:36 WARNING POSTPROCESSOR-AUTO :: Processing Failed
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Unable to figure out what folder to process. If your downloader and SickRage aren't on the same PC make sure you fill out your TV download dir in the config.
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: /home2/plex/Downloads/Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA/Screens : No processable items found in folder
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Processing folder /home2/plex/Downloads/Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA/Screens
2017-03-07 10:48:36 WARNING POSTPROCESSOR-AUTO :: Processing failed for /home2/plex/Downloads/Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA/Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA.mkv: File is locked for reading/writing
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Checking if the path /home2/plex/TV/Scorpion/Season 03 already exists
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Destination folder for this episode: /home2/plex/TV/Scorpion/Season 03
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: formatting pattern: Season %0S -> Season 03
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Found codec for 'Scorpion: Dirty Seeds, Done Dirt Cheap'.
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Using cached parse result for: Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: formatting pattern: %SN - S%0SE%0E - %EN -> Scorpion - S03E17 - Dirty Seeds, Done Dirt Cheap
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Found codec for 'Scorpion: Dirty Seeds, Done Dirt Cheap'.
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Using cached parse result for: Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA
2017-03-07 10:48:36 INFO POSTPROCESSOR-AUTO :: Release name (Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA) found from file (Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA.nfo)
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Using cached parse result for: Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Found release name Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA
2017-03-07 10:48:36 INFO POSTPROCESSOR-AUTO :: Process method is 'move' and src and destination are on the same device, skipping free space check
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Trying to determine free space on destination drive
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: There is no existing file so there's no worries about replacing it
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Is ep a priority download: False
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Quality of the episode we're processing: 720p WEB-DL
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Snatch history had a quality in it, using that: 720p WEB-DL
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Retrieving episode object for 3x17
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Using cached parse result for: Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Analyzing name Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA.mkv
2017-03-07 10:48:36 INFO POSTPROCESSOR-AUTO :: Processing /home2/plex/Downloads/Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA/Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA.mkv (None)
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Using cached parse result for: /home2/plex/Downloads/Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Parsed Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA.mkv into Scorpion - S03E17 [GROUP: DRACULA] [ABD: False] [ANIME: False] [whichReg: [u'standard']]
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Converted parsed result Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA into Scorpion - S03E17 [GROUP: DRACULA] [ABD: False] [ANIME: False] [whichReg: [u'standard']]
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Processing folder /home2/plex/Downloads/Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Parsed scorpion.318.720p-dimension.rar into scorpion - S03E18 [GROUP: dimension.rar] [ABD: False] [ANIME: False] [whichReg: [u'bare']]
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Converted parsed result scorpion.318.720p-dimension.rar into scorpion - S03E18 [GROUP: dimension.rar] [ABD: False] [ANIME: False] [whichReg: [u'bare']]
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Processing folder /home2/plex/Downloads/Scorpion.S03E18.720p.HDTV.X264-DIMENSION
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Adding extracted directory to the list of directories to process: /home2/plex/Downloads/Scorpion.S03E18.720p.HDTV.X264-DIMENSION/scorpion.318.720p-dimension
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Unpacking archive: scorpion.318.720p-dimension.rar
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Using cached parse result for: /home2/plex/Downloads/Scorpion.S03E18.720p.HDTV.X264-DIMENSION/scorpion.318.720p-dimension
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Checking if archive is valid and contains a video: /home2/plex/Downloads/Scorpion.S03E18.720p.HDTV.X264-DIMENSION/scorpion.318.720p-dimension.rar
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Using cached parse result for: /home2/plex/Downloads/Scorpion.S03E18.720p.HDTV.X264-DIMENSION
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Packed Releases detected: ['scorpion.318.720p-dimension.rar']
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Parsed scorpion.318.720p-dimension.rar into scorpion - S03E18 [GROUP: dimension.rar] [ABD: False] [ANIME: False] [whichReg: [u'bare']]
2017-03-07 10:48:36 DEBUG POSTPROCESSOR-AUTO :: Converted parsed result scorpion.318.720p-dimension.rar into scorpion - S03E18 [GROUP: dimension.rar] [ABD: False] [ANIME: False] [whichReg: [u'bare']]
2017-03-07 10:48:35 DEBUG POSTPROCESSOR-AUTO :: Processing folder /home2/plex/Downloads
2017-03-07 10:48:35 INFO POSTPROCESSOR-AUTO :: Processing /home2/plex/Downloads
2017-03-07 10:48:35 DEBUG POSTPROCESSOR-AUTO :: Processing in folder /home2/plex/Downloads
2017-03-07 10:48:35 INFO POSTPROCESSOR-AUTO :: Beginning auto post processing task: /home2/plex/Downloads
2017-03-07 10:48:34 INFO POSTPROCESSOR :: Auto post processing task for /home2/plex/Downloads was added to the queue
2017-03-07 10:48:34 DEBUG POSTPROCESSOR :: Starting new thread: POSTPROCESSOR
That one is an unrelated issue:
You're trying to move a file that you're probably still seeding:
2017-03-07 10:48:36 WARNING POSTPROCESSOR-AUTO :: Processing failed for /home2/plex/Downloads/Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA/Scorpion.S03E17.720p.WEB-DL.DD5.1.H.264-DRACULA.mkv: _File is locked for reading/writing_
I have set torrents to be paused immediately after they are downloaded in Deluge. No stop option in Deluge. They are not being seeded.
Okay, after I removed the torrent from Deluge. It processed successfully.
Still trying to get the same error as you with the rars.
Also please make sure your SickRage is updated
Getting same errors for rar files.
Sickrage is updated to the latest commit.
I want you to try to unrar scorpion.318.720p-dimension.rar yourself
unrar e /home2/plex/Downloads/Scorpion.S03E18.720p.HDTV.X264-DIMENSION/scorpion.318.720p-dimension.rar /home2/plex/Downloads/Scorpion.S03E18.720p.HDTV.X264-DIMENSION/scorpion.318.720p-dimension
Then run/wait for auto post-processing to run.
I want to check what you said about unrar free giving you problems.
````
root@server2:/home2/plex/Downloads# unrar e /home2/plex/Downloads/xyz/xyz.rar /home2/plex/Downloads/xyz/xyz.mkv
unrar 0.0.1 Copyright (C) 2004 Ben Asselstine, Jeroen Dekkers
Extracting from /home2/plex/Downloads/xyz.mkv/xyz.mkv.rar
Skipping xyz.mkv
All OK
````
When the files and folders are like this, it works flawlessly for me every single time.
Let's see if this works for you now (wait for PostProcessor)
I don't understand why is it Skipping Scorpion.S03E18.720p.HDTV.X264-DIMENSION.mkv ?
No idea. Is it still not working?
It's not showing anything about the mkv in the logs?
There is no mkv file extracted.
Logs show no presence of the .mkv file
Worked after removing unrar-free and installing unrar.
Thank you for your time @sharkykh
Sure!
From what I understand the python rar library SickRage uses is, unfortunately, quite limited when it comes to supported extraction tools, ..
Link to unrar-nonfree: https://launchpad.net/ubuntu/xenial/amd64/unrar/1:5.3.2-1