Help needed with D-Link DNS-325

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
unirox
Newbie
Newbie
Posts: 13
Joined: June 23rd, 2011, 11:20 am

Help needed with D-Link DNS-325

Post by unirox »

Hi,
I really need some help with installing SABnzbd+ at my DNS-325 I bought 2 days ago.

I have successfully installed fun_plug and optware on the device.
Also installed sabnzbdplus throu optware succesfully.

Code: Select all

login as: root
[email protected]'s password:
root@NAS1:/mnt/HD/HD_a2/ffp/home/root# ipkg install sabnzbdplus
Installing sabnzbdplus (0.5.6-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/sabnzbdplus_0.5.6-1_arm.ipk
Configuring sabnzbdplus
Successfully terminated.
root@NAS1:/mnt/HD/HD_a2/ffp/home/root# ./SABnzbd.py -d -f ~/.sabnzbd/sabnzbd.ini
-sh: ./SABnzbd.py: not found
root@NAS1:/mnt/HD/HD_a2/ffp/home/root# cd /ffp/opt/optware/share/SABnzbd/
root@NAS1:/mnt/HD/HD_a2/ffp/opt/optware/share/SABnzbd# ./SABnzbd.py -d -f ~/.sabnzbd/sabnzbd.ini
root@NAS1:/mnt/HD/HD_a2/ffp/opt/optware/share/SABnzbd#
How do I know if its running? Took some while after executing ./SABnzbd.py -d -f ~/.sabnzbd/sabnzbd.ini

Code: Select all

http://192.168.2.100:8080/sabnzbd
Isn't working in the browser.. can't use localhost because the SABnzbd+ starts from the PC.

Please help!
This has held me awake for 48 hours googling and testing before I came this long.  ???
Never been in to Linux before.

/f
Last edited by unirox on June 23rd, 2011, 12:43 pm, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Help needed with D-Link DNS-325

Post by shypike »

Try running it non-daemon first and keep the telnet session open.
That way you will at least see status messages.
Are you sure the ~ is supported by this shell?
You should probably use a full path.
unirox
Newbie
Newbie
Posts: 13
Joined: June 23rd, 2011, 11:20 am

Re: Help needed with D-Link DNS-325

Post by unirox »

shypike wrote: Try running it non-daemon first and keep the telnet session open.
That way you will at least see status messages.
Are you sure the ~ is supported by this shell?
You should probably use a full path.
Thanks for fast reply!!  :)

I'm not sure what you mean by using full path. Like this..

Code: Select all

root@NAS1:/mnt/HD/HD_a2/ffp/home/root# /ffp/opt/optware/share/SABnzbd/./SABnzbd.
py -d -f ~/.sabnzbd/sabnzbd.ini
Dont work.

In some guide I disabled telnet, only using SSH.

Tried removing  ~ as you said.. doesn't work.
Also removed -d.
Tried this in diffrent combination with out getting it to start..

Any other suggestions?
Last edited by unirox on June 23rd, 2011, 1:38 pm, edited 1 time in total.
unirox
Newbie
Newbie
Posts: 13
Joined: June 23rd, 2011, 11:20 am

Re: Help needed with D-Link DNS-325

Post by unirox »

well...
I can now see that I'm missing the sabnzbd.ini file. Should this file be there from the beginning?
Can I take the file I have at my PC?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Help needed with D-Link DNS-325

Post by shypike »

ssh is like telnet.
Full path is something like /home/user/.sabnzbd
You don't need to have an INI file, it will be created.

You get no output at all when you start it like this?
/ffp/opt/optware/share/SABnzbd/SABnzbd.py -f ~/.sabnzbd

I'd say that the package just doesn't work.
What about this?
python /ffp/opt/optware/share/SABnzbd/SABnzbd.py -f ~/.sabnzbd
unirox
Newbie
Newbie
Posts: 13
Joined: June 23rd, 2011, 11:20 am

Re: Help needed with D-Link DNS-325

Post by unirox »

