Sabnzbd unMenu package


Recommended Posts

download the file and do an md5sum on it from the unRAID box. There are also windows tools that will do the same thing.

 

Thank you.

downloaded the conf file on first post, replaced the new details :

# sabnzbd
PACKAGE_URL http://sourceforge.net/projects/sabnzbdplus/files/sabnzbdplus/sabnzbd-0.6.14/SABnzbd-0.6.14-src.tar.gz/download
PACKAGE_FILE SABnzbd-0.6.14-src.tar.gz
PACKAGE_MD5 249dc97ed187065198bcb83acb04738b

and :

PACKAGE_VERSION_STRING 0.6.14

 

closed SAB, deleted all the old SAB stuff, config etc. Rebooted, remounted cache, went to unmenu installed SAB -> downloaded successfully, clicked install... waited...

The page has frozen and I cant access unmenu now. I rebooted over telnet and retried x2 but same thing. Cant get it installed. Think I will have to do a reboot again and go backways

 

 

I was trying to do the exact same thing today and also stuck on trying to install.

When I click install, it just never finishes and crashed Unmenu.

 

Cant say for sure what the problem is, but it isnt just you who is getting this. I feel I may have already dont some rash moves trying to fix it.

 

Anyone know the issue?

Link to comment
  • Replies 360
  • Created
  • Last Reply

Top Posters In This Topic

Thanks p1lot,

I have been following the steps to the 't'.

 

This time (before i installed anything) i did a

rm -r -v /mnt/cache/_Usenet

 

and was surprised by how many files were deleted, took a good few mins.

 

doing a (during unmenu busy busy instally sab time)

du -k /mnt/cache/_Usenet

shows that files+folders are being created all the time so its not stalled.

 

This time I am gonna leave the installer for at least 30mins and will report back

Link to comment

this is after rebooting and immediately going to install SAB (all dependencies re-installed on reboot)

 

root@Tower:/mnt/cache# tail -f /var/log/syslog
Dec 13 20:17:30 Tower in.telnetd[9452]: connect from 192.168.1.101 (192.168.1.101)
Dec 13 20:17:30 Tower login[9453]: ROOT LOGIN  on `pts/0' from `192.168.1.101'
Dec 13 20:17:46 Tower kernel: REISERFS (device sdd1): found reiserfs format "3.6" with standard journal
Dec 13 20:17:46 Tower kernel: REISERFS (device sdd1): using ordered data mode
Dec 13 20:17:46 Tower kernel: REISERFS (device sdd1): journal params: device sdd1, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
Dec 13 20:17:46 Tower kernel: REISERFS (device sdd1): checking transaction log (sdd1)
Dec 13 20:17:46 Tower kernel: REISERFS (device sdd1): Using r5 hash to sort names
Starting the install of SABnzb
Dec 13 20:23:58 Tower in.telnetd[10479]: connect from 192.168.1.101 (192.168.1.101)
Dec 13 20:23:58 Tower login[10480]: ROOT LOGIN  on `pts/0' from `192.168.1.101'

 

contents of manual install

