Installation issues

Hi,

I was able to successfully setup Sonarr on CentOS 6.5 and import my library. I do have some issues with getting Sonarr to work well.

For some reason it doesn’t see mediainfo although the package is installed. Also the sampleservice is giving me a hard time. I’m not sure how to fix it so I hope somebody can help me:

CentOS info: Package mediainfo-0.7.71-1.el6.i686 already installed and latest version

Sonarr log:

Unable to parse file on import: [/data/SABnzbd/series/serie.After.720p.WEB-DL.DD5.1.H.264-AuSy/GNvJShafFkqJQpkpqKW.mkv]
SampleService [/data/SABnzbd/series/serie.S04E09.After.720p.WEB-DL.DD5.1.H.264-AuSy/GNvJShafFkqJQpkpqKW.mkv] has a runtime of 0, is it a valid video file?
 VideoFileInfoReader mediainfo is required but was not found: libmediainfo.so.0

Mediainfo error:

System.DllNotFoundException: libmediainfo.so.0
at (wrapper managed-to-native) MediaInfoLib.MediaInfo:MediaInfo_New ()
at MediaInfoLib.MediaInfo…ctor () [0x00000] in :0
at NzbDrone.Core.MediaFiles.MediaInfo.VideoFileInfoReader.GetMediaInfo (System.String filename) [0x00000] in :0

I hope somebody can help me with this.

Kind regards,

Mark

Make sure libmediainfo.so.0 is available somewhere on the path for Sonarr to use it, you may need to symlink the library to that name for Sonarr to see it.

Hi Markus,

Thanks for the quick reply! I tried adding the /usr/lib location to both the .bash_profile of root and the nzbdrone user I created. I still get the error. Where does Sonarr look for the file so I can symlink it on the correct location.

Kind regards,

Mark

/usr/lib should be on the path already, is libmediainfo.so.0 in that folder?

Yup

[mark@lx2 lib]$ pwd
/usr/lib
[mark@lx2 lib]$ ls libmediainfo.so.0
libmediainfo.so.0
[mark@lx2 lib]$

The /usr/lib directory also is in the path. The path displays an error however it does so for all users:

-bash: /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/lib: No such file or directory

The PATH that /usr/lib should be added to is the LD_LIBRARY_PATH not the execution PATH for running binaries/scripts. I’m surprised it’s not seeing /usr/lib it by default.

Try

lsof -p pidOfMono | grep lib #Must be the same running user or use sudo

To see what directory of libs have been loaded already. There are many StackOverflows on /etc/ld.so.conf and how to update the library search path for dynamic executables. Of course you did restart Sonarr after adding libmediainfo.so.0?