I’m trying to create a small-factor download machine and for that reason have installed SABnzbd and Sonarr on an Odroid C2 (ARM64) with Ubuntu 16.04.
SABnzbd installed fine, but I had to manually install Sonarr as I got some errors, seemingly due to incompatibility with the 64bit architecture. Now the program runs, except for one problem; under System it shows an error: MediaInfo could not be loaded libmediainfo.so.0
When I’m looking at the output after running ‘mono --debug /opt/NzbDrone/NzbDrone.exe’ I see a long series of errors for every file Sonarr tries to download
[Error] VideoFileInfoReader: mediainfo is required but was not found
[v2.0.0.4146] System.DllNotFoundException: libmediainfo.so.0
at (wrapper managed-to-native) NzbDrone.Core.MediaFiles.MediaInfo.MediaInfo:MediaInfo_New ()
at NzbDrone.Core.MediaFiles.MediaInfo.MediaInfo…ctor () [0x00006] in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\MediaInfo\MediaInfoLib.cs:69
at NzbDrone.Core.MediaFiles.MediaInfo.VideoFileInfoReader.GetMediaInfo (System.String filename) [0x00021] in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\MediaInfo\VideoFileInfoReader.cs:39
[Error] DetectSample: [/mnt/downloads/series/xxxxxxxxxxxx/xxxxxxxxxxxxx.mkv] has a runtime of 0, is it a valid video file?
Unfortunately I’m rather new to linux. I tried the same setup on a Raspberry Pi 2, which worked without a hitch, but is painfully slow, hence the swith to the Odroid. No errors on the raspi.
I’m guessing this might have to do with de 64bit architecture of the Odroid, but have no idea what to do.
Is libmediainfo installed?
SQLite is generally the most picky about bitness, but if you got that far that seems to be fine. You may need to add the location of libmediainfo.so.0 to the path or symlink it into the PATH with the correct filename if its only available under a different name.
I have the Odroid c2, having a lot of trouble getting up it, stuck on the nzbdrone : Depends: libmono-cil-dev (>= 3.2) but it is not going to be installed.
I’ve compiled Mono to the latest version. I done the PID modification, I’m not sure what I else I can do… thinking of chucking the thing and flashing from bare os. Before I go down that route, is it possible to provide some guidance on how you managed to install sonarr?
I wish I knew for sure. I had a lot of problems installing Sonarr and looked through a great many sites to find a solution. Somewhere I found a description of installing Sonarr ‘by hand’ on a 64bit system with some instructions. Since then Sonarr works. But not very well. The program crashes often. I cannot, for instance, delete an item from the ‘Activity’ list without causing a crash. I too want to start from scratch but I am not sure what the site was I used back then (bookmark, bookmark, bookmark…)
Might be this one, though
Currently I’m thinking of trying again with a different OS, this time 32bit, see if that works. Unfortunately I don’t have enough time to experiment right now.
Thank you for your response, a couple of hours I clued in to installing the tar Sonarr. That was the right step however, the code snippet wasn’t correct for our batch…
Hopefully for the future this serves as a reference point:
Steps to running Sonarr on Odroid C2:
Compile Mono [standard distro @ June 24, 2016 does not satisfy Sonarr requirements, dependencies broken, packages insufficient, etc.]
Download Sonarr as tar ball and install [see your link]
git clone git://github.com/mono/mono.git
cd mono
./autogen.sh --prefix=/usr/local
make -j 4
(this last command exits with an error after some time. This is normal, just continue with the next command)
make get-monolite-latest
make -j 4
sudo make install
Also, I’ve experienced crashes, sporadically so, running off the latest Mono. Encountered the same libmediainfo error, and was syncing the series to an already running Samba share. While it was pulling info, parsing etc, noticed two apparent errors. A major was the series cover art would load and for some series it wouldn’t and when clicked it’s suppose to be a link into the series page. But it lead to the original link of the cover art on the web. Second was after each series was added it would soft crash. It would just seem like it was processing but actually from the terminal window I could see there wasn’t any process/parsing or operations going on and I was booted to the prompt/root.
Another element was starting the service on boot. The only one that worked for me was to add the service to start up services in the GUI. Through Preferences and Start up etc.
Perhaps the arm64 libraries will stabilize in the future as the arm devices become more readily accepted. For now I’m still running it on my desktop, my project is to transfer it to the O-C2 box.