PACKAGE_DIRECTORY=/boot/packages
SCRIPT_DIRECTORY=/boot/unmenu
MyHost=Tower
MyPort=8080
vINSTALL_DIR="/mnt/cache/_Usenet/_sabnzbd"
vINSTALL_HOST="0.0.0.0"
vINSTALL_PORT="8081"
vLOG_DIR="/var/log/sabnzbd"
vDOWNLOAD_DIR="/mnt/cache/_Usenet/_downloads"
vCOMPLETE_DIR="/mnt/cache/_Usenet/_complete"
if [[ ! -f /usr/bin/python && ! -f "${PACKAGE_DIRECTORY}"/python-2.6.4-i486-1.txz ]]; then
echo "Required dependency, python-2.6.4-i486-1.txz, has not been installed. Please install it before installing SABnzbd."
echo "You can install the package <a href=\"http://${MyHost}{MyPort}/pkg_manager?select-python-2.6.4-i486-1.txz=Select+python-2.6.4-i486-1.txz\">Here</a>" 
exit
else
test ! -f /usr/bin/python && installpkg "${PACKAGE_DIRECTORY}"/python-2.6.4-i486-1.txz
fi
if [[ ! -f /usr/bin/cheetah && ! -f "${PACKAGE_DIRECTORY}"/python-cheetah-2.4.2.1-i486-1alien.tgz ]]; then
echo "Required dependency, python-cheetah-2.4.2.1-i486-1alien.tgz, has not been installed. Please install it before installing SABnzbd."
echo "You can install the package <a href=\"http://${MyHost}{MyPort}/pkg_manager?select-python-cheetah-2.4.2.1-i486-1alien.tgz=Select+python-cheetah-2.4.2.1-i486-1alien.tgz\">Here</a>" 
exit
else
test ! -f /usr/bin/cheetah && installpkg "${PACKAGE_DIRECTORY}"/python-cheetah-2.4.2.1-i486-1alien.tgz
fi
if [[ ! -f /usr/lib/python2.6/site-packages/yenc.py && ! -f "${PACKAGE_DIRECTORY}"/python-yenc-0.3-i486-1alien.tgz ]]; then
echo "Required dependency, python-yenc-0.3-i486-1alien.tgz, has not been installed. Please install it before installing SABnzbd."
exit
else
test ! -f /usr/lib/python2.6/site-packages/yenc.py && installpkg "${PACKAGE_DIRECTORY}"/python-yenc-0.3-i486-1alien.tgz
fi
if [[ ! -f /usr/bin/par2 && ! -f "${PACKAGE_DIRECTORY}"/par2cmdline_tbb-0.4-i486-1kh.tgz ]]; then
echo "Required dependency, par2cmdline_tbb-0.4-i486-1kh.tgz, has not been installed. Please install it before installing SABnzbd."
exit
else
test ! -f /usr/bin/par2 && installpkg "${PACKAGE_DIRECTORY}"/par2cmdline_tbb-0.4-i486-1kh.tgz
fi
if [[ ! -f /usr/bin/sqlite3 && ! -f "${PACKAGE_DIRECTORY}"/sqlite-3.6.23.1-i486-1.txz ]]; then
echo "Required dependency, sqlite-3.6.23.1-i486-1.txz, has not been installed. Please install it before installing SABnzbd."
echo "You can install the package <a href=\"http://${MyHost}{MyPort}/pkg_manager?select-sqlite-3.6.23.1-i486-1.txz=Select+sqlite-3.6.23.1-i486-1.txz\">Here</a>" 
exit
else
test ! -f /usr/bin/sqlite3 && installpkg "${PACKAGE_DIRECTORY}"/sqlite-3.6.23.1-i486-1.txz
fi
if [[ ! -f /usr/bin/unrar && ! -f "${PACKAGE_DIRECTORY}"/unrar-3.9.10-i486-2alien.tgz ]]; then
echo "Required dependency, unrar-3.9.10-i486-2alien.tgz, has not been installed. Please install it before installing SABnzbd."
echo "You can install the package <a href=\"http://${MyHost}{MyPort}/pkg_manager?select-unrar-3.9.10-i486-2alien.tgz=Select+unrar-3.9.10-i486-2alien.tgz\">Here</a>" 
exit
else
test ! -f /usr/bin/unrar && installpkg "${PACKAGE_DIRECTORY}"/unrar-3.9.10-i486-2alien.tgz
fi
if [[ ! -f /usr/bin/unzip && ! -f "${PACKAGE_DIRECTORY}"/infozip-5.52-i486-2.tgz ]]; then
echo "Required dependency, infozip-5.52-i486-2.tgz, has not been installed. Please install it before installing SABnzbd."
echo "You can install the package <a href=\"http://${MyHost}{MyPort}/pkg_manager?select-infozip-5.52-i486-2.tgz=Select+infozip-5.52-i486-2.tgz\">Here</a>" 
exit
else
test ! -f /usr/bin/unzip && installpkg "${PACKAGE_DIRECTORY}"/infozip-5.52-i486-2.tgz
fi
if [[ ! -f /usr/bin/gettext && ! -f "${PACKAGE_DIRECTORY}"/gettext-0.17-i486-3.txz ]]; then
echo "Required dependency, gettext-0.17-i486-3.txz, has not been installed. Please install it before installing SABnzbd."
exit
else
test ! -f /usr/bin/gettext && installpkg "${PACKAGE_DIRECTORY}"/gettext-0.17-i486-3.txz
fi
if [[ ! -f /usr/bin/openssl && ! -f "${PACKAGE_DIRECTORY}"/openssl-0.9.8n-i486-1.txz ]]; then
echo "Required dependency, openssl-0.9.8n-i486-1.txz, has not been installed. Please install it before installing SABnzbd."
echo "You can install the package <a href=\"http://${MyHost}{MyPort}/pkg_manager?select-openssl-0.9.8n-i486-1.txz=Select+openssl-0.9.8n-i486-1.txz\">Here</a>" 
exit
else
test ! -f /usr/bin/openssl && installpkg "${PACKAGE_DIRECTORY}"/openssl-0.9.8n-i486-1.txz
fi
if [[ ! -f /usr/lib/python2.6/site-packages/OpenSSL/SSL.so && ! -f "${PACKAGE_DIRECTORY}"/pyopenssl-0.10-i486-2sl.txz ]]; then
echo "Required dependency, pyopenssl-0.10-i486-2sl.txz, has not been installed. Please install it before installing SABnzbd."
exit
else
test ! -f /usr/lib/python2.6/site-packages/OpenSSL/SSL.so && installpkg "${PACKAGE_DIRECTORY}"/pyopenssl-0.10-i486-2sl.txz
fi
if [[ ! -z $(ps -ef | grep SABnzbd.py | grep -v grep | awk '{print$2}') ]]; then
sleep 5
for i in $(ps -ef | grep SABnzbd.py | grep -v grep | awk '{print$2}')
do
if [[ $(ps -fp $i | awk 'NR>1' | awk '{print $9}') = "${vINSTALL_DIR-/mnt/cache/.sabnzbd}/SABnzbd.py" ]]; then
kill $i
echo "<font color=\"red\"><b>Stopped SABnzbd process $i</b></font>"
echo "Stopped SABnzbd process $i" >> /var/log/syslog
fi
done
fi
sleep 10
counter=0
keep_going=true
while [[ $counter -lt 10 && $keep_going != false ]]
do
if [[ $(ls /mnt/disk[1-20] | wc -l) -eq 0 ]]; then
echo "Nothing in /mnt so SABnzbd cannot be installed.  Sleeping for 10 seconds and then trying again." >> /var/log/syslog
counter=$(( $counter + 1 ))
sleep 10
else
echo "Starting the install of SABnzb" >> /var/log/syslog
INSTALLED_SABNZBD_VERSION=`"${vINSTALL_DIR-/mnt/cache/.sabnzbd}"/SABnzbd.py -v 2>&1 | awk 'NR==2' | awk '{print $1}' | awk '{split($0,a,"-"); print a[2]}'`
cd "${PACKAGE_DIRECTORY}"
LATEST_DOWNLOADED_VERSION=`find . -type f -name "SABnzbd-*-src.tar.gz" -print0 | xargs -0 ls -tr | awk 'END{print $NF}' | awk '{split($0,a,"-"); print a[2]}'`
if [[ ! -f "${vINSTALL_DIR-/mnt/cache/.sabnzbd}/SABnzbd.py" || "${INSTALLED_SABNZBD_VERSION}" != "${LATEST_DOWNLOADED_VERSION}" ]]; then
test ! -f /usr/bin/bzip2 && echo "An untar program was not detected.  Please install the Parallel bzip package."
test ! -f /usr/bin/bzip2 && exit
cd "${PACKAGE_DIRECTORY}"
LATEST_DOWNLOADED_FILE=`find . -type f -name "SABnzbd-*-src.tar.gz" -print0 | xargs -0 ls -tr | awk 'END{print  $NF}' | awk '{split($0,a,"/"); print a[2]}'`
if [ -f /usr/bin/bzip2 ]; then 
tar --no-same-owner -zxpf "${LATEST_DOWNLOADED_FILE}";
else
tar --use-compress-prog=pbzip2 --no-same-owner -zxpf "${LATEST_DOWNLOADED_FILE}";
fi
cd "${PACKAGE_DIRECTORY}"
EXTRACTED_DIRECTORY=`find . -type d -name "SABnzbd-*" -print0 | xargs -0 | awk 'END{print $NF}' | awk '{split($0,a,"/"); print a[2]}'`
mkdir -p "${vINSTALL_DIR-/mnt/cache/.sabnzbd}"
cd $EXTRACTED_DIRECTORY
cp -rf . "${vINSTALL_DIR-/mnt/cache/.sabnzbd}"
echo "<font color=\"green\"><b>Installed SABnzbd to ${vINSTALL_DIR-/mnt/cache/.sabnzbd}</b></font>"
echo "Installed SABnzbd to ${vINSTALL_DIR-/mnt/cache/.sabnzbd}" >> /var/log/syslog
else
echo "<font color=\"blue\"><b>The latest version of SABnzbd is already installed at ${vINSTALL_DIR-/mnt/cache/.sabnzbd}</b></font>"
echo "The latest version of SABnzbd is already installed at ${vINSTALL_DIR-/mnt/cache/.sabnzbd}" >> /var/log/syslog
fi
if [ ! -e "${vINSTALL_DIR-/mnt/cache/.sabnzbd}"/sabnzbd.ini ]; then
echo "[misc]" > "${vINSTALL_DIR-/mnt/cache/.sabnzbd}"/sabnzbd.ini
echo "port = ${vINSTALL_PORT-8081}" >> "${vINSTALL_DIR-/mnt/cache/.sabnzbd}"/sabnzbd.ini
echo "host = ${vINSTALL_HOST-0.0.0.0}" >> "${vINSTALL_DIR-/mnt/cache/.sabnzbd}"/sabnzbd.ini
echo "log_dir = ${vLOG_DIR-/var/log/sabnzbd}" >> "${vINSTALL_DIR-/mnt/cache/.sabnzbd}"/sabnzbd.ini
echo "download_dir = ${vDOWNLOAD_DIR-/mnt/disk1/downloads}" >> "${vINSTALL_DIR-/mnt/cache/.sabnzbd}"/sabnzbd.ini
echo "complete_dir = ${vCOMPLETE_DIR-/mnt/disk1/complete}" >> "${vINSTALL_DIR-/mnt/cache/.sabnzbd}"/sabnzbd.ini
echo "Created sabnzbd.ini file"
echo "Created sabnzbd.ini file" >> /var/log/syslog
else
echo "SABnzb sabnzbd.ini file already exists"
echo "SABnzb sabnzbd.ini file already exists" >> /var/log/syslog
fi
[ ! -d /etc/rc.d/unraid.d ] && mkdir /etc/rc.d/unraid.d
echo "Created unraid.d directory"
echo "Created unraid.d directory" >> /var/log/syslog
echo 'case $1 in' > /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "start)" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "if test -e /etc/rc.d/unraid.d/rc.unraid_sabnzbd -a \$(ps auxwww|grep SABnzbd.py|grep -v grep|wc -l) -lt 1; then" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "   if [ -d \"${vINSTALL_DIR-/mnt/cache/.sabnzbd}\" ]; then" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "      test -f /etc/unraid-version && UNRAID_VERSION=\`cat /etc/unraid-version | awk '{split(\$0,a,\"=\"); print a[2]}' | awk '{split(\$0,b,\"-\"); print b[1]}'\`" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "      if [ \"\${UNRAID_VERSION}\" = \"5.0\" ]; then" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         cd ${vINSTALL_DIR-/mnt/cache/.sabnzbd}" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         chown -R nobody:users ." >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         chmod 755 ${vINSTALL_DIR-/mnt/cache/.sabnzbd}/sabnzbd.ini"  >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         LOG_DIR=\$(cat ${vINSTALL_DIR-/mnt/cache/.sabnzbd}/sabnzbd.ini | grep log_dir | awk '{print \$3}')" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         mkdir -p \$LOG_DIR" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         DOWNLOAD_DIR=\$(cat ${vINSTALL_DIR-/mnt/cache/.sabnzbd}/sabnzbd.ini | grep download_dir | awk '{print \$3}')" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         mkdir -p \$DOWNLOAD_DIR" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         COMPLETE_DIR=\$(cat ${vINSTALL_DIR-/mnt/cache/.sabnzbd}/sabnzbd.ini | grep complete_dir | awk '{print \$3}')" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         mkdir -p \$COMPLETE_DIR" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         chown -R nobody:users \${LOG_DIR}" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         chown -R nobody:users \${DOWNLOAD_DIR}" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         chown -R nobody:users \${COMPLETE_DIR}" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         usermod -s /bin/bash nobody > /dev/null 2>&1" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         su nobody -c \"python ${vINSTALL_DIR-/mnt/cache/.sabnzbd}/SABnzbd.py --daemon -f  \"${vINSTALL_DIR-/mnt/cache/.sabnzbd}/sabnzbd.ini\" > /dev/null 2>&1\"" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         echo \"SABnzbd started as nobody.\"" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "      else" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         LOG_DIR=\$(cat ${vINSTALL_DIR-/mnt/cache/.sabnzbd}/sabnzbd.ini |grep log_dir | awk '{print \$3}')" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         mkdir -p \$LOG_DIR" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         DOWNLOAD_DIR=\$(cat ${vINSTALL_DIR-/mnt/cache/.sabnzbd}/sabnzbd.ini | grep download_dir | awk '{print \$3}')" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         mkdir -p \$DOWNLOAD_DIR" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         COMPLETE_DIR=\$(cat ${vINSTALL_DIR-/mnt/cache/.sabnzbd}/sabnzbd.ini | grep complete_dir | awk '{print \$3}')" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         mkdir -p \$COMPLETE_DIR" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         python ${vINSTALL_DIR-/mnt/cache/.sabnzbd}/SABnzbd.py --daemon -f  \"${vINSTALL_DIR-/mnt/cache/.sabnzbd}/sabnzbd.ini\" > /dev/null 2>&1" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         echo \"SABnzbd started as root.\"" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "      fi" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "    else" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "      echo \"SABnzbd could not be started because the installation directory, ${vINSTALL_DIR-/mnt/cache/.sabnzbd}, could not be found.\"" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "      echo \"If SABnzbd is installed on the unRAID array and the array is stopped, use the buttons on the User Scripts page to start SABnzbd once the array is started.\"" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "    fi" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "else" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "   echo \"SABnzbd is already started.\"" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "fi" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo ";;" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "stop)" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "if [[ ! -z \$(ps -ef | grep SABnzbd.py | grep -v grep | awk '{print\$2}') ]]; then" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "   sleep 5" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "   for i in \$(ps -ef | grep SABnzbd.py | grep -v grep | awk '{print\$2}')" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "   do" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "      if [[ \$(ps -fp \$i | awk 'NR>1' | awk '{print \$9}') = \"${vINSTALL_DIR-/mnt/cache/.sabnzbd}/SABnzbd.py\" ]]; then" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         kill \$i" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         echo \"<font color=\\\"red\\\"><b>Killed SABnzbd process \$i</b></font>\"" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "      fi" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "      sleep 5" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "   done" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "   echo \"SABnzbd stopped.\"" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "else" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "   echo \"SABnzbd is already stopped.\"" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "fi" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo ";;" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "version)" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "chmod +x ${vINSTALL_DIR-/mnt/cache/.sabnzbd}/SABnzbd.py" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "${vINSTALL_DIR-/mnt/cache/.sabnzbd}/SABnzbd.py -v 2>&1 | awk 'NR==2' | awk '{print \$1}' | awk '{split(\$0,a,\"-\"); print a[2]}'" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo ";;" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "esac" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
chmod +x /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "Created init script, /etc/rc.d/unraid.d/rc.unraid_sabnzbd"
echo "Created init script, /etc/rc.d/unraid.d/rc.unraid_sabnzbd" >> /var/log/syslog
echo "#define USER_SCRIPT_LABEL Start SABnzbd" > "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo "#define USER_SCRIPT_DESCR This will start SABnzbd" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo "#define USER_SCRIPT_RELOAD 15" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo "echo \"<pre>\"" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo "#set -xv" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo "if [ -f /etc/rc.d/unraid.d/rc.unraid_sabnzbd ]; then" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo "   /etc/rc.d/unraid.d/rc.unraid_sabnzbd start" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo "else" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo "   echo \"The rc.unraid_sabnzbd script does not exist, please try reinstalling the application\"" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo "fi" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo   >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
chmod +x "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo "Created unmenu start script, ${SCRIPT_DIRECTORY}/42-unmenu_user_script_start_sabnzbd"
echo "Created unmenu start script, ${SCRIPT_DIRECTORY}/42-unmenu_user_script_start_sabnzbd" >> /var/log/syslog
echo "#define USER_SCRIPT_LABEL Stop SABnzbd" > "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo "#define USER_SCRIPT_DESCR This will stop SABnzbd" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo "#define USER_SCRIPT_RELOAD 15" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo "echo \"<pre>\"" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo "#set -xv" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo "if [ -f /etc/rc.d/unraid.d/rc.unraid_sabnzbd ]; then" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo "   /etc/rc.d/unraid.d/rc.unraid_sabnzbd stop" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo "else" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo "   echo \"The rc.unraid_sabnzbd script does not exist, please try reinstalling the application\"" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo "fi" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo   >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
chmod +x "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo "Created unmenu stop script, ${SCRIPT_DIRECTORY}/42-unmenu_user_script_stop_sabnzbd"
echo "Created unmenu stop script, ${SCRIPT_DIRECTORY}/42-unmenu_user_script_stop_sabnzbd" >> /var/log/syslog
/etc/rc.d/unraid.d/rc.unraid_sabnzbd start
echo "Please go <a target=\"_blank\" href=\"http://${MyHost}{vINSTALL_PORT}\"><b>Here</b></a> to setup SABnzbd the rest of the way</br></br>" 
echo "<font color=\"blue\"><b>Please look through all setting in the config menu of SABnzbd and make sure they are what you need them to be.</b></font>"
keep_going=false
fi
done

 

