mdhiggins / sonarr-sma

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

Conversion failing with error is not in a valid format #22

Closed izeen closed 3 years ago

izeen commented 3 years ago

Hello!

Thanks for providing this great script, been using it for ages. I've very recently run in to problems tho, files are failing to convert with error message(the only changes that i know of is updating the containers and the host OS):

021-02-28 11:41:01 - resources.mediaprocessor - DEBUG - Invalid source, no data returned.

and

2021-02-27 17:25:26 - resources.mediaprocessor - INFO - File .mkv is not valid
2021-02-27 17:25:26 - SonarrPostProcess - INFO - Processing returned False.
2021-02-27 17:25:26 - SonarrPostProcess - ERROR - Error processing file
Traceback (most recent call last):
  File "/usr/local/sma/postSonarr.py", line 231, in <module>
    sys.exit(1)
SystemExit: 1

Been trying to run it manually from inside the container, but im facing the same error message there:

Manual processor started.
Python 64-bit 3.6.9 (default, Jan 26 2021, 15:33:00) 
[GCC 8.4.0].
Guessit version: 3.3.1.
/usr/local/sma/venv/bin/python3
Loading config file /usr/local/sma/autoProcess.ini.
File XXX.mkv is not in a valid format

I saw in another thread recommending to run ffprobe -show_streams but when running that i get:

root@docker01:/usr/local/sma/config# 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: version `GLIBC_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: version `GLIBC_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: version `GLIBC_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: version `GLIBC_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: version `GLIBC_2.29' not found (required by /usr/local/lib/libass.so.9)
ffprobe: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_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: version `GLIBC_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: version `GLIBC_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: version `GLIBC_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: version `GLIBC_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: version `GLIBC_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.176)
ffprobe: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_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.4)
ffprobe: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_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)

This is my docker-compose file:

    version: "3"
    services:
      sonarr:
        container_name: sonarr
        build:
          context: https://github.com/mdhiggins/sonarr-sma.git#build
          args:
            - sonarr_tag=preview
            - ffmpeg_tag=4.2-vaapi
        network_mode: host
        environment:
          - PUID=1000
          - PGID=1000
          - TZ=Europe/Stockholm
          - UMASK_SET=022 #optional
          - SMA_UPDATE=true
        devices:
          - /dev/dri:/dev/dri  

I update the container with the following command: docker-compose build --pull --no-cache

Any pointers would be greatly appreciated, thanks in advance!

izeen commented 3 years ago

Did some more troubleshooting and seems there was a OS mismatch, i have historically used - ffmpeg_tag=4.2-vaapi this seems to default to Ubuntu 20.04 base, while linuxserver/sonarr uses 18.04. When i switched tag to 4.3-vaapi1804 and rebuilt everything is now working as expected again.

mdhiggins commented 3 years ago

I wouldn't think it would make a big difference using focal as the image where FFMPEG is compiled. Does 4.3-vaapi have the same issue (on 20.04)?

izeen commented 3 years ago

Yes i did try 4.3-vaapi tag aswell, same issue.

mdhiggins commented 3 years ago

Hopefully linuxserver will have a 20.04 image up soon, I can add a note to the readme to try and compile on the same ubuntu version

mdhiggins commented 3 years ago

When you try and run the binaries does it give you a particular error or just won't start

izeen commented 3 years ago

I think adding a note in the readme will suffice, thanks!

well i got the errors regarding GLIBC_2.29 and 2.28 not found when running ffprobe and ffmpeg manually inside the container.

mdhiggins commented 3 years ago

Updated readme