shypike wrote:
I'd say that the package just doesn't work.
What about this?
python /ffp/opt/optware/share/SABnzbd/SABnzbd.py -f ~/.sabnzbd
Python: not found

Thouht this was in the package.. :-[
Wich version shall I install.. the latest 3+ somthing or 2.5, 2.7 ??
Last edited by unirox on June 23rd, 2011, 2:11 pm, edited 1 time in total.
unirox
Newbie
Newbie
Posts: 13
Joined: June 23rd, 2011, 11:20 am

Re: Help needed with D-Link DNS-325

Post by unirox »

probably the package doesn't work.
Tried with several python packages.. I'll see if i can find another way than throu optware
unirox
Newbie
Newbie
Posts: 13
Joined: June 23rd, 2011, 11:20 am

Re: Help needed with D-Link DNS-325

Post by unirox »

Finally!! :)
Nothing wrong with the package.

the INI file was the problem or the directory to it.. well I don't really know :)

I put the INI file in the same directory as SABnzbd.py and the I executed following command..

Code: Select all

/ffp/opt/optware/share/SABnzbd/SABnzbd.py -s:8080 -d -f sabnzbd.ini
and swuusch!! up 'n' running :)

But I still have some issues..
unrar doesnt seem to be correct installed and I put the exact link to the fun_plug file for automatic start up at reboot of the NAS but then it seem go thru the wizard every time..  ???
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Help needed with D-Link DNS-325

Post by shypike »

If you put the INI file in the program folder, then don't use the -f parameter.
You're now giving a relative path which is definitely not in proper place.

So either no -f or use -f /ffp/opt/optware/share/SABnzbd
unirox
Newbie
Newbie
Posts: 13
Joined: June 23rd, 2011, 11:20 am

Re: Help needed with D-Link DNS-325

Post by unirox »

shypike wrote: If you put the INI file in the program folder, then don't use the -f parameter.
You're now giving a relative path which is definitely not in proper place.

So either no -f or use -f /ffp/opt/optware/share/SABnzbd
Yes I noticed that.. the parameters I used above created lots of files in my root directory, which I removed and started over with

Code: Select all

-f /ffp/opt/optware/share/SABnzbd/sabnzbd.ini
Last edited by unirox on June 25th, 2011, 7:45 am, edited 1 time in total.
unirox
Newbie
Newbie
Posts: 13
Joined: June 23rd, 2011, 11:20 am

Re: Help needed with D-Link DNS-325

Post by unirox »

Need some help with this error log..

Code: Select all

/opt/lib/python2.5/site-packages/Cheetah/Compiler.py:1509: UserWarning: 
You don't have the C version of NameMapper installed! I'm disabling Cheetah's useStackFrames option as it is painfully slow with the Python version of NameMapper. You should get a copy of Cheetah with the compiled C version of NameMapper.
  "\nYou don't have the C version of NameMapper installed! "
I have this packages installed so I don't understand the error..

Code: Select all

bzip2 - 1.0.6-1 - Very high-quality data compression program
libdb - 4.2.52-3 - Berkeley DB Libraries
libstdc++ - 6.0.9-6 - Standard C++ library, needed for dynamically linked C++ programs
ncurses - 5.7-1 - NCurses libraries
ncursesw - 5.7-1 - NCurses libraries with wide char support
openssl - 0.9.8p-1 - Openssl provides the ssl implementation in libraries libcrypto and libssl, and is needed by many other applications and librari
par2cmdline - 0.4-4 - tool to apply the data-recovery capability concepts of RAID-like systems to the posting & recovery of multi-part archives on Us
py25-cheetah - 2.4.2.1-1 - Cheetah - The Python-Powered Template Engine.
py25-yenc - 0.3-1 - A module that provides only raw yEnc encoding/decoding with builtin crc32 calculation (C implementation).
python25 - 2.5.6-1 - Python is an interpreted, interactive, object-oriented programming language.
readline - 6.1-2 - The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are
sabnzbdplus - 0.5.6-1 - A web-interface based binary newsgrabber written in python, with nzb file support.
sqlite - 3.7.3-1 - SQLite is a small C library that implements a self-contained, embeddable, zero-configuration SQL database engine.
unrar - 3.9.8-1 - unrar is an application that can decompress files and archives created using the RAR compression scheme
unzip - 6.0-2 - A (de)compression library for the ZIP format
zlib - 1.2.5-1 - zlib is a library implementing the 'deflate' compression system.
Why arent unrar, unzip and par2 starting? I have them installed.
See log..