Thanks,

I might try the manual install after/if this ever stops. Its coming up to the 2 hour mark

 

Link to comment

the /mnt/cache/_Usenet directory finished updating eventually and it unfroze unmenu. Unfortunately SAB didnt install.

I deleted everything and decided to go back to 1.10 as the .conf here allows. I notice the folder structure (like 1.14) is different.

My original SAB install was in /mnt/cache/.sabnzbd while this is /mnt/cache/_Usenet/_sabnzdb.

 

Again even with the 1.10 its taking so long. Im pretty sure it's to do with it adding entries for all my movies/media on the raid disks which I dont want it to do and the previous version of sab i had didnt do.

 

here are some random entries from the du -k /mnt/cache/_Usenet command I ran:

1686489	_Usenet/_sabnzbd/mnt/user/Movies/Up
44	_Usenet/_sabnzbd/mnt/cache/.sickbeard/lib/growl
4 _Usenet/_sabnzbd/sys/devices/pci0000:00/0000:00:06.0/0000:02:00.0/net/eth0/power
20	_Usenet/_sabnzbd/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:0
52	_Usenet/_sabnzbd/usr/doc/python-2.6.4/Demo/classes
1542	_Usenet/_sabnzbd/usr/doc/python-2.6.4/Demo
4	_Usenet/_sabnzbd/usr/lib/locale/hsb_DE/LC_MESSAGES

0	_Usenet/_sabnzbd/proc/acpi
0	_Usenet/_sabnzbd/proc/10475/fd
1	_Usenet/_sabnzbd/proc/10475/net
0	_Usenet/_sabnzbd/proc/10475/task/10475/fd
0	_Usenet/_sabnzbd/proc/10475/task/10475/fdinfo
1	_Usenet/_sabnzbd/proc/10475/task/10475
1	_Usenet/_sabnzbd/proc/10475/task
0	_Usenet/_sabnzbd/proc/10475/fdinfo
2	_Usenet/_sabnzbd/proc/10475
0	_Usenet/_sabnzbd/proc/driver
0	_Usenet/_sabnzbd/proc/sysvipc
173759	_Usenet/_sabnzbd/proc
5669	_Usenet/_sabnzbd/sbin
449452411	_Usenet/_sabnzbd
449452411	_Usenet/

 

It has every single file on the raid, cache, usb stick? stored in its directory structure by the looks of it?

that doesnt sound normal?

Would the fact that a parity check in progress have anything to do with it?

I installed transmission just to see if I was doing something glaring wrong and it installed perfectly and in seconds..

Im not really sure what to do now... the original SAB.conf pasted into the packages folder with no other SAB entries is doing the exact same thing in terms of copying a folder image (?) into its folders

 

edit: Just realised the link for the SAB setup wizard is different to the link in my browser so maybe after the long wait it did install correctly, I will look again tomorrow since it will be about 2-3 hours install time

Link to comment

if it has been going for 2 hours something is not working correctly.

The reason I left it running was the _usenet folder size was getting bigger (in terms of MB and files in it) so i thought well it aint idle so I will see if it stops, I also had a parity that I didnt wanna stop but I ended up stopping by reboot in frustration

Link to comment

your supposed to change the install location to what yours needs to be.  The reason it is different from last time is because I forgot to change it before uploading the changes.

 

And I am looking into this right now.

 

 

EDIT:

OK, I know what the issue is... working on a fix right now... should have it posted shortly.

Link to comment

Im happy once its anywhere on the cache drive, I was just wondering was it a big revamp or something with all the folders.

 

Great, thanks for help prostuff

 

New one attached to the first post, please try it out.

 

install seems to be looking for a file not there. Although I have custom install location

 

 

 

/boot/packages/SABnzbd-0.6.14-src.tar.gz.manual_install: line 115: cd: 0.6.14: No such file or directory
Installed SABnzbd to /mnt/cache/.custom/sabnzbd
SABnzb sabnzbd.ini file already exists
Created unraid.d directory
Created init script, /etc/rc.d/unraid.d/rc.unraid_sabnzbd
Created unmenu start script, /boot/unmenu/42-unmenu_user_script_start_sabnzbd
Created unmenu stop script, /boot/unmenu/42-unmenu_user_script_stop_sabnzbd
SABnzbd started as nobody.
Please go Here to setup SABnzbd the rest of the way

 

 

haha for some reason it has copied the contents of package dir to my custom install location.

Link to comment

I went to bed with my cache having about 440gb free space and installing SAB. I awoke to see my transmission saying there is no more space to put the 2gb file i was downloading.

Again the SAB folder contains everything on the raid and cache drive (maybe usb stick too didnt see any entries flash by), its been deleting the /mnt/cache/.sabnzbd folder for the last 5 mins and hasnt gotten through my movies yet. A sample of my movie taste :

removed `.sabnzbd//mnt/user/Movies/The Orphanage/El orfanato (2007).avi'
removed `.sabnzbd//mnt/user/Movies/The Orphanage/Thumbs.db'
removed directory: `.sabnzbd//mnt/user/Movies/The Orphanage'
removed `.sabnzbd//mnt/user/Movies/Lost Highway/Lost Highway.avi'
removed directory: `.sabnzbd//mnt/user/Movies/Lost Highway'
removed `.sabnzbd//mnt/user/Movies/Thursday/Thursday.avi'
removed `.sabnzbd//mnt/user/Movies/Thursday/Thumbs.db'
removed directory: `.sabnzbd//mnt/user/Movies/Thursday'
removed `.sabnzbd//mnt/user/Movies/Lethal Weapon 2/Lethal Weapon 2 (1989).avi'
removed directory: `.sabnzbd//mnt/user/Movies/Lethal Weapon 2'
removed `.sabnzbd//mnt/user/Movies/Lethal Weapon 3/Lethal Weapon 3 (1992).avi'
removed directory: `.sabnzbd//mnt/user/Movies/Lethal Weapon 3'
removed `.sabnzbd//mnt/user/Movies/Lethal Weapon 4/Lethal Weapon 4 (1998).avi'
removed directory: `.sabnzbd//mnt/user/Movies/Lethal Weapon 4'
removed `.sabnzbd//mnt/user/Movies/Bad Santa/Thumbs.db'
removed `.sabnzbd//mnt/user/Movies/Bad Santa/Bad Santa.avi'
removed directory: `.sabnzbd//mnt/user/Movies/Bad Santa'
removed `.sabnzbd//mnt/user/Movies/Star Wars Episode IV - A New Hope/Star Wars Episode IV - A New Hope (1977).avi'
removed directory: `.sabnzbd//mnt/user/Movies/Star Wars Episode IV - A New Hope'

 

Gonna try 6.7 again and see what that does.

and remember SABnzdb is watching you..  :D

 

 

Link to comment

/boot/packages/SABnzbd-0.6.14-src.tar.gz.manual_install: line 115: cd: 0.6.14: No such file or directory
Installed SABnzbd to /mnt/cache/.custom/sabnzbd
SABnzb sabnzbd.ini file already exists
Created unraid.d directory
Created init script, /etc/rc.d/unraid.d/rc.unraid_sabnzbd
Created unmenu start script, /boot/unmenu/42-unmenu_user_script_start_sabnzbd
Created unmenu stop script, /boot/unmenu/42-unmenu_user_script_stop_sabnzbd
SABnzbd started as nobody.
Please go Here to setup SABnzbd the rest of the way

 

 

haha for some reason it has copied the contents of package dir to my custom install location.

 

It was trying to "cd" to a nonexistant directory.

 

Can I please get the contents of the .manual_install file!!

Link to comment

SABnzbd-0.6.14-src.tar.gz.manual_install

 

PACKAGE_DIRECTORY=/boot/packages
SCRIPT_DIRECTORY=/boot/unmenu
MyHost=Tower
MyPort=8080
vINSTALL_DIR="/mnt/cache/.sabnzbd"
vINSTALL_HOST="0.0.0.0"
vINSTALL_PORT="8081"
vLOG_DIR="/var/log/sabnzbd"
vDOWNLOAD_DIR="/mnt/cache/.sabnzbd/downloads"
vCOMPLETE_DIR="/mnt/cache/.sabnzbd/complete"
if [[ ! -f /usr/bin/python && ! -f "${PACKAGE_DIRECTORY}"/python-2.6.4-i486-1.txz ]]; then
echo "Required dependency, python-2.6.4-i486-1.txz, has not been installed. Please install it before installing SABnzbd."
echo "You can install the package <a href=\"http://${MyHost}{MyPort}/pkg_manager?select-python-2.6.4-i486-1.txz=Select+python-2.6.4-i486-1.txz\">Here</a>" 
exit
else
test ! -f /usr/bin/python && installpkg "${PACKAGE_DIRECTORY}"/python-2.6.4-i486-1.txz
fi
if [[ ! -f /usr/bin/cheetah && ! -f "${PACKAGE_DIRECTORY}"/python-cheetah-2.4.2.1-i486-1alien.tgz ]]; then
echo "Required dependency, python-cheetah-2.4.2.1-i486-1alien.tgz, has not been installed. Please install it before installing SABnzbd."
echo "You can install the package <a href=\"http://${MyHost}{MyPort}/pkg_manager?select-python-cheetah-2.4.2.1-i486-1alien.tgz=Select+python-cheetah-2.4.2.1-i486-1alien.tgz\">Here</a>" 
exit
else
test ! -f /usr/bin/cheetah && installpkg "${PACKAGE_DIRECTORY}"/python-cheetah-2.4.2.1-i486-1alien.tgz
fi
if [[ ! -f /usr/lib/python2.6/site-packages/yenc.py && ! -f "${PACKAGE_DIRECTORY}"/python-yenc-0.3-i486-1alien.tgz ]]; then
echo "Required dependency, python-yenc-0.3-i486-1alien.tgz, has not been installed. Please install it before installing SABnzbd."
exit
else
test ! -f /usr/lib/python2.6/site-packages/yenc.py && installpkg "${PACKAGE_DIRECTORY}"/python-yenc-0.3-i486-1alien.tgz
fi
if [[ ! -f /usr/bin/par2 && ! -f "${PACKAGE_DIRECTORY}"/par2cmdline_tbb-0.4-i486-1kh.tgz ]]; then
echo "Required dependency, par2cmdline_tbb-0.4-i486-1kh.tgz, has not been installed. Please install it before installing SABnzbd."
exit
else
test ! -f /usr/bin/par2 && installpkg "${PACKAGE_DIRECTORY}"/par2cmdline_tbb-0.4-i486-1kh.tgz
fi
if [[ ! -f /usr/bin/sqlite3 && ! -f "${PACKAGE_DIRECTORY}"/sqlite-3.6.23.1-i486-1.txz ]]; then
echo "Required dependency, sqlite-3.6.23.1-i486-1.txz, has not been installed. Please install it before installing SABnzbd."
echo "You can install the package <a href=\"http://${MyHost}{MyPort}/pkg_manager?select-sqlite-3.6.23.1-i486-1.txz=Select+sqlite-3.6.23.1-i486-1.txz\">Here</a>" 
exit
else
test ! -f /usr/bin/sqlite3 && installpkg "${PACKAGE_DIRECTORY}"/sqlite-3.6.23.1-i486-1.txz
fi
if [[ ! -f /usr/bin/unrar && ! -f "${PACKAGE_DIRECTORY}"/unrar-3.9.10-i486-2alien.tgz ]]; then
echo "Required dependency, unrar-3.9.10-i486-2alien.tgz, has not been installed. Please install it before installing SABnzbd."
echo "You can install the package <a href=\"http://${MyHost}{MyPort}/pkg_manager?select-unrar-3.9.10-i486-2alien.tgz=Select+unrar-3.9.10-i486-2alien.tgz\">Here</a>" 
exit
else
test ! -f /usr/bin/unrar && installpkg "${PACKAGE_DIRECTORY}"/unrar-3.9.10-i486-2alien.tgz
fi
if [[ ! -f /usr/bin/unzip && ! -f "${PACKAGE_DIRECTORY}"/infozip-5.52-i486-2.tgz ]]; then
echo "Required dependency, infozip-5.52-i486-2.tgz, has not been installed. Please install it before installing SABnzbd."
echo "You can install the package <a href=\"http://${MyHost}{MyPort}/pkg_manager?select-infozip-5.52-i486-2.tgz=Select+infozip-5.52-i486-2.tgz\">Here</a>" 
exit
else
test ! -f /usr/bin/unzip && installpkg "${PACKAGE_DIRECTORY}"/infozip-5.52-i486-2.tgz
fi
if [[ ! -f /usr/bin/gettext && ! -f "${PACKAGE_DIRECTORY}"/gettext-0.17-i486-3.txz ]]; then
echo "Required dependency, gettext-0.17-i486-3.txz, has not been installed. Please install it before installing SABnzbd."
exit
else
test ! -f /usr/bin/gettext && installpkg "${PACKAGE_DIRECTORY}"/gettext-0.17-i486-3.txz
fi
if [[ ! -f /usr/bin/openssl && ! -f "${PACKAGE_DIRECTORY}"/openssl-0.9.8n-i486-1.txz ]]; then
echo "Required dependency, openssl-0.9.8n-i486-1.txz, has not been installed. Please install it before installing SABnzbd."
echo "You can install the package <a href=\"http://${MyHost}{MyPort}/pkg_manager?select-openssl-0.9.8n-i486-1.txz=Select+openssl-0.9.8n-i486-1.txz\">Here</a>" 
exit
else
test ! -f /usr/bin/openssl && installpkg "${PACKAGE_DIRECTORY}"/openssl-0.9.8n-i486-1.txz
fi
if [[ ! -f /usr/lib/python2.6/site-packages/OpenSSL/SSL.so && ! -f "${PACKAGE_DIRECTORY}"/pyopenssl-0.10-i486-2sl.txz ]]; then
echo "Required dependency, pyopenssl-0.10-i486-2sl.txz, has not been installed. Please install it before installing SABnzbd."
exit
else
test ! -f /usr/lib/python2.6/site-packages/OpenSSL/SSL.so && installpkg "${PACKAGE_DIRECTORY}"/pyopenssl-0.10-i486-2sl.txz
fi
if [[ ! -z $(ps -ef | grep SABnzbd.py | grep -v grep | awk '{print$2}') ]]; then
sleep 5
for i in $(ps -ef | grep SABnzbd.py | grep -v grep | awk '{print$2}')
do
if [[ $(ps -fp $i | awk 'NR>1' | awk '{print $9}') = "${vINSTALL_DIR-/mnt/cache/.sabnzbd}/SABnzbd.py" ]]; then
kill $i
echo "<font color=\"red\"><b>Stopped SABnzbd process $i</b></font>"
echo "Stopped SABnzbd process $i" >> /var/log/syslog
fi
done
fi
sleep 10
counter=0
keep_going=true
while [[ $counter -lt 10 && $keep_going != false ]]
do
if [[ $(ls /mnt/disk[1-20] | wc -l) -eq 0 ]]; then
echo "Nothing in /mnt so SABnzbd cannot be installed.  Sleeping for 10 seconds and then trying again." >> /var/log/syslog
counter=$(( $counter + 1 ))
sleep 10
else
echo "Starting the install of SABnzb" >> /var/log/syslog
INSTALLED_SABNZBD_VERSION=`"${vINSTALL_DIR-/mnt/cache/.sabnzbd}"/SABnzbd.py -v 2>&1 | awk 'NR==2' | awk '{print $1}' | awk '{split($0,a,"-"); print a[2]}'`
cd "${PACKAGE_DIRECTORY}"
LATEST_DOWNLOADED_VERSION=`find . -type f -name "SABnzbd-*-src.tar.gz" -print0 | xargs -0 ls -tr | awk 'END{print $NF}' | awk '{split($0,a,"-"); print a[2]}'`
if [[ ! -f "${vINSTALL_DIR-/mnt/cache/.sabnzbd}/SABnzbd.py" || "${INSTALLED_SABNZBD_VERSION}" != "${LATEST_DOWNLOADED_VERSION}" ]]; then
test ! -f /usr/bin/bzip2 && echo "An untar program was not detected.  Please install the Parallel bzip package."
test ! -f /usr/bin/bzip2 && exit
cd "${PACKAGE_DIRECTORY}"
LATEST_DOWNLOADED_FILE=`find . -type f -name "SABnzbd-*-src.tar.gz" -print0 | xargs -0 ls -tr | awk 'END{print  $NF}' | awk '{split($0,a,"/"); print a[2]}'`
if [ -f /usr/bin/bzip2 ]; then 
tar --no-same-owner -zxpf "${LATEST_DOWNLOADED_FILE}";
else
tar --use-compress-prog=pbzip2 --no-same-owner -zxpf "${LATEST_DOWNLOADED_FILE}";
fi
cd "${PACKAGE_DIRECTORY}"
EXTRACTED_DIRECTORY=`find . -type f -name "SABnzbd-*-src.tar.gz" -print0 | xargs -0 ls -tr | awk 'END{print $NF}' | awk '{split($0,a,"-"); print a[2]}'`
mkdir -p "${vINSTALL_DIR-/mnt/cache/.sabnzbd}"
cd $EXTRACTED_DIRECTORY
cp -rf . "${vINSTALL_DIR-/mnt/cache/.sabnzbd}"
echo "<font color=\"green\"><b>Installed SABnzbd to ${vINSTALL_DIR-/mnt/cache/.sabnzbd}</b></font>"
echo "Installed SABnzbd to ${vINSTALL_DIR-/mnt/cache/.sabnzbd}" >> /var/log/syslog
else
echo "<font color=\"blue\"><b>The latest version of SABnzbd is already installed at ${vINSTALL_DIR-/mnt/cache/.sabnzbd}</b></font>"
echo "The latest version of SABnzbd is already installed at ${vINSTALL_DIR-/mnt/cache/.sabnzbd}" >> /var/log/syslog
fi
if [ ! -e "${vINSTALL_DIR-/mnt/cache/.sabnzbd}"/sabnzbd.ini ]; then
echo "[misc]" > "${vINSTALL_DIR-/mnt/cache/.sabnzbd}"/sabnzbd.ini
echo "port = ${vINSTALL_PORT-8081}" >> "${vINSTALL_DIR-/mnt/cache/.sabnzbd}"/sabnzbd.ini
echo "host = ${vINSTALL_HOST-0.0.0.0}" >> "${vINSTALL_DIR-/mnt/cache/.sabnzbd}"/sabnzbd.ini
echo "log_dir = ${vLOG_DIR-/var/log/sabnzbd}" >> "${vINSTALL_DIR-/mnt/cache/.sabnzbd}"/sabnzbd.ini
echo "download_dir = ${vDOWNLOAD_DIR-/mnt/disk1/downloads}" >> "${vINSTALL_DIR-/mnt/cache/.sabnzbd}"/sabnzbd.ini
echo "complete_dir = ${vCOMPLETE_DIR-/mnt/disk1/complete}" >> "${vINSTALL_DIR-/mnt/cache/.sabnzbd}"/sabnzbd.ini
echo "Created sabnzbd.ini file"
echo "Created sabnzbd.ini file" >> /var/log/syslog
else
echo "SABnzb sabnzbd.ini file already exists"
echo "SABnzb sabnzbd.ini file already exists" >> /var/log/syslog
fi
[ ! -d /etc/rc.d/unraid.d ] && mkdir /etc/rc.d/unraid.d
echo "Created unraid.d directory"
echo "Created unraid.d directory" >> /var/log/syslog
echo 'case $1 in' > /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "start)" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "if test -e /etc/rc.d/unraid.d/rc.unraid_sabnzbd -a \$(ps auxwww|grep SABnzbd.py|grep -v grep|wc -l) -lt 1; then" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "   if [ -d \"${vINSTALL_DIR-/mnt/cache/.sabnzbd}\" ]; then" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "      test -f /etc/unraid-version && UNRAID_VERSION=\`cat /etc/unraid-version | awk '{split(\$0,a,\"=\"); print a[2]}' | awk '{split(\$0,b,\"-\"); print b[1]}'\`" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "      if [ \"\${UNRAID_VERSION}\" = \"5.0\" ]; then" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         cd ${vINSTALL_DIR-/mnt/cache/.sabnzbd}" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         chown -R nobody:users ." >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         chmod 755 ${vINSTALL_DIR-/mnt/cache/.sabnzbd}/sabnzbd.ini"  >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         LOG_DIR=\$(cat ${vINSTALL_DIR-/mnt/cache/.sabnzbd}/sabnzbd.ini | grep log_dir | awk '{print \$3}')" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         mkdir -p \$LOG_DIR" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         DOWNLOAD_DIR=\$(cat ${vINSTALL_DIR-/mnt/cache/.sabnzbd}/sabnzbd.ini | grep download_dir | awk '{print \$3}')" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         mkdir -p \$DOWNLOAD_DIR" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         COMPLETE_DIR=\$(cat ${vINSTALL_DIR-/mnt/cache/.sabnzbd}/sabnzbd.ini | grep complete_dir | awk '{print \$3}')" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         mkdir -p \$COMPLETE_DIR" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         chown -R nobody:users \${LOG_DIR}" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         chown -R nobody:users \${DOWNLOAD_DIR}" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         chown -R nobody:users \${COMPLETE_DIR}" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         usermod -s /bin/bash nobody > /dev/null 2>&1" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         su nobody -c \"python ${vINSTALL_DIR-/mnt/cache/.sabnzbd}/SABnzbd.py --daemon -f  \"${vINSTALL_DIR-/mnt/cache/.sabnzbd}/sabnzbd.ini\" > /dev/null 2>&1\"" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         echo \"SABnzbd started as nobody.\"" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "      else" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         LOG_DIR=\$(cat ${vINSTALL_DIR-/mnt/cache/.sabnzbd}/sabnzbd.ini |grep log_dir | awk '{print \$3}')" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         mkdir -p \$LOG_DIR" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         DOWNLOAD_DIR=\$(cat ${vINSTALL_DIR-/mnt/cache/.sabnzbd}/sabnzbd.ini | grep download_dir | awk '{print \$3}')" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         mkdir -p \$DOWNLOAD_DIR" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         COMPLETE_DIR=\$(cat ${vINSTALL_DIR-/mnt/cache/.sabnzbd}/sabnzbd.ini | grep complete_dir | awk '{print \$3}')" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         mkdir -p \$COMPLETE_DIR" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         python ${vINSTALL_DIR-/mnt/cache/.sabnzbd}/SABnzbd.py --daemon -f  \"${vINSTALL_DIR-/mnt/cache/.sabnzbd}/sabnzbd.ini\" > /dev/null 2>&1" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         echo \"SABnzbd started as root.\"" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "      fi" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "    else" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "      echo \"SABnzbd could not be started because the installation directory, ${vINSTALL_DIR-/mnt/cache/.sabnzbd}, could not be found.\"" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "      echo \"If SABnzbd is installed on the unRAID array and the array is stopped, use the buttons on the User Scripts page to start SABnzbd once the array is started.\"" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "    fi" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "else" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "   echo \"SABnzbd is already started.\"" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "fi" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo ";;" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "stop)" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "if [[ ! -z \$(ps -ef | grep SABnzbd.py | grep -v grep | awk '{print\$2}') ]]; then" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "   sleep 5" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "   for i in \$(ps -ef | grep SABnzbd.py | grep -v grep | awk '{print\$2}')" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "   do" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "      if [[ \$(ps -fp \$i | awk 'NR>1' | awk '{print \$9}') = \"${vINSTALL_DIR-/mnt/cache/.sabnzbd}/SABnzbd.py\" ]]; then" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         kill \$i" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "         echo \"<font color=\\\"red\\\"><b>Killed SABnzbd process \$i</b></font>\"" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "      fi" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "      sleep 5" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "   done" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "   echo \"SABnzbd stopped.\"" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "else" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "   echo \"SABnzbd is already stopped.\"" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "fi" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo ";;" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "version)" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "chmod +x ${vINSTALL_DIR-/mnt/cache/.sabnzbd}/SABnzbd.py" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "${vINSTALL_DIR-/mnt/cache/.sabnzbd}/SABnzbd.py -v 2>&1 | awk 'NR==2' | awk '{print \$1}' | awk '{split(\$0,a,\"-\"); print a[2]}'" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo ";;" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "esac" >> /etc/rc.d/unraid.d/rc.unraid_sabnzbd
chmod +x /etc/rc.d/unraid.d/rc.unraid_sabnzbd
echo "Created init script, /etc/rc.d/unraid.d/rc.unraid_sabnzbd"
echo "Created init script, /etc/rc.d/unraid.d/rc.unraid_sabnzbd" >> /var/log/syslog
echo "#define USER_SCRIPT_LABEL Start SABnzbd" > "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo "#define USER_SCRIPT_DESCR This will start SABnzbd" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo "#define USER_SCRIPT_RELOAD 15" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo "echo \"<pre>\"" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo "#set -xv" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo "if [ -f /etc/rc.d/unraid.d/rc.unraid_sabnzbd ]; then" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo "   /etc/rc.d/unraid.d/rc.unraid_sabnzbd start" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo "else" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo "   echo \"The rc.unraid_sabnzbd script does not exist, please try reinstalling the application\"" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo "fi" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo   >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
chmod +x "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_start_sabnzbd
echo "Created unmenu start script, ${SCRIPT_DIRECTORY}/42-unmenu_user_script_start_sabnzbd"
echo "Created unmenu start script, ${SCRIPT_DIRECTORY}/42-unmenu_user_script_start_sabnzbd" >> /var/log/syslog
echo "#define USER_SCRIPT_LABEL Stop SABnzbd" > "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo "#define USER_SCRIPT_DESCR This will stop SABnzbd" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo "#define USER_SCRIPT_RELOAD 15" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo "echo \"<pre>\"" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo "#set -xv" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo "if [ -f /etc/rc.d/unraid.d/rc.unraid_sabnzbd ]; then" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo "   /etc/rc.d/unraid.d/rc.unraid_sabnzbd stop" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo "else" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo "   echo \"The rc.unraid_sabnzbd script does not exist, please try reinstalling the application\"" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo "fi" >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo   >> "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
chmod +x "${SCRIPT_DIRECTORY}"/42-unmenu_user_script_stop_sabnzbd
echo "Created unmenu stop script, ${SCRIPT_DIRECTORY}/42-unmenu_user_script_stop_sabnzbd"
echo "Created unmenu stop script, ${SCRIPT_DIRECTORY}/42-unmenu_user_script_stop_sabnzbd" >> /var/log/syslog
/etc/rc.d/unraid.d/rc.unraid_sabnzbd start
echo "Please go <a target=\"_blank\" href=\"http://${MyHost}{vINSTALL_PORT}\"><b>Here</b></a> to setup SABnzbd the rest of the way</br></br>" 
echo "<font color=\"blue\"><b>Please look through all setting in the config menu of SABnzbd and make sure they are what you need them to be.</b></font>"
keep_going=false
fi
done

 

root@Tower:/boot/packages# SABnzbd-0.6.14-src.tar.gz.manual_install

./SABnzbd-0.6.14-src.tar.gz.manual_install: line 80: syntax error near unexpecte' token `do
'/SABnzbd-0.6.14-src.tar.gz.manual_install: line 80: `do

