mdhiggins / sonarr-sma

Sonarr docker based on linuxserver/sonarr with SMA built in using python3
MIT License
37 stars 18 forks source link

Upgraded to latest version and no longer working:( #29

Closed Zeusy123 closed 2 years ago

Zeusy123 commented 2 years ago

Hi bro, got sonaarr and radarr to update to latest version using : docker build https://github.com/mdhiggins/sonarr-sma.git#build --build-arg ffmpeg_tag=4.4-ubuntu2004 sonarr, latest version finally and your script installed. Using all my working config files and autoprocess.ini files as before.

Sonarr working fine, but the mp4autoamtor sadly is not converting anymore and I cant figure out why, here is my error log and autoprocess.ini file

[Converter] ffmpeg = /usr/local/bin/ffmpeg ffprobe = /usr/local/bin/ffprobe threads = 0 hwaccels = dxva2, cuvid, qsv, d3d11va, vaapi hwaccel-decoders = h264_cuvid, mjpeg_cuvid, mpeg1_cuvid, mpeg2_cuvid, mpeg4_cuvid, vc1_cuvid, hevc_qsv, h264_qsv, hevc_vaapi, h264_vaapi hwdevices = vaapi:/dev/dri/renderD128 hwaccel-output-format = vaapi:vaapi output-directory = output-format = mp4 output-extension = mp4 temp-extension = xxx minimum-size = 10 ignored-extensions = nfo, dsstore copy-to = move-to = delete-original = True sort-streams = True process-same-extensions = True force-convert = True post-process = False wait-post-process = False detailed-progress = False preopts = postopts = bypass-if-copying-all = False opts-separator = , regex-directory-replace = [^\w-. ]

[Permissions] chmod = 0644 uid = -1 gid = -1

[Metadata] relocate-moov = True full-path-guess = True tag = True tag-language = eng download-artwork = Thumbnail sanitize-disposition = strip-metadata = False keep-titles = False

[Video] codec = h264, x264 max-bitrate = 4000 crf = 23 crf-profiles = 1280:23:4M:12M preset = veryfast codec-parameters = dynamic-parameters = False max-width = 1280 profile = main max-level = 3.1 pix-fmt = yuv420p filter = force-filter = False bitrate-ratio =

[HDR] pix-fmt = yuv420p space = bt2020nc transfer = smpte2084 primaries = bt2020 preset = codec-parameters = filter = force-filter = False codec = profile =

[Audio] codec = libfdk_aac languages = default-language = Eng first-stream-of-language = False allow-language-relax = True channel-bitrate = 64 max-bitrate = 0 max-channels = 6 prefer-more-channels = True default-more-channels = True filter = force-filter = True sample-rates = copy-original = False aac-adtstoasc = False ignore-truehd = mp4, m4v ignored-dispositions = True unique-dispositions = True sample-format = copy-original-before = False stream-codec-combinations =

[Universal Audio] codec = channel-bitrate = 64 first-stream-only = False move-after = False filter = force-filter = False

[Subtitle] codec = mov_text codec-image-based = languages = default-language = first-stream-of-language = False encoding = utf8 burn-subtitles = False burn-dispositions = embed-subs = True embed-image-subs = False embed-only-internal-subs = False filename-dispositions = forced ignore-embedded-subs = False ignored-dispositions = unique-dispositions = False attachment-codec = srt

[Sonarr] host = 127.0.0.1 port = 8989 apikey = ssl = False webroot = force-rename = False rescan = True block-reprocess = False

[Audio.ChannelFilters] 6-2 = pan=stereo|FL=0.5FC+0.707FL+0.707BL+0.5LFE|FR=0.5FC+0.707FR+0.707BR+0.5LFE

error log:

2021-11-03 10:39:31 - SonarrPostProcess - INFO - Sonarr extra script post processing started. 2021-11-03 10:39:31 - resources.readsettings - INFO - /usr/local/sma/venv/bin/python3 2021-11-03 10:39:31 - resources.readsettings - DEBUG - Loading default config file. 2021-11-03 10:39:31 - resources.readsettings - INFO - Loading config file /usr/local/sma/config/autoProcess.ini. 2021-11-03 10:39:31 - resources.readsettings - WARNING - Force-convert is true, so process-same-extensions is being overridden to true as well 2021-11-03 10:39:31 - SonarrPostProcess - DEBUG - environ({'sonarr_series_title': 'Last Week Tonight with John Oliver', 'XDG_CONFIG_HOME': '/config/.config', 'LANG': 'en_US.UTF-8', 'HOSTNAME': 'b2a58463d15a', 'sonarr_series_id': '1840', 'OLDPWD': '/run/s6/services/sonarr', 'sonarr_episodefile_sourcefolder': '/data/usenet/tvshows/Last.Week.Tonight.with.John.Oliver.S08E28.1080p.HEVC.x265-MeGusta', 'sonarr_episodefile_qualityversion': '1', 'sonarr_episodefile_quality': 'HDTV-1080p', 'sonarr_episodefile_releasegroup': 'MeGusta', 'sonarr_download_client': '', 'sonarr_episodefile_path': '/data/tvshows/Last Week Tonight with John Oliver (2014)/Season 8/Last.Week.Tonight.with.John.Oliver.S08E28.1080p.HEVC.x265-MeGusta.mkv', 'sonarr_episodefile_episodeids': '77394', 'sonarr_episodefile_scenename': 'Last.Week.Tonight.with.John.Oliver.S08E28.1080p.HEVC.x265-MeGusta', 'PUID': '1000', 'sonarr_episodefile_episodenumbers': '28', 'sonarr_series_path': '/data/tvshows/Last Week Tonight with John Oliver (2014)', 'sonarr_eventtype': 'Download', 'sonarr_episodefile_id': '78350', 'sonarr_episodefile_sourcepath': '/data/usenet/tvshows/Last.Week.Tonight.with.John.Oliver.S08E28.1080p.HEVC.x265-MeGusta/Last.Week.Tonight.with.John.Oliver.S08E28.1080p.HEVC.x265-MeGusta.mkv', 'sonarr_episodefile_episodeairdates': '2021-10-31', 'PGID': '1000', 'PWD': '/app/sonarr/bin', 'SMA_RS': 'Sonarr', 'HOME': '/root', 'sonarr_download_id': '', 'sonarr_series_type': 'Standard', 'sonarr_series_tvdbid': '278518', 'sonarr_series_tvmazeid': '263', 'No_Expand': 'true', 'sonarr_episodefile_episodecount': '1', 'sonarr_episodefile_seasonnumber': '8', 'TERM': 'xterm', 'sonarr_episodefile_episodetitles': 'Episode 237', 'No_SQLiteFunctions': 'true', 'No_PreLoadSQLite': 'true', 'SHLVL': '1', 'LANGUAGE': 'en_US.UTF-8', 'CWD': '/', 'sonarr_series_imdbid': 'tt3530232', 'sonarr_episodefile_episodeairdatesutc': '11/1/2021 3:00:00 AM', 'sonarr_episodefile_relativepath': 'Season 8/Last.Week.Tonight.with.John.Oliver.S08E28.1080p.HEVC.x265-MeGusta.mkv', 'SMA_PATH': '/usr/local/sma', 'SONARR_BRANCH': 'phantom-develop', 'XDG_DATA_HOME': '/config/.config/share', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SMA_UPDATE': 'false', 'No_SQLiteXmlConfigFile': 'true', 'sonarrisupgrade': 'False', '': '/usr/local/sma/venv/bin/python3'}) 2021-11-03 10:39:31 - SonarrPostProcess - DEBUG - Input file: /data/tvshows/Last Week Tonight with John Oliver (2014)/Season 8/Last.Week.Tonight.with.John.Oliver.S08E28.1080p.HEVC.x265-MeGusta.mkv. 2021-11-03 10:39:31 - SonarrPostProcess - DEBUG - Original name: Last.Week.Tonight.with.John.Oliver.S08E28.1080p.HEVC.x265-MeGusta. 2021-11-03 10:39:31 - SonarrPostProcess - DEBUG - TVDB ID: 278518. 2021-11-03 10:39:31 - SonarrPostProcess - DEBUG - Season: 8 episode: 28. 2021-11-03 10:39:31 - SonarrPostProcess - DEBUG - Sonarr series ID: 1840. 2021-11-03 10:39:31 - resources.mediaprocessor - DEBUG - Invalid source, no data returned. 2021-11-03 10:39:31 - resources.mediaprocessor - INFO - File /data/tvshows/Last Week Tonight with John Oliver (2014)/Season 8/Last.Week.Tonight.with.John.Oliver.S08E28.1080p.HEVC.x265-MeGusta.mkv is not valid 2021-11-03 10:39:31 - SonarrPostProcess - INFO - Processing returned False. 2021-11-03 10:39:31 - SonarrPostProcess - ERROR - Error processing file. Traceback (most recent call last): File "/usr/local/sma/postSonarr.py", line 307, in sys.exit(1) SystemExit: 1

mdhiggins commented 2 years ago

Try running ffprobe and see if it's giving a dependency error

Zeusy123 commented 2 years ago

btw your a fecking coding god:) but now im really confused...when i built this other ffmpeg worked fine, no dependency problems.

Now, when i check:

oot@b2a58463d15a:/# ffprobe ffprobe: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by ffprobe) ffprobe: /lib/x86_64-linux-gnu/libc.so.6: versionGLIBC_2.28' not found (required by /usr/local/lib/libavdevice.so.58) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libavfilter.so.7) ffprobe: /lib/x86_64-linux-gnu/libc.so.6: versionGLIBC_2.28' not found (required by /usr/local/lib/libavformat.so.58) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libavcodec.so.58) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libswresample.so.3) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libswscale.so.5) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libavutil.so.56) ffprobe: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28' not found (required by /usr/local/lib/libavutil.so.56) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libvmaf.so.1) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libass.so.9) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libvidstab.so.1.1) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libsrt.so.1) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libvpx.so.6) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libaom.so.0) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libfdk-aac.so.1) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libmp3lame.so.0) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libopenjp2.so.7) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libopus.so.0) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libvorbis.so.0) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libwebp.so.7) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libx264.so.148) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libx265.so.192) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libxvidcore.so.4) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libkvazaar.so.6) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libxml2.so.2) ffprobe: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libpng16.so.16) root@b2a58463d15a:/# ffmpeg ffmpeg: /lib/x86_64-linux-gnu/libc.so.6: versionGLIBC_2.28' not found (required by /usr/local/lib/libavdevice.so.58) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libavfilter.so.7) ffmpeg: /lib/x86_64-linux-gnu/libc.so.6: versionGLIBC_2.28' not found (required by /usr/local/lib/libavformat.so.58) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libavcodec.so.58) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libswresample.so.3) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libswscale.so.5) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libavutil.so.56) ffmpeg: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28' not found (required by /usr/local/lib/libavutil.so.56) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libvmaf.so.1) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libass.so.9) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libvidstab.so.1.1) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libsrt.so.1) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libvpx.so.6) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libaom.so.0) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libfdk-aac.so.1) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libmp3lame.so.0) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libopenjp2.so.7) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libopus.so.0) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libvorbis.so.0) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libwebp.so.7) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libx264.so.148) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libx265.so.192) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libxvidcore.so.4) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/local/lib/libkvazaar.so.6) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: versionGLIBC_2.29' not found (required by /usr/local/lib/libxml2.so.2) ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/libpng16.so.16) root@b2a58463d15a:/#

no idea why, how or wtf todo

Zeusy123 commented 2 years ago

ill try rebuilding image again with docker build https://github.com/mdhiggins/sonarr-sma.git#build --build-arg ffmpeg_tag=4.4-ubuntu2004 update: same as previous dependencys problem

mdhiggins commented 2 years ago

From inside of your sonarr container, try running

cat /etc/os-release

And let me know what version of ubuntu is your base image

Zeusy123 commented 2 years ago

root@b2a58463d15a:/# cat /etc/os-release NAME="Ubuntu" VERSION="18.04.6 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.6 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic root@b2a58463d15a:/#

mdhiggins commented 2 years ago
VERSION="18.04.6 LTS (Bionic Beaver)"

That's the problem, your Ubuntu versions don't match GLIBC_2.29 and GLIBC_2.28 are only in later version of Ubuntu (2004)

Change your FFMPEG tag to ffmpeg_tag=4.4-ubuntu1804 or switch to the develop branch of Sonarr which is on 2004

Honestly I thought the latest Sonarr build had been updated to 2004 so I'm surprised yours is still on 1804; are you still using the latest sonarr tag? Maybe I'm wrong and only the develop tag has moved on to 2004

mdhiggins commented 2 years ago
docker build https://github.com/mdhiggins/sonarr-sma.git#build --build-arg ffmpeg_tag=4.4-ubuntu1804

or

docker build https://github.com/mdhiggins/sonarr-sma.git#build --build-arg ffmpeg_tag=4.4-ubuntu2004 --build-arg sonarr_tag=develop
Zeusy123 commented 2 years ago

its offical.... i want your babies:)

Thankyou so much brother