Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Modified Sabnzbd+ plug-in to install Betas-V0.5a

Featured Replies

_________________________________________________

Change Log

04-18-2012 - Sabnzbd - 0.5a - Influenced - Initial release

05-12-2012 - Sabnzbd  - 0.6  - ww - First release with newest dependiences and some sabnzbd beta installation improvements

05-14-2012 - Sabnzbd - 0.6a - ww - added version informations

05-14-2012 - Sabnzbd - 0.7 - Influenced  - changed install and data directories to fix bug(if data directory exists at /mnt/cache/.Apps/ all information would be overwritten)

05-15-2012 - Sabnzbd - 0.7.1 - Influenced - didn't merge all changes, fixed now

05-19-2012 - Sabnzbd - 0.7.2 - Influenced - -  Added warning if data dir is located in volatile filesystem

_________________________________________________

 

It has been requested to allow the download and installation of beta versions of sabnzbd+. The current plug-in does not allow this so I modified the plug-in.

 

You simply enable "Install Beta" on the settings page and enable the plugin. If you have a current stable release installed you will be prompted to install the latest beta at the bottom of the page, if you do not have sabnzbd installed it will automatically install the beta when enabled.

 

To go back to stable, either if the beta has a bug you cannot live with, or if a new stable version is released, disable "Install Beta" and re-enable the plugin, you will again be prompted to install at the bottom of the page. Simple as that, :)

 

I've tested this with my current data dir, and the install leaves your settings intact, I do, however, still recommend backing up your sabnzbd data dir. Better safe than sorry if you don't want to configure sabnzbd again.

 

Sabnzbd-0.7.2-influenced.plg

Download HERE.

  • 3 weeks later...
  • Replies 77
  • Views 13.6k
  • Created
  • Last Reply

Been running this for the last couple of days now.  Works great, Influencer.  ;D

I'm trying a fresh install of rc3 and when I put only this plg into here

 

\\MEDIA\flash\config\plugins\sabnzbd-0.5c-influenced.plg

 

I get this when I reboot...

 

May 11 20:23:48 media logger: installing plugin: sabnzbd-0.5c-influenced
May 11 20:23:48 media logger:  file /boot/packages/python-2.6.4-i486-1.txz: downloading from http://slackware.cs.utah.edu/pub/slackware/slackware-13.1/slackware/d/python-2.6.4-i486-1.txz ... [b]bad download, deleting[/b]
May 11 20:23:48 media emhttp: unRAID System Management Utility version 5.0-rc3

 

it and the sabnzbd folder with the cfg and png inside and a notifications folder are the only things in this folder

 

\\MEDIA\flash\config\plugins\

 

I'm not running unMENU currently, and have changed the name of the unmenu and packages folders.  a new packages folder was created, but it's empty.

 

what have i done wrong?

  • Author

The download is failing for some reason. It could be that the plug-in is installing before the network is up, or failing for another reason. I'm not on RC3 yet so I can't debug this.

 

Try to install the plug-in manually and see if it installs fine

 

installplg /boot/config/plugins/sabnzbd-0.5a-influenced.plg

installing plugin: sabnzbd-0.5a-influenced

Warning: simplexml_load_file(): I/O warning : failed to load external entity "/boot/config/plugins/sabnzbd-0.5a-influenced.plg" in /usr/local/sbin/installplg on line 13
xml parse error

  • Author

Thats my fault, I used the old version I have on my laptop for the name, this would be right:

installplg /boot/config/plugins/sabnzbd-0.5c-influenced.plg