Link to comment

Hi, I just tried it as a fresh install and changed the custom directory to something slightly different on my cache drive.

But getting the same issue of it just trying to install forever.

Then when I went to delete it, it was massive (GB's)

 

Not sure if it something I have done or if same problem with the .conf file?

 

I have used all your files (Sab, Sick, Couch) for the last year and always worked great, so would want to say thanks so far for those  :) Keep up the good work.

Link to comment

Hi, I just tried it as a fresh install and changed the custom directory to something slightly different on my cache drive.

But getting the same issue of it just trying to install forever.

Then when I went to delete it, it was massive (GB's)

 

Not sure if it something I have done or if same problem with the .conf file?

 

I have used all your files (Sab, Sick, Couch) for the last year and always worked great, so would want to say thanks so far for those  :) Keep up the good work.

 

Thanks for the heads up.

 

I have removed the newest .conf from the first post for now.  Will have to get my test server back up and see what is going on.

 

I have not changed a lot of the pieces so why this is not working is confusing me.

Link to comment

---

But getting the same issue of it just trying to install forever.

Then when I went to delete it, it was massive (GB's)

---

I have to second stradle on this update as well.

Same never ending (almost) install, been doing it's thing for about 9 hrs now and the

sabnzbd folder just keeps growing...suppose it will crash around 1.5 TB (no more space).

Odd indeed.

Link to comment

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.