Help needed setting up 0.5.2 on my NAS (DNS-323)

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Hitcher
Newbie
Newbie
Posts: 12
Joined: May 24th, 2010, 11:06 am

Help needed setting up 0.5.2 on my NAS (DNS-323)

Post by Hitcher »

Hi, total noob here so please be gentle.

I've just got myself a DNS-323 and have been following this guide (https://forums.sabnzbd.org/http://forum ... 580#p15580) so I can run SabNZBD on it. All went well until I got to part 10.5 (posted after the first post) where I run SABnzbd.py so it creates the INI file for me to edit. The trouble is it never gets made and I get an error message. Below is what happens.

Code: Select all

login as: root
[email protected]'s password:
Last login: Mon May 24 17:33:04 2010 from hal.lan


The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
HAL_NAS:~# python  /opt/SABnzbd-0.5.2/SABnzbd.py
Traceback (most recent call last):
  File "/opt/SABnzbd-0.5.2/SABnzbd.py", line 63, in ?
    import sabnzbd
  File "/opt/SABnzbd-0.5.2/sabnzbd/__init__.py", line 66, in ?
    import sabnzbd.nzbqueue as nzbqueue
  File "/opt/SABnzbd-0.5.2/sabnzbd/nzbqueue.py", line 37, in ?
    import sabnzbd.assembler
  File "/opt/SABnzbd-0.5.2/sabnzbd/assembler.py", line 40, in ?
    import sabnzbd.postproc
  File "/opt/SABnzbd-0.5.2/sabnzbd/postproc.py", line 41, in ?
    import sabnzbd.emailer as emailer
  File "/opt/SABnzbd-0.5.2/sabnzbd/emailer.py", line 212, in ?
    from email.message import Message
ImportError: No module named message
HAL_NAS:~#
HAL_NAS:~#
Any help greatly appreciated.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Help needed setting up 0.5.2 on my NAS (DNS-323)

Post by shypike »

You must be using Python 2.4.
Please read this: https://forums.sabnzbd.org/index.php?topic=4266.0
Hitcher
Newbie
Newbie
Posts: 12
Joined: May 24th, 2010, 11:06 am

Re: Help needed setting up 0.5.2 on my NAS (DNS-323)

Post by Hitcher »

Thanks for the reply.

Would you suggest I simply use v4.11 as stated in the guide then?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Help needed setting up 0.5.2 on my NAS (DNS-323)

Post by shypike »

It says you should replace the file emailer.py with the attachment of the message.
Hitcher
Newbie
Newbie
Posts: 12
Joined: May 24th, 2010, 11:06 am

Re: Help needed setting up 0.5.2 on my NAS (DNS-323)

Post by Hitcher »

Sorry, I thought you meant I must install Python 2.4 not that I was actaully running it.

Anyway I finally managed to download it but now I'm having real problems with permissions to the folders -I can't access any of them from my PC (Windows 7) thus can't save any NZB files I download to the 'watch' folder and get access to the 'Incomplete'/'Complete' folders.

I've tried using Putty from the guide and running CHMOD 777/0777 to the 'root' folder but that doesn't work.
I've also tried the permission from SAB but that doesn't work either.
And finally I've tried to use another folder on my NAS using \\HAL_NAS\\Volume_1\\Complete but that just creates another folder in the SAB folder.

As I originally said I'm a complete newcomer to working from the command line and Linux in general.
Hitcher
Newbie
Newbie
Posts: 12
Joined: May 24th, 2010, 11:06 am

Re: Help needed setting up 0.5.2 on my NAS (DNS-323)

Post by Hitcher »

Update: Sorted my permission problem out.

I didn't use -R to set the permissions recursively.
Hitcher
Newbie
Newbie
Posts: 12
Joined: May 24th, 2010, 11:06 am

Re: Help needed setting up 0.5.2 on my NAS (DNS-323)

Post by Hitcher »

One final question if I may -

Is there a quicker way to restart SAB other than running Putty and entering the following command?

python  /opt/SABnzbd-0.4.11/SABnzbd.py -d -f ~/.sabnzbd/sabnnbd.ini

Could it be added to the fun_plug?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Help needed setting up 0.5.2 on my NAS (DNS-323)

Post by shypike »

Release 0.5.2 has a restart button in the UI (Classic: Config, main page, Plush: Config->General, smpl: left column)
Not sure if it works for Unix daemons. Only one way to find out :)
Hitcher
Newbie
Newbie
Posts: 12
Joined: May 24th, 2010, 11:06 am

Re: Help needed setting up 0.5.2 on my NAS (DNS-323)

Post by Hitcher »

Sorry, I meant restart from a complete stop.

And I spoke too soon about the permisssions; left it downloading Lost last night but upon checking this morning it hasn't been extracted and is still in the 'incomplete' folder and guess what, I can't access it from my PC.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Help needed setting up 0.5.2 on my NAS (DNS-323)

Post by shypike »

Hitcher wrote: Sorry, I meant restart from a complete stop.
I don't see how you can restart a stopped SABnzbd without a terminal.
Unless you just reboot the NAS itself (assuming SABnzbd was configured for autostart).

Permissions: SABnzbd just uses standard Unix methods to set the permissions right.
Usually Samba shares need more permission work outside the scope of SABnzbd.
Post Reply