× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Betreff: Install NZBGet 17.1 on ReadyNAS OS 6.6.0 (working)

jhagg
Luminary

Install NZBGet 17.1 on ReadyNAS OS 6.6.0 (working)

Hello everyone,

 

I spent some time with @hugbug (offical developer of NZBGet) over the weekend and let him know about the issues we are having getting a working version for OS 6.6.0.

He encouraged me to use the offical installer and pretty much guaranteed it would work on OS 6.6.0, while hesitant, I took him up on his offer since he was willing to support the install should anything go wrong.

 

Here is what you need to do to get NZBGet current version working, and best of all the update within app now works!

(Note: My machine is RN516, your mileage may vary. This will not give you a visible app in the apps section of front end, but it will persist and auto-start on reboot).

This will work very similiar to Sonarr as it just runs all the time in the background and start on reboot of the NAS.  Webgui is always availble this way.

 

If you are on 6.5.2, run NZBGet and backup your settings/config to your local computer

 

Uninstall NZBGet

 

Upgrade to OS 6.6.0

 

Download the installer

 

wget -O - http://nzbget.net/info/nzbget-version-linux.json | \
sed -n "s/^.*stable-download.*: \"\(.*\)\".*/\1/p" | \
wget --no-check-certificate -i - -O nzbget-latest-bin-linux.run


Start the installer (default path)

  

sh nzbget-latest-bin-linux.run


Start the installer (custom path, I chose /apps/nzbget)

   

sh nzbget-latest-bin-linux.run --destdir /path/to/install/nzbget


Test that you get the command console

  

<nzbget-directory>/nzbget -s


If you get an error about the config file not being read, you need to make sure a copy of it is in one of the directories it specifies in the error message. Just drag or make a copy of the default config file and drop it into one of the required directories such as /.nzbget

  

Now start a web-browser and open URL http://ip-address-of-linux-machine:6789. You should see NZBGet web-interface. Default login credentials are username: nzbget, password: tegbzn6789.

 

Once you have access to webgui, you can restore your settings you backed up in the old version.  (everything backs up perfectly except the paths section.  If you try to restore those form the old ReadyNAS app you will get a 404 error not found.  This is because the ReadyNAS app and Official NZBGet installer use different folder structures.  I had to manually recreate my paths to match the same folders but it only takes a few minutes.

 

Run as a service (Daemon mode)

  

<nzbget-directory>/nzbget -s

  

Let's make NZBGet persist and auto-start on reboot (credit to HTPC setup guide for Debian installations for this one, don't use hugbug's script it doesn't work)

 

Fire up WinSCP browse to and create /etc/init.d/nzbget or nano to create the empty file:

  

nano /etc/init.d/nzbget

  

Paste this code and save the file

(Change the path in these 2 areas to reflect your path i.e./usr/local/bin/nzbget -D, /usr/local/bin/nzbget -Q)

  

#!/bin/sh
# Start/stop the NZBget daemon.
#
case "$1" in
start)   echo -n "Start services: NZBget"
/usr/local/bin/nzbget -D
;;
stop)   echo -n "Stop services: NZBget"
/usr/local/bin/nzbget -Q
;;
restart)
$0 stop
$0 start
;;
*)   echo "Usage: $0 start|stop|restart"
exit 1
;;
esac
exit 0

  

Make the configuration file executable and update the init.d to be used at boot

  

chmod +x /etc/init.d/nzbget && update-rc.d nzbget defaults

  

Create /downloads folder or you will get errors that looks like this during the boot sequence:

  

mkdir /path/to/downloads

  

(These nzb.conf errors can be solved by creating the /downloads directory)

  

Start services: NZBgetnzbget.conf(49): Invalid value for option "InterDir" (/downloads/inter/): could not create directory :
nzbget.conf(70): Invalid value for option "TempDir" (/downloads/tmp/): could not create directory :
nzbget.conf(67): Invalid value for option "QueueDir" (/downloads/queue/): could not create directory :
nzbget.conf(61): Invalid value for option "NzbDir" (/downloads/nzb/): could not create directory :

  

Now NZBGet will start automatically on boot!

 

That's it, you are up and running with NZBGet on ReadyNAS OS 6.6.0

 

Again special thanks to developer of NZBGet hugbug for making this dream a reality, enjoy 🙂

Message 1 of 9
calaba
Guide

Re: Install NZBGet 17.1 on ReadyNAS OS 6.6.0 (working)

Thanx for following up on this. I can confirm successfull test on ReadyNAS 104 with OS 6.6.0. I used the install path /apps/nzbget - thus had to correct the /etc/init.d/nzbget accordingly to have 'service nzbget start' and 'service nzbget stop' working properly

 

To see the NZGGet in the installed apps on my ReadyNAS I did:

 

1) created empty file .localapp file in /apps/nzbget

 

2) copied the config.xml and logo.png from the old NZBGet Get App 1.0.4 into the /apps/nzbget and renamed the 'nzbget-app' to 'nzgbet' inside the config.xml (the old 1.0.4 NZBGet app is installing into /apps/nzbget-app)

Message 2 of 9
Mhynlo
Luminary

Re: Install NZBGet 17.1 on ReadyNAS OS 6.6.0 (working)

Thanks for the install guide @jhagg!

Most of the debian based installation guides help with many applications out there. I saw the nzbget in the debian repo and go a bit of the build configurations from their repo. I change the configuration files to point to ReadyNAS config files (in the /app/nzbget-rn/ directory).

 

Here are the x86 and arm packages (that I completed thus far)https://github.com/Mhynlo/nzbget/releases/tag/v17.1-0

