Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MediaInfo could not be loaded libmediainfo.so.0 #1488

Closed
macf0x opened this issue Oct 3, 2016 · 6 comments
Closed

MediaInfo could not be loaded libmediainfo.so.0 #1488

macf0x opened this issue Oct 3, 2016 · 6 comments

Comments

@macf0x
Copy link

macf0x commented Oct 3, 2016

This error doesn't appear immediately, but after running (presumably processing) it appears in the logs. No noticeable issues, but possibly impacting download completion handling when there is a sample included.

Error has been present from installation. Given the delay it takes for the error to appear it makes it difficult to pinpoint.

MediaInfo and dependencies are installed and the library are present in the Mono directory.

The mono debug logs show failed attempts to load a library /share/MD0_DATA/.qpkg/QSonarr/NzbDrone/libmediainfo.so.0.so but only /share/MD0_DATA/.qpkg/Qmono/lib/libmediainfo.so.0

Is this a mono related configuration issue or Sonarr config issue?

Regards
Mac

Platform: QNAP TS869 (FW 4.2.2)

Version: 2.0.0.4326
Mono Version: 4.2.1 (Stable 4.2.1.102/6dd2d0d Sat Nov 21 10:02:10 EST 2015)
AppData directory: /share/MD0_DATA/SONARR_CONFIG
Startup directory: /share/MD0_DATA/.qpkg/QSonarr/NzbDrone

MediaInfoLib - v0.7.87 (mediainfo - 0.7.87-1)
Error Log: mediainfo is required but was not found: libmediainfo.so.0

System.DllNotFoundException: libmediainfo.so.0
  at (wrapper managed-to-native) NzbDrone.Core.MediaFiles.MediaInfo.MediaInfo:MediaInfo_New ()
  at NzbDrone.Core.MediaFiles.MediaInfo.MediaInfo..ctor () <0xf3530f50 + 0x0000b> in <filename unknown>:0 
  at NzbDrone.Core.MediaFiles.MediaInfo.VideoFileInfoReader.GetMediaInfo (System.String filename) <0xf3530000 + 0x00113> in <filename unknown>:0 


