clinton-hall / nzbToMedia

Provides NZB and Torrent postprocessing To CouchPotatoServer, SickBeard/SickRage, HeadPhones, Mylar and Gamez
GNU General Public License v3.0
671 stars 176 forks source link

SICKBEARD: Unable to figure out what folder to process. #931

Closed sethtipton closed 5 years ago

sethtipton commented 8 years ago

It appears that I'm having a hard time setting up the correct folders. I am receiving the following message: SICKBEARD: Unable to figure out what folder to process. If your downloader and Sick Beard aren't on the same PC make sure you fill out your TV download dir in the config.

Sabnzbd URL http://192.168.1.32:8080/ Sickbeard URL http://192.168.1.29:8081/

           [15:51:19] [INFO]::MAIN: Loading config from [/usr/pbi/sabnzbdplus-amd64/scripts/nzbToMedia-master/autoProcessMedia.cfg]
[15:51:19] [INFO]::MAIN: Checking database structure...
[15:51:19] [DEBUG]::MAIN: Checking Initial Schema database upgrade
[15:51:19] [DEBUG]::MAIN: InitialSchema upgrade not required
[15:51:19] [INFO]::MAIN: Checking if source needs an update
[15:51:19] [DEBUG]::MAIN: cur_commit = None % (newest_commit)= 3e4861e87c543a4d2debd8997feb16bda3ef5339, num_commits_behind = 0
[15:51:19] [ERROR]::MAIN: Unknown current version number, don't know if we should update or not
[15:51:19] [INFO]::MAIN: nzbToMedia Version:10.13 Branch:master (FreeBSD 9.1-RELEASE)
[15:51:19] [WARNING]::MAIN: Failed to locate 7zip. Transcosing of disk images and extraction of .7z files will not be possible!
[15:51:19] [WARNING]::MAIN: Failed to locate ffmpeg. Transcoding disabled!
[15:51:19] [WARNING]::MAIN: Install ffmpeg with x264 support to enable this feature  ...
[15:51:19] [WARNING]::MAIN: Failed to locate ffprobe. Video corruption detection disabled!
[15:51:19] [WARNING]::MAIN: Install ffmpeg with x264 support to enable this feature  ...
[15:51:19] [INFO]::MAIN: #########################################################
[15:51:19] [INFO]::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
[15:51:19] [INFO]::MAIN: #########################################################
[15:51:19] [DEBUG]::MAIN: Options passed into nzbToMedia: ['/usr/pbi/sabnzbdplus-amd64/scripts/nzbToMedia-master/nzbToSickBeard.py', '/usr/pbi/sabnzbdplus-amd64/sabnzbd/Downloads/complete/media/Downloaded/Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam', 'Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam.nzb', 'Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam', '', 'tv', 'alt.binaries.hdtv', '0']
[15:51:19] [INFO]::MAIN: Script triggered from SABnzbd
[15:51:19] [DEBUG]::MAIN: Searching for nzoid from SAbnzbd ...
[15:51:19] [DEBUG]::MAIN: Adding NZB download info for directory /usr/pbi/sabnzbdplus-amd64/sabnzbd/Downloads/complete/media/Downloaded/Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam to database
[15:51:20] [INFO]::MAIN: Auto-detected SECTION:SickBeard
[15:51:20] [DEBUG]::MAIN: Checking for archives to extract in directory: /usr/pbi/sabnzbdplus-amd64/sabnzbd/Downloads/complete/media/Downloaded/Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam
[15:51:20] [INFO]::MAIN: Calling SickBeard:tv to post-process:Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam.nzb
[15:51:20] [INFO]::MAIN: Attempting to auto-detect tv fork
[15:51:20] [INFO]::MAIN: SickBeard:tv fork auto-detection successful ...
[15:51:20] [INFO]::MAIN: SickBeard:tv fork set to default
[15:51:20] [INFO]::MAIN: FLATTEN: Flattening directory: /usr/pbi/sabnzbdplus-amd64/sabnzbd/Downloads/complete/media/Downloaded/Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam
[15:51:20] [DEBUG]::MAIN: Checking for empty folders in:/usr/pbi/sabnzbdplus-amd64/sabnzbd/Downloads/complete/media/Downloaded/Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam
[15:51:20] [POSTPROCESS]::SICKBEARD: SUCCESS: The download succeeded, sending a post-process request
[15:51:20] [DEBUG]::SICKBEARD: Opening URL: http://192.168.1.29:8081/home/postprocess/processEpisode with params: {'nzbName': 'Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam.nzb', 'quiet': 1, 'dir': '/usr/pbi/sabnzbdplus-amd64/sabnzbd/Downloads/complete/media/Downloaded/Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam'}
[15:51:20] [POSTPROCESS]::SICKBEARD: Processing folder: /usr/pbi/sabnzbdplus-amd64/sabnzbd/Downloads/complete/media/Downloaded/Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam
[15:51:20] [POSTPROCESS]::SICKBEARD: Unable to figure out what folder to process. If your downloader and Sick Beard aren't on the same PC make sure you fill out your TV download dir in the config.
[15:51:20] [ERROR]::MAIN: A problem was reported in the /usr/pbi/sabnzbdplus-amd64/scripts/nzbToMedia-master/nzbToSickBeard.py script.
SickBeard: Failed to post-process - Returned log from SickBeard was not as expected.!

My category setup in Sabnzbd http://i.imgur.com/x1cUcZZ.png

My freenas jail storage setup: http://i.imgur.com/8KbcglO.png

My folder structure http://i.imgur.com/cNaxZGE.jpg

Here is my autoProcessMedia.cfg

# nzbToMedia Configuration
# For more information, visit https://github.com/clinton-hall/nzbToMedia/wiki

[General]
    # Enable/Disable update notifications
    version_notify = 1
    # Enable/Disable automatic updates
    auto_update = 0
    # Set to the full path to the git executable
    git_path = ""
    # GitHUB user for repo
    git_user = ""
    # GitHUB branch for repo
    git_branch = ""
    # Enable/Disable forceful cleaning of leftover files following postprocess 
    force_clean = 0
    # Enable/Disable logging debug messages to nzbtomedia.log
    log_debug = 1
    # Enable/Disable logging database messages to nzbtomedia.log
    log_db = 0
    # Enable/Disable logging environment variables to debug nzbtomedia.log (helpful to track down errors calling external tools.)
    log_env = 0
    # Enable/Disable logging git output to debug nzbtomedia.log (helpful to track down update failures.)
    log_git = 0
    # Set to the directory where your ffmpeg/ffprobe executables are located
    ffmpeg_path = ""
    # Enable/Disable media file checking using ffprobe.
    check_media = 1
    # Enable/Disable a safety check to ensure we don't process all downloads in the default_downloadDirectories by mistake.
    safe_mode = 1

