Sabnzbd unMenu package


Recommended Posts

No, it wasnt a typo, i have done two /, i have rectified that but in anycase i could not write to the folder and nor can i delete it, says its write protected now  >:(

 

I had mine set to 770 as advised by you, but i also looked up permissions and got a bit confused..i saw that someone had set theirs to 775, im guessing that your setting is a more cautious setting whereas i may be opening the floodgates with 775 ?

 

As requested...

root@warptower:~# ls -al /mnt/cache/.apps
total 1
drwxrwx---  4 nobody users 104 2012-02-28 21:40 ./
drwxrwx---  6 nobody users 128 2012-03-07 03:41 ../
drwxrwx--- 15 nobody users 904 2012-03-06 18:06 .sabnzbd/
drwxrwx---  9 nobody users 640 2012-03-07 07:23 .sickbeard/


root@warptower:~# ls -al /mnt/cache/.apps/.sabnzbd
total 619
drwxrwx--- 15 nobody users    904 2012-03-07 07:37 ./
drwxrwx---  4 nobody users    104 2012-02-28 21:40 ../
-rw-rw----  1 nobody users   2270 2012-03-06 18:06 ABOUT.txt
-rw-rw----  1 nobody users  53372 2012-03-06 18:06 CHANGELOG.txt
-rw-rw----  1 nobody users   1071 2012-03-06 18:06 COPYRIGHT.txt
-rw-rw----  1 nobody users  17990 2012-03-06 18:06 GPL2.txt
-rw-rw----  1 nobody users  35147 2012-03-06 18:06 GPL3.txt
-rw-rw----  1 nobody users   5335 2012-03-06 18:06 INSTALL.txt
-rw-rw----  1 nobody users   4268 2012-03-06 18:06 ISSUES.txt
-rw-rw----  1 nobody users    311 2012-03-06 18:06 PKG-INFO
-rw-rw----  1 nobody users    935 2012-03-06 18:06 README.txt
-rw-rw----  1 nobody users   5316 2012-03-06 18:06 SABHelper.py
-rw-rw----  1 nobody users  62010 2012-03-06 18:06 SABnzbd.py
-rw-rw----  1 nobody users    421 2012-03-06 18:06 Sample-PostProc.cmd
-rw-rw----  1 nobody users    433 2012-03-06 18:06 Sample-PostProc.sh
drwxrwx---  3 nobody users    360 2012-03-07 03:13 admin/
drwxrwx---  5 nobody users   1592 2012-03-06 18:06 cherrypy/
drwxrwx---  2 nobody users    560 2012-02-28 21:11 email/
drwxrwx---  2 nobody users    240 2012-03-06 18:06 gntp/
drwxrwx---  7 nobody users    168 2012-02-28 21:11 interfaces/
drwxrwx---  2 nobody users    560 2012-02-28 21:11 licenses/
drwxrwx---  9 nobody users    216 2012-02-28 21:11 locale/
-rw-rw----  1 nobody users  96689 2012-03-06 18:06 nzb.ico
drwxrwx---  2 nobody users    520 2012-03-07 03:08 nzbbackup/
drwxrwx---  5 nobody users    120 2012-02-28 21:11 po/
drwxrwx---  3 nobody users   3240 2012-03-06 18:06 sabnzbd/
-rw-rw----  1 nobody users 287934 2012-03-06 18:06 sabnzbd.ico
-rw-------  1 nobody users   3821 2012-03-07 07:37 sabnzbd.ini
-rw-------  1 nobody users   3822 2012-03-06 18:06 sabnzbd.ini.bak
drwxrwx---  2 nobody users     48 2012-03-06 11:56 scripts/
drwxrwx---  2 nobody users    112 2012-02-28 21:11 tools/
drwxrwx---  2 nobody users    144 2012-02-28 21:11 util/


root@warptower:~# /mnt/cache/.apps/.sabnzbd/scripts
-bash: /mnt/cache/.apps/.sabnzbd/scripts: is a directory

root@warptower:~# ps -ef | grep sab
root      2048 26281  0 07:45 pts/0    00:00:00 grep sab
nobody    4314     1  0 Mar06 ?        00:04:15 python /mnt/cache/.apps/.sabnzbd/SABnzbd.py --daemon -f /mnt/cache/.apps/.sabnzbd/sabnzbd.ini

 

 

Not sure if its relevant, i added a password to the root account but i was getting similar troubles writing to shares, so i wiped it and set change/apply, i noticed now that when i log into telnet or when i open explorer to browse network it prompts me for password for root, i just leave it blank and press enter, its as though the password has been set to ...well...nothing

 

I am greatful for your constant help, just so you know, i am not blindly following your instruction, i am interested is what they are doing....

 

The first two line are asking to list everything within the directories given ?

 

The third line is just a query on what i typed, though i dont understand why..what else would it be other than a directory ?

 

The fourth line im not to sure about, is it asking what processes are running in memory as a full listing and then going on to search for any instances of the word SAB within those processes ?

Link to comment
  • Replies 360
  • Created
  • Last Reply

Top Posters In This Topic

No, it wasnt a typo, i have done two /, i have rectified that but in anycase i could not write to the folder and nor can i delete it, says its write protected now  >:(

 

I had mine set to 770 as advised by you, but i also looked up permissions and got a bit confused..i saw that someone had set theirs to 775, im guessing that your setting is a more cautious setting whereas i may be opening the floodgates with 775 ?

Basically correct.  I am setting read,write,execute permissions for owner and group and NO permissions for all others.  You are giving read,write,execute for owner and group and also giving read,execute permissions to "others". Look here

 

root@warptower:~# ls -al /mnt/cache/.apps

total 1

drwxrwx---  4 nobody users 104 2012-02-28 21:40 ./

drwxrwx---  6 nobody users 128 2012-03-07 03:41 ../

drwxrwx--- 15 nobody users 904 2012-03-06 18:06 .sabnzbd/

drwxrwx---  9 nobody users 640 2012-03-07 07:23 .sickbeard/

That is what I expected

 

root@warptower:~# ls -al /mnt/cache/.apps/.sabnzbd

total 619

drwxrwx--- 15 nobody users    904 2012-03-07 07:37 ./

drwxrwx---  4 nobody users    104 2012-02-28 21:40 ../

-rw-rw----  1 nobody users  2270 2012-03-06 18:06 ABOUT.txt

-rw-rw----  1 nobody users  53372 2012-03-06 18:06 CHANGELOG.txt

-rw-rw----  1 nobody users  1071 2012-03-06 18:06 COPYRIGHT.txt

-rw-rw----  1 nobody users  17990 2012-03-06 18:06 GPL2.txt

-rw-rw----  1 nobody users  35147 2012-03-06 18:06 GPL3.txt

-rw-rw----  1 nobody users  5335 2012-03-06 18:06 INSTALL.txt

-rw-rw----  1 nobody users  4268 2012-03-06 18:06 ISSUES.txt

-rw-rw----  1 nobody users    311 2012-03-06 18:06 PKG-INFO

-rw-rw----  1 nobody users    935 2012-03-06 18:06 README.txt

-rw-rw----  1 nobody users  5316 2012-03-06 18:06 SABHelper.py

-rw-rw----  1 nobody users  62010 2012-03-06 18:06 SABnzbd.py

-rw-rw----  1 nobody users    421 2012-03-06 18:06 Sample-PostProc.cmd

-rw-rw----  1 nobody users    433 2012-03-06 18:06 Sample-PostProc.sh

drwxrwx---  3 nobody users    360 2012-03-07 03:13 admin/

drwxrwx---  5 nobody users  1592 2012-03-06 18:06 cherrypy/

drwxrwx---  2 nobody users    560 2012-02-28 21:11 email/

drwxrwx---  2 nobody users    240 2012-03-06 18:06 gntp/

drwxrwx---  7 nobody users    168 2012-02-28 21:11 interfaces/

drwxrwx---  2 nobody users    560 2012-02-28 21:11 licenses/

drwxrwx---  9 nobody users    216 2012-02-28 21:11 locale/

-rw-rw----  1 nobody users  96689 2012-03-06 18:06 nzb.ico

drwxrwx---  2 nobody users    520 2012-03-07 03:08 nzbbackup/

drwxrwx---  5 nobody users    120 2012-02-28 21:11 po/

drwxrwx---  3 nobody users  3240 2012-03-06 18:06 sabnzbd/

-rw-rw----  1 nobody users 287934 2012-03-06 18:06 sabnzbd.ico

-rw-------  1 nobody users  3821 2012-03-07 07:37 sabnzbd.ini

-rw-------  1 nobody users  3822 2012-03-06 18:06 sabnzbd.ini.bak

drwxrwx---  2 nobody users    48 2012-03-06 11:56 scripts/

drwxrwx---  2 nobody users    112 2012-02-28 21:11 tools/

drwxrwx---  2 nobody users    144 2012-02-28 21:11 util/

That is also what I expected

 

root@warptower:~# /mnt/cache/.apps/.sabnzbd/scripts

-bash: /mnt/cache/.apps/.sabnzbd/scripts: is a directory

That was my fault, there should have been an ls -al in from of that line just like the previous 2 commands

 

root@warptower:~# ps -ef | grep sab

root      2048 26281  0 07:45 pts/0    00:00:00 grep sab

nobody    4314    1  0 Mar06 ?        00:04:15 python /mnt/cache/.apps/.sabnzbd/SABnzbd.py --daemon -f /mnt/cache/.apps/.sabnzbd/sabnzbd.ini[/code]

That is what I expected

 

Not sure if its relevant, i added a password to the root account but i was getting similar troubles writing to shares, so i wiped it and set change/apply, i noticed now that when i log into telnet or when i open explorer to browse network it prompts me for password for root, i just leave it blank and press enter, its as though the password has been set to ...well...nothing

... that is the most relevant piece of information you have given me thus far.  Had you mentioned this previously I would not have had to do all of the above.

 

OK, what you need to do is STOP using the root account to log into the server and make changes.  I have talked about this in other threads and it seems to hang up every new user.  The root user is part of the root group and can only access those files/folders that have permission to.  Most all apps under 5.0 beta of unRAID should be run as nobody in the users group which then prohibits the root user and root group from accessing those files.  You can view this correlation by doing a

cat /etc/passwd
cat /etc/group

 

What you need to do is create a new user from the unRAID webGUI, call it whatever you like, and give it a password.  I created a user called admin and gave it a password.  I then went through all my shares and DISABLED write access to the share by the root user.  If I had allowed it crap could get screwed up because of the user:group permissions settings for unRAID 5.0bX.  Note that the new permissions of unRAID 5.0 is correct and is "technically" broken under unRAID 4.7.

 

The main gist from the above is that you should not be using the root user to write/modify files on the server via SMB/NFS/AFP.

 

I am greatful for your constant help, just so you know, i am not blindly following your instruction, i am interested is what they are doing....

That is good to hear/see. 

 

The first two line are asking to list everything within the directories given ?

correct and show me all information about the files it finds

 

The third line is just a query on what i typed, though i dont understand why..what else would it be other than a directory ?

That was my mistake... I forgot a part of the command

 

The fourth line im not to sure about, is it asking what processes are running in memory as a full listing and then going on to search for any instances of the word SAB within those processes ?

It is a command that will should be any running processes (the "ps -ef" part) that match a search string (the "grep sab" part).  The pipe ("|") is used to send the output of the "ps -ef" command to the "grep" utility.

Link to comment

Thanks a lot prostuff !! i really think that is going to make things a lot smoother now...i was just getting thwart with constant troubles !!..i will go off an do all that now, once i have done it i will reboot the server, is it safe to say it will be fixed or should i go from scratch again ?? just to be sure.

 

It is a command that will should be any running processes (the "ps -ef" part) that match a search string (the "grep sab" part).  The pipe ("|") is used to send the output of the "ps -ef" command to the "grep" utility.

 

Been so used to  / \ over the years..i wondered what | was !!, took a while to get it on screen at first.

 

So...where is the user 'nobody' ??..seems a silly question, its not in my user groups on the webgui, i assume its like a default account created by the package/application that you dont see or need to ?..the application using it grants  its own access to where it needs ? same as plex-unraid user ?...so if i was creating a package myself called..lets say, FTPMYMUM and i needed to have access to certain things with write permissions, i would create a background user as such and call it whatever i wanted within the package..for example 'ftpMMadmin' if i wanted

Link to comment

I am running into an issue with download speeds in Sabnzbd on my Unraid server. On my Windows PC I hold a steady 2.7-2.8MB/s downstream, but on my Unraid box I can't manage anything over 2.0MB/s. I updated to the latest package tonight and that hasn't made a difference. I've looked around and can't find anyone with any similar problems...

 

Does anyone have any suggestions why I am achieving slower download speeds on Unraid vs any other system?

Link to comment

I am running into an issue with download speeds in Sabnzbd on my Unraid server. On my Windows PC I hold a steady 2.7-2.8MB/s downstream, but on my Unraid box I can't manage anything over 2.0MB/s. I updated to the latest package tonight and that hasn't made a difference. I've looked around and can't find anyone with any similar problems...

 

Does anyone have any suggestions why I am achieving slower download speeds on Unraid vs any other system?

 

Do you have it installed on your flash drive?

Link to comment

I am running into an issue with download speeds in Sabnzbd on my Unraid server. On my Windows PC I hold a steady 2.7-2.8MB/s downstream, but on my Unraid box I can't manage anything over 2.0MB/s. I updated to the latest package tonight and that hasn't made a difference. I've looked around and can't find anyone with any similar problems...

 

Does anyone have any suggestions why I am achieving slower download speeds on Unraid vs any other system?

 

Do you have it installed on your flash drive?

 

No, it's running from and downloading to my cache drive.

 

install-dir: /mnt/cache/.sabnzbd

install-host: 192.168.1.50

install-port: 8081

log-dir: /mnt/cache/.sabnzbd/var

download-dir: /mnt/cache/.sabnzbd/downloads

complete-dir: /mnt/cache/.sabnzbd/complete

Link to comment

well if you have over 2gb you could tweaking "Article Cache Limit"  128M or -1. I have set mine to -1 but i have 4 gigs of ram.

 

What kind of nic? 

make sure "Download Speed Limit"  is not set

how many connections do you have it set to for the server?

 

I've got 4GB of RAM and thus have the cache set at a modest 200MB currently, but tried -1 and it made no difference.

The NIC is from the onboard motherboard. I used the same hardware for a Windows environment before I set up the server, so aside from a driver issue with the server I believe the hardware to be solid. Network transfers are also solid.

There is no download speed limit set.

Link to comment

I've seen realtek nics cause slowness because of non optimized linux drivers that work fine in windows.

 

If your cache drive is not busy all the time im not sure why it would go slow, sab runs more in memory until its time to unpack.

 

unless you don't have enough connections to the server. I think the one im using allows 30 connections and im using 29. Using SSL?  tried changing the port?

Link to comment

Not using SSL. I ran 6 connections in Windows to max my connection, maybe it requires more in Unraid.. I'll let you know..

 

Also, I would expect network transfers to be affected if there was a driver issue. I can read from my Unraid server at a steady 80MB/s with 100MB/s bursts. Writing is between 20-40MB/s... It's only this download speed that is suffering.

Link to comment

Yep...back again  :-[ .... I am still managing to break this by running 'new perms', when doing so i loose the sabToSickbeard.py in the cats section on SAB. I done what you suggested, i gave root  READONLY access on EVERY share, including cache and flash. I set an admin account and gave full access to every share, including again, cache and flash...i have other users that have access to certain folders (my girls for thier homework and movie/tv folders)..i was getting access denied on thier pc upsatairs to the shares with correct username/pass so i done the usual new perms, after that SAB is broken again, i have read back a few posts ago by generalz...

 

Id have to agree, looking that the back posts on the permissions issue.

 

this probably is not the best way to do this, but

telnet or ssh into unraid

 

cd /user/cache/.apps

chmod -R 777  /.sabnzbd

chmod -R 777  /.sickbeard

 

then find the auto process files and chmod -x filename.py

 

 

or you could do it with winscp if your a gui person

 

 

I had similar issues because I was running it standalone as root and I move to Prostuff1's excellent setup and it runs as 'nobody' so it did not have access to the folders that 'root' created.

 

After setting the permissions you advised for ROOT and setting up an admin user, that post is how i got SAB working again, it is also how i have just now got it working again after doing new perms, i thought that i wouldnt be seeing this problem again and its so frustrating that i cant get my head around it...the only logical explanation i can think of and through reading generalz comments is that i need to again wipe my flash and install unraid from scratch and the first thing i do is set the ROOT account to read only and then set up an admin account and THEN...only THEN after that go ahead with installing SAB and SB..i can only think that it is still causing me problems because even though i followed your advice SAB and SB were installed prior to that when ROOT was still READ/WRITE ??

 

EDIT: confusing myself... NOT reinstall UNraid fresh..maybe just uninstall SAB and SB and reinstall again ??

 

 

Link to comment
  • 1 month later...

In case anyone needs it, I have a package made for the 0.7.0Beta3 version.  I'm a newb to this package stuff but I used myself as a guinea pig for about a week and everything is working OK.  I had to switch to the beta version because of nzb errors with NZBMATRIX.  It was suggested at the SAB forums and it did indeed fix the issue.  There's some nice added features too

 

http://www.mediafire.com/?mqbdezc2egscok9

 

prostuff1 if you get bored take a look at the file and let me know if I missed anything :)

Link to comment

So I set this up this weekend to finally start making use of my giganews account and I am finding it rinsing the memory in my NAS and then failing to start again once it has crashed.

 

I have Sabnzbd 0.7.0-beta3 as posted by jaychamp along with the most recent Sickbeard.  I have 2GB of RAM in my system and shortly after Sabnzbd starts I get some memory issues mentioned in my syslog and then it falls over and the only way to start it again is a complete reboot.  I'm not 100% sure whether it's Sabnzbd or Sickbeard that is causing the issue but when looking at memory usage on the server (through a script I found) I can see 'python' is using the majority of mine.

 

Is it worth rolling back to an earlier version or does Sabnzbd and Sickbeard just require a lot of RAM?

 

The Sabnzbd logs show no errors either.

Link to comment

So I set this up this weekend to finally start making use of my giganews account and I am finding it rinsing the memory in my NAS and then failing to start again once it has crashed.

 

I have Sabnzbd 0.7.0-beta3 as posted by jaychamp along with the most recent Sickbeard.  I have 2GB of RAM in my system and shortly after Sabnzbd starts I get some memory issues mentioned in my syslog and then it falls over and the only way to start it again is a complete reboot.  I'm not 100% sure whether it's Sabnzbd or Sickbeard that is causing the issue but when looking at memory usage on the server (through a script I found) I can see 'python' is using the majority of mine.

 

Is it worth rolling back to an earlier version or does Sabnzbd and Sickbeard just require a lot of RAM?

 

The Sabnzbd logs show no errors either.

 

 

I don't think I've seen sab even use 256 same with sick.  do you have other mods running?  I would try a stable release before a beta.

Link to comment

Yea I need to go back to a stable version.  I first tried the version on the first post but I kept getting a message that Newzbin protocol had changed, hence the jump to the most recent.  I've just installed the Windows client and notice its still 0.6.15 as opposed to 0.7.0.

 

Other mods include transmission which is doing nothing at the moment.  Simple features GUI with the iTunes plugin (although this is currently disabled).  I also have unMENU with a few supporting packages for other mods plus OpenSSL.

 

I am going to try find a version between the one on the first post and the beta posted above and try that.  Coincidentally, the client I have installed on my windows machine which is 0.6.15 is failing to start too now :(  FFS!!

 

This is in my syslog:

 

May  6 15:46:27 nas kernel: Out of memory: Kill process 31515 (python) score 11 or sacrifice child (Errors)

May  6 15:46:27 nas kernel: Killed process 31519 (python) total-vm:25516kB, anon-rss:17952kB, file-rss:816kB (Errors)

May  6 15:46:37 nas kernel: python invoked oom-killer: gfp_mask=0x280da, order=0, oom_adj=0, oom_score_adj=0 (Minor Issues)

May  6 15:46:37 nas kernel: Pid: 31559, comm: python Not tainted 3.1.1-unRAID #1 (Errors)

May  6 15:46:37 nas kernel: Call Trace: (Errors)

May  6 15:46:37 nas kernel:  [<c105cda7>] T.582+0x55/0x15f (Errors)

May  6 15:46:37 nas kernel:  [<c119bb3b>] ? ___ratelimit+0xaf/0xc4 (Errors)

May  6 15:46:37 nas kernel:  [<c105cee0>] T.581+0x2f/0x108 (Errors)

May  6 15:46:37 nas kernel:  [<c102fbb1>] ? has_capability_noaudit+0x18/0x21 (Errors)

May  6 15:46:37 nas kernel:  [<c105d1b6>] out_of_memory+0x1fd/0x283 (Errors)

May  6 15:46:37 nas kernel:  [<c105fc7f>] __alloc_pages_nodemask+0x3f8/0x47f (Errors)

May  6 15:46:37 nas kernel:  [<c106c565>] do_anonymous_page+0x103/0x21c (Errors)

May  6 15:46:37 nas kernel:  [<c106d2c1>] handle_pte_fault+0x83/0x20f (Errors)

May  6 15:46:37 nas kernel:  [<c106d8b4>] handle_mm_fault+0x138/0x14a (Errors)

May  6 15:46:37 nas kernel:  [<c101b09a>] ? mm_fault_error+0x129/0x129 (Errors)

May  6 15:46:37 nas kernel:  [<c101b3b1>] do_page_fault+0x317/0x332 (Errors)

May  6 15:46:37 nas kernel:  [<c1071f82>] ? do_brk+0x277/0x2be (Errors)

May  6 15:46:37 nas kernel:  [<c101b09a>] ? mm_fault_error+0x129/0x129 (Errors)

May  6 15:46:37 nas kernel:  [<c130befa>] error_code+0x5a/0x60 (Errors)

May  6 15:46:37 nas kernel:  [<c101b09a>] ? mm_fault_error+0x129/0x129 (Errors)

Link to comment

Could it be due to the article caching?  I notice some chat referring to this and RAM usage on Pags 19/20.

 

Edit: Right, I didn't actually have transmission on.  A reboot without SimpleFeatures iTunes, cache dirs and NOT using SSL in Sabnzbd seems to have stabilised it.  I am not sure what was causing it though as cache dirs and iTunes were disabled previously and I still had RAM errors.  I did notice some SSL errors last night in Sabnzbd so I think it may be that!

 

BAH! Sorry for the running commentary... I don't have a cache drive and so I think it's using RAM, once my downloads hit ~1.6 then BAM it falls over... haha I feel rather dumb now!!

 

---------------------

 

Should I put it on /mnt/user/nzb for instance or /mnt/disk1/nzb?

Link to comment
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.