Emby docker plugin constantly crashes

    • OMV 4.x
    • Emby docker plugin constantly crashes

      Hello,
      I've tried to install Emby via Docker but no matter what I do, the plugin crashes with a Segmentation Fault within 90 s. I've tried both embyserver:latest and embyserver:beta. My OMV server is up to date.

      I started a thread on the Emby forums but wasn't able to find a solution. Luke from Emby seemed interested in me trying to update libc (I believe my OMV server has libc 2.24

      I'm wondering if anyone else has had a similar issue and found a fix? Or perhaps has a suggestion that I can try?
      Files
    • sluggo wrote:

      I'm wondering if anyone else has had a similar issue and found a fix? Or perhaps has a suggestion that I can try?
      I'm running Emby in Docker with no issues, but I think yours maybe related to ffmpeg

      Here's the extract from your server at the reference to ffmpeg:

      Source Code

      1. Info MediaEncoder: FFMpeg: /bin/ffmpeg
      2. Info MediaEncoder: FFProbe: /bin/ffprobe
      3. Info MediaEncoder: Validating media encoder at /bin/ffmpeg
      4. Info MediaEncoder: Running /bin/ffmpeg -decoders
      5. ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
      6. built with gcc 6.3.0 (crosstool-NG crosstool-ng-1.23.0)
      7. configuration: --enable-cross-compile --cross-prefix=x86_64-pc-linux-gnu- --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-gcc --arch=x86_64 --prefix=/home/embybuilder/Buildbot/x64/ffmpeg-x64/staging --pkg-config=pkg-config --disable-doc --disable-ffplay --disable-xlib --enable-fontconfig --enable-gpl --enable-iconv --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libwebp --enable-libx264 --enable-libzvbi --enable-version3 --extra-libs='-ldl -lexpat -lfreetype -lfribidi -lfontconfig -liconv -logg -lpng -luuid -lvorbis -lz -lgmp -lhogweed -lnettle -laddns-samba4 -lasn1util-samba4 -lauthkrb5-samba4 -lCHARSET3-samba4 -lcliauth-samba4 -lcli-cldap-samba4 -lcli-ldap-common-samba4 -lcli-nbt-samba4 -lcli-smb-common-samba4 -lcom_err -lcommon-auth-samba4 -ldbwrap-samba4 -ldcerpc-binding -ldcerpc-samba-samba4 -lflag-mapping-samba4 -lgenrand-samba4 -lgensec-samba4 -lgse-samba4 -lgssapi_krb5 -llibcli-lsa3-samba4 -llibsmb-samba4 -linterfaces-samba4 -liov-buf-samba4 -lk5crypto -lkrb5 -lkrb5samba-samba4 -lkrb5support -lldb -lldbsamba-samba4 -lmessages-dgm-samba4 -lmessages-util-samba4 -lmsghdr-samba4 -lmsrpc3-samba4 -lndr -lndr-krb5pac -lndr-nbt -lndr-samba-samba4 -lndr-standard -lreplace-samba4 -lsamba-cluster-support-samba4 -lsamba-credentials -lsamba-debug-samba4 -lsamba-errors -lsamba-hostconfig -lsamba-modules-samba4 -lsamba-security-samba4 -lsamba-sockets-samba4 -lsamba-util -lsamba3-util-samba4 -lsamdb -lsamdb-common-samba4 -lsecrets3-samba4 -lserver-id-db-samba4 -lserver-role-samba4 -lsmbconf -lsmbd-shim-samba4 -lsmb-transport-samba4 -lsocket-blocking-samba4 -lsys-rw-samba4 -ltalloc -ltalloc-report-samba4 -ltdb -ltdb-wrap-samba4 -ltevent -ltevent-util -ltime-basic-samba4 -lutil-cmdline-samba4 -lutil-reg-samba4 -lutil-setid-samba4 -lutil-tdb-samba4 -lwbclient -lwinbind-client-samba4 -ldrm' --target-os=linux --enable-shared --disable-static --enable-gnutls --enable-libsmbclient --enable-cuda --enable-cuvid --enable-nvenc --enable-vaapi
      8. libavutil 56. 14.100 / 56. 14.100
      9. libavcodec 58. 18.100 / 58. 18.100
      10. libavformat 58. 12.100 / 58. 12.100
      11. libavdevice 58. 3.100 / 58. 3.100
      12. libavfilter 7. 16.100 / 7. 16.100
      13. libswscale 5. 1.100 / 5. 1.100
      14. libswresample 3. 1.100 / 3. 1.100
      15. libpostproc 55. 1.100 / 55. 1.100
      16. Info MediaEncoder: Decoder available: mpeg2video
      17. Info MediaEncoder: Decoder available: h264_cuvid
      18. Info MediaEncoder: Decoder available: hevc_cuvid
      19. Info MediaEncoder: Decoder available: mpeg2_cuvid
      20. Info MediaEncoder: Decoder available: mpeg4_cuvid
      21. Info MediaEncoder: Decoder available: vc1_cuvid
      22. Info MediaEncoder: Decoder available: vp8_cuvid
      23. Info MediaEncoder: Decoder available: vp9_cuvid
      24. Info MediaEncoder: Decoder available: ac3
      25. Info MediaEncoder: Decoder available: aac
      26. Info MediaEncoder: Decoder available: mp3
      27. Info MediaEncoder: Decoder available: h264
      28. Info MediaEncoder: Decoder available: hevc
      29. Info MediaEncoder: Running /bin/ffmpeg -encoders
      30. ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
      31. built with gcc 6.3.0 (crosstool-NG crosstool-ng-1.23.0)
      32. configuration: --enable-cross-compile --cross-prefix=x86_64-pc-linux-gnu- --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-gcc --arch=x86_64 --prefix=/home/embybuilder/Buildbot/x64/ffmpeg-x64/staging --pkg-config=pkg-config --disable-doc --disable-ffplay --disable-xlib --enable-fontconfig --enable-gpl --enable-iconv --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libwebp --enable-libx264 --enable-libzvbi --enable-version3 --extra-libs='-ldl -lexpat -lfreetype -lfribidi -lfontconfig -liconv -logg -lpng -luuid -lvorbis -lz -lgmp -lhogweed -lnettle -laddns-samba4 -lasn1util-samba4 -lauthkrb5-samba4 -lCHARSET3-samba4 -lcliauth-samba4 -lcli-cldap-samba4 -lcli-ldap-common-samba4 -lcli-nbt-samba4 -lcli-smb-common-samba4 -lcom_err -lcommon-auth-samba4 -ldbwrap-samba4 -ldcerpc-binding -ldcerpc-samba-samba4 -lflag-mapping-samba4 -lgenrand-samba4 -lgensec-samba4 -lgse-samba4 -lgssapi_krb5 -llibcli-lsa3-samba4 -llibsmb-samba4 -linterfaces-samba4 -liov-buf-samba4 -lk5crypto -lkrb5 -lkrb5samba-samba4 -lkrb5support -lldb -lldbsamba-samba4 -lmessages-dgm-samba4 -lmessages-util-samba4 -lmsghdr-samba4 -lmsrpc3-samba4 -lndr -lndr-krb5pac -lndr-nbt -lndr-samba-samba4 -lndr-standard -lreplace-samba4 -lsamba-cluster-support-samba4 -lsamba-credentials -lsamba-debug-samba4 -lsamba-errors -lsamba-hostconfig -lsamba-modules-samba4 -lsamba-security-samba4 -lsamba-sockets-samba4 -lsamba-util -lsamba3-util-samba4 -lsamdb -lsamdb-common-samba4 -lsecrets3-samba4 -lserver-id-db-samba4 -lserver-role-samba4 -lsmbconf -lsmbd-shim-samba4 -lsmb-transport-samba4 -lsocket-blocking-samba4 -lsys-rw-samba4 -ltalloc -ltalloc-report-samba4 -ltdb -ltdb-wrap-samba4 -ltevent -ltevent-util -ltime-basic-samba4 -lutil-cmdline-samba4 -lutil-reg-samba4 -lutil-setid-samba4 -lutil-tdb-samba4 -lwbclient -lwinbind-client-samba4 -ldrm' --target-os=linux --enable-shared --disable-static --enable-gnutls --enable-libsmbclient --enable-cuda --enable-cuvid --enable-nvenc --enable-vaapi
      33. libavutil 56. 14.100 / 56. 14.100
      34. libavcodec 58. 18.100 / 58. 18.100
      35. libavformat 58. 12.100 / 58. 12.100
      36. libavdevice 58. 3.100 / 58. 3.100
      37. libavfilter 7. 16.100 / 7. 16.100
      38. libswscale 5. 1.100 / 5. 1.100
      39. libswresample 3. 1.100 / 3. 1.100
      40. libpostproc 55. 1.100 / 55. 1.100
      41. Info MediaEncoder: Encoder available: libx264
      42. Info MediaEncoder: Encoder available: mpeg4
      43. Info MediaEncoder: Encoder available: msmpeg4
      44. Info MediaEncoder: Encoder available: aac
      45. Info MediaEncoder: Encoder available: libmp3lame
      46. Info MediaEncoder: Encoder available: libopus
      47. Info MediaEncoder: Encoder available: libvorbis
      48. Info MediaEncoder: Encoder available: srt
      49. Info MediaEncoder: Encoder available: h264_nvenc
      50. Info MediaEncoder: Encoder available: hevc_nvenc
      51. Info MediaEncoder: Encoder available: h264_vaapi
      52. Info MediaEncoder: Encoder available: hevc_vaapi
      53. Info MediaEncoder: Encoder available: h264_v4l2m2m
      54. Info MediaEncoder: Encoder available: libwebp
      55. Info MediaEncoder: Encoder available: ac3
      56. Info MediaEncoder: Running /bin/ffmpeg -protocols
      57. ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
      58. built with gcc 6.3.0 (crosstool-NG crosstool-ng-1.23.0)
      59. configuration: --enable-cross-compile --cross-prefix=x86_64-pc-linux-gnu- --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-gcc --arch=x86_64 --prefix=/home/embybuilder/Buildbot/x64/ffmpeg-x64/staging --pkg-config=pkg-config --disable-doc --disable-ffplay --disable-xlib --enable-fontconfig --enable-gpl --enable-iconv --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libwebp --enable-libx264 --enable-libzvbi --enable-version3 --extra-libs='-ldl -lexpat -lfreetype -lfribidi -lfontconfig -liconv -logg -lpng -luuid -lvorbis -lz -lgmp -lhogweed -lnettle -laddns-samba4 -lasn1util-samba4 -lauthkrb5-samba4 -lCHARSET3-samba4 -lcliauth-samba4 -lcli-cldap-samba4 -lcli-ldap-common-samba4 -lcli-nbt-samba4 -lcli-smb-common-samba4 -lcom_err -lcommon-auth-samba4 -ldbwrap-samba4 -ldcerpc-binding -ldcerpc-samba-samba4 -lflag-mapping-samba4 -lgenrand-samba4 -lgensec-samba4 -lgse-samba4 -lgssapi_krb5 -llibcli-lsa3-samba4 -llibsmb-samba4 -linterfaces-samba4 -liov-buf-samba4 -lk5crypto -lkrb5 -lkrb5samba-samba4 -lkrb5support -lldb -lldbsamba-samba4 -lmessages-dgm-samba4 -lmessages-util-samba4 -lmsghdr-samba4 -lmsrpc3-samba4 -lndr -lndr-krb5pac -lndr-nbt -lndr-samba-samba4 -lndr-standard -lreplace-samba4 -lsamba-cluster-support-samba4 -lsamba-credentials -lsamba-debug-samba4 -lsamba-errors -lsamba-hostconfig -lsamba-modules-samba4 -lsamba-security-samba4 -lsamba-sockets-samba4 -lsamba-util -lsamba3-util-samba4 -lsamdb -lsamdb-common-samba4 -lsecrets3-samba4 -lserver-id-db-samba4 -lserver-role-samba4 -lsmbconf -lsmbd-shim-samba4 -lsmb-transport-samba4 -lsocket-blocking-samba4 -lsys-rw-samba4 -ltalloc -ltalloc-report-samba4 -ltdb -ltdb-wrap-samba4 -ltevent -ltevent-util -ltime-basic-samba4 -lutil-cmdline-samba4 -lutil-reg-samba4 -lutil-setid-samba4 -lutil-tdb-samba4 -lwbclient -lwinbind-client-samba4 -ldrm' --target-os=linux --enable-shared --disable-static --enable-gnutls --enable-libsmbclient --enable-cuda --enable-cuvid --enable-nvenc --enable-vaapi
      60. libavutil 56. 14.100 / 56. 14.100
      61. libavcodec 58. 18.100 / 58. 18.100
      62. libavformat 58. 12.100 / 58. 12.100
      63. libavdevice 58. 3.100 / 58. 3.100
      64. libavfilter 7. 16.100 / 7. 16.100
      65. libswscale 5. 1.100 / 5. 1.100
      66. libswresample 3. 1.100 / 3. 1.100
      67. libpostproc 55. 1.100 / 55. 1.100
      68. Info MediaEncoder: Encoder validation complete
      69. Info MediaEncoder: ffmpeg supported protocols: async,cache,concat,crypto,data,ffrtmphttp,file,ftp,gopher,hls,http,httpproxy,https,mmsh,mmst,pipe,rtmp,rtmps,rtmpt,rtmpts,rtp,srtp,subfile,tcp,tls,udp,udplite,unix,smb
      Display All
    • This is output from my server log re ffmpeg

      Source Code

      1. 2018-08-05 09:31:52.473 Info MediaEncoder: FFMpeg: /bin/ffmpeg
      2. 2018-08-05 09:31:52.473 Info MediaEncoder: FFProbe: /bin/ffprobe
      3. 2018-08-05 09:31:52.473 Info MediaEncoder: Validating media encoder at /bin/ffmpeg
      4. 2018-08-05 09:31:52.478 Info MediaEncoder: Running /bin/ffmpeg -decoders
      5. 2018-08-05 09:31:53.630 Info MediaEncoder: Decoder available: mpeg2video
      6. 2018-08-05 09:31:53.634 Info MediaEncoder: Decoder available: h264_cuvid
      7. 2018-08-05 09:31:53.634 Info MediaEncoder: Decoder available: hevc_cuvid
      8. 2018-08-05 09:31:53.635 Info MediaEncoder: Decoder available: mpeg2_cuvid
      9. 2018-08-05 09:31:53.635 Info MediaEncoder: Decoder available: mpeg4_cuvid
      10. 2018-08-05 09:31:53.635 Info MediaEncoder: Decoder available: vc1_cuvid
      11. 2018-08-05 09:31:53.636 Info MediaEncoder: Decoder available: vp8_cuvid
      12. 2018-08-05 09:31:53.636 Info MediaEncoder: Decoder available: vp9_cuvid
      13. 2018-08-05 09:31:53.643 Info MediaEncoder: Decoder available: ac3
      14. 2018-08-05 09:31:53.644 Info MediaEncoder: Decoder available: aac
      15. 2018-08-05 09:31:53.645 Info MediaEncoder: Decoder available: mp3
      16. 2018-08-05 09:31:53.645 Info MediaEncoder: Decoder available: h264
      17. 2018-08-05 09:31:53.645 Info MediaEncoder: Decoder available: hevc
      18. 2018-08-05 09:31:53.655 Info MediaEncoder: Running /bin/ffmpeg -encoders
      19. 2018-08-05 09:31:53.740 Info MediaEncoder: Encoder available: libx264
      20. 2018-08-05 09:31:53.740 Info MediaEncoder: Encoder available: mpeg4
      21. 2018-08-05 09:31:53.740 Info MediaEncoder: Encoder available: msmpeg4
      22. 2018-08-05 09:31:53.741 Info MediaEncoder: Encoder available: aac
      23. 2018-08-05 09:31:53.742 Info MediaEncoder: Encoder available: libmp3lame
      24. 2018-08-05 09:31:53.742 Info MediaEncoder: Encoder available: libopus
      25. 2018-08-05 09:31:53.742 Info MediaEncoder: Encoder available: libvorbis
      26. 2018-08-05 09:31:53.743 Info MediaEncoder: Encoder available: srt
      27. 2018-08-05 09:31:53.743 Info MediaEncoder: Encoder available: h264_nvenc
      28. 2018-08-05 09:31:53.743 Info MediaEncoder: Encoder available: hevc_nvenc
      29. 2018-08-05 09:31:53.746 Info MediaEncoder: Encoder available: h264_vaapi
      30. 2018-08-05 09:31:53.746 Info MediaEncoder: Encoder available: hevc_vaapi
      31. 2018-08-05 09:31:53.746 Info MediaEncoder: Encoder available: h264_v4l2m2m
      32. 2018-08-05 09:31:53.746 Info MediaEncoder: Encoder available: libwebp
      33. 2018-08-05 09:31:53.746 Info MediaEncoder: Encoder available: ac3
      34. 2018-08-05 09:31:53.750 Info MediaEncoder: Running /bin/ffmpeg -protocols
      35. 2018-08-05 09:31:53.841 Info MediaEncoder: Encoder validation complete
      36. 2018-08-05 09:31:53.842 Info MediaEncoder: ffmpeg supported protocols: async,cache,concat,crypto,data,ffrtmphttp,file,ftp,gopher,hls,http,httpproxy,https,mmsh,mmst,pipe,rtmp,rtmps,rtmpt,rtmpts,rtp,srtp,subfile,tcp,tls,udp,udplite,unix,smb
      Display All
    • This is output of ffmpeg -version

      Source Code

      1. ffmpeg -version
      2. ffmpeg version 3.2.12-1~deb9u1 Copyright (c) 2000-2018 the FFmpeg developers
      3. built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
      4. configuration: --prefix=/usr --extra-version='1~deb9u1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
      5. libavutil 55. 34.101 / 55. 34.101
      6. libavcodec 57. 64.101 / 57. 64.101
      7. libavformat 57. 56.101 / 57. 56.101
      8. libavdevice 57. 1.100 / 57. 1.100
      9. libavfilter 6. 65.100 / 6. 65.100
      10. libavresample 3. 1. 0 / 3. 1. 0
      11. libswscale 4. 2.100 / 4. 2.100
      12. libswresample 2. 3.100 / 2. 3.100
      13. libpostproc 54. 1.100 / 54. 1.100
      Display All
      As you can see it's the same as what is being generated in your server log, apologies for the three posts but it wouldn't allow me to do it in one.

      You mention ldd on the Emby forum mine is identical to yours.
    • sluggo wrote:

      Did you do anything specific for ffmpeg? Does Emby itself try to install and configure ffmpeg?
      As far as I can remember no, previously you had to install ffmpeg and then point Emby to where it was installed, now I think it's installed by Emby, but saying that I get updates for ffmpeg via omv's gui.

      I previously installed Emby from cli and it worked, but having read about Docker I decided to give that a try, I started a thread here but I had followed a youtube video to install mine, I also didn't add the Volumes and Bind mounts to my media files within the container, I set those up within Emby.

      Further investigation I looked at the Emby Docker Log it's the same ffmpeg output as your Emby server log.

      My config for Emby Docker I created under /var/lib/ as per the video I followed.