Mono: GC_MINOR: (Nursery full) pause 19.11ms, total 19.20ms, bridge 0.00ms promoted 7808K major 7808K los 4559K
Mono: DllImport attempting to load: 'libmediainfo.so.0'.
Mono: DllImport error loading library '/share/MD0_DATA/.qpkg/QSonarr/NzbDrone/libmed[Debug] MonoVersionCheck: mono version is 3.2 or better: 4.2.1
[Trace] ConfigService: Using default config value for 'proxyenabled' defaultValue:'False'
[Trace] HttpClient: Req: [GET] http://services.sonarr.tv/v1/update/master?version=2.0.0.4326&os=linux
[Trace] ConfigService: Using default config value for 'proxyenabled' defaultValue:'False'
iainfo.so.0': '/share/MD0_DATA/.qpkg/QSonarr/NzbDrone/libmediainfo.so.0: cannot open shared object file: No such file or directory'.
Mono: DllImport error loading library '/share/MD0_DATA/.qpkg/QSonarr/NzbDrone/libmediainfo.so.0.so': '/share/MD0_DATA/.qpkg/QSonarr/NzbDrone/libmediainfo.so.0.so: cannot open shared object file: No such file or directory'.
Mono: DllImport loaded library '/share/MD0_DATA/.qpkg/Qmono/lib/libmediainfo.so.0'.
Mono: DllImport searching in: 'libmediainfo.so.0' ('/share/MD0_DATA/.qpkg/Qmono/lib/libmediainfo.so.0').
Mono: Searching for 'MediaInfo_New'.
Mono: Probing 'MediaInfo_New'.
Mono: Found as 'MediaInfo_New'.
Mono: DllImport searching in: 'libmediainfo.so.0' ('/share/MD0_DATA/.qpkg/Qmono/lib/libmediainfo.so.0').
Mono: Searching for 'MediaInfoA_Option'.
Mono: Probing 'MediaInfoA_Option'.
Mono: Found as 'MediaInfoA_Option'.
Mono: DllImport searching in: 'libmediainfo.so.0' ('/share/MD0_DATA/.qpkg/Qmono/lib/libmediainfo.so.0').
Mono: Searching for 'MediaInfo_Option'.
Mono: Probing 'MediaInfo_Option'.
Mono: Found as 'MediaInfo_Option'.
Mono: GC_MINOR: (Nursery full) pause 9.95ms, total 10.04ms, bridge 0.00ms promoted 8272K major 8272K los 4752K
Mono: DllImport searching in: 'libmediainfo.so.0' ('/share/MD0_DATA/.qpkg/Qmono/lib/libmediainfo.so.0').
Mono: Searching for 'MediaInfo_Delete'.
Mono: Probing 'MediaInfo_Delete'.
[~] # ldd /share/MD0_DATA/.qpkg/QSonarr/NzbDrone/libmediainfo.so.0.so
ldd: /share/MD0_DATA/.qpkg/QSonarr/NzbDrone/libmediainfo.so.0.so: No such file or directory
[~] # ldd /share/MD0_DATA/.qpkg/Qmono/lib/libmediainfo.so.0
        linux-gate.so.1 =>  (0xf77ab000)
        libzen.so.0 => /opt/Qmono/lib/libzen.so.0 (0xf7112000)
        libcurl.so.4 => /opt/Qmono/lib/libcurl.so.4 (0xf70af000)
        libidn.so.11 => /opt/Qmono/lib/libidn.so.11 (0xf707d000)
        libssh2.so.1 => /opt/Qmono/lib/libssh2.so.1 (0xf7057000)
        libssl.so.1.0.0 => /opt/Qmono/lib/libssl.so.1.0.0 (0xf6ff4000)
        libcrypto.so.1.0.0 => /opt/Qmono/lib/libcrypto.so.1.0.0 (0xf6e66000)
        libz.so.1 => /opt/Qmono/lib/libz.so.1 (0xf6e4f000)
        libmms.so.0 => /opt/Qmono/lib/libmms.so.0 (0xf6e3f000)
        libglib-2.0.so.0 => /opt/Qmono/lib/libglib-2.0.so.0 (0xf6d1e000)
        libiconv.so.2 => /opt/Qmono/lib/libiconv.so.2 (0xf6c3c000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xf6c1c000)
        librt.so.1 => /lib/librt.so.1 (0xf6c13000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xf6b20000)
        libm.so.6 => /lib/libm.so.6 (0xf6afa000)
        libc.so.6 => /lib/libc.so.6 (0xf69c7000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xf69bc000)
        libdl.so.2 => /lib/libdl.so.2 (0xf69b7000)
        /lib/ld-linux.so.2 (0xf77ac000)


@macf0x
Copy link
Author

macf0x commented Oct 3, 2016

symlinking the mono library to the NzbDrone seems to have removed the error, but I'll wait and see if this fixes the issue.

cd /share/MD0_DATA/.qpkg/QSonarr/NzbDrone ln -s /share/MD0_DATA/.qpkg/Qmono/lib/libmediainfo.so.0 libmediainfo.so.0.so

@markus101
Copy link
Member

Is this a mono related configuration issue or Sonarr config issue?

It looks like the wrong filename for MediaInfo was included in the QSonarr package, making it a QSonarr package issue (which is made by a 3rd party).

@macf0x
Copy link
Author

macf0x commented Oct 3, 2016

Thanks Markus,

So far so good. Will need to raise the issue with the packager.

Package src / discussion

@macf0x
Copy link
Author

macf0x commented Oct 4, 2016

@macf0x
Copy link
Author

macf0x commented Oct 7, 2016

@markus101 Can you elaborate on why Sonarr looks for the library in this path? I have spoken to the pack developer and they're not clear why either. The library path is being set in the start/init script.

export LD_LIBRARY_PATH=/opt/Qmono/lib:$LD_LIBRARY_PATH
I'm not a Mono expert, but wish to help fix the issue. Does Sonarr specifically reference/load this library from a path or is it configured with a mono config file.

Mac

@markus101
Copy link
Member

It's looking for a specific filename, not a specific path, the filename it looks for is libmediainfo.so.0 (the extra .so on the end of the file in the QSonarr package seems wrong).

The paths it look for are specific by the system (or any startup scripts), but if your symlink in #1488 (comment) worked then it's not a path issue, it's a file name issue (the trailing .so).

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants