question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sonarr not processing converted file

See original GitHub issue

Just got all setup and have my files converting properly now. But when the conversion finishes sonarr isnt moving the file to the proper place.

2017-07-06 20:22:42 - uTorrentPostProcess - INFO - uTorrent post processing started.
2017-07-06 20:22:42 - readSettings - INFO - C:\Python27\python.exe
2017-07-06 20:22:42 - readSettings - WARNING - Audio bitrate was invalid, defaulting to 256 per channel.
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('guess_idnumber = guessit.transfo.guess_idnumber:GuessIdnumber')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('guess_bonus_features = guessit.transfo.guess_bonus_features:GuessBonusFeatures')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('guess_date = guessit.transfo.guess_date:GuessDate')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('expected_title = guessit.transfo.expected_title:ExpectedTitle')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('expected_series = guessit.transfo.expected_series:ExpectedSeries')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('split_path_components = guessit.transfo.split_path_components:SplitPathComponents')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('guess_properties = guessit.transfo.guess_properties:GuessProperties')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('guess_release_group = guessit.transfo.guess_release_group:GuessReleaseGroup')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('split_explicit_groups = guessit.transfo.split_explicit_groups:SplitExplicitGroups')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('guess_episode_details = guessit.transfo.guess_episode_details:GuessEpisodeDetails')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('guess_episodes_rexps = guessit.transfo.guess_episodes_rexps:GuessEpisodesRexps')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('guess_weak_episodes_rexps = guessit.transfo.guess_weak_episodes_rexps:GuessWeakEpisodesRexps')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('guess_episode_info_from_position = guessit.transfo.guess_episode_info_from_position:GuessEpisodeInfoFromPosition')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('split_on_dash = guessit.transfo.split_on_dash:SplitOnDash')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('guess_movie_title_from_position = guessit.transfo.guess_movie_title_from_position:GuessMovieTitleFromPosition')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('guess_video_rexps = guessit.transfo.guess_video_rexps:GuessVideoRexps')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('guess_country = guessit.transfo.guess_country:GuessCountry')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('guess_language = guessit.transfo.guess_language:GuessLanguage')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('guess_website = guessit.transfo.guess_website:GuessWebsite')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('guess_year = guessit.transfo.guess_year:GuessYear')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('guess_filetype = guessit.transfo.guess_filetype:GuessFiletype')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('podnapisi = subliminal.providers.podnapisi:PodnapisiProvider')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('tvsubtitles = subliminal.providers.tvsubtitles:TVsubtitlesProvider')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('opensubtitles = subliminal.providers.opensubtitles:OpenSubtitlesProvider')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('addic7ed = subliminal.providers.addic7ed:Addic7edProvider')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('subscenter = subliminal.providers.subscenter:SubsCenterProvider')
2017-07-06 20:22:42 - stevedore.extension - DEBUG - found extension EntryPoint.parse('thesubdb = subliminal.providers.thesubdb:TheSubDBProvider')
2017-07-06 20:22:42 - uTorrentPostProcess - DEBUG - Path: Z:\Downloads\___TORRENTS___\sonarr.
2017-07-06 20:22:42 - uTorrentPostProcess - DEBUG - Label: sonarr.
2017-07-06 20:22:42 - uTorrentPostProcess - DEBUG - Categories: ['couchpotato', 'sickbeard', 'sonarr', 'radarr', 'sickrage', 'bypass'].
2017-07-06 20:22:42 - uTorrentPostProcess - DEBUG - Torrent hash: E66FC82D13691F0621D25B6C63C4EB38BE4BBDE5.
2017-07-06 20:22:42 - uTorrentPostProcess - DEBUG - Torrent name: Family.Guy.S15E20.HDTV.x264-SVA[eztv].mkv.
2017-07-06 20:22:42 - uTorrentPostProcess - DEBUG - WebUI is true.
2017-07-06 20:22:42 - uTorrentPostProcess - DEBUG - Request sent successfully - Before Function.
2017-07-06 20:22:42 - uTorrentPostProcess - DEBUG - Sending action stop to uTorrent
2017-07-06 20:22:42 - uTorrentPostProcess - INFO - Performing conversion
2017-07-06 20:22:42 - mkvtomp4 - DEBUG - Settings imported.
2017-07-06 20:22:42 - mkvtomp4 - DEBUG - Settings imported.
2017-07-06 20:22:42 - mkvtomp4 - DEBUG - Z:\Downloads\___TORRENTS___\sonarr\Family.Guy.S15E20.HDTV.x264-SVA[eztv].mkv is valid.
2017-07-06 20:22:42 - uTorrentPostProcess - INFO - Processing file Z:\Downloads\___TORRENTS___\sonarr\Family.Guy.S15E20.HDTV.x264-SVA[eztv].mkv.
2017-07-06 20:22:42 - mkvtomp4 - DEBUG - Process started.
2017-07-06 20:22:42 - mkvtomp4 - DEBUG - Z:\Downloads\___TORRENTS___\sonarr\Family.Guy.S15E20.HDTV.x264-SVA[eztv].mkv is valid.
2017-07-06 20:22:42 - mkvtomp4 - DEBUG - Z:\Downloads\___TORRENTS___\sonarr\Family.Guy.S15E20.HDTV.x264-SVA[eztv].mkv needs processing.
2017-07-06 20:22:42 - mkvtomp4 - INFO - Reading video stream.
2017-07-06 20:22:42 - mkvtomp4 - INFO - Video codec detected: h264.
2017-07-06 20:22:42 - mkvtomp4 - INFO - Pix Fmt: yuv420p.
2017-07-06 20:22:42 - mkvtomp4 - DEBUG - Video codec: copy.
2017-07-06 20:22:42 - mkvtomp4 - DEBUG - Video bitrate: 577.359.
2017-07-06 20:22:42 - mkvtomp4 - INFO - Reading audio streams.
2017-07-06 20:22:42 - mkvtomp4 - INFO - No audio streams detected in any appropriate language, relaxing restrictions so there will be some audio stream present.
2017-07-06 20:22:42 - mkvtomp4 - INFO - Audio detected for stream #1: aac [und].
2017-07-06 20:22:42 - mkvtomp4 - INFO - Creating audio stream 0 from source stream 1.
2017-07-06 20:22:42 - mkvtomp4 - DEBUG - Overriding default channel settings because iOS audio is enabled but the source is stereo [iOS-audio].
2017-07-06 20:22:42 - mkvtomp4 - DEBUG - Audio codec: copy.
2017-07-06 20:22:42 - mkvtomp4 - DEBUG - Channels: 2.
2017-07-06 20:22:42 - mkvtomp4 - DEBUG - Bitrate: 256.
2017-07-06 20:22:42 - mkvtomp4 - DEBUG - Language: und
2017-07-06 20:22:42 - mkvtomp4 - DEBUG - Filter: None
2017-07-06 20:22:42 - mkvtomp4 - INFO - Audio Track is number 1 setting disposition to default
2017-07-06 20:22:42 - mkvtomp4 - INFO - Reading subtitle streams.
2017-07-06 20:22:42 - mkvtomp4 - ERROR - No valid subtitle language specified, cannot download subtitles.
2017-07-06 20:22:42 - mkvtomp4 - INFO - {
    "preopts": [], 
    "subtitle": {}, 
    "format": "mp4", 
    "postopts": [
        "-threads", 
        "auto"
    ], 
    "video": {
        "map": 0, 
        "codec": "copy", 
        "bitrate": 577.359, 
        "level": null
    }, 
    "audio": {
        "0": {
            "map": 1, 
            "language": "und", 
            "channels": 2, 
            "codec": "copy", 
            "disposition": "default", 
            "bitrate": 256, 
            "filter": null
        }
    }
}
2017-07-06 20:22:42 - mkvtomp4 - INFO - Starting conversion.
2017-07-06 20:22:42 - mkvtomp4 - DEBUG - Input directory: Z:\Downloads\___TORRENTS___\sonarr.
2017-07-06 20:22:42 - mkvtomp4 - DEBUG - File name: Family.Guy.S15E20.HDTV.x264-SVA[eztv].
2017-07-06 20:22:42 - mkvtomp4 - DEBUG - Input extension: mkv.
2017-07-06 20:22:42 - mkvtomp4 - DEBUG - Output directory: Z:\Downloads\___TORRENTS___\sonarr\Family.Guy.S15E20.HDTV.x264-SVA[eztv].mkv-convert.
2017-07-06 20:22:42 - mkvtomp4 - DEBUG - Output file: Z:\Downloads\___TORRENTS___\sonarr\Family.Guy.S15E20.HDTV.x264-SVA[eztv].mkv-convert\Family.Guy.S15E20.HDTV.x264-SVA[eztv].mp4.
2017-07-06 20:22:43 - mkvtomp4 - INFO - Z:\Downloads\___TORRENTS___\sonarr\Family.Guy.S15E20.HDTV.x264-SVA[eztv].mkv-convert\Family.Guy.S15E20.HDTV.x264-SVA[eztv].mp4 created.
2017-07-06 20:22:43 - mkvtomp4 - DEBUG - Z:\Downloads\___TORRENTS___\sonarr\Family.Guy.S15E20.HDTV.x264-SVA[eztv].mkv-convert\Family.Guy.S15E20.HDTV.x264-SVA[eztv].mp4 created from Z:\Downloads\___TORRENTS___\sonarr\Family.Guy.S15E20.HDTV.x264-SVA[eztv].mkv successfully.
2017-07-06 20:22:43 - mkvtomp4 - DEBUG - Z:\Downloads\___TORRENTS___\sonarr\Family.Guy.S15E20.HDTV.x264-SVA[eztv].mkv-convert\Family.Guy.S15E20.HDTV.x264-SVA[eztv].mp4 is valid.
2017-07-06 20:22:43 - mkvtomp4 - DEBUG - Height: 404
2017-07-06 20:22:43 - mkvtomp4 - DEBUG - Width: 720
2017-07-06 20:22:43 - uTorrentPostProcess - INFO - Passing Z:\Downloads\___TORRENTS___\sonarr\Family.Guy.S15E20.HDTV.x264-SVA[eztv].mkv-convert directory to Sonarr.
2017-07-06 20:22:43 - autoprocess.sonarr - INFO - Sonarr notifier started.
2017-07-06 20:22:43 - autoprocess.sonarr - DEBUG - Sonarr host: localhost.
2017-07-06 20:22:43 - autoprocess.sonarr - DEBUG - Sonarr port: 8092.
2017-07-06 20:22:43 - autoprocess.sonarr - DEBUG - Sonarr webroot: .
2017-07-06 20:22:43 - autoprocess.sonarr - DEBUG - Sonarr apikey: SECRET.
2017-07-06 20:22:43 - autoprocess.sonarr - DEBUG - Sonarr protocol: http://.
2017-07-06 20:22:43 - autoprocess.sonarr - DEBUG - URL 'http://localhost:8092/api/command' with payload '{'path': 'Z:\\Downloads\\___TORRENTS___\\sonarr\\Family.Guy.S15E20.HDTV.x264-SVA[eztv].mkv-convert', 'name': 'downloadedepisodesscan'}.'
2017-07-06 20:22:43 - autoprocess.sonarr - INFO - Requesting Sonarr to scan directory 'Z:\Downloads\___TORRENTS___\sonarr\Family.Guy.S15E20.HDTV.x264-SVA[eztv].mkv-convert'.
2017-07-06 20:22:43 - autoprocess.sonarr - INFO - Sonarr response: queued.
2017-07-06 20:22:43 - uTorrentPostProcess - DEBUG - Request sent successfully - After Function.
2017-07-06 20:22:43 - uTorrentPostProcess - DEBUG - Sending action removedata to uTorrent
2017-07-06 20:22:43 - uTorrentPostProcess - ERROR - Unable to delete temporary directory
Traceback (most recent call last):
  File "C:\sickbeard_mp4_automator-master\uTorrentPostProcess.py", line 194, in <module>
    os.rmdir(delete_dir)