Duh, I should have noticed that.  I was looking for line 13 :(  Not the name.

 

plugin successfully installed

 

I think this might be a typo

 

SABnzbd does not exit! (...does not exist ?

 

It's above the install button.

 

I clicked on install and it's "Starting sabnzbd: sudo -u nobody python /usr/local/sabnzbd/SABnzbd.py -d -s 0.0.0.0:8082 --config-file /mnt/user/backup/plugins/sabnzbd --pid /var/run/sabnzbd > /dev/null 2>&1" and now it's "Transferring data from media..." for the last few minutes

my server has stopped responding to SimpleFeatures, and unMENU isn't running/installed.

 

I still have putty access, but I have no idea what to do with it to try to get the server to respond again.

 

The plugin never finished installing  :-\

  • Author

I'll have to upgrade to RC3 to check on this. The transferring data bit is not me, that must be new to unraid.

 

The SABnzbd does not exit! is a typo, it will be fixed in an upcoming release, as well as a bug that you uncovered, it shouldn't report that on the webpage, only if you manually check for an update from telnet.

 

I'm not sure what you can do from here with the server not responding. Since you have putty access the server is still responsive and should continue to operate.

 

You can try this to kill sabnzbd(if its running and causing the issue)

 

either navigate to the pid location, /var/run/sabnzbd/ and delete the pid, or "ps aux | grep sabnzbd" and get the pid and kill it via "kill pid"(where pid is replaced with the apps actual pid)

thanks for the speedy replies.

 

I killed

 

root      8756  0.0  0.0  2716  1292 ?        S    21:41  0:00 /bin/sh /etc/rc.d/rc.sabnzbd update

 

and SimpleFeatures is responding again.  :D

 

The plugin is still offering me to Install

 

Is there any log I can provide you before I do anything else?

 

Here are the last 4 lines of the syslog

 

May 11 21:41:32 media sudo:     root : TTY=console ; PWD=/ ; USER=nobody ; COMMAND=/usr/bin/python /usr/local/sabnzbd/SABnzbd.py -d -s 0.0.0.0:8082 --config-file /mnt/user/backup/plugins/sabnzbd --pid /var/run/sabnzbd > /dev/null 2>&1
May 11 22:00:52 media kernel: mdcmd (54): spindown 3
May 11 22:02:23 media kernel: mdcmd (55): spindown 4
May 11 22:02:34 media kernel: mdcmd (56): spindown 5

Also, do you happen to know the correct path to put the data onto the cache drive, have it visible to windows, but not be moved by the mover file?

 

I would guess it to be /mnt/cache/_plugins/sabnzbd but my head hurts tonight :(

the monitor connected to the unRAID box has a bunch of commands and some errors on it, but I cannot find anyplace else to see this log/information, and it's scrolled off the screen, so I can't see what started it.

 

I think it mentioned that it couldn't find this file

 

/usr/local/sabnzbd/SABnzbd.py

 

and earlier it appeared to be looking for a download, and got a 404 error, but I don't remember the details, and it's in another room.

 

This would be the second time there's been a problem downloading, but installing the plg manually caused everything to download and install fine, so that's weird.

 

Oh well, I'm stumped.  I can live without sabnzbd for a while.  Let me know if you need anything from me to troubleshoot.

I looked thru all the logs I could find.  I suppose there are more in RAM, but I don't know how to open files from windows in unRAID created RAM storage.

 

I can't find any information to exactly what's causing the hang, other than inability to download a file.  I just don't know which file, or what's calling it in the first place.

 

I'm not sure this is necessarily a rc3 problem, it might be.

 

I had sab, couch and sb all running with the BenniChan plug ins, but when i upgraded to rc3 my array wouldn't start, back to rc2, same problem.  it took me awhile to find/remember everything I had done to get them installed, and since sab is out of date, I just started fresh with rc3, then simple features, then added just this plugin.  None of the dependencies or other sab files are installed/available currently.

 

If I can't find anything later this evening, I'll uninstall this and go back to the other plugin and verify it/they still work with rc3, and wait for an update :)  I need to download F1 qualifying to watch tonight :)

 

thanks again

Tried getting the current beta update and this is happening

root@Tower:~# /etc/rc.d/rc.sabnzbd update
yes
installing latest Beta Version ()
--2012-05-12 13:12:05--  http://downloads.sourceforge.net/project/sabnzbdplus/sabnzbdplus-beta//SABnzbd--src.tar.gz
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.34.181.59
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-05-12 13:12:06 ERROR 404: Not Found.

tar: /tmp/SABnzbd--src.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
cp: cannot stat `/usr/local/SABnzbd-/*': No such file or directory
rm: cannot remove `/usr/local/SABnzbd-': No such file or directory
rm: cannot remove `/tmp/SABnzbd--src.tar.gz': No such file or directory

I can do it manually by following but I wanted to let someone know this was happening.

Also, do you happen to know the correct path to put the data onto the cache drive, have it visible to windows, but not be moved by the mover file?

 

I would guess it to be /mnt/cache/_plugins/sabnzbd but my head hurts tonight :(

 

I use /mnt/cache/.sabnzbd

 

any dir starting with . is ignored, if you installed the unmenu package you can use _ as well...

 

Myk

 

  • Author

starting with . will make it hidden, so you'll have to enable hidden files/folders in windows

 

I thought the late beta series and the RC's have an ability to mark directories as belonging to a share or not on the cache drive so you no longer need to use "." or "_".

  • Author

I'll test that out BRiT, when I started using unRAID I used 5b14 and all tutorials said to make the folder hidden. If it does have the ability, it must be passive as I know there's not an option for such. But it would be easy to take the path and see if it correlates with a path on a share.

 

I'll give it a test a little later and see what happens.

You can set a Share to be "cache only" since around 5.0b8 or something like that.

 

The "." in front of the folder is no longer needed.  You can either put a "." in front of it and the mover will not touch it or you can name the folder whatever you like and make sure to see the corresponding User Share to use the "cache only" feature.

  • Author

Thanks for this, apparently missed that option, :)

Okay, I've spent way too much time on this today, instead of being otherwise productive  :P

 

I ended up hardcoding the file names, as I don't think the parsing of the names is working correctly.  I don't know how to fix that yet, so I just bypassed the variable.

 

echo $INSTALLBETA
if [[ $INSTALLBETA = "" || $INSTALLBETA = "no" ]]; then
	( stable=($(wget -q -O - http://sabnzbdplus.sourceforge.net/version/latest | awk '/0/{gsub(/\015/,"");print}'))
	echo "installing latest Version ($stable)" 

 

doesn't seem to populate $stable correctly, so I changed this, for now...

 

cd /tmp
	wget -q http://downloads.sourceforge.net/project/sabnzbdplus/sabnzbdplus/sabnzbd-0.6.15/SABnzbd-0.6.15-src.tar.gz
	tar -xf /tmp/SABnzbd-0.6.15-src.tar.gz -C $(dirname $INSTALLDIR)
	cp -R $(dirname $INSTALLDIR)/sabnzbd-0.6.15/* $INSTALLDIR
	rm -R $(dirname $INSTALLDIR)/sabnzbd-0.6.15
	chown -R $RUNAS:users "$INSTALLDIR"
	rm /tmp/sabnzbd-0.6.15-src.tar.gz
	)

 

I did the same thing with the beta code.  That got it downloaded and ran the correct install file, but doesn't seem to generate a line return at the end; it's just showing it waiting for me to hit enter on the display, but it doesn't seem to matter functionally.

 

I also don't understand this, combined with the first codebox

 

elif [[ $INSTALLBETA = "yes" && $INSTALLBETA != "" ]]; then
	( beta=($(wget -q -O - http://sabnzbdplus.sourceforge.net/version/latest | awk '/3/{gsub(/\015/,"");print}'))
	echo "installing latest Beta Version ($beta)";

 

it seems to say if $INSTALLBETA is blank or no, then...

 

but the part above seems to say if it's yes and not blank, then...

 

I suppose that might be correct, but it's redundant, and maybe error prone.

 

with that said; I'm guessing at the translations, so I could be totally wrong.

 

anyway, I got it to install the beta, and to start the service.

 

it's not "correct", but it's working for now.  hopefully someone can fix my fixes :)

 

I changed the version number and name, to make it easy to differentiate from Influencers original plugin.  remove the .txt from the end and put in the /config/plugins folder

sabnzbd-0.5d-justin.plg.txt

  • Author

I added the check to see if $INSTALLBETA is set to no because the config file can be changed outside of the settings page. This way, I can predict exactly what will happen. If you change $INSTALLBETA to something off the wall like "OFCOURSEIWANTYOUTOO!" It will not install. Otherwise, if I had done:

 

(AND I'm not writing this in code, just giving an idea)

IF $INSTALLBETA = no or $INSTALLBETA is blank

      INSTALL STABLE

 

ELSE IF $INSTALLBETA == Anything else

 

      INSTALL BETA

 

This way, you must specify exactly that you indeed want to install the beta. I'd hate to be the reason someones sab setup got completely fubar'd because I didn't make that specific.

 

The $INSTALLBETA != "" is redundant and can be taken out. Not quite sure why I put that in there, but I'm sure there was a reason at the time,  :o

 

And yes, for some reason, it is not parsing the version correctly. A couple weeks ago this was due to a formatting issue at the webpage its being pointed to(sabnzbd/latest), not sure if its that again or not. I'll try to look into it tomorrow

 

 

EDIT:

Also where it doesn't have a line return after installing the beta, its because of a typo. At the end of the last line of that block there is a ";", that needs to be removed. Not sure exactly how that got there, but bash seems to think there's more after it, :)

 

 

 

Hi Influencer,

 

 

I make some modifications in your script, such as version control, which inform user if there is newest stable/beta version of Sabnzdb, so user can install it (not only beta3 version). I also add new dependiences such as v. 2.6.6 Python, etc.

sabnzbd-0.6a-ww.zip

  • Author

It had version control, recently broke and I haven't had time to mess with it,  :P

I make some modifications in your script, such as version control, which inform user if there is newest stable/beta version of Sabnzdb, so user can install it (not only beta3 version). I also add new dependencies such as v. 2.6.6 Python, etc.

 

Nice work!  It correctly upgraded my Python and installed just fine.

 

I updated line 282 to read echo SABnzbd does not exist!

 

Otherwise it's working great, thanks for sharing.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.