[Posix]
    ### Process priority setting for External commands (Extractor and Transcoder) on Posix (Unix/Linux/OSX) systems.
    # Set the Niceness value for the nice command. These range from -20 (most favorable to the process) to 19 (least favorable to the process).
    niceness = 0
    # Set the ionice scheduling class. 0 for none, 1 for real time, 2 for best-effort, 3 for idle.
    ionice_class = 0
    # Set the ionice scheduling class data. This defines the class data, if the class accepts an argument. For real time and best-effort, 0-7 is valid data.
    ionice_classdata = 0

[CouchPotato]
    #### autoProcessing for Movies
    #### movie - category that gets called for post-processing with CPS
    [[movie]]
        enabled = 0
        apikey = ""
        host = localhost
        port = 5050
        ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######
        ssl = 0
        web_root = ""
        # Enable/Disable linking for Torrents
        Torrent_NoLink = 0
        keep_archive = 1
        method = renamer
        delete_failed = 0
        wait_for = 2
        extract = 1
        # Set this to minimum required size to consider a media file valid (in MB)
        minSize = 0
        # Enable/Disable deleting ignored files (samples and invalid media files)
        delete_ignored = 0
        ##### Enable if Couchpotato is on a remote server for this category
        remote_path = 0
        ##### Set to path where download client places completed downloads locally for this category
        watch_dir = ""

[SickBeard]
    #### autoProcessing for TV Series
    #### tv - category that gets called for post-processing with SB
    [[tv]]
        enabled = 1
        host = http://192.168.1.29
        port = 8081
        username = sethtipton
        password = password
        ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######
        web_root = ""
        ssl = 0
        fork = auto
        delete_failed = 0
        # Enable/Disable linking for Torrents
        Torrent_NoLink = 0
        keep_archive = 1
        process_method = ""
        # force processing of already processed content when running a manual scan.
        force = 0
        # tell SickRage to delete all source files after processing.
        delete_on = 0
        extract = 1
        nzbExtractionBy = Downloader
        # Set this to minimum required size to consider a media file valid (in MB)
        minSize = 0
        # Enable/Disable deleting ignored files (samples and invalid media files)
        delete_ignored = 0
        ##### Enable if SickBeard is on a remote server for this category
        remote_path = 0
        ##### Set to path where download client places completed downloads locally for this category
        watch_dir = ""

[NzbDrone]
    #### autoProcessing for TV Series
    #### ndCategory - category that gets called for post-processing with NzbDrone
    [[tv]]
        enabled = 0
        apikey = ""
        host = localhost
        port = 8989
        username = ""
        password = ""
        ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######
        web_root = ""
        ssl = 0
        delete_failed = 0
        # Enable/Disable linking for Torrents
        Torrent_NoLink = 0
        keep_archive = 1
        extract = 1
        nzbExtractionBy = Downloader
        wait_for = 2
        # Set this to minimum required size to consider a media file valid (in MB)
        minSize = 0
        # Enable/Disable deleting ignored files (samples and invalid media files)
        delete_ignored = 0
        ##### Enable if NzbDrone is on a remote server for this category
        remote_path = 0
        ##### Set to path where download client places completed downloads locally for this category
        watch_dir = ""

[HeadPhones]
    #### autoProcessing for Music
    #### music - category that gets called for post-processing with HP
    [[music]]
        enabled = 0
        apikey = ""
        host = localhost
        port = 8181
        ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######
        ssl = 0
        web_root = ""
        wait_for = 2
        # Enable/Disable linking for Torrents
        Torrent_NoLink = 0
        keep_archive = 1
        extract = 1
        # Set this to minimum required size to consider a media file valid (in MB)
        minSize = 0
        # Enable/Disable deleting ignored files (samples and invalid media files)
        delete_ignored = 0
        ##### Enable if HeadPhones is on a remote server for this category
        remote_path = 0
        ##### Set to path where download client places completed downloads locally for this category
        watch_dir = ""

[Mylar]
    #### autoProcessing for Comics
    #### comics - category that gets called for post-processing with Mylar
    [[comics]]
        enabled = 0
        host = localhost
        port = 8090
        username = ""
        password = ""
        ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######
        web_root = ""
        ssl = 0
        # Enable/Disable linking for Torrents
        Torrent_NoLink = 0
        keep_archive = 1
        extract = 1
        # Set this to minimum required size to consider a media file valid (in MB)
        minSize = 0
        # Enable/Disable deleting ignored files (samples and invalid media files)
        delete_ignored = 0
        ##### Enable if Mylar is on a remote server for this category
        remote_path = 0
        ##### Set to path where download client places completed downloads locally for this category
        watch_dir = ""

[Gamez]
    #### autoProcessing for Games
    #### games - category that gets called for post-processing with Gamez
    [[games]]
        enabled = 0
        apikey = ""
        host = localhost
        port = 8085
        ###### 
        library = Set to path where you want the processed games to be moved to.
        ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######
        ssl = 0
        web_root = ""
        # Enable/Disable linking for Torrents
        Torrent_NoLink = 0
        keep_archive = 1
        extract = 1
        # Set this to minimum required size to consider a media file valid (in MB)
        minSize = 0
        # Enable/Disable deleting ignored files (samples and invalid media files)
        delete_ignored = 0
        ##### Enable if Gamez is on a remote server for this category
        remote_path = 0
        ##### Set to path where download client places completed downloads locally for this category
        watch_dir = ""

[Network]
    # Enter Mount points as LocalPath,RemotePath and separate each pair with '|'
    # e.g. MountPoints = /volume1/Public/,E:\|/volume2/share/,\\NAS\
    mount_points = ""

[Nzb]
    ###### clientAgent - Supported clients: sabnzbd, nzbget
    clientAgent = sabnzbd
    ###### SabNZBD (You must edit this if your using nzbToMedia.py with SabNZBD)
    sabnzbd_host = http://192.168.1.32
    sabnzbd_port = 8080
    sabnzbd_apikey = 183c3a0bcae66fccd1699e4c1e70853a
    ###### Enter the default path to your default download directory (non-category downloads). this directory is protected by safe_mode.
    default_downloadDirectory = "/downloads"

