Closed blade316 closed 4 months ago
Update ***
I've also tried manually running 'TorrentToMedia.py' and when I do that it also fails. Log below:
2016-06-18 23:22:13 INFO ::MAIN: Loading config from [C:\PostProcessingScripts\nzbToMedia\autoProcessMedia.cfg]
2016-06-18 23:22:13 INFO ::ENVIRONMENT: TMP: C:\Users\xbmc\AppData\Local\Temp
2016-06-18 23:22:13 INFO ::ENVIRONMENT: COMPUTERNAME: MEDIAPC
2016-06-18 23:22:13 INFO ::ENVIRONMENT: USERDOMAIN: MEDIAPC
2016-06-18 23:22:13 INFO ::ENVIRONMENT: PSMODULEPATH: C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
2016-06-18 23:22:13 INFO ::ENVIRONMENT: COMMONPROGRAMFILES: C:\Program Files (x86)\Common Files
2016-06-18 23:22:13 INFO ::ENVIRONMENT: PROCESSOR_IDENTIFIER: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
2016-06-18 23:22:13 INFO ::ENVIRONMENT: PROGRAMFILES: C:\Program Files (x86)
2016-06-18 23:22:13 INFO ::ENVIRONMENT: PROCESSOR_REVISION: 2a07
2016-06-18 23:22:13 INFO ::ENVIRONMENT: PATH: C:\Program Files\Adaptec\maxView Storage Manager\ssl\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Adaptec\maxView Storage Manager\pegasus\bin;C:\Program Files\Adaptec\maxView Storage Manager\;C:\Program Files (x86)\Windows Resource Kits\Tools\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\cURL\bin;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\QuickTime\QTSystem\;C:\ProgramData\chocolatey\bin;C:\Program Files\FileBot\;C:\Program Files\Git\cmd;C:\Python27
2016-06-18 23:22:13 INFO ::ENVIRONMENT: SYSTEMROOT: C:\Windows
2016-06-18 23:22:13 INFO ::ENVIRONMENT: OPENSSL_BIN: C:\Program Files\Adaptec\maxView Storage Manager\\ssl\bin
2016-06-18 23:22:13 INFO ::ENVIRONMENT: OPENSSL_HOME: C:\Program Files\Adaptec\maxView Storage Manager\ssl
2016-06-18 23:22:13 INFO ::ENVIRONMENT: PROGRAMFILES(X86): C:\Program Files (x86)
2016-06-18 23:22:13 INFO ::ENVIRONMENT: MAXVIEW_INSTALLDIR: C:\Program Files\Adaptec\maxView Storage Manager\
2016-06-18 23:22:13 INFO ::ENVIRONMENT: TEMP: C:\Users\xbmc\AppData\Local\Temp
2016-06-18 23:22:13 INFO ::ENVIRONMENT: COMMONPROGRAMFILES(X86): C:\Program Files (x86)\Common Files
2016-06-18 23:22:13 INFO ::ENVIRONMENT: PROCESSOR_ARCHITECTURE: x86
2016-06-18 23:22:13 INFO ::ENVIRONMENT: CHOCOLATEYINSTALL: C:\ProgramData\chocolatey
2016-06-18 23:22:13 INFO ::ENVIRONMENT: ALLUSERSPROFILE: C:\ProgramData
2016-06-18 23:22:13 INFO ::ENVIRONMENT: PEGASUS_HOME: C:\Program Files\Adaptec\maxView Storage Manager\pegasus
2016-06-18 23:22:13 INFO ::ENVIRONMENT: LOCALAPPDATA: C:\Users\xbmc\AppData\Local
2016-06-18 23:22:13 INFO ::ENVIRONMENT: HOMEPATH: \Users\xbmc
2016-06-18 23:22:13 INFO ::ENVIRONMENT: USERDOMAIN_ROAMINGPROFILE: MEDIAPC
2016-06-18 23:22:13 INFO ::ENVIRONMENT: PROGRAMW6432: C:\Program Files
2016-06-18 23:22:13 INFO ::ENVIRONMENT: USERNAME: xbmc
2016-06-18 23:22:13 INFO ::ENVIRONMENT: LOGONSERVER: \\MEDIAPC
2016-06-18 23:22:13 INFO ::ENVIRONMENT: COMSPEC: C:\Windows\system32\cmd.exe
2016-06-18 23:22:13 INFO ::ENVIRONMENT: PROGRAMDATA: C:\ProgramData
2016-06-18 23:22:13 INFO ::ENVIRONMENT: PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
2016-06-18 23:22:13 INFO ::ENVIRONMENT: ASL.LOG: Destination=file
2016-06-18 23:22:13 INFO ::ENVIRONMENT: FP_NO_HOST_CHECK: NO
2016-06-18 23:22:13 INFO ::ENVIRONMENT: WINDIR: C:\Windows
2016-06-18 23:22:13 INFO ::ENVIRONMENT: APPDATA: C:\Users\xbmc\AppData\Roaming
2016-06-18 23:22:13 INFO ::ENVIRONMENT: HOMEDRIVE: C:
2016-06-18 23:22:13 INFO ::ENVIRONMENT: PEGASUS_ROOT: C:\Program Files\Adaptec\maxView Storage Manager\pegasus
2016-06-18 23:22:13 INFO ::ENVIRONMENT: SYSTEMDRIVE: C:
2016-06-18 23:22:13 INFO ::ENVIRONMENT: NUMBER_OF_PROCESSORS: 4
2016-06-18 23:22:13 INFO ::ENVIRONMENT: PROCESSOR_LEVEL: 6
2016-06-18 23:22:13 INFO ::ENVIRONMENT: PROCESSOR_ARCHITEW6432: AMD64
2016-06-18 23:22:13 INFO ::ENVIRONMENT: JRE_HOME: C:\Program Files\Adaptec\maxView Storage Manager\\jre
2016-06-18 23:22:13 INFO ::ENVIRONMENT: COMMONPROGRAMW6432: C:\Program Files\Common Files
2016-06-18 23:22:13 INFO ::ENVIRONMENT: OS: Windows_NT
2016-06-18 23:22:13 INFO ::ENVIRONMENT: PUBLIC: C:\Users\Public
2016-06-18 23:22:13 INFO ::ENVIRONMENT: USERPROFILE: C:\Users\xbmc
2016-06-18 23:22:13 INFO ::MAIN: Checking database structure...
2016-06-18 23:22:13 DEBUG ::MAIN: Checking Initial Schema database upgrade
2016-06-18 23:22:13 DB ::MAIN: nzbtomedia.db: SELECT 1 FROM sqlite_master WHERE name = ?; with args ('db_version',)
2016-06-18 23:22:13 DB ::MAIN: nzbtomedia.db: SELECT db_version FROM db_version
2016-06-18 23:22:13 DEBUG ::MAIN: InitialSchema upgrade not required
2016-06-18 23:22:13 DEBUG ::MAIN: Checking if we can use git commands: "C:\Program Files\Git\git-cmd.exe" version
2016-06-18 23:22:13 DEBUG ::MAIN: Executing "C:\Program Files\Git\git-cmd.exe" version with your shell in C:\PostProcessingScripts\nzbToMedia
2016-06-18 23:22:13 DEBUG ::MAIN: git output: 'version' is not recognized as an internal or external command,
operable program or batch file.
C:\PostProcessingScripts\nzbToMedia>
2016-06-18 23:22:13 DEBUG ::MAIN: "C:\Program Files\Git\git-cmd.exe" version : returned successful
2016-06-18 23:22:13 DEBUG ::MAIN: Using: "C:\Program Files\Git\git-cmd.exe"
2016-06-18 23:22:13 DEBUG ::MAIN: Executing "C:\Program Files\Git\git-cmd.exe" symbolic-ref -q HEAD with your shell in C:\PostProcessingScripts\nzbToMedia
2016-06-18 23:22:13 DEBUG ::MAIN: git output: 'symbolic-ref' is not recognized as an internal or external command,
operable program or batch file.
C:\PostProcessingScripts\nzbToMedia>
2016-06-18 23:22:13 DEBUG ::MAIN: "C:\Program Files\Git\git-cmd.exe" symbolic-ref -q HEAD : returned successful
2016-06-18 23:22:13 INFO ::MAIN: Checking if git needs an update
2016-06-18 23:22:13 DEBUG ::MAIN: Executing "C:\Program Files\Git\git-cmd.exe" rev-parse HEAD with your shell in C:\PostProcessingScripts\nzbToMedia
2016-06-18 23:22:14 DEBUG ::MAIN: git output: 'rev-parse' is not recognized as an internal or external command,
operable program or batch file.
C:\PostProcessingScripts\nzbToMedia>
2016-06-18 23:22:14 DEBUG ::MAIN: "C:\Program Files\Git\git-cmd.exe" rev-parse HEAD : returned successful
2016-06-18 23:22:14 ERROR ::MAIN: Output doesn't look like a hash, not using it
2016-06-18 23:22:14 ERROR ::MAIN: Unable to determine installed version via git, please check your logs!
2016-06-18 23:22:14 INFO ::MAIN: No update needed
2016-06-18 23:22:14 INFO ::MAIN: nzbToMedia Version:10.15 Branch:'symbolic-ref' is not recognized as an internal or external command,
operable program or batch file.
C:\PostProcessingScripts\nzbToMedia> (Windows 8)
2016-06-18 23:22:14 DEBUG ::MAIN: Connecting to utorrent: http://localhost:8000/gui/
2016-06-18 23:22:14 INFO ::MAIN: #########################################################
2016-06-18 23:22:14 INFO ::MAIN: ## ..::[TorrentToMedia.py]::.. ##
2016-06-18 23:22:14 INFO ::MAIN: #########################################################
2016-06-18 23:22:14 DEBUG ::MAIN: Options passed into TorrentToMedia: ['C:\\PostProcessingScripts\\nzbToMedia\\TorrentToMedia.py']
2016-06-18 23:22:14 WARNING ::MAIN: Invalid number of arguments received from client, Switching to manual run mode ...
2016-06-18 23:22:14 INFO ::MAIN: Searching D:\Downloads\Completed\Movies for mediafiles to post-process ...
2016-06-18 23:22:14 INFO ::MAIN: Starting manual run for CouchPotato:movies - Folder:D:\Downloads\Completed\Movies\Death.Becomes.Her.1992.720p.BluRay.X264-AMIABLE [PublicHD]
2016-06-18 23:22:14 INFO ::MAIN: Checking database for download info for Death.Becomes.Her.1992.720p.BluRay.X264-AMIABLE [PublicHD] ...
2016-06-18 23:22:14 DB ::DB: Getting download info for Death.Becomes.Her.1992.720p.BluRay.X264-AMIABLE [PublicHD] from the DB
2016-06-18 23:22:14 DB ::MAIN: nzbtomedia.db: SELECT * FROM downloads WHERE input_name=? AND status=? with args [u'Death.Becomes.Her.1992.720p.BluRay.X264-AMIABLE [PublicHD]', 0]
2016-06-18 23:22:14 INFO ::MAIN: Found download info for Death.Becomes.Her.1992.720p.BluRay.X264-AMIABLE [PublicHD], setting variables now ...
Doesn't go past that last line ....
I've also tried manually running 'nzbToCouchpotato.py' for my torrents as both my completed NZB's and completed torrents both go to the same folder to wait for processing. Logs below:
C:\PostProcessingScripts\nzbToMedia> (Windows 8)
2016-06-18 23:26:23 DEBUG ::MAIN: Connecting to utorrent: http://localhost:8000/gui/
2016-06-18 23:26:23 INFO ::MAIN: #########################################################
2016-06-18 23:26:23 INFO ::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
2016-06-18 23:26:23 INFO ::MAIN: #########################################################
2016-06-18 23:26:23 DEBUG ::MAIN: Options passed into nzbToMedia: ['C:\\PostProcessingScripts\\nzbToMedia\\nzbToCouchPotato.py']
2016-06-18 23:26:23 WARNING ::MAIN: Invalid number of arguments received from client, Switching to manual run mode ...
2016-06-18 23:26:23 INFO ::MAIN: Searching D:\Downloads\Completed\Movies for mediafiles to post-process ...
2016-06-18 23:26:23 INFO ::MAIN: Starting manual run for CouchPotato:movies - Folder:D:\Downloads\Completed\Movies\Death.Becomes.Her.1992.720p.BluRay.X264-AMIABLE [PublicHD]
2016-06-18 23:26:23 INFO ::MAIN: Checking database for download info for Death.Becomes.Her.1992.720p.BluRay.X264-AMIABLE [PublicHD] ...
2016-06-18 23:26:23 DB ::DB: Getting download info for Death.Becomes.Her.1992.720p.BluRay.X264-AMIABLE [PublicHD] from the DB
2016-06-18 23:26:23 DB ::MAIN: nzbtomedia.db: SELECT * FROM downloads WHERE input_name=? AND status=? with args [u'Death.Becomes.Her.1992.720p.BluRay.X264-AMIABLE [PublicHD]', 0]
2016-06-18 23:26:23 INFO ::MAIN: Found download info for Death.Becomes.Her.1992.720p.BluRay.X264-AMIABLE [PublicHD], setting variables now ...
Again, doesn't get past that last line ....
also tried manually running 'nzbToMedia.py', logs below:
C:\PostProcessingScripts\nzbToMedia> (Windows 8)
2016-06-18 23:29:07 DEBUG ::MAIN: Connecting to utorrent: http://localhost:8000/gui/
2016-06-18 23:29:07 INFO ::MAIN: #########################################################
2016-06-18 23:29:07 INFO ::MAIN: ## ..::[nzbToMedia.py]::.. ##
2016-06-18 23:29:07 INFO ::MAIN: #########################################################
2016-06-18 23:29:07 DEBUG ::MAIN: Options passed into nzbToMedia: ['C:\\PostProcessingScripts\\nzbToMedia\\nzbToMedia.py']
2016-06-18 23:29:07 WARNING ::MAIN: Invalid number of arguments received from client, Switching to manual run mode ...
2016-06-18 23:29:07 INFO ::MAIN: Searching D:\Downloads\Completed\Movies for mediafiles to post-process ...
2016-06-18 23:29:07 INFO ::MAIN: Starting manual run for CouchPotato:movies - Folder:D:\Downloads\Completed\Movies\Death.Becomes.Her.1992.720p.BluRay.X264-AMIABLE [PublicHD]
2016-06-18 23:29:07 INFO ::MAIN: Checking database for download info for Death.Becomes.Her.1992.720p.BluRay.X264-AMIABLE [PublicHD] ...
2016-06-18 23:29:07 DB ::DB: Getting download info for Death.Becomes.Her.1992.720p.BluRay.X264-AMIABLE [PublicHD] from the DB
2016-06-18 23:29:07 DB ::MAIN: nzbtomedia.db: SELECT * FROM downloads WHERE input_name=? AND status=? with args [u'Death.Becomes.Her.1992.720p.BluRay.X264-AMIABLE [PublicHD]', 0]
2016-06-18 23:29:07 INFO ::MAIN: Found download info for Death.Becomes.Her.1992.720p.BluRay.X264-AMIABLE [PublicHD], setting variables now ...
again stops at the same spot...
I just don't understand why 'nzbToCouchPotato.py' when run from SABnzbd works flawlessly.
However 'TorrentToMedia.py' hardly even gets started even though its reading the movie folders out of the same folder - 'D:\Downloads\Completed\Movies' .....
PULLS HAIR OUT ;)
@clinton-hall any initial ideas on this one? .... I was originally thinking it might have been because I'm running my D: drive using Storage Spaces on ReFS, however that cant be it as the nzbToCouchPotato.py runs fine with SABnzbd which is saving to the same D: drive.
@blade316 This may be related to issue #1071 and may be fixed by PR #1074 which has been merged to nightly. Please let me know if this fixes your issue.
@labrys OK no worries I will update to the latest nightly when I get home, and I'll let you know
Hey guys,
Hopefully you can help me, I've just set up nzbToMedia, NZB's using SABnzbd and Couchpotato are fine, however I cant get uTorrent to successfully post process, heres my set up:
Windows 8.1 64bit Plex, Couchpotato and uTorrent are all on the same machine I have 8 HDD's in JBOD using storage spaces running ReFS The Storage Volume is D: drive
Post Processing Folder = "C:\PostProcessingScripts\nzbToMedia\"
Plex Config Movies Folder = "D:\Movies" TV Folder = "D:\TV" Music Folder = "D:\Music"
CouchPotato Config Version = 3.0.1 ID = 3232 NZB Downloader = SABnzbd NZB Label = movies Torrent Downloader = uTorrent Torrent label = movies Remove the torrent from uTorrent after it finished seeding = enabled Also remove the leftover files = enabled Delete a release after the download has failed = enabled Folder where CP searches for movies = "D:\Downloads\Completed\Movies" Default folder where the movies are moved/copied/linked to = "D:\Movies"
uTorrent Config version = 3.4.2 Build 37754 WebUI = enabled Append torrent label = enabled Put new downloads in = "D:\Downloads\Clients\uTorrent\Incomplete" Move completed downloads to = "D:\Downloads\Completed" Automatically load torrents from = "D:\Downloads\Clients\uTorrent\blackhole" (not that i use it) Run this program when a torrent changes state C:\PostProcessingScripts\nzbToMedia\TorrentToMedia.py "%D" "%N" "%L" "%I"
Problem: Once the torrent finishes downloading and changes state, the TorrentToMedia.py runs, and looks like its pulling all the correct arguments through, however it never gets passed:
::MAIN: Auto-detected SECTION:CouchPotato
autoProcessMedia.cfg
Post Processing Log below: