Jump to content

FreeNAS Jail Shared object "libx265.so.179" not found


kellerstern

Recommended Posts

kellerstern

Hi,

 

I've been running emby server in FreeBSD / FreeNAS jail for like a year now.

Recently I migrated to new hardware and I and when I tried to restore my backup (premiere: check) I have had problems with my library. That's just some background info.

 

Right now I'm running FreeNAS 11.2U6 with FreeBSD jail 11.2.

I created a new jail with some mounts for my files. I installed emby server via this howto: https://emby.media/freebsd-server.html

 

On every video I try to start I get the error that there's no stream available.

When I look into the logs I can see this erros:

2019-11-02 18:56:05.585 Info MediaProbeManager: ProcessRun 'ffprobe' Execute: /usr/local/lib/emby-server/bin/ffprobe -i file:"/mnt/film/Aeon Flux (2005).mkv" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data
2019-11-02 18:56:05.591 Info MediaProbeManager: ProcessRun 'ffprobe' Started.
2019-11-02 18:56:05.862 Info MediaProbeManager: ProcessRun 'ffprobe' Process exited with code 1
2019-11-02 18:56:05.863 Error App: Error in ffprobe
        *** Error Report ***
        Version: 4.3.0.18
        Command line: /usr/local/lib/emby-server/system/EmbyServer.exe -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server -updatepackage emby-server-freebsd11_{version}_am
d64.txz
        Operating system: Unix 11.2.0.0
        64-Bit OS: True
        64-Bit Process: True
        User Interactive: False
        Mono: 5.10.1.57 (5.10.1.57 Thu Oct  3 09:51:42 UTC 2019)
        Runtime: file:///usr/local/lib/mono/4.5/mscorlib.dll
        Processor count: 16
        Program data path: /var/db/emby-server
        Application directory: /usr/local/lib/emby-server/system
        System.Exception: System.Exception: Error running ffprobe for file:"/mnt/film/Aeon Flux (2005).mkv" - Shared object "libx265.so.179" not found, required by "libavcodec.so.58"
        
        
          at Emby.Server.MediaEncoding.Probing.MediaProbeManager+<GetMediaInfoInternal>d__9.MoveNext () [0x00160] in <3a4ae43146d943f480865dfc18370f80>:0
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0
          at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo+<ProbeVideo>d__13`1[T].MoveNext () [0x001e6] in <91480527c99b423795eb8d86c2c62547>:0
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0
          at MediaBrowser.Providers.Manager.MetadataService`2+<RunCustomProvider>d__38[TItemType,TIdType].MoveNext () [0x000d9] in <91480527c99b423795eb8d86c2c62547>:0
        Source: mscorlib
        TargetSite: Void Throw()
        