Its set to a pre-release since I had limited testing; Start, stop and changing configurations.

(Sorry about the delays in this package. I hope you had more fun than troubles in your nzbget installation!)

Message 3 of 9
calaba
Guide

Re: Install NZBGet 17.1 on ReadyNAS OS 6.6.0 (working)

Testing your packge for RN 104 - the ARM version - have discovered typo in the apps\nzbget-rn\fvapp-nzbget-rn.service  file:

 

ExecStop=/uapps/nzbget-rn/nzbget -Q 

 

should be

 

ExecStop=/apps/nzbget-rn/nzbget -Q 

Message 4 of 9
Mhynlo
Luminary

Re: Install NZBGet 17.1 on ReadyNAS OS 6.6.0 (working)

Thanks!

I was quickly going through the settings. I will make that change and double check a few other areas before the next build.

Message 5 of 9
Frosti
Aspirant

Betreff: Install NZBGet 17.1 on ReadyNAS OS 6.6.0 (working)

Hey,

thx for this good Guide.

I have done all this Steps, but if i start nzbget following Errors will be there.

 

In Webbrowser:

Error in http://192.168.0.9:6789/status.js (line 171)

Uncaught TypeError: Cannot read property 'length' of undefined

 

Errors while starting in console:

ERROR nzbget.conf(117): Invalid option "RequiredDir"
ERROR nzbget.conf(138): Invalid option "Server1.Active"
ERROR nzbget.conf(144): Invalid option "Server1.Name"
ERROR nzbget.conf(235): Invalid option "Server1.Retention"
ERROR nzbget.conf(317): Invalid option "RestrictedUsername"
ERROR nzbget.conf(322): Invalid option "RestrictedPassword"
ERROR nzbget.conf(338): Invalid option "AddUsername"
ERROR nzbget.conf(343): Invalid option "AddPassword"
ERROR nzbget.conf(372): Invalid option "AuthorizedIP"
ERROR nzbget.conf(419): Invalid option "Category1.Unpack"
ERROR nzbget.conf(424): Invalid option "Category1.PostScript"
ERROR nzbget.conf(436): Invalid option "Category1.Aliases"
ERROR nzbget.conf(697): Invalid option "FlushQueue"
ERROR nzbget.conf(720): Invalid option "PropagationDelay"
ERROR nzbget.conf(750): Invalid option "ArticleCache"
ERROR nzbget.conf(806): Invalid option "WriteBuffer"
ERROR nzbget.conf(837): Invalid option "ArticleTimeout"
ERROR nzbget.conf(842): Invalid option "UrlTimeout"
ERROR nzbget.conf(926): Invalid option "FeedHistory"
ERROR nzbget.conf(940): Invalid option "UrlForce"
ERROR nzbget.conf(952): Invalid option "MonthlyQuota"
ERROR nzbget.conf(955): Invalid option "QuotaStartDay"
ERROR nzbget.conf(962): Invalid option "DailyQuota"
ERROR nzbget.conf(975): Invalid option "WriteLog"
ERROR nzbget.conf(981): Invalid option "RotateLog"
ERROR nzbget.conf(1009): Invalid option "NzbLog"
ERROR nzbget.conf(1015): Invalid option "BrokenLog"
ERROR nzbget.conf(1039): Invalid option "TimeCorrection"
ERROR nzbget.conf(1217): Invalid option "ParRename"
ERROR nzbget.conf(1250): Invalid option "ParQuick"
ERROR nzbget.conf(1261): Invalid option "ParBuffer"
ERROR nzbget.conf(1274): Invalid option "ParThreads"
ERROR nzbget.conf(1291): Invalid option "ParIgnoreExt"
ERROR nzbget.conf(1310): Invalid option "HealthCheck"
ERROR nzbget.conf(1438): Invalid option "UnpackPassFile"
ERROR nzbget.conf(1585): Invalid option "PostScript"
ERROR nzbget.conf(1702): Invalid option "ScanScript"
ERROR nzbget.conf(1810): Invalid option "QueueScript"
ERROR nzbget.conf(1861): Invalid option "FeedScript"
ERROR nzbget.conf(1895): Invalid option "ShellOverride"
ERROR nzbget.conf(1918): Invalid option "EventInterval"
ERROR nzbget.conf(1238): Invalid value for option "ParScan": "extended"
INFO Pausing all activities due to errors in configuration
INFO nzbget 11.0 server-mode

 

Does anyone have an idea?

 

Thx

Message 6 of 9
calaba
Guide

Re: Install NZBGet 17.1 on ReadyNAS OS 6.6.0 (working)

One more point - the start/stop doesn't hold through NAS restart. I need to re-enable the App after reboot - that should be improved ... 

Message 7 of 9
jhagg
Luminary

Re: Install NZBGet 17.1 on ReadyNAS OS 6.6.0 (working)

The start/stop does hold through NAS reboot for me, did you check your paths in the script and make sure the script is named nzbget and dropped into the /etc/init.d/ folder?

Message 8 of 9
jhagg
Luminary

Betreff: Install NZBGet 17.1 on ReadyNAS OS 6.6.0 (working)

@Frosti, I am not sure why the errors, I had other issues figuring out the process, but never any such erros, that part was very clean for me. The good thing is since you are installing the offical app you can goto the offical NZBGet support forums and ask this question, when I did, I got responses and help back within a few minutes, straight from the developer, you may have a different experience but I think that is your best starting point:

 

NZBGet Support Official Forums

Message 9 of 9
Top Contributors
Discussion stats
  • 8 replies
  • 9625 views
  • 2 kudos
  • 4 in conversation
Announcements