WindowsError: [Error 145] The directory is not empty: 'Z:\\Downloads\\___TORRENTS___\\sonarr\\Family.Guy.S15E20.HDTV.x264-SVA[eztv].mkv-convert'

I found this issue#336 But it says the problem was resolved.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
CarbonNeuroncommented, Dec 20, 2017

Huh, this is kinda odd. Radarr and sonarr now act as if the script does not even tell them to scan the new directory. I can post logs if someone would tell me how. I look in the logs on sonarr and it doesn’t say anything about a refresh.

0reactions
ozdrummerboycommented, Aug 12, 2017

Secondly, i have changed the output_directory to ‘MP4’ and ‘Dog’ to avoid Sonarr interpreting the directory as something else but both returned the same errors as previously reported -

17-8-12 10:26:09.2|Debug|Parser|Unable to parse MP4

17-8-12 10:36:05.3|Debug|Parser|Unable to parse Dog

Both logs attached. sonarr.debug(dog).txt sonarr.debug(MP4).txt

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sonarr not processing files upon download - Help & Support
Sonarr successfully grabs episode file from indexer and instructs SabNzb to download, however, when completed the file does not get moved into ...
Read more >
Sonar not processing/registering files once they are downloaded
The downloaded file will sit there. After a while Sonar will recognize that the show has not been downloaded and will send another...
Read more >
Sonarr Troubleshooting | WikiArr - Servarr
The best place to look when the application will not start after an update is to review the update logs and see if...
Read more >
Sonarr won't move downloaded files | TrueNAS Community
Hey guys, So just setup my first FreeNAS box and Sonarr/SABnzbd. Sonarr finds stuff, passes it to SAB and SAB downloads it and...
Read more >
The common Sonarr and SABnzbd problem - Forums - Unraid
SAB is downloading files properly, but sonarr is not moving or renaming them. I am aware the most common issue is that the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found