Kodi Community Forum
CouchPotato - Automatic Movie Downloader via NZB & Torrents - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: CouchPotato - Automatic Movie Downloader via NZB & Torrents (/showthread.php?tid=75960)



- Flomaster - 2010-07-13

ok its all fucked up now

first off my init.d script is not auto starting and the same for Sabnzbdplus... but I can run this and getit started
Code:
sudo /etc/init.d/sabnzbdplus start

I can run the same one for moviemanager
Code:
sudo /etc/init.d/moviemanager start
or this one
Code:
jason@HTPC:/usr/local/sbin/moviemanager$ python MovieManager.py -d
jason@HTPC:/usr/local/sbin/moviemanager$

both ways of starting mm do not result in an error, but when I try and go to the http://localhost:5000/ I get this error in my browser
Code:
This webpage is not available.

The webpage at http://localhost:5000/ might be temporarily down or it may have moved permanently to a new web address.

  More information on this error
Below is the original error message

Error 102 (net::ERR_CONNECTION_REFUSED): Unknown error.


HOW CAN i UNINSTALL so that I can reinstall


either way my init.d is fubar because MM and Sab are NOT auto starting

-=Jason=-


- RuudBurger - 2010-07-13

remove the init.d script and restart.
then do another "install"


- Flomaster - 2010-07-13

RuudBurger Wrote:remove the init.d script and restart.
then do another "install"

Cool I'll try it after work,

this is odd last night while I was sound sleep a movie finished and was processed , renamed , and moved. so MM was running and working, but I was not able access it via the web interface..

-=Jason=-


- Zodiak - 2010-07-13

Sounds like you perhaps changed the port or ip it is listening on for the web interface?


- RuudBurger - 2010-07-13

is it running on localhost? or other port maybe.
Try using <ip>:<port> instead of localhost:<port>
Best option is just let the ip be 0.0.0.0 that way it will be available from/listen to all IPs


- Flomaster - 2010-07-13

some thing is wrong with my user me thinks.

like i lost permission or some thing..

when I type "runlevel" into terminal I get back "unknown"

Sabnzbd , Sickbeard, and MM all stopped working via init.d scripts when they previously were working.

I have sickbeard set up via my startup manager located in system>prefs and it works well.

can I set up something in there for Sab and MM as well?


I have spend countless hours trying to find out how to change my runlevel and see why my init.d scripts aren't auto starting.

I am at the point of just wanting to format and install from scratch.


-=Jason=-


- RuudBurger - 2010-07-13

Did you try it by running the init.d script as root?


- Flomaster - 2010-07-13

RuudBurger Wrote:Did you try it by running the init.d script as root?

sudo /etc/init.d/moviemanger start

and

sudo /etc/init.d/sabnzbdplus start

both work with out a hitch in both scripts I have added my user name like outlined in both guides Sabnzbd was ONCE working as was sickbeard but some how some way something went wrong and I've no idea what or how to fix it.

my sab scrip looks like this:
Code:
#This file is sourced by /etc/init.d/sabnzbdplus
#
#When SABnzbd+ is started using the init script, the
#--daemon option is always used, and the program is
#started under the account of $USER, as set below
#
#Each setting is marked either "required" or "optional"
#leaving any required setting unconfigured will cause
#the service to not start.

#[required] user or uid of account to run the program as:
USER=jason

#[optional] full path to the configuration file of your choice
#            otherwise, the default locatin (in $USER's home
#            directory) is used:
CONFIG=

#[optional] hostname/ip and port number to listen on:
HOST=0.0.0.0
PORT=9000

#[optional] extra command line options if any:
EXTRAOPTS=

only thing I can think of is typing in the full path to the files in the CONFIG= and not sure if any extraops need to be added to these.
-=Jason=-


- darkscout - 2010-07-13

I copied the SickBeard script rather than the SABnzbd. I forget where I got it.

Code:
#! /bin/sh
### BEGIN SCRIPT INFO
# Provides: Episode Butler Start/Stop
# Copied by Ainer.org from http://forums.sabnzbd.org/index.php?topic=2013.0
# Written by Tret on April 17, 2009
# Modified by Ainer on March 26, 2010
# Modified by Ainer on March 31, 2010
### END SCRIPT INFO

USER="downloader"
HOME="/home/downloader"
SB_IP="localhost:5000"
SB_USER=""
SB_PASS=""

case "$1" in
start)
echo "Starting Movie Manager"
find /net/server.local/tank/Movies > /dev/null
cd $HOME/Movie-Manager/
/usr/bin/sudo -u $USER -H python $HOME/Movie-Manager/MovieManager.py & > /dev/null 2>&1
#/home/downloader/Movie-Manager/MovieManager.py
;;
stop)
echo "Shutting down Sick Beard."
/usr/bin/wget -q delete-after "http://$SB_IP/config/exit"
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac

exit 0

Looks like I forgot to update some of the comments...

This works with my SheevaPlug running Debian.

The "find" commands are to invoke the automountfs. The first time you hit the directory it shows nothing, then gets auto mounted, then works fine.


- RuudBurger - 2010-07-13

New Windows build is out.
New builds from now on can be found on the Github download page


- CrazyIvan - 2010-07-14

Great idea! I'm already using SABnzbd and SickBeard so this is a perfect fit. Smile

After downloading latest source, sparking up via /etc/init.d/moviemanager and adding a movie I get the following log error:

http://pastebin.ca/1900183

The log also includes the shutdown. Subsequent start-ups give the exact same log contents.

Thanks again for the great work!


- RuudBurger - 2010-07-14

Thanks and fixed Big Grin, do a git pull


- Flomaster - 2010-07-14

GREAT SUCCESS IS GREAT!!!

so come to find out all my problems were because of Virtualbox I tried installing it when I was trying to flash my bios and I guess it fucked up my runlevel on my user setting it to unknown instead of N 2 I now have working

Sabnzbd,MovieManager,SickBeard scripts running on boot with out any errors

now if only I could get Nvidia-X Server to save my over scan setting and not reset it every boot I'd be good to go.

-=Jason=-


- chalk4 - 2010-07-14

Do you have any plans to support nzbmatrix ?


- RuudBurger - 2010-07-15

Quick update:
Initial support for torrents! (ZOMG!) Not really tested that well. So if you find any bugs. please let me know via github or PM