Code: Select all

2011-06-25 15:15:45,628::INFO::[SABnzbd:973] --------------------------------
2011-06-25 15:15:45,656::INFO::[SABnzbd:974] SABnzbd.py-0.5.6 (rev=2503)
2011-06-25 15:15:45,658::INFO::[SABnzbd:984] Platform = posix
2011-06-25 15:15:45,660::INFO::[SABnzbd:985] Python-version = 2.5.6 (r256:88840, May 30 2011, 05:42:53) 
[GCC 4.2.3]
2011-06-25 15:15:46,204::INFO::[__init__:702] /ffp/opt/optware/share/SABnzbd/cache/bookmarks.sab removed
2011-06-25 15:15:46,214::INFO::[postproc:139] Loading postproc queue
2011-06-25 15:15:46,218::INFO::[__init__:702] /ffp/opt/optware/share/SABnzbd/cache/postproc1.sab removed
2011-06-25 15:15:46,232::INFO::[downloader:334] Resuming
2011-06-25 15:15:46,334::INFO::[__init__:251] All processes started
2011-06-25 15:15:46,336::INFO::[SABnzbd:269] Web dir is /ffp/opt/optware/share/SABnzbd/interfaces/Plush
2011-06-25 15:15:46,823::INFO::[SABnzbd:1038] Starting SABnzbd.py-0.5.6
2011-06-25 15:15:46,975::INFO::[dirscanner:375] Dirscanner starting up
2011-06-25 15:15:46,995::INFO::[urlgrabber:103] URLGrabber starting up
2011-06-25 15:15:47,005::INFO::[SABnzbd:390] _yenc module... found!
2011-06-25 15:15:47,007::ERROR::[SABnzbd:400] par2 binär... EJ funnen!
2011-06-25 15:15:47,009::WARNING::[SABnzbd:408] unrar binär... EJ funnen!
2011-06-25 15:15:47,011::WARNING::[SABnzbd:413] unzip binär... EJ funnen!
2011-06-25 15:15:47,013::INFO::[SABnzbd:419] nice binary... NOT found!
2011-06-25 15:15:47,015::INFO::[SABnzbd:423] ionice binary... NOT found!
2011-06-25 15:15:47,016::INFO::[SABnzbd:428] pyOpenSSL... NOT found - try apt-get install python-pyopenssl (SSL is optional)
2011-06-25 15:15:47,027::INFO::[SABnzbd:1136] Starting web-interface on NAS1:8080
2011-06-25 15:15:47,031::INFO::[_cplogging:55] [25/Jun/2011:15:15:47] ENGINE Bus STARTING
2011-06-25 15:15:47,064::INFO::[_cplogging:55] [25/Jun/2011:15:15:47] ENGINE Started monitor thread '_TimeoutMonitor'.
2011-06-25 15:15:47,275::INFO::[_cplogging:55] [25/Jun/2011:15:15:47] ENGINE Serving on NAS1:8080
2011-06-25 15:15:47,277::INFO::[_cplogging:55] [25/Jun/2011:15:15:47] ENGINE Bus STARTED
Last edited by unirox on June 25th, 2011, 7:47 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Help needed with D-Link DNS-325

Post by shypike »

The Namemapper warning is just that, a warning.
It means the Cheetah package creator didn't bother to compile the C module.
It will work without.

unzip and unrar should be in a folder listed in the PATH variable.
unirox
Newbie
Newbie
Posts: 13
Joined: June 23rd, 2011, 11:20 am

Re: Help needed with D-Link DNS-325

Post by unirox »

I really appreciate all the help but I do not know how to put up a PATH in fun_plug file..

when I get this to run proper I will write a clean step-by-step guide to install SABnzbd+ on a D-Link DNS-325. :)

if it's any help the fun_plug file looks like this..

Code: Select all

#!/bin/sh

# funplug for DNS-320/DNS-325 only !
#
# by Tamas   v 1.3

# switch to safe working directory on ramdisk
cd /

# write a log, in case sth goes wrong
FFP_LOG=/mnt/HD/HD_a2/ffp.log
#FFP_LOG=/dev/null
exec >>$FFP_LOG 2>&1

# real path to ffp
FFP_PATH=/mnt/HD/HD_a2/ffp

# where to search for the install tarball
FFP_TARBALL=/mnt/HD/HD_a2/fun_plug.tgz

# setup script (used for ffp on USB disk)
FFP_SETUP_SCRIPT=/mnt/HD/HD_a2/.bootstrap/setup.sh

# rc file path
FFP_RC=/ffp/etc/rc


echo "**** fun_plug script for DNS-325 (2008-08-11 [email protected]) ****"
date


# check for setup script. an example use for this is to load USB
# kernel modules and mount a USB storage device. The script is
# sourced, that means you can change variables, e.g. FFP_PATH to point
# to the USB device.
if [ -x $FFP_SETUP_SCRIPT ]; then
    echo "* Running $FFP_SETUP_SCRIPT ..."
    . $FFP_SETUP_SCRIPT
fi

# create /ffp link
echo "ln -snf $FFP_PATH /ffp"
ln -snf $FFP_PATH /ffp

# install tarball
if [ -r $FFP_TARBALL ]; then
    echo "* Installing $FFP_TARBALL ..."
    mkdir -p $FFP_PATH && tar xzf $FFP_TARBALL -C $FFP_PATH && /ffp/bin/tar xzf $FFP_TARBALL -C $FFP_PATH
    if [ $? -eq 0 ]; then
        echo "* OK"
    fi
    rm $FFP_TARBALL
fi

# suid busybox
if [ -x /ffp/bin/busybox ]; then
    chown root.root /ffp/bin/busybox
    chmod 0755 /ffp/bin/busybox
    chmod u+s /ffp/bin/busybox
fi

# run fun_plug.init, if present
if [ -x /ffp/etc/fun_plug.init ]; then
    echo "* Running /ffp/etc/fun_plug.init ..."
    /ffp/etc/fun_plug.init
fi

# run fun_plug.local, if present
if [ -x /ffp/etc/fun_plug.local ]; then
    echo "* Running /ffp/etc/fun_plug.local ..."
    /ffp/etc/fun_plug.local
fi

# run commands
if [ -x $FFP_RC ]; then
    echo "* Running $FFP_RC ..."
    $FFP_RC
    echo "*  OK"
else
    echo "$FFP_RC: Not found or not executable"
fi

/ffp/opt/optware/share/SABnzbd/SABnzbd.py -s:8080 -d -f /ffp/opt/optware/share/SABnzbd/sabnzbd.ini
Last edited by unirox on June 25th, 2011, 12:10 pm, edited 1 time in total.
unirox
Newbie
Newbie
Posts: 13
Joined: June 23rd, 2011, 11:20 am

Re: Help needed with D-Link DNS-325

Post by unirox »

Have now solved this too.. added som path to /ffp/etc/fun_plug.init

added:

Code: Select all

# Create symbolic link /mnt/HD_a2 to point to /mnt/HD/HD_a2
ln -snf /mnt/HD/HD_a2 /mnt/HD_a2

#par2 symbolic links for opt/sabnzbd
ln -snf /opt/bin/par2 /bin/par2
ln -snf /opt/bin/unrar /bin/unrar
ln -snf /opt/bin/unzip /bin/unzip
Allmost everyting is running now execpt for SSL.. havent found any package for this yet.
Last edited by unirox on June 25th, 2011, 2:20 pm, edited 1 time in total.
Post Reply