[Torrent]
    ###### clientAgent - Supported clients: utorrent, transmission, deluge, rtorrent, vuze, other
    clientAgent = other
    ###### useLink - Set to hard for physical links, sym for symbolic links, move to move, and no to not use links (copy)
    useLink = hard
    ###### outputDirectory - Default output directory (categories will be appended as sub directory to outputDirectory)
    outputDirectory = /abs/path/to/complete/
    ###### Enter the default path to your default download directory (non-category downloads). this directory is protected by safe_mode. 
    default_downloadDirectory = ""
    ###### Other categories/labels defined for your downloader. Does not include CouchPotato, SickBeard, HeadPhones, Mylar categories.
    categories = music_videos, pictures, software, manual
    ###### A list of categories that you don't want to be flattened (i.e preserve the directory structure when copying/linking.
    noFlatten = pictures, manual
    ###### uTorrent Hardlink solution (You must edit this if your using TorrentToMedia.py with uTorrent)
    uTorrentWEBui = http://localhost:8090/gui/
    uTorrentUSR = your username
    uTorrentPWD = your password
    ###### Transmission (You must edit this if your using TorrentToMedia.py with uTorrent)
    TransmissionHost = localhost
    TransmissionPort = 9091
    TransmissionUSR = your username
    TransmissionPWD = your password
    #### Deluge (You must edit this if your using TorrentToMedia.py with deluge. Note that the host/port is for the deluge daemon, not the webui)
    DelugeHost = localhost
    DelugePort = 58846
    DelugeUSR = your username
    DelugePWD = your password
    ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######
    deleteOriginal = 0
    chmodDirecotry = 0
    resume = 1
    resumeOnFailure = 1

[Extensions]
    compressedExtensions = .zip, .rar, .7z, .gz, .bz, .tar, .arj, .1, .01, .001
    mediaExtensions = .mkv, .avi, .divx, .xvid, .mov, .wmv, .mp4, .mpg, .mpeg, .vob, .iso, .m4v, .ts
    audioExtensions = .mp3, .aac, .ogg, .ape, .m4a, .asf, .wma, .flac
    metaExtensions = .nfo, .sub, .srt, .jpg, .gif

[Plex]
    # Only enter these details if you want to update plex library after processing.
    # Do not enter these details if you send the plex notifications from Sickbeard/CouchPotato.
    plex_host = localhost
    plex_port = 32400
    plex_token = ""
    plex_ssl = 0
    # Enter Plex category to section mapping as Category,section and separate each pair with '|'
    # e.g. plex_sections = movie,3|tv,4
    plex_sections = ""

[Transcoder]
    # getsubs. enable to download subtitles.
    getSubs = 0
    # subLanguages. create a list of languages in the order you want them in your subtitles. 
    subLanguages = eng, spa, fra
    # transcode. enable to use transcoder
    transcode = 0
    ###### duplicate =1 will create a new file. =0 will replace the original
    duplicate = 1
    # concat. joins cd1 cd2 etc into a single video.
    concat = 1
    # IgnoreExtensions is a comma-separated list of extensions that will not be transcoded.
    ignoreExtensions = .avi, .mkv, .mp4
    # outputFastStart. 1 will use -movflags + faststart. 0 will disable this from being used.
    outputFastStart = 0
    # outputQualityPercent. used as -q:a value. 0 will disable this from being used.
    outputQualityPercent = 0
    # outputVideoPath. Set path you want transcoded videos moved to. Leave blank to disable.
    outputVideoPath = ""
    # processOutput. 1 will send the outputVideoPath to SickBeard/CouchPotato. 0 will send original files.
    processOutput = 0
    # audioLanguage. set the 3 letter language code you want as your primary audio track.
    audioLanguage = eng
    # allAudioLanguages. 1 will keep all audio tracks (uses AudioCodec3) where available.
    allAudioLanguages = 0
    # allSubLanguages. 1 will keep all existing sub languages. 0 will discard those not in your list above.
    allSubLanguages = 0
    # embedSubs. 1 will embed external sub/srt subs into your video if this is supported.
    embedSubs = 1
    # burnInSubtitle. burns the default sub language into your video (needed for players that don't support subs)
    burnInSubtitle = 0
    # extractSubs. 1 will extract subs from the video file and save these as external srt files.
    extractSubs = 0
    # externalSubDir. set the directory where subs should be saved (if not the same directory as the video)
    externalSubDir = ""
    # hwAccel. 1 will set ffmpeg to enable hardware acceleration (this requires a recent ffmpeg)
    hwAccel = 0
    # generalOptions. Enter your additional ffmpeg options here with commas to separate each option/value (i.e replace spaces with commas).
    generalOptions = ""
    # outputDefault. Loads default configs for the selected device. The remaining options below are ignored.
    # If you want to use your own profile, leave this blank and set the remaining options below.
    # outputDefault profiles allowed: iPad, iPad-1080p, iPad-720p, Apple-TV2, iPod, iPhone, PS3, xbox, Roku-1080p, Roku-720p, Roku-480p, mkv, mp4-scene-release
    outputDefault = ""
    #### Define custom settings below.
    outputVideoExtension = .mp4
    outputVideoCodec = libx264
    VideoCodecAllow = ""
    outputVideoPreset = medium
    outputVideoResolution = 1920:1080
    outputVideoFramerate = 24
    outputVideoBitrate = 800000
    outputVideoCRF = 19
    outputVideoLevel = 3.1
    outputAudioCodec = ac3
    AudioCodecAllow = ""
    outputAudioChannels = 6
    outputAudioBitrate = 640k
    outputAudioTrack2Codec = libfaac
    AudioCodec2Allow = ""
    outputAudioTrack2Channels = 2
    outputAudioTrack2Bitrate = 128000
    outputAudioOtherCodec = libmp3lame
    AudioOtherCodecAllow = ""
    outputAudioOtherChannels = ""
    outputAudioOtherBitrate = 128000
    outputSubtitleCodec = ""

[WakeOnLan]
    ###### set wake = 1 to send WOL broadcast to the mac and test the server (e.g. xbmc) the host and port specified.
    wake = 0
    host = 192.168.1.37
    port = 80
    mac = 00:01:2e:2D:64:e1