2019-11-02 18:56:05.863 Error App: Error in Nfo
        *** Error Report ***
        Version: 4.3.0.18
        Command line: /usr/local/lib/emby-server/system/EmbyServer.exe -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server -updatepackage emby-server-freebsd11_{version}_amd64.txz
        Operating system: Unix 11.2.0.0
        64-Bit OS: True
        64-Bit Process: True
        User Interactive: False
        Mono: 5.10.1.57 (5.10.1.57 Thu Oct  3 09:51:42 UTC 2019)
        Runtime: file:///usr/local/lib/mono/4.5/mscorlib.dll
        Processor count: 16
        Program data path: /var/db/emby-server
        Application directory: /usr/local/lib/emby-server/system
        System.TypeLoadException: System.TypeLoadException: Could not resolve type with token 01000044 (from typeref, class/assembly MediaBrowser.Controller.Entities.IHasAspectRatio, MediaBrowser.Controller, Version=4.2.0.16, Culture=neutral, PublicKeyToken=null)
          at NfoMetadata.Parsers.MovieNfoParser.FetchDataFromXmlNode (System.Xml.XmlReader reader, MediaBrowser.Controller.Providers.MetadataResult`1[T] itemResult) [0x001db] in <62c42c945d054a7ab6e34689673bbcd8>:0
          at NfoMetadata.Parsers.BaseNfoParser`1[T].Fetch (MediaBrowser.Controller.Providers.MetadataResult`1[T] item, System.String metadataFile, System.Xml.XmlReaderSettings settings, System.Threading.CancellationToken cancellationToken) [0x00160] in <62c42c945d054a7ab6e34689673bbcd8>:0
          at NfoMetadata.Parsers.BaseNfoParser`1[T].Fetch (MediaBrowser.Controller.Providers.MetadataResult`1[T] item, System.String metadataFile, System.Threading.CancellationToken cancellationToken) [0x000f9] in <62c42c945d054a7ab6e34689673bbcd8>:0
          at NfoMetadata.Providers.BaseVideoNfoProvider`1[T].Fetch (MediaBrowser.Controller.Providers.MetadataResult`1[T] result, System.String path, System.Threading.CancellationToken cancellationToken) [0x00034] in <62c42c945d054a7ab6e34689673bbcd8>:0
          at NfoMetadata.Providers.BaseNfoProvider`1[T].GetMetadata (MediaBrowser.Controller.Providers.ItemInfo info, MediaBrowser.Controller.Providers.IDirectoryService directoryService, System.Threading.CancellationToken cancellationToken) [0x0002b] in <62c42c945d054a7ab6e34689673bbcd8>:0
          at MediaBrowser.Providers.Manager.MetadataService`2+<RefreshWithProviders>d__36[TItemType,TIdType].MoveNext () [0x00381] in <91480527c99b423795eb8d86c2c62547>:0
        Source: NfoMetadata
        TargetSite: Void FetchDataFromXmlNode(System.Xml.XmlReader, MediaBrowser.Controller.Providers.MetadataResult`1[MediaBrowser.Controller.Entities.Video])
        2019-11-02 18:56:05.923 Error ProviderManager: Error in metadata saver
        *** Error Report ***
        Version: 4.3.0.18
        Command line: /usr/local/lib/emby-server/system/EmbyServer.exe -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server -updatepackage emby-server-freebsd11_{version}_amd64.txz
        Operating system: Unix 11.2.0.0
        64-Bit OS: True
        64-Bit Process: True
        User Interactive: False
        Mono: 5.10.1.57 (5.10.1.57 Thu Oct  3 09:51:42 UTC 2019)
        Runtime: file:///usr/local/lib/mono/4.5/mscorlib.dll
        Processor count: 16
        Program data path: /var/db/emby-server
        Application directory: /usr/local/lib/emby-server/system
        System.TypeLoadException: System.TypeLoadException: Could not resolve type with token 01000044 (from typeref, class/assembly MediaBrowser.Controller.Entities.IHasAspectRatio, MediaBrowser.Controller, Version=4.2.0.16, Culture=neutral, PublicKeyToken=null)
          at NfoMetadata.Savers.BaseNfoSaver.Save (MediaBrowser.Controller.Entities.BaseItem item, System.IO.Stream stream, System.String xmlPath) [0x00063] in <62c42c945d054a7ab6e34689673bbcd8>:0
          at NfoMetadata.Savers.BaseNfoSaver.Save (MediaBrowser.Controller.Entities.BaseItem item, System.Threading.CancellationToken cancellationToken) [0x0000e] in <62c42c945d054a7ab6e34689673bbcd8>:0
          at MediaBrowser.Providers.Manager.ProviderManager.SaveMetadata (MediaBrowser.Controller.Entities.BaseItem item, MediaBrowser.Model.Configuration.LibraryOptions libraryOptions, MediaBrowser.Controller.Library.ItemUpdateType updateType, MediaBrowser.Controller.Library.IMetadataSaver[] savers, System.Threading.CancellationToken cancellationToken) [0x0004a] in <91480527c99b423795eb8d86c2c62547>:0
        Source: NfoMetadata
        TargetSite: Void Save(MediaBrowser.Controller.Entities.BaseItem, System.IO.Stream, System.String)


When I install emby-server 4.2.x from default FreeBSD pkg repos it works but with some other flaws which is why I would like to actually use the most recent version.

I've search for people who have the same errors but those used older versions like 3.x where the installation procedure was quite different back then.

 

This is ffmpeg output. ffmpeg wasn't installed after I followed the original instructions though:

root@emby:/var/db/emby-server/logs # ffmpeg
ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM 6.0.0)
  configuration: --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --pkgconfigdir=/usr/local/libdata/pkgconfig --enable-shared --enable-pic --enable-gpl --enable-avresample --cc=cc --disable-alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --enable-libaom --disable-libaribb24 --disable-libass --disable-libbs2b --disable-libcaca --disable-libcdio --disable-libcelt --disable-libcodec2 --enable-libdav1d --disable-libdavs2 --disable-libdc1394 --disable-debug --enable-htmlpages --disable-libdrm --disable-libfdk-aac --disable-libflite --enable-fontconfig --enable-libfreetype --enable-frei0r --disable-libfribidi --disable-gcrypt --disable-libgme --enable-gmp --enable-gnutls --enable-version3 --disable-libgsm --enable-iconv --disable-libilbc --disable-libjack --disable-libklvanc --disable-libkvazaar --disable-ladspa --disable-libmp3lame --disable-liblensfun --disable-libbluray --disable-librsvg --disable-librtmp --disable-libxml2 --disable-lv2 --disable-mbedtls --enable-mmx --disable-libmodplug --disable-libmysofa --disable-nonfree --disable-openal --disable-opencl --enable-libopencv --disable-opengl --disable-libopenh264 --disable-libopenjpeg --disable-libopenmpt --disable-openssl --enable-optimizations --enable-libopus --disable-pocketsphinx --disable-libpulse --enable-runtime-cpudetect --disable-librubberband --disable-sdl2 --disable-libsmbclient --disable-libsnappy --disable-sndio --disable-libsoxr --disable-libspeex --disable-libsrt --enable-sse --disable-libssh --disable-libtensorflow --disable-libtesseract --enable-libtheora --disable-libtwolame --enable-libv4l2 --enable-vaapi --disable-vapoursynth --enable-vdpau --disable-libvidstab --enable-libvorbis --disable-libvo-amrwbenc --enable-libvpx --disable-libwavpack --disable-libwebp --enable-libx264 --enable-libx265 --disable-libxavs2 --enable-libxcb --enable-libxvid --disable-outdev=xv --disable-libzimg --disable-libzmq --disable-libzvbi
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Edited by kellerstern
Link to comment
Share on other sites

kellerstern

Thanks for the hint. Since I went from quaterly to latest it's working again.

Can you add this to the howto. For FreeNAS jails quarterly seems to be default.

Link to comment
Share on other sites

For others with the same problem, Luke's comment about quarterly vs latest packages solved my problem, too. I learned how to get my FreeNAS (FreeNAS-11.2-U6) jail updated for the "latest" packages. Here is how...

 

First, I had to make sure pkg was installed/available in my jail (doing this first is important!):

root@foo:~ # pkg update
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:11:amd64/quarterly, please wait...
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
[foo] Installing pkg-1.12.0...
[foo] Extracting pkg-1.12.0: 100%
Updating FreeBSD repository catalogue...
[foo] Fetching meta.txz: 100%    944 B   0.9kB/s    00:01
[foo] Fetching packagesite.txz: 100%    6 MiB   6.7MB/s    00:01
Processing entries: 100%
FreeBSD repository update completed. 32783 packages processed.
All repositories are up to date.

Inside the jail, I had to create two subdirs:

root@foo:~ # mkdir -p /usr/local/etc/pkg/repos

Then create a new file FreeBSD.conf:

root@foo:~ # vi /usr/local/etc/pkg/repos/FreeBSD.conf

The FreeBSD.conf file has these contents:

FreeBSD: {
   url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
   mirror_type: "srv",
   signature_type: "fingerprints",
   fingerprints: "/usr/share/keys/pkg",
   enabled: yes
}

Then update:

root@foo:~ # pkg update
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD has a wrong packagesite, need to re-create database
[foo] Fetching meta.txz: 100%    944 B   0.9kB/s    00:01
[foo] Fetching packagesite.txz: 100%    6 MiB   3.3MB/s    00:02
Processing entries: 100%
FreeBSD repository update completed. 32806 packages processed.
All repositories are up to date.

Then upgrade:

root@foo:~ # pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Updating database digests format: 100%
Checking for upgrades (1 candidates): 100%
Processing candidates (1 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
root@foo:~ # freebsd-version
11.2-RELEASE-p15

I followed the rest of the instructions to install the dependencies and emby. I can see that a newer version of the x265 package is now installed (the previous version was 3.0_1):

root@foo:/usr/local/etc/pkg/repos # pkg info | grep 265
x265-3.2.1                     H.265/High Efficiency Video Coding (HEVC) format

I'm not a FreeNAS or FreeBSD or Emby expert, so please correct or amplify any of this.

Edited by alleyes
Link to comment
Share on other sites

Thanks for the feedback. I'm going to update the website instructions with this information right now.

Link to comment
Share on other sites

Drego344

Having the same issue, when i make the dir and use vi /usr/local/etc/pkg/repos/FreeBSD.conf..... do i copy the above info in the the folder.... if yes i did that and now emby wont start.. can i get a better step by step...,

should this be done inside the emby jail?.... im confused

Edited by Drego344
Link to comment
Share on other sites

Having the same issue, when i make the dir and use vi /usr/local/etc/pkg/repos/FreeBSD.conf..... do i copy the above info in the the folder.... if yes i did that and now emby wont start.. can i get a better step by step...,

should this be done inside the emby jail?.... im confused

 

Hi, can you tell us what you've done, starting from the beginning? Thanks.

Link to comment
Share on other sites

Drego344

i created a jail in freenas, installed emby per website instructions, then i notice that my movies didnt have any runtime... saw this tread as its the same error i see in my logs, i follow it as i understand... mkdir use vi then i copy the content above in the vi editor, save and exit... tried starting freenas and it wont start..

Link to comment
Share on other sites

  • 2 weeks later...
Vidman

I am having the issue as the OP after upgrading from 4.2 to 4.3.0.26 on freeNAS 11.2-U7

foo@emby-server:~ # pkg version

Updating FreeBSD repository catalogue...

FreeBSD repository is up to date.

All repositories are up to date.

ImageMagick6-6.9.10.57,1 =

avahi-app-0.7_2 =

ca_root_nss-3.47.1 =

cairo-1.16.0,2 =

cups-2.2.12 =

dbus-1.12.12 =

dbus-glib-0.110 =

dejavu-2.37_1 =

emby-server-4.3.0.26_1 >

encodings-1.0.5,1 =

expat-2.2.8 =

fftw3-3.3.8_4 =

font-bh-ttf-1.0.3_4 =

font-misc-ethiopic-1.0.3_4 =

font-misc-meltho-1.0.3_4 =

font-util-1.3.2 =

fontconfig-2.12.6,1 =

freetype-1.3.1_5 =

freetype2-2.10.1 =

fribidi-0.19.7 =

gdbm-1.18.1_1 =

gdk-pixbuf2-2.38.1 =

gettext-runtime-0.20.1 =

ghostscript9-agpl-base-9.27_2 =

ghostscript9-agpl-x11-9.27 =

giflib-5.1.9 =

glib-2.56.3_6,1 =

gmp-6.1.2_1 =

gnome_subr-1.0 =

gnutls-3.6.10 =

gobject-introspection-1.56.1,1 =

graphite2-1.3.13_1 =

gsfonts-8.11_8 =

harfbuzz-2.6.4 =

iconv-2.0_4 =

indexinfo-0.3.1 =

jbig2dec-0.16 =

jbigkit-2.1_1 =

jpeg-turbo-2.0.3 =

lcms2-2.9 =

libICE-1.0.10,1 =

libSM-1.2.3,1 =

libX11-1.6.8,1 =

libXScrnSaver-1.2.3_2 =

libXau-1.0.9 =

libXdamage-1.1.5 =

libXdmcp-1.1.3 =

libXext-1.3.4,1 =

libXfixes-5.0.3_2 =

libXft-2.3.2_3 =

libXrender-0.9.10_2 =

libXt-1.2.0,1 =

libXxf86vm-1.1.4_3 =

libass-0.14.0 =

libcroco-0.6.12 =

libdaemon-0.14_1 =

libdrm-2.4.99,1 =

libepoll-shim-0.0.20190311 =

libffi-3.2.1_3 =

libfontenc-1.1.4 =

libgsf-1.14.44 =

libiconv-1.14_11 =

libidn-1.35 =

libidn2-2.2.0 =

libinotify-20180201_1 =

liblqr-1-0.4.2 =

libltdl-2.4.6 =

libogg-1.3.4,4 =

libpaper-1.1.24.4 =

libpciaccess-0.16 =

libpthread-stubs-0.4 =

libraqm-0.6.0 =

libraw-0.19.2_1 =

librsvg2-2.40.20 =

libtasn1-4.14 =

libtheora-1.1.1_7 =

libunicode-0.4_11 =

libunistring-0.9.10_1 =

libunwind-20170615 =

libva-2.5.0 =

libvorbis-1.3.6,3 =

libvpx-1.8.1_1 =

libwmf-0.2.8.4_15 =

libx264-0.157.2980 =

libxcb-1.13.1 =

libxml2-2.9.9 =

libxshmfence-1.3 =

libzvbi-0.2.35_3 =

mesa-libs-18.3.2_3 =

mkfontscale-1.2.1 =

mono-5.10.1.57_2 =

nettle-3.5.1_1 =

openjpeg-2.3.1 =

opus-1.3.1 =

p11-kit-0.23.17 =

pango-1.42.4_3 =

pciids-20190725 =

pcre-8.43_2 =

perl5-5.30.0 =

pixman-0.38.4 =

pkg-1.12.0 =

pkgconf-1.6.3,1 =

png-1.6.37 =

poppler-data-0.4.9 =

py27-olefile-0.46 =

py27-pillow-6.2.0 =

py27-setuptools-41.2.0 =

py27-tkinter-2.7.16_6 =

python27-2.7.16_1 =

python36-3.6.9 =

readline-8.0.0 =

shared-mime-info-1.10_1 =

sqlite3-3.29.0 =

tcl86-8.6.9_1 =

tiff-4.0.10_1 =

tk86-8.6.9_1 =

tpm-emulator-0.7.4_2 =

trousers-0.3.14_2 =

wayland-1.16.0_1 =

webp-1.0.3_1 =

x265-3.1.2_2 =

xorg-fonts-truetype-7.7_1 =

xorgproto-2019.1 =

Edited by Vidman
Link to comment
Share on other sites

The easiest thing to do is just run the pkg install step listed on our website everytime you update to a new version. This way if the dependencies have changed, it will make sure that you have the new ones.

Link to comment
Share on other sites

  • 2 weeks later...
adrianwi

I've just hit this problem trying to play a file in Chrome, and when I checked the log I saw the error Shared object "libx265.so.179" not found, required by "libavcodec.so.58"

 

I've run through the steps in this thread, but emby is running 4.3.0.30 and all the dependancies are saying they are up to date.

 

I'll PM a full log file, which seems to have way more errors than it should within a few minutes of a restart.  Can someone please take a look? 

 

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...