{"action":"opened","issue":{"url":"https://api.github.com/repos/CouchPotato/CouchPotatoServer/issues/6889","repository_url":"https://api.github.com/repos/CouchPotato/CouchPotatoServer","labels_url":"https://api.github.com/repos/CouchPotato/CouchPotatoServer/issues/6889/labels{/name}","comments_url":"https://api.github.com/repos/CouchPotato/CouchPotatoServer/issues/6889/comments","events_url":"https://api.github.com/repos/CouchPotato/CouchPotatoServer/issues/6889/events","html_url":"https://github.com/CouchPotato/CouchPotatoServer/issues/6889","id":177655014,"number":6889,"title":"Unable to decode value \"OSerror\" (renamer) (Ubuntu Server 16.04.1 LTS)","user":{"login":"nucce1","id":5589510,"avatar_url":"https://avatars.githubusercontent.com/u/5589510?v=3","gravatar_id":"","url":"https://api.github.com/users/nucce1","html_url":"https://github.com/nucce1","followers_url":"https://api.github.com/users/nucce1/followers","following_url":"https://api.github.com/users/nucce1/following{/other_user}","gists_url":"https://api.github.com/users/nucce1/gists{/gist_id}","starred_url":"https://api.github.com/users/nucce1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nucce1/subscriptions","organizations_url":"https://api.github.com/users/nucce1/orgs","repos_url":"https://api.github.com/users/nucce1/repos","events_url":"https://api.github.com/users/nucce1/events{/privacy}","received_events_url":"https://api.github.com/users/nucce1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-18T14:30:28Z","updated_at":"2016-09-18T14:30:28Z","closed_at":null,"body":"### Steps to reproduce:\r\n1. Install Ubuntu server 16.04.1 LTS\r\n2. Install latest sabnzbd from github.\r\n3. Install latest nzbtomedia from github.\r\n4. Configure both above following documentation.\r\n5. Install Coachpotato.\r\n6. Configure Couchpotato renamer following this: https://github.com/clinton-hall/nzbToMedia/wiki/couchpotato\r\n7. Download anything thru sabnzbd, sabnzbd calling nzbToCouchPotato.py:\r\n```\r\n2016-09-18 09:52:16,909::INFO::[newsunpack:167] Running external script /home/nucce/.nzbtomedia/nzbToCouchPotato.py(/home/nucce/Downloads/Process/movie/AnyMovie.2016.1080p, AnyMovie.2016.1080p.nzb, AnyMovie.2016.1080p, , movie, alt.binaries.moovee, 0, )\r\n2016-09-18 09:52:25,303::INFO::[postproc:564] Cleaning up AnyMovie.2016.1080p (keep_basic=False)\r\n```\r\n8. After this everything looks fine according to the nzbtomedia.log: \r\n```\r\n2016-09-18 09:52:18 INFO    ::MAIN: nzbToMedia Version:2d770510a284fadc6b44628626f5769789086dbb Branch:master (Linux 4.4.0-36-generic)\r\n2016-09-18 09:52:18 DEBUG   ::MAIN: Connecting to deluge: http://localhost:58846\r\n2016-09-18 09:52:18 INFO    ::MAIN: #########################################################\r\n2016-09-18 09:52:18 INFO    ::MAIN: ## ..::[nzbToMedia.pyc]::.. ##\r\n2016-09-18 09:52:18 INFO    ::MAIN: #########################################################\r\n2016-09-18 09:52:18 DEBUG   ::MAIN: Options passed into nzbToMedia: ['/home/nucce/.nzbtomedia/nzbToCouchPotato.py', '/home/nucce/Downloads/Process/movie/AnyMovie.2016.1080p', 'AnyMovie.2016.1080p.nzb', 'AnyMovie.2016.1080p', '', 'movie', 'alt.binaries.moovee', '0']\r\n2016-09-18 09:52:18 INFO    ::MAIN: Script triggered from SABnzbd\r\n2016-09-18 09:52:18 DEBUG   ::MAIN: Searching for nzoid from SAbnzbd ...\r\n2016-09-18 09:52:18 DEBUG   ::MAIN: Found nzoid: SABnzbd_nzo_eDGQEy\r\n2016-09-18 09:52:18 DEBUG   ::MAIN: Adding NZB download info for directory /home/nucce/Downloads/Process/movie/AnyMovie.2016.1080p to database\r\n2016-09-18 09:52:18 INFO    ::MAIN: Auto-detected SECTION:CouchPotato\r\n2016-09-18 09:52:18 DEBUG   ::MAIN: Checking for archives to extract in directory: /home/nucce/Downloads/Process/movie/AnyMovie.2016.1080p\r\n2016-09-18 09:52:18 INFO    ::MAIN: Calling CouchPotato:movie to post-process:AnyMovie.2016.1080p.nzb\r\n2016-09-18 09:52:18 INFO    ::MAIN: Attemping imdbID lookup for AnyMovie.2016.1080p.nzb\r\n2016-09-18 09:52:18 INFO    ::MAIN: Searching folder and file names for imdbID ...\r\n2016-09-18 09:52:18 INFO    ::MAIN: Searching IMDB for imdbID ...\r\n2016-09-18 09:52:18 DEBUG   ::MAIN: Opening URL: http://www.omdbapi.com\r\n2016-09-18 09:52:18 WARNING ::MAIN: Unable to find a imdbID for AnyMovie.2016.1080p.nzb\r\n2016-09-18 09:52:18 DEBUG   ::MAIN: Opening URL: http://192.168.202.155:8082/api/81fc4438b3f3468697695ec3f150f904/media.list with PARAMS: {}\r\n2016-09-18 09:52:19 DEBUG   ::MAIN: calling command: /home/nucce/.nzbtomedia/FFmpeg/ffprobe -v quiet -print_format json -show_format -show_streams -show_error /home/nucce/.nzbtomedia/tests/test.mp4\r\n2016-09-18 09:52:19 INFO    ::TRANSCODER: Checking [AnyMovie.2016.1080p.mkv] for corruption, please stand by ...\r\n2016-09-18 09:52:19 DEBUG   ::MAIN: calling command: /home/nucce/.nzbtomedia/FFmpeg/ffprobe -v quiet -print_format json -show_format -show_streams -show_error /home/nucce/Downloads/Process/movie/AnyMovie.2016.1080p/AnyMovie.2016.1080p.mkv\r\n2016-09-18 09:52:19 INFO    ::TRANSCODER: SUCCESS: [AnyMovie.2016.1080p.mkv] has no corruption.\r\n2016-09-18 09:52:19 DEBUG   ::SUBTITLES: Attempting to download subtitles for /home/nucce/Downloads/Process/movie/AnyMovie.2016.1080p/AnyMovie.2016.1080p.mkv\r\n2016-09-18 09:52:21 DEBUG   ::COUCHPOTATO: Opening URL: http://192.168.202.155:8082/api/81fc4438b3f3468697695ec3f150f904/renamer.scan with PARAMS: {'download_id': u'SABnzbd_nzo_eDGQEy', 'media_folder': '/home/nucce/Downloads/Process/movie/AnyMovie.2016.1080p', 'downloader': 'sabnzbd'}\r\n2016-09-18 09:52:21 POSTPROCESS::COUCHPOTATO: Starting renamer scan for AnyMovie.2016.1080p.nzb\r\n2016-09-18 09:52:24 POSTPROCESS::COUCHPOTATO: SUCCESS: Finished renamer scan for folder /home/nucce/Downloads/Process/movie/AnyMovie.2016.1080p\r\n2016-09-18 09:52:24 POSTPROCESS::COUCHPOTATO: Checking for status change, please stand by ...\r\n2016-09-18 09:52:24 DEBUG   ::MAIN: Opening URL: http://192.168.202.155:8082/api/81fc4438b3f3468697695ec3f150f904/media.list with PARAMS: {}\r\n2016-09-18 09:52:24 POSTPROCESS::COUCHPOTATO: SUCCESS: Movie None has now been added to CouchPotato\r\n2016-09-18 09:52:24 INFO    ::CLEANDIR: Doing Forceful Clean of /home/nucce/Downloads/Process/movie/AnyMovie.2016.1080p\r\n2016-09-18 09:52:24 INFO    ::MAIN: Deleting /home/nucce/Downloads/Process/movie/AnyMovie.2016.1080p\r\n2016-09-18 09:52:25 INFO    ::MAIN: The /home/nucce/.nzbtomedia/nzbToCouchPotato.py script completed successfully.\r\n```\r\n9. But Coachpotato gets reports this errors and only the .sfv file ends up in the directory:\r\n```\r\n09-18 09:52:24 ERROR [ato.core.helpers.encoding] Unable to decode value \"OSError(1, 'Operatio...\" : Traceback (most recent call last):\r\n  File \"/home/nucce/.couchpotato/couchpotato/core/helpers/encoding.py\", line 43, in toUnicode\r\n    detected = detect(original)\r\n  File \"/home/nucce/.couchpotato/libs/chardet/__init__.py\", line 30, in detect\r\n    u.feed(aBuf)\r\n  File \"/home/nucce/.couchpotato/libs/chardet/universaldetector.py\", line 68, in feed\r\n    aLen = len(aBuf)\r\nTypeError: object of type 'exceptions.OSError' has no len()\r\n\r\n09-18 09:52:24 ERROR [hpotato.core.plugins.base] Unable to create folder \"/mnt/everything/Movies/AnyMovie Screener (2016)\": ERROR DECODING STRING\r\n09-18 09:52:24 INFO [tato.core.plugins.renamer] Copying \"/home/nucce/Downloads/Process/movie/AnyMovie.2016.1080p.WEBRip.x264-SKGTV/AnyMovie.2016.1080p.sfv\" to \"/mnt/everything/Movies/AnyMovie Screener (2016)/AnyMovie.2016.1080p.sfv\"\r\n09-18 09:52:24 ERROR [tato.core.plugins.renamer] Couldn't move file \"/home/nucce/Downloads/Process/movie/AnyMovie.2016.1080p.WEBRip.x264-SKGTV/AnyMovie.2016.1080p.sfv\" to \"/mnt/everything/Movies/AnyMovie Screener (2016)/AnyMovie.2016.1080p.sfv\": Traceback (most recent call last):\r\n  File \"/home/nucce/.couchpotato/couchpotato/core/plugins/renamer.py\", line 844, in moveFile\r\n    shutil.copy(old, dest)\r\n  File \"/usr/lib/python2.7/shutil.py\", line 120, in copy\r\n    copymode(src, dst)\r\n  File \"/usr/lib/python2.7/shutil.py\", line 91, in copymode\r\n    os.chmod(dst, mode)\r\nOSError: [Errno 1] Operation not allowed: '/mnt/everything/Movies/AnyMovie Screener (2016)/AnyMovie.2016.1080p.sfv'\r\n\r\n09-18 09:52:24 ERROR [tato.core.plugins.renamer] Failed renaming the file \"AnyMovie.2016.1080p.sfv\" : Traceback (most recent call last):\r\n  File \"/home/nucce/.couchpotato/couchpotato/core/plugins/renamer.py\", line 627, in scan\r\n    self.moveFile(src, dst, use_default = not is_torrent or self.fileIsAdded(src, group))\r\n  File \"/home/nucce/.couchpotato/couchpotato/core/plugins/renamer.py\", line 844, in moveFile\r\n    shutil.copy(old, dest)\r\n  File \"/usr/lib/python2.7/shutil.py\", line 120, in copy\r\n    copymode(src, dst)\r\n  File \"/usr/lib/python2.7/shutil.py\", line 91, in copymode\r\n    os.chmod(dst, mode)\r\nOSError: [Errno 1] Operation not allowed: '/mnt/everything/Movies/AnyMovie Screener (2016)/AnyMovie.2016.1080p.sfv'\r\n\r\n[ato.core.helpers.encoding] Unable to decode value \"OSError(1, 'Operatio...\" : Traceback (most recent call last):\r\n  File \"/home/nucce/.couchpotato/couchpotato/core/helpers/encoding.py\", line 43, in toUnicode\r\n    detected = detect(original)\r\n  File \"/home/nucce/.couchpotato/libs/chardet/__init__.py\", line 30, in detect\r\n    u.feed(aBuf)\r\n  File \"/home/nucce/.couchpotato/libs/chardet/universaldetector.py\", line 68, in feed\r\n    aLen = len(aBuf)\r\nTypeError: object of type 'exceptions.OSError' has no len()\r\n```\r\n\r\n### Information:\r\nMovie(s) I have this with: All\r\nQuality of the movie being searched: Tried all different types.\r\nProviders I use:\r\nVersion of CouchPotato: git:(CouchPotato:CouchPotatoServer master) 4a0999d9 (2016-09-06 11:53:22).\r\nRunning on: Ubuntu Server 16.04.1 LTS\r\n\r\n### Logs:\r\nAttached above.\r\n\r\nAny clue on what could be wrong?\r\n\r\nFull Regards"}}
{"actor":{"display_login":"nucce1"}}