[UserScript]
    #Use user_script for uncategorized downloads
    #Set the categories to use external script.
    #Use "UNCAT" to process non-category downloads, and "ALL" for all defined categories.
    [[UNCAT]]
        #Enable/Disable this subsection category
        enabled = 0
        Torrent_NoLink = 0
        keep_archive = 1
        extract = 1
        #Enable if you are sending commands to a remote server for this category
        remote_path = 0
        #What extension do you want to process? Specify all the extension, or use "ALL" to process all files.
        user_script_mediaExtensions = .mkv, .avi, .divx, .xvid, .mov, .wmv, .mp4, .mpg, .mpeg
        #Specify the path to your custom script. Use "None" if you wish to link this category, but NOT run any external script.
        user_script_path = /nzbToMedia/userscripts/script.sh
        #Specify the argument(s) passed to script, comma separated in order.
        #for example FP,FN,DN, TN, TL for file path (absolute file name with path), file name, absolute directory name (with path), Torrent Name, Torrent Label/Category.
        #So the result is /media/test/script/script.sh FP FN DN TN TL. Add other arguments as needed eg -f, -r
        user_script_param = FN
        #Set user_script_runOnce = 0 to run for each file, or 1 to only run once (presumably on the entire directory).
        user_script_runOnce = 0
        #Specify the successcodes returned by the user script as a comma separated list. Linux default is 0
        user_script_successCodes = 0
        #Clean after? Note that delay function is used to prevent possible mistake :) Delay is intended as seconds
        user_script_clean = 1
        delay = 120
        #Unique path (directory) created for every download. set 0 to disable.
        unique_path = 1
        ##### Set to path where download client places completed downloads locally for this category
        watch_dir = ""

[ASCII]
    #Set convert =1 if you want to convert any "foreign" characters to ASCII (UTF8) before passing to SB/CP etc. Default is disabled (0).
    convert = 0

[passwords]
    # enter the full path to a text file containing passwords to be used for extraction attempts.
    # In the passwords file, every password should be on a new line
    PassWordFile = ""

[Custom]
    # enter a list (comma separated) of Group Tags you want removed from filenames to help with subtitle matching.
    # e.g remove_group = [rarbag],-NZBgeek
    # be careful if your "group" is a common "real" word. Please report if you have any group replacements that would fall in this category.
    remove_group = ""
breezytm commented 8 years ago

From what I can see from your category configuration, you are giving it the wrong path.

Your download path is: /usr/pbi/sabnzbdplus-amd64/sabnzbd/Downloads/complete In the tv category you simply need to either leave 'Folder/path' empty if you want it to complete for completed downloads or create a folder in Downloads/complete and call it 'tv' and then go back to category and set "folder/path" to tv.

I think that should work. I have not used Sab in a long time but I just checked my settings to verify what I just said.

sethtipton commented 8 years ago

I tried removing the path and recieved the same error.

 [14:43:44] [INFO]::MAIN: Loading config from [/usr/pbi/sabnzbdplus-amd64/scripts/nzbToMedia-master/autoProcessMedia.cfg]
[14:43:44] [INFO]::MAIN: Checking database structure...
[14:43:44] [DEBUG]::MAIN: Checking Initial Schema database upgrade
[14:43:44] [DEBUG]::MAIN: InitialSchema upgrade not required
[14:43:44] [INFO]::MAIN: Checking if source needs an update
[14:43:44] [DEBUG]::MAIN: cur_commit = None % (newest_commit)= 3e4861e87c543a4d2debd8997feb16bda3ef5339, num_commits_behind = 0
[14:43:44] [ERROR]::MAIN: Unknown current version number, don't know if we should update or not
[14:43:44] [INFO]::MAIN: nzbToMedia Version:10.13 Branch:master (FreeBSD 9.1-RELEASE)
[14:43:44] [WARNING]::MAIN: Failed to locate 7zip. Transcosing of disk images and extraction of .7z files will not be possible!
[14:43:44] [WARNING]::MAIN: Failed to locate ffmpeg. Transcoding disabled!
[14:43:44] [WARNING]::MAIN: Install ffmpeg with x264 support to enable this feature  ...
[14:43:44] [WARNING]::MAIN: Failed to locate ffprobe. Video corruption detection disabled!
[14:43:44] [WARNING]::MAIN: Install ffmpeg with x264 support to enable this feature  ...
[14:43:44] [INFO]::MAIN: #########################################################
[14:43:44] [INFO]::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
[14:43:44] [INFO]::MAIN: #########################################################
[14:43:44] [DEBUG]::MAIN: Options passed into nzbToMedia: ['/usr/pbi/sabnzbdplus-amd64/scripts/nzbToMedia-master/nzbToSickBeard.py', '/usr/pbi/sabnzbdplus-amd64/sabnzbd/Downloads/complete/Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam.10', 'Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam.nzb', 'Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam', '', 'tv', 'alt.binaries.hdtv', '0']
[14:43:44] [INFO]::MAIN: Script triggered from SABnzbd
[14:43:44] [DEBUG]::MAIN: Searching for nzoid from SAbnzbd ...
[14:43:44] [DEBUG]::MAIN: Adding NZB download info for directory /usr/pbi/sabnzbdplus-amd64/sabnzbd/Downloads/complete/Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam.10 to database
[14:43:45] [INFO]::MAIN: Auto-detected SECTION:SickBeard
[14:43:45] [DEBUG]::MAIN: Checking for archives to extract in directory: /usr/pbi/sabnzbdplus-amd64/sabnzbd/Downloads/complete/Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam.10
[14:43:45] [INFO]::MAIN: Calling SickBeard:tv to post-process:Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam.nzb
[14:43:45] [INFO]::MAIN: Attempting to auto-detect tv fork
[14:43:45] [INFO]::MAIN: SickBeard:tv fork auto-detection successful ...
[14:43:45] [INFO]::MAIN: SickBeard:tv fork set to default
[14:43:45] [INFO]::MAIN: FLATTEN: Flattening directory: /usr/pbi/sabnzbdplus-amd64/sabnzbd/Downloads/complete/Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam.10
[14:43:45] [DEBUG]::MAIN: Checking for empty folders in:/usr/pbi/sabnzbdplus-amd64/sabnzbd/Downloads/complete/Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam.10
[14:43:45] [POSTPROCESS]::SICKBEARD: SUCCESS: The download succeeded, sending a post-process request
[14:43:45] [DEBUG]::SICKBEARD: Opening URL: http://192.168.1.29:8081/home/postprocess/processEpisode with params: {'nzbName': 'Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam.nzb', 'quiet': 1, 'dir': '/usr/pbi/sabnzbdplus-amd64/sabnzbd/Downloads/complete/Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam.10'}
[14:43:45] [POSTPROCESS]::SICKBEARD: Processing folder: /usr/pbi/sabnzbdplus-amd64/sabnzbd/Downloads/complete/Once.Upon.A.Time.S05E10.Broken.Heart.720p.WEB-DL.HEVC.x265-RMTeam.10
[14:43:45] [POSTPROCESS]::SICKBEARD: Unable to figure out what folder to process. If your downloader and Sick Beard aren't on the same PC make sure you fill out your TV download dir in the config.
[14:43:45] [ERROR]::MAIN: A problem was reported in the /usr/pbi/sabnzbdplus-amd64/scripts/nzbToMedia-master/nzbToSickBeard.py script.
SickBeard: Failed to post-process - Returned log from SickBeard was not as expected.!

I did however notice that in finder, the folder that I downloaded has permission issues. http://i.imgur.com/K2LMlq2.png

Might that be the problem? And any idea what might be causing that, and how would I fix it?

I recursivly set permissions on the storage of this jail to 777 (I know that's a bad idea but for now I am just trying to get it to work) and retried the download and received the same error.

Thanks!

breezytm commented 8 years ago

Maybe Sab Settings page > Folders > User Folders > Permissions for completed downloads

mine is set to 766

sethtipton commented 8 years ago

Mine wasn't previously set so I tried 766 and 777, same error.

breezytm commented 8 years ago
1 2
clinton-hall commented 8 years ago

This error suggests to me that whatever user is running SickRage is not able to see/find the directory where these downloads are.

Make sure the download directory can be opened and viewed by the SickRage user...

smfbrooks commented 7 years ago

@clinton-hall

I am having this issue a year later, and the folders are owned by the SickRage user and have rwx permissions.

This was caused by an update to SickRage. https://github.com/SickRage/SickRage/issues/2865

clinton-hall commented 7 years ago

Please post the nzbToMedia logs.The link you posted above is for a different issue.

Please also make sure sickrage is up to date and you are on the latest nightly build.

PonyXpress commented 6 years ago

I have this same issue. Everything was working a while back, but then I started to see SAB report that the downloads failed. However, even though the log will show it failed, it really doesn't mean the download actually failed. In the below example the download was successful, even though SAB reports it as failed. SR will even moved the successful downloaded file to my TV files. So at the end, the process is working but I do not understand why I see this error in the log.

I have played with both the Master and Nightly branches, and created a new cfg file, same result.

I did not enable "User" login in SR or SAB. Also, Manual Post Processing in SR works fine.

[10:11:30] [INFO]::MAIN: Loading config from [/nzbToMedia/autoProcessMedia.cfg] [10:11:30] [INFO]::MAIN: Checking database structure... [10:11:30] [INFO]::MAIN: Checking if source needs an update [10:11:31] [ERROR]::MAIN: Unknown current version number, don't know if we should update or not [10:11:31] [INFO]::MAIN: nzbToMedia Version:11.04 Branch:master (Linux 4.14.26-unRAID) [10:11:31] [INFO]::MAIN: ######################################################### [10:11:31] [INFO]::MAIN: ## ..::[nzbToMedia.pyc]::.. ## [10:11:31] [INFO]::MAIN: ######################################################### [10:11:31] [INFO]::MAIN: Script triggered from SABnzbd [10:11:31] [INFO]::MAIN: Auto-detected SECTION:SickBeard [10:11:31] [INFO]::MAIN: Calling SickBeard:tv to post-process:Air.Crash.Investigation.S18E04.HDTV.x264-TVC.nzb [10:11:31] [INFO]::MAIN: Attempting to auto-detect tv fork [10:11:31] [INFO]::MAIN: SickBeard:tv fork auto-detection successful ... [10:11:31] [INFO]::MAIN: SickBeard:tv fork set to sickrage [10:11:31] [INFO]::MAIN: FLATTEN: Flattening directory: /downloads/complete/tv/Air.Crash.Investigation.S18E04.HDTV.x264-TVC [10:11:31] [INFO]::TRANSCODER: Checking [Air.Crash.Investigation.S18E04.HDTV.x264-TVC.mp4] for corruption, please stand by ... [10:11:31] [INFO]::TRANSCODER: SUCCESS: [Air.Crash.Investigation.S18E04.HDTV.x264-TVC.mp4] has no corruption. [10:11:31] [POSTPROCESS]::SICKBEARD: SUCCESS: The download succeeded, sending a post-process request [10:11:33] [POSTPROCESS]::SICKBEARD: 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. [10:11:33] [ERROR]::MAIN: A problem was reported in the /nzbToMedia/nzbToSickBeard.py script. SickBeard: Failed to post-process - Returned log from SickBeard was not as expected.!

main parts of the Autoprocessing.cfg

[General]

Enable/Disable update notifications

version_notify = 1
# Enable/Disable automatic updates
auto_update = 0
# Set to the full path to the git executable
git_path =
# GitHUB user for repo
git_user =
# GitHUB branch for repo
git_branch =
# Enable/Disable forceful cleaning of leftover files following postprocess 
force_clean = 0
# Enable/Disable logging debug messages to nzbtomedia.log
log_debug = 0
# Enable/Disable logging database messages to nzbtomedia.log
log_db = 0
# Enable/Disable logging environment variables to debug nzbtomedia.log (helpful to track down errors calling external tools.)
log_env = 0
# Enable/Disable logging git output to debug nzbtomedia.log (helpful to track down update failures.)
log_git = 0
# Set to the directory where your ffmpeg/ffprobe executables are located
ffmpeg_path =
# Enable/Disable media file checking using ffprobe.
check_media = 1
# Enable/Disable a safety check to ensure we don't process all downloads in the default_downloadDirectories by mistake.
safe_mode = 1
# Turn this on to disable additional extraction attempts for failed downloads. Default = 0 will attempt to extract and verify if media is present.
no_extract_failed = 0

[Posix]

Process priority setting for External commands (Extractor and Transcoder) on Posix (Unix/Linux/OSX) systems.

# Set the Niceness value for the nice command. These range from -20 (most favorable to the process) to 19 (least favorable to the process).
niceness = 0
# Set the ionice scheduling class. 0 for none, 1 for real time, 2 for best-effort, 3 for idle.
ionice_class = 0
# Set the ionice scheduling class data. This defines the class data, if the class accepts an argument. For real time and best-effort, 0-7 is valid data.
ionice_classdata = 0 

[SickBeard]

autoProcessing for TV Series

#### tv - category that gets called for post-processing with SB
[[tv]]
    enabled = 1
    host = 10.xx.xx.xx  <real IP is here, removed for online posting>
    port = 8081
    username =
    password =
    ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######
    web_root =
    ssl = 0
    fork = auto
    delete_failed = 0
    # Enable/Disable linking for Torrents
    Torrent_NoLink = 0
    keep_archive = 1
    process_method =
    # force processing of already processed content when running a manual scan.
    force = 0
    # tell SickRage/Medusa to delete all source files after processing.
    delete_on = 0
    # tell Medusa to ignore check for associated subtitle check when postponing release
    ignore_subs = 0
    extract = 1
    nzbExtractionBy = Downloader
    # Set this to minimum required size to consider a media file valid (in MB)
    minSize = 0
    # Enable/Disable deleting ignored files (samples and invalid media files)
    delete_ignored = 0
    ##### Enable if SickBeard is on a remote server for this category
    remote_path = 0
    ##### Set to path where download client places completed downloads locally for this category
    watch_dir = /downloads
    ##### Set the recursive directory permissions to the following (0 to disable)
    chmodDirectory = 0 

[Nzb]

clientAgent - Supported clients: sabnzbd, nzbget
clientAgent = sabnzbd
###### SabNZBD (You must edit this if you're using nzbToMedia.py with SabNZBD)
sabnzbd_host = http://localhost
sabnzbd_port = 8080
sabnzbd_apikey = <my key is here in the real cfg file, removed for online posting>
###### Enter the default path to your default download directory (non-category downloads). this directory is protected by safe_mode.
default_downloadDirectory = /downloads 

I've already confirmed all settings in SR and SAB per the instructions and I have confirmed all Path's look correct. The fact that the process works for Successful downloads tells me things are mostly correct.

I'm also not sure that Failed downloads is really working because I see that some files are being downloaded over and over and failing each time.

I attached a screenshot of my SR version info. srver

Any ideas?

PonyXpress commented 6 years ago

help please... This is the correct forum to post for support or what?

breezytm commented 6 years ago

Did you read the last two messages before yours?

clinton-hall commented 6 years ago

please enable debug logging

[General]
    # Enable/Disable update notifications
    log_debug = 1

then post full debug logs.

PonyXpress commented 6 years ago

That setting was already enabled, however it says version notify = 1, and your instructions says log_debug=1. So that doesn't match.

[General]

Enable/Disable update notifications

version_notify = 1

Although I just turned this setting on:

Enable/Disable logging debug messages to nzbtomedia.log

log_debug = 1

Will let it run today and post log tonight.

Also, SR user is nobody, and I'm pretty sure it has access to the folders because as I mentioned already, the actual process works - meaning SAB downloads and reports it is successful but the script errors out, yet SR goes and gets the files and puts them in my tv folder with all my other shows.

I downloaded the nightly branch zip file and copied everything over, even though in the log it still says Master branch, not sure why. I even used the new cfg file.

I already had the forced clean up set to 0:

Enable/Disable forceful cleaning of leftover files following postprocess

force_clean = 0

Thanks for your help!

PonyXpress commented 6 years ago

I turned on debug. Looks like only a few downloads, with a couple that were successful and a few that failed. Either way the script errors out.

I edited the log to reduce the size of the file, removing everything except the past 24 hours.

Thanks again! nzbtomedia.log

clinton-hall commented 6 years ago

The part where I am confused is that you say SR goes and gets the files... even when the script errors out...

I suspect in fact the script errors out because SR goes and gets the files before the script finishes.... usually SR should not be "going and getting" the files.

I also note that in the URL call to SickRage you have the IP address... is SR on a different system to the system that runs SAB? if so, you need to use the Mount Points option to align the relative paths between the 2 systems.

PonyXpress commented 6 years ago

hum, now I'm confused. After SAB downloads, SR is supposed to go get the files from the Completed directory and move them to my TV show directory. I do not use SR to post process, only to fetch the files, rename them, and put them in my show directory. I do not think SR is getting the files before the script is complete, but I could be wrong. This was working just fine for over 2 years. The script will finish to the part where the files are successful and then it calls SR to post process. That is where it errors out. Even though the files end up in the Completed directory. Once in the completed directory, SR will find them with it runs the Auto post processing (runs every 10 minutes to check for new tv show files).

I had localhost for the IP, but tried putting in the IP to see if that helped. SAB and SR are both running in a Docker on my unraid server, so the same host / machine. I do not know what you mean by Mount Point option, I don't recall ever seeing that. Should I try that?

See screenshot of the docker folder settings for SAB, where I define the actual directory locations. srdocker

clinton-hall commented 6 years ago

what do the docker folders look like for SR? SR should not run auto post processing. this should be disabled when using PP scripts.

PonyXpress commented 6 years ago

Ok, I turned off SR PP for now. I'm confused how that being on would impact the script, but we can test it.

I've attached a screenshot showing sr folders. srdockerfolders

PonyXpress commented 6 years ago

turning off sr PP did not change anything. The logs and the error are the same. The only difference is the shows are left in the "completed" tv folder, and not moved to where all my shows are. I guess the script does not make it to the place where it tells sr to retrieve the files and put them in my tv show folder.

akamitso commented 6 years ago

Hi. I'm experiencing the same issue. The script executes but fails to rename and move file to the right location. It just remains in the completed folder. I don't remember updating anything but all of a sudden started spitting out errors.

Has a solution been found?

clinton-hall commented 6 years ago

I just noticed that the directories in the dockers are not the same

in SAB

/downloads <-> /mnt/user/downloads/

in SR

/downloads <-> /mnt/user/downloads/complete/tv

to resolve this, both should be set /downloads <-> /mnt/user/downloads/ and then in SickRage, have this changed to scan /downloads/complete/tv and not /downloads

OR alternatively you could set autoProcessMedia.cfg

[Network]
    mount_points = /downloads/complete/tv/,/downloads/

if you also have CouchPotato etc, you may need to add another mount point for CP etc.

Please either change the docker mounts, or change the config as above... don't do both.

PonyXpress commented 6 years ago

Thanks Clinton! I will test and report back in a few days. Your help is much appreciated!

PonyXpress commented 6 years ago

Great news, everything is working again! I tried the cfg Network path option first, but that didn't help, same errors, even tried restarted everything to no avail. Therefore I put the cfg file back (removed the Network path stuff) and then I corrected the docker path for sr so it now points to the same folder as sab. I also made sure PP is off in sr. Everything is working great now - many thanks!

I do not have Auto update enabled in the AutoProcessMedia.cfg file. How often should I download the Nightly update? Or, with it working maybe I shouldn't touch it. :)

clinton-hall commented 6 years ago

Should be ok to update, I am trying to test things to stop it breaking. Each update should fix things or add new features. But, if it is working, there is no need to worry about the frequency of updates. Update if something seems to not be working, or if you see a new feature that you want.

PonyXpress commented 6 years ago

I might turn on auto update. Is it as simple as changing the 0 to 1, or do I need to fill in the branch, user, and path?

How will I know if an update happened and was successful?

[General]

Enable/Disable update notifications

version_notify = 1
# Enable/Disable automatic updates
auto_update = 0
# Set to the full path to the git executable
git_path =
# GitHUB user for repo
git_user =
# GitHUB branch for repo
git_branch =
clinton-hall commented 6 years ago

Yes, to update just set auto_update = 1

The logs will show that an update has been done, but it is not that obvious.

PonyXpress commented 5 years ago

Hello sir,

So it looks like SR is going to be downgraded soon and we have been instructed to migrate to sickchill.

What needs to happen to ensure nzbtomedia script works with SC? I don’t recall there being a SC section in the cfg file.

Here is the thread where this is being discussed. We could really use your advice and help.

Thank you,

Steve

clinton-hall commented 5 years ago

nzbToMedia is fully compatible with SC. The section is still [SickBeard] Just set fork = auto under the appropriate category.

This will work with either webUI user and pass entered OR with the api entered.

PonyXpress commented 5 years ago

awesome! Thank you sir!

clinton-hall commented 5 years ago

Just registered and posted over at unraid. Once Moderators approve hopefully this will help others.

PonyXpress commented 5 years ago

Hello Sir,

So it looks like nzbtomedia script was updated on 1/3/2019, and it has broke. sabnzbd calls for the script, but it never runs it. The nzbtomedia log shows my last run was right before the update on 1/3, so sab is not able to run the script.

My unraid setup has been solid for months now and I've made no changes at all.  I now see this error on the main sabnzbz webgui for each download,     /usr/bin/env: ‘python’: No such file or directory

I looked and the file downloads fine and extracts.  The tv show file is in the directory, yet the script errors out with 

Exit 127   /usr/bin/env: ‘python’: No such file or directory

No directory changes have been made. The script location is the same.

I see this in the sabnzbd log: 2019-01-06 09:48:17,168::INFO::[postproc:187] Completed Download Folder /downloads/complete is not on FAT

Not sure if that is normal or not, but I've made no changes to my drives, shares, or permissions.

Can you please roll the update back or fix this? Or do you have something you want me to try for you?

Here is a section of the sabnzbd log for a test download. Again, the nzbtomedia log shows nothing since 1/3/2019, so it's not running at all.

2019-01-06 09:09:23,460::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part04.rar yenc
2019-01-06 09:09:23,539::INFO::[database:272] Added job The.Big.Bang.Theory.S12E11.The.Paintball.Scattering.720p.AMZN.WEB-DL.DDP5.1.H.264-NTb to history
2019-01-06 09:09:23,540::INFO::[postproc:94] Saving postproc queue
2019-01-06 09:09:23,540::INFO::[downloader:301] Post-processing finished, resuming download
2019-01-06 09:09:24,351::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part05.rar yenc
2019-01-06 09:09:25,063::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part06.rar yenc
2019-01-06 09:09:25,579::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part07.rar yenc
2019-01-06 09:09:26,266::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part08.rar yenc
2019-01-06 09:09:27,054::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part09.rar yenc
2019-01-06 09:09:27,910::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part10.rar yenc
2019-01-06 09:09:28,938::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part11.rar yenc
2019-01-06 09:09:29,123::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part12.rar yenc
2019-01-06 09:09:30,052::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part13.rar yenc
2019-01-06 09:09:30,862::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part14.rar yenc
2019-01-06 09:09:31,164::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part15.rar yenc
2019-01-06 09:09:32,177::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part16.rar yenc
2019-01-06 09:09:32,806::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part17.rar yenc
2019-01-06 09:09:33,392::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part18.rar yenc
2019-01-06 09:09:34,442::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part19.rar yenc
2019-01-06 09:09:35,051::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part20.rar yenc
2019-01-06 09:09:35,609::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part21.rar yenc
2019-01-06 09:09:36,108::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part22.rar yenc
2019-01-06 09:09:37,131::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part23.rar yenc
2019-01-06 09:09:37,797::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part24.rar yenc
2019-01-06 09:09:38,348::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part25.rar yenc
2019-01-06 09:09:39,105::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part26.rar yenc
2019-01-06 09:09:40,002::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part27.rar yenc
2019-01-06 09:09:40,492::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part28.rar yenc
2019-01-06 09:09:41,200::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part29.rar yenc
2019-01-06 09:09:42,415::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part30.rar yenc
2019-01-06 09:09:42,756::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part31.rar yenc
2019-01-06 09:09:43,364::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part32.rar yenc
2019-01-06 09:09:44,571::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part33.rar yenc
2019-01-06 09:09:44,900::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part34.rar yenc
2019-01-06 09:09:46,307::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part36.rar yenc
2019-01-06 09:09:46,374::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part35.rar yenc
2019-01-06 09:09:47,117::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part37.rar yenc
2019-01-06 09:09:47,909::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part38.rar yenc
2019-01-06 09:09:48,306::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part39.rar yenc
2019-01-06 09:09:49,412::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part40.rar yenc
2019-01-06 09:09:49,800::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part41.rar yenc
2019-01-06 09:09:50,496::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part42.rar yenc
2019-01-06 09:09:51,248::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part43.rar yenc
2019-01-06 09:09:52,309::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part44.rar yenc
2019-01-06 09:09:52,459::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part45.rar yenc
2019-01-06 09:09:53,338::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part46.rar yenc
2019-01-06 09:09:54,564::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part47.rar yenc
2019-01-06 09:09:54,834::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E02.1080p.WEB.H264-AMCON/844a6e22c925429d86d8e0ecb0cb8a1e.par2 yenc
2019-01-06 09:09:54,846::INFO::[nzbstuff:1659] Checking all filenames for The.Blacklist.S06E02.1080p.WEB.H264-AMCON
2019-01-06 09:09:54,846::INFO::[nzbstuff:1662] Re-sorting The.Blacklist.S06E02.1080p.WEB.H264-AMCON after getting filename information
2019-01-06 09:09:54,890::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part48.rar yenc
2019-01-06 09:09:55,391::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part49.rar yenc
2019-01-06 09:09:56,359::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part50.rar yenc
2019-01-06 09:09:56,962::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part51.rar yenc
2019-01-06 09:09:57,208::INFO::[nzbqueue:782] [N/A] Ending job The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb
2019-01-06 09:09:57,210::INFO::[assembler:91] Decoding /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part52.rar yenc
2019-01-06 09:09:57,256::INFO::[nzbqueue:418] [N/A] Removed job The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb
2019-01-06 09:09:57,256::INFO::[nzbqueue:260] Saving queue
2019-01-06 09:09:57,257::INFO::[postproc:94] Saving postproc queue
2019-01-06 09:09:57,264::INFO::[postproc:340] Starting Post-Processing on The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb => Repair:True, Unpack:True, Delete:True, Script:nzbToSickBeard.py, Cat:tv
2019-01-06 09:09:57,264::INFO::[postproc:660] Starting verification and repair of The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb
2019-01-06 09:09:57,264::INFO::[__init__:920] [N/A] /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/__ADMIN__/__verified__ missing
2019-01-06 09:09:57,265::INFO::[postproc:675] Running verification and repair on set bc75f0dcf6be4c79a99244836da7b3c2
2019-01-06 09:09:57,266::INFO::[newsunpack:1107] Quick-check for bc75f0dcf6be4c79a99244836da7b3c2 is OK, skipping repair
2019-01-06 09:09:57,268::INFO::[postproc:716] Verification and repair finished for The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb
2019-01-06 09:09:57,271::INFO::[misc:993] Creating directories: /downloads/complete/tv/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb
2019-01-06 09:09:57,272::INFO::[postproc:381] Running unpack_magic on The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb
2019-01-06 09:09:57,282::INFO::[newsunpack:256] Unrar starting on /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb
2019-01-06 09:09:57,283::INFO::[newsunpack:516] Extracting rarfile /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.part01.rar (belonging to bc75f0dcf6be4c79a99244836da7b3c2) to /downloads/complete/tv/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb
2019-01-06 09:09:58,824::INFO::[newsunpack:828] Unpacked 1 files/folders in 1 sec
2019-01-06 09:09:58,875::INFO::[newsunpack:260] Unrar finished on /downloads/incomplete/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb
2019-01-06 09:09:58,917::INFO::[postproc:383] Unpacked files [u'/downloads/complete/tv/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb/bc75f0dcf6be4c79a99244836da7b3c2.mkv']
2019-01-06 09:09:58,917::INFO::[postproc:388] Finished unpack_magic on The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb
2019-01-06 09:09:58,919::INFO::[newsunpack:169] Running external script /nzbToMedia/nzbToSickBeard.py(/downloads/complete/tv/The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb, The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb.nzb, The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb, , tv, alt.binaries.misc, 0, )
2019-01-06 09:09:58,930::INFO::[postproc:558] Cleaning up The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb (keep_basic=False)
2019-01-06 09:09:58,930::INFO::[nzbstuff:1725] [N/A] Purging data for job The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb (keep_basic=False, del_files=False)
2019-01-06 09:09:59,291::INFO::[database:272] Added job The.Blacklist.S06E01.Dr.Hans.Koehler.720p.AMZN.WEBRip.DDP5.1.x264-NTb to history
2019-01-06 09:09:59,291::INFO::[postproc:94] Saving postproc queue
2019-01-06 09:09:59,291::INFO::[downloader:301] Post-processing finished, resuming download 

In the Completed folder, there is the directory for this show, and the actual show file is in the folder. The script does't find it.

Thanks!

Steve

clinton-hall commented 5 years ago

via terminal/ssh can you show the result of the following commands?

which python2
which python3
which python

I suspect we will need to create a symlink on your unraid system to allow Python to be called.

labrys commented 5 years ago

@clinton-hall Beat me to it :)

clinton-hall commented 5 years ago

@labrys it's about time I did something... considering how much you have done of late!

PonyXpress commented 5 years ago

Here you go.

    root@Tower:~# which python2
   which: no python2 in (.:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin)
   root@Tower:~# which python3
  /usr/bin/python3
  root@Tower:~# which python
  which: no python in (.:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin)
labrys commented 5 years ago

@PonyXpress It does not look like you have Python 2 installed in your path.

Since nzbToMedia now supports Python 3, you can symlink to the python3 executable.

To do so run the following: sudo ln -sf /usr/bin/python3 /usr/bin/python

clinton-hall commented 5 years ago

wow... ok.. no python2??? so this never should have worked. Also, I thought that SABnzbd by default always called .py scripts by calling Python2 first.

in anycase, as the scripts are now python3 compatible, the following should work:


ln -sf /usr/bin/python3 /usr/bin/python
clinton-hall commented 5 years ago

lol.... @labrys timing eh?

labrys commented 5 years ago

Lol.

@clinton-hall SAB calls it with sys.executable, and it currently has a Python 3 fork available (thats what I use).

Never mind it uses a function to detect a python executable

labrys commented 5 years ago

He probably has Python 2 installed, just not on the path.

labrys commented 5 years ago

@PonyXpress If you would like to use a different Python installed at another location you can run the following to find all python executables installed. This may take a while to run.

