Drobo App for Sonarr

@phildapunk Wow. Thanks so much! This is great. Did you happen to get a service.sh script workign btw? I created a simple one, but it still dies when I close the connection.

Cool. Glad it s working for you.

No, I never got a working service script (had hoped I could spend more time over my Christmas holiday, but it hasn’t happened).

Are you starting the service script manually from your ssh session. Have you tried to start/stop from the Drobo Dashboard app

I have tried to keep the directory structure of other apps, so I have the following subdirectories underneath DroboApps / nzbdrone (some of which are clones as I try to get the paths correct

/app
/bin (which is a copy of app)
/lib (where I have the mediainfo and sqlite librearies
/usr

Still have to work out how to handle upgrades as well… Look forward to any suggestion / successes you have

I’m running my service.sh script from my ssh session. I copied it from the nano service and just added the “mono/ NzbDrone.exe” line to the start. So, when I run it from there it runs perfectly, but it won’t return to a command prompt. Hence, when I close the session the service dies shortly after.

I’ve tried running it from the dashboard as well. But that just fails since it’s an improper service script.

I symlinked the sqlite as well as your MediaInfo files into the root of the NzbDrone folder. I haven’t cleaned it up past that. I didn’t want to start moving stuff around all at once. Was only testing one variable at a time. But the standard structure is a good idea.

Since I don’t know Python it’s kinda just reading, looking and doing a guess/check for me. It’s a little beyond my purview and thus takes me awhile to figure it out…if at all.

I’ll update if I get any further. Thanks for the libraries.

@phildapunk Have you tried the latest Drobo firmware? I updated to it and restarted. Sonarr seems to be running independently now without having to run a service.sh script or having an open connection. I even updated to the latest Sonarr release and it’s still good.

Hi There
I am having trouble with the libsqlite file.

I cant find out how to unpack it.

if i use rpm command I get
RPM: not found

I them extracted the file with .cpio extension.

I cant work out how to unpack this.

Any help will be appreciated

Basil

OK I sorted out the libsqlite by copying it to a RaspberryPi , extracting it and copying to Drobo.
I installed the Media files in the NzbDrone dir and it works fine.

But I now have the same prob as Evil above.
ie I can run it from a Putty session but it stops when I close the session.
(it will not runs a background service using &)

How do I get it to autorun please?

Basil

I used to following to get it to run in the background so I can close the terminal window.

…/mono/bin/mono NzbDrone.exe < /dev/null &

But I think it will stop if the Drobo is reset???

Basil

@bhbloom I have Sonarr running fine without me SSHing into it. Runs on Drobo restart. Have you upgraded to the latest firmware?

Yes i have the latest firmware.

Did you put the sonarr command into any of the startup files like fstab?
I just used the ssh command line and it does not restart when the drobo is turned off.

@bhbloom No, I don’t have anything in FSTAB. I did make a semi-working service script. Also, for good measure I symlinked the dependencies. Give that a shot. You should actually see it pop up in the Drobo Dashboard and see the status as running. You can’t actually stop or restart the service, but it will come back online every time you restart the Drobo. Works for me.

http://pastebin.com/PQJRQBTC

Thanks
Please can you be a bit more specific as I dont know anything about service scripts.
I tried to look them up but am very confused.

Where do I put the file and what is its name?

Basil

Take the contents of the PasteBin I posed above and place it in a plain text file called “service.sh”. Save the file in the root of your NzbDrone folder in your DroboApps. Restart. Enjoy.

I was having some issues getting libsqlite from the instructions above. I ended up doing a search of the ~/Shares/DroboApps directory and found that the libsqlite3.so, libsqlite3.so.0, and libsqlite3.so.0.8.6 files all already existed in Plex (which can be easily installed through the Drobo Dashboard). Simple copy and paste should work:

cp /mnt/DroboFS/Shares/DroboApps/plex/Application/libsqlite3.so* /mnt/DroboFS/Shares/DroboApps/NzbDrone

I’ve packaged all the dependencies including my startup script into one zip. You will need to install Mono via the Drobo Dashboard first. Unzip the file and place the entire folder in your DroboApps folder. Restart your Drobo. That should be it.

This will not auto-update nor can you update it via the the web GUI. You’ll need to download the latest release and simply replace all of the files.

Thanks to everyone else who contributed.

https://mega.nz/#!GwYGRaQZ!9oXqVhhbT11y9fhfss_MmBowzOm__ci4j8-diEinSSo

Now all I need is an invite to one of the private trackers so I can use it.

Any chance of seeing that become an official DroboApps?
I’m pretty new to drobo, and their forum is currently down, so I don’t really know what would be required to make this an official, one-click install…

@EvilHidden not sure if you’re still watching this conversation, but I can’t seem to get your service script to work. If i run:

./service.sh

I get the following error:

': No such file or directory

and if I run:

sh service.sh

I get:

'ervice.sh: .: line 6: can't open '/etc/service.subr

@PimpChicken Not my real area of expertise, but that looks like lack of write permissions to me. If you run it with sudo does it work? Also, the script may not function properly for a full start/start via command.

I would say make sure you have Mono installed via the Drobo Dashboard, make sure the Sonarr app folder is called “NzbDrone” and restart the Drobo. I get it to work via restarts.

Never got the script to work but now I have a new issue: I upgraded Mono, and now nothing will work (see this thread: Sonarr crashing after updating Mono)

Is anyone having issues with the latest version of Mono available on the Drobo Dashboard?

Yeah. I upgraded my Mono install too. That was a mistake. I took a quick look into my installation before you linked the above issue. What I am seeing is no web gui is accessible; however according to the command line Sonarr is running. I haven’t looked back into it yet. Honestly, the easiest solution here would be to rollback the Mono install.

@EvilHidden I found a fix to the issue (although it’s very strange why this works):

I opened up /mnt/DroboFS/Shares/DroboApps/mono/etc/mono/config in vi and found this line:

<dllmap dll="MonoPosixHelper" target="$mono_libdir/libMonoPosixHelper.so" os="!windows" />

I checked and $mono_libdir wasn’t actually set, so I set it to /mnt/DroboFS/Shares/DroboApps/mono/lib and tried starting Sonarr again, no dice.

What ended up fixing it was entering the full path to libMonoPosixHelper.so:

<dllmap dll="MonoPosixHelper" target="/mnt/DroboFS/Shares/DroboApps/mono/lib/libMonoPosixHelper.so" os="!windows" />

Very strange!