sudo find / -type f -name 'python*' -perm -a+x

PonyXpress commented 5 years ago

ok, I ran the "sudo ln -sf /usr/bin/python3 /usr/bin/python"

I just tried another dl and I still see the same error. Do I need to reboot or anything?

labrys commented 5 years ago

You shouldn't need to. Try which python and see what you get.

PonyXpress commented 5 years ago

I looked in my Nerdpack and did notice that python 2 was not installed. therefore I selected it to install.

I restarted sabnzbd and tried another dl and I still get the error

PonyXpress commented 5 years ago

Ok, here you go,

       root@Tower:~# which python
       /usr/bin/python
      root@Tower:~# which python2
      /usr/bin/python2
      root@Tower:~# which python3
     /usr/bin/python3
     root@Tower:~#
PonyXpress commented 5 years ago

Any ideas on how to resolve this?

Thank you sir!

labrys commented 5 years ago

Try changing the the first line of the script to read #!/usr/bin/env python2

PonyXpress commented 5 years ago

thanks! I've only edited the autoProcessMedia.cfg file in the past. Specifically, which file do I edit?

Won';t this get over-written when the next update is released?

labrys commented 5 years ago

@PonyXpress This is only temporary to try to identify the cause of your issue so we can implement a proper fix.

The file to edit would be based on what you have set up to run in SAB. For example nzbToSickBeard.py or nzbToMedia.py.

PonyXpress commented 5 years ago

I use the nzbToSickBeard.py in Sabnzbd.

Here is what my file looks like already, and I did not change it. So it looks like this file already had the line you wanted me to change.

        #!/usr/bin/env python2
        # coding=utf-8
        #

       #####################################################################
       ### NZBGET POST-PROCESSING SCRIPT                                          ###

       # Post-Process to SickBeard.
       #
       # This script sends the download to your automated media management servers.
       #
       # NOTE: This script requires Python to be installed on your system.

      ######################################################################
     ### OPTIONS                                                                ###

     ## General

      # Auto Update nzbToMedia (0, 1).
      #

Thanks!