Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: SABnzbd opstart problemen  (gelezen 28906 keer)

Michel

  • Gast
SABnzbd opstart problemen
« Gepost op: 2006/09/11, 00:10:55 »
Uit een ander onderwerp (over klibido) kreeg ik de tip SABnzb te installeren. In Windows was hij zo aan de praat, maar in Ubuntu met een wiki (http://drbyte.wiki.xs4all.nl/index.php?title=drbyte:Community_Portal) erbij stuit ik toch nog op problemen.

Als ik na de installatie SABnzbd start krijg ik de volgende output:
michel@ubuntu:/usr/local/sabnzbd/sabnzbd$ ./SABnzbd.py -d -f SABnzbd.ini
Traceback (most recent call last):
  File "./SABnzbd.py", line 37, in ?
    from sabnzbd.interface import *
  File "/usr/local/sabnzbd/sabnzbd/sabnzbd/interface.py", line 39, in ?
    from Cheetah.Template import Template
ImportError: No module named Cheetah.Template
michel@ubuntu:/usr/local/sabnzbd/sabnzbd$

En hoe meer ik naar SABnzbd.py regel 37 en 39 kijk hoe minder ik er van begrijp.
In deze regels worden wat waarden over gegeven, maar wat en hoe, daarvoor is mij studie informatica te lang geleden geweest. Daarnaast heb ik deze taal ook nooit geleerd.

Heeft iemand enig idee wat ik fout doe?

Offline profoX

  • Lid
    • wesley
    • Lionslink
SABnzbd opstart problemen
« Reactie #1 Gepost op: 2006/09/11, 00:35:26 »
Je hebt stap 2.4 blijkbaar niet gevolgd, of die is ergens foutgegaan:

http://drbyte.wiki.xs4all.nl/index.php?title=drbyte:Community_Portal#Installation_Cheetah

wget http://surfnet.dl.sourceforge.net/sourceforge/cheetahtemplate/Cheetah-1.0.tar.gz
tar -xzvf Cheetah-1.0.tar.gz
/usr/local/sabnzbd/bin/python setup.py install
Sabnzbd is inderdaad een hel op ubuntu! :( ...

PS: Python (die programmeertaal) is supergoed :P !
Human Knowledge Belongs To The World -- Antitrust (2001)
Nederlandstalige Ubuntu documentatie van Ubuntu-NL (wiki)

Michel

  • Gast
SABnzbd opstart problemen
« Reactie #2 Gepost op: 2006/09/12, 19:49:04 »
Het is eindelijk gelukt, ik kan SABnzbd opstarten zonder foutmeldingen.

Nu heb ik het volgende:
Ik heb het programma ingesteld m.b.v. SABnzbd.ini, maar wanneer ik het start kan ik niet zien dat het actief is. Zowel bij System>Administration>Services of System>Administration>System Monitor zie ik geen bewijs dat het actief is.

Daarnaast kun je volgens de readme.txt uit SABnzbd-0.2.4.tar.gz in de browser ook wat zien:

Everyone else:
 Run "python SABnzbd.py -h" for a list of options.
 Run "python SABnzbd.py -f /SABnzbd.ini",
 Point your browser to http://127.0.0.1:/sabnzbd
 
Bij het eerste commando's kreeg ik het volgende resultaat:
Traceback (most recent call last):
  File "SABnzbd.py", line 37, in ?
    import cherrypy
ImportError: No module named cherrypy

Uiteraard heb ik CherryPy wel geinstalleerd.

Wat doe ik niet goed?

Offline profoX

  • Lid
    • wesley
    • Lionslink
SABnzbd opstart problemen
« Reactie #3 Gepost op: 2006/09/12, 20:37:15 »
Cherrypy blijkbaar niet goed ge
Human Knowledge Belongs To The World -- Antitrust (2001)
Nederlandstalige Ubuntu documentatie van Ubuntu-NL (wiki)

Michel

  • Gast
SABnzbd opstart problemen
« Reactie #4 Gepost op: 2006/09/12, 20:58:28 »
Ja zeker, hier is de output tijdens de installatie:
michel@ubuntu:/usr/local/sabnzbd/CherryPy-2.2.1$ /usr/local/sabnzbd/bin/python setup.py install
running install
running build
running build_py
running install_lib
running install_data
michel@ubuntu:/usr/local/sabnzbd/CherryPy-2.2.1$

Ziet er wat mij betreft goed uit.

Offline profoX

  • Lid
    • wesley
    • Lionslink
SABnzbd opstart problemen
« Reactie #5 Gepost op: 2006/09/12, 21:01:06 »
Dan snap ik niet goed wat er fout is :( ... iemand anders?
Human Knowledge Belongs To The World -- Antitrust (2001)
Nederlandstalige Ubuntu documentatie van Ubuntu-NL (wiki)

budster

  • Gast
SABnzbd opstart problemen
« Reactie #6 Gepost op: 2006/09/12, 22:01:37 »
Welke versie Cherrypy wordt door SABnzb gebruikt? ...


(Leuk gevonden Cherrypy :) )

Michel

  • Gast
SABnzbd opstart problemen
« Reactie #7 Gepost op: 2006/09/12, 22:56:25 »
CherryPy 2.2.1 wordt gebruikt.

Ondertussen heb ik verder zitten experimenteren en de oplossing gevonden.
In de readme (van SABnzbd) staat de e.e.a. gestart moet worden met "python SABnzbd......" dit moet zijn (in ieder geval bij mij) ./SABnzbd......
Dan start hij wel, maar zoals profoX al zei, het is een hel. Wanneer ik in de browser http://127.0.0.1:8080/sabnzbd in typ krijg ik de volgende melding:

500 Internal error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Het adres wordt herkent, maar dan gaat er iets mis. Zucht....

Michel

  • Gast
SABnzbd opstart problemen
« Reactie #8 Gepost op: 2006/09/12, 23:02:17 »
Om de info compleet te maken, de output van het terminal venster:

12/Sep/2006:23:00:55 HTTP INFO Traceback (most recent call last):
  File "/usr/local/sabnzbd/lib/python2.4/site-packages/cherrypy/_cphttptools.py", line 110, in _run
    applyFilters('before_finalize')
  File "/usr/local/sabnzbd/lib/python2.4/site-packages/cherrypy/filters/__init__.py", line 151, in applyFilters
    method()
  File "/usr/local/sabnzbd/sabnzbd/sabnzbd/interface.py", line 81, in beforeFinalize
    cherrypy.response.body = rsrc.callable(rsrc.instance,
  File "/usr/local/sabnzbd/sabnzbd/sabnzbd/interface.py", line 116, in index
    info, pnfo_list, bytespersec = build_header()
  File "/usr/local/sabnzbd/sabnzbd/sabnzbd/interface.py", line 947, in build_header
    header = { 'version':sabnzbd.__version__, 'paused':sabnzbd.paused(),
  File "/usr/local/sabnzbd/sabnzbd/sabnzbd/__init__.py", line 760, in paused
    return DOWNLOADER.paused
AttributeError: 'NoneType' object has no attribute 'paused'

127.0.0.1 - - [12/Sep/2006:23:00:55] "GET /sabnzbd/ HTTP/1.1" 500 791 "" "Opera/9.00 (X11; Linux i686; U; en)"
127.0.0.1 - - [12/Sep/2006:23:00:55] "GET /favicon.ico HTTP/1.1" 200 1406 "http://127.0.0.1:8080/sabnzbd/" "Opera/9.00 (X11; Linux i686; U; en)"

Offline profoX

  • Lid
    • wesley
    • Lionslink
SABnzbd opstart problemen
« Reactie #9 Gepost op: 2006/09/13, 01:09:24 »
DOWNLOADER is blijkbaar geen object, om de een of andere reden.
Ik heb even de code bekeken en het gaat om dit stukje

def paused():
    try:
        return DOWNLOADER.paused
    except NameError:
        logging.exception("[%s] Error accessing DOWNLOADER?", __NAME__)
In het begin van dat bestand __init__.py wordt DOWNLOADER op "None" gezet:
DOWNLOADER = NoneDit kom ik ook nog tegen in de initialisatie sectie:
   if DOWNLOADER:
        DOWNLOADER.__init__(servers, DOWNLOADER.paused)
    else:
        DOWNLOADER = Downloader(servers)
        if pause_downloader:
            DOWNLOADER.paused = True
Welke versie van SABnzbd heb je daar? Ik heb 0.2.3
Hoe ziet je configuratiebestand eruit?
(het bestand SABnzbd.ini)

gedit /map/van/SABnzbd/SABnzbd.ini
Human Knowledge Belongs To The World -- Antitrust (2001)
Nederlandstalige Ubuntu documentatie van Ubuntu-NL (wiki)

Michel

  • Gast
SABnzbd opstart problemen
« Reactie #10 Gepost op: 2006/09/13, 18:13:35 »
Ik heb zeer precies de wiki gevolgd.

Mijn SABnzbd.ini file is alsvolgt:
__version__ = 015



[misc]

    ## host we should listen on, leave "" for localhost
    host = ""
    ## port we should listen on
    port = 8080
    ## username for the web-interface
    username = ""
    ## password for the web-interface
    password = ""
    ## web file dir for (custom) Cheetah templates and the default.css file
    web_dir = "/usr/local/sabnzbd/sabnzbd/templates"
    ## dir to put downloads to, won't be created automatically
    download_dir = "/home/michel/download"
    ## dir to put completed downloads to, won't be created automatically
    complete_dir = "/home/michel/download"
    ## If specified, .nzbs fetched by postid (or added by the dirscanner) will
    ## be backed up to this readable/writeable dir
    nzb_backup_dir = "/home/michel/download"
    ## dir to store cache and cookie files, windows users should
    ## leave this at .
    cache_dir = ""
    ## location of your log directory, "" to disable logging
    log_dir = "/usr/local/sabnzbd/sabnzbd/log"
    ## dirscan directory
    ## SABnzbd will consume everything in that dir
    ## while trying to add it to the queue
    dirscan_dir = "/home/michel/download"
    ## Scheduling options
    ## Syntax: minute hour day action
    ##         1st argument must be 0-59 (minute)
    ##         2nd argument must be 0-24 (hour)
    ##         3rd argument must be 1-7 (day) or *
    ##         4th argument must be resume or pause
    ##
    ## e.g schedlines = 0 7 * pause, 0 21 * resume
    ##     to pause SABnzbd at 7:00 and resume operation at 21:00
    schedlines = ,
    ## default options for dirscan added items
    ## 0 = None
    ## 1 = +Repair
    ## 2 = +Unpack
    ## 3 = +Delete
    dirscan_opts = 1
    ## Enable/disable filejoining
    ## 0 = Disabled
    ## 1 = Enabled
    enable_filejoin = 1
    ## Enable/disable unraring
    ## 0 = Disabled
    ## 1 = Enabled
    enable_unrar = 1
    ## Enable/disable unzipping
    ## 0 = Disabled
    ## 1 = Enabled
    enable_unzip = 1
    ## Enable/disable periodic queue saving
    ## 0 = Disabled
    ## 1 = Enabled
    ## Enable this on unstable systems
    enable_save = 1
    ## Enable/disable
    ## 0 = Disabled
    ## 1 = Enabled
    ## Enable to cleanup par2 files
    ## (only if verifiying/repairing succeded)
    enable_par_cleanup = 1
    ## should we failover on yenc crc errors
    ## 0 = no
    ## 1 = yes
    fail_on_crc = 1
    ## should we download to group folders?
    ## (i.e /my/download/dir/alt.bin.whatever/somepost/)
    ## 0 = no
    ## 1 = yes
    create_group_folders = 0
    ## bandwith limit
    ## 0 == ignore
    ## Slowdown factor, try values between 0.01 and 1.0.
    bandwith_limit = 0
    ## Cleanup List
    ## List of file_extensions that should be deleted
    ## Example: ".nfo," or ".nfo, .sfv"
    cleanup_list = ,
    ## Fetch old files first
    ## EXPERIMENTAL
    ## 0 = Disabled
    ## 1 = Enabled
    f_mode = 0
    ## Automatically sort by average age
    ## 0 = No
    ## 1 = Yes
    auto_sort = 0
    ## Send group command before requesting articles
    ## 0 = No
    ## 1 = Yes
    send_group = 0
    ## Article cache limit
    ## 0 = Disable Cache
    ## -1 = Unlimited cache
    ## >0 = Maximum memory (in bytes) to use for cache
    cache_limit = 0
    ## Umask to use for directories/files
    umask = 755

[logging]
    ## max size of SABnzbd.log (in bytes)
    max_log_size = 5242880
    ## how many backups of SABnzbd.log to keep around
    log_backups = 5
    ## enable cherrypy logging
    ## 0 = no
    ## 1 = yes
    enable_cherrypy_logging = 1
## Fill in your servers here
## If your server doesn't need password auth set
## username and password to ''
## fillserver field must be 0 for non-fillservers (>0 otherwise)
[servers]
#    [[server 0]]
#       host = nova.planet.nl
#       port = 119
#       username = ""
#       password = ""
#       connections = 3
#       fillserver = 0
#    [[server 1]]
#     host = news.myfillserver.com
#     port = 119
#     username = ""
#     password = ""
#     connections = 8
#       fillserver = 1
## www.newzbin.com support
[newzbin]
    username = ""
    password = ""
    ## Place downloads into newzbin.com category folders
    ## 0 = No
    ## 1 = Root category only
    ## 2 = Root category + subcategory
    create_category_folders = 0

Offline profoX

  • Lid
    • wesley
    • Lionslink
SABnzbd opstart problemen
« Reactie #11 Gepost op: 2006/09/13, 18:44:13 »
ziet er goed uit, heb je deze 2 ook ingevuld?
user + paswoord mag je kiezen

   ## username for the web-interface
    username = ""
    ## password for the web-interface
    password = ""
Human Knowledge Belongs To The World -- Antitrust (2001)
Nederlandstalige Ubuntu documentatie van Ubuntu-NL (wiki)

Michel

  • Gast
SABnzbd opstart problemen
« Reactie #12 Gepost op: 2006/09/13, 20:19:05 »
Nope, deze heb ik niet ingevuld.

Ik heb wel opnieuw SABnzbd gestart en zag dat de webserver niet gestart is:
michel@ubuntu:/usr/local/sabnzbd/sabnzbd$ ./SABnzbd.py -f /usr/local/sabnzbd/sabnzbd/SABnzbd.ini
2006-09-13 20:15:56,297::INFO::SABnzbd v0.2.4
2006-09-13 20:15:56,298::INFO::Initializing SABnzbd v0.2.4
2006-09-13 20:15:56,299::DEBUG::FAIL_ON_CRC -> True
2006-09-13 20:15:56,299::DEBUG::CREATE_GROUP_FOLDERS -> False
2006-09-13 20:15:56,299::DEBUG::DO_FILE_JOIN -> True
2006-09-13 20:15:56,300::DEBUG::DO_UNZIP -> True
2006-09-13 20:15:56,300::DEBUG::DO_UNRAR -> True
2006-09-13 20:15:56,301::DEBUG::DO_SAVE -> True
2006-09-13 20:15:56,301::DEBUG::PAR_CLEANUP -> True
2006-09-13 20:15:56,301::DEBUG::CLEANUP_LIST -> []
2006-09-13 20:15:56,302::DEBUG::UMASK -> 493
2006-09-13 20:15:56,302::DEBUG::SEND_GROUP -> False
2006-09-13 20:15:56,303::DEBUG::CREATE_CAT_FOLDERS -> False
2006-09-13 20:15:56,303::DEBUG::CREATE_CAT_SUB -> False
2006-09-13 20:15:56,303::INFO::DOWNLOAD_DIR: /home/michel/download
2006-09-13 20:15:56,304::INFO::COMPLETE_DIR: /home/michel/download
2006-09-13 20:15:56,304::INFO::NZB_BACKUP_DIR: /home/michel/download
2006-09-13 20:15:56,305::ERROR::DOWNLOAD_DIR and COMPLETE_DIR cannot be the same!
2006-09-13 20:15:56,305::INFO::_yenc module... found!
2006-09-13 20:15:56,305::INFO::celementtree module... NOT found!
2006-09-13 20:15:56,306::INFO::par2 binary... found!
2006-09-13 20:15:56,306::INFO::rar binary... found!
2006-09-13 20:15:56,307::INFO::unzip binary... found!
2006-09-13 20:15:56,311::INFO::Starting SABnzbd v0.2.4
2006-09-13 20:15:56,311::INFO::Starting web-interface
13/Sep/2006:20:15:56 CONFIG INFO Server parameters:
13/Sep/2006:20:15:56 CONFIG INFO   server.environment: production
13/Sep/2006:20:15:56 CONFIG INFO   server.log_to_screen: True
13/Sep/2006:20:15:56 CONFIG INFO   server.log_file: /usr/local/sabnzbd/sabnzbd/log/cherrypy.log
13/Sep/2006:20:15:56 CONFIG INFO   server.log_tracebacks: True
13/Sep/2006:20:15:56 CONFIG INFO   server.log_request_headers: False
13/Sep/2006:20:15:56 CONFIG INFO   server.protocol_version: HTTP/1.0
13/Sep/2006:20:15:56 CONFIG INFO   server.socket_host:
13/Sep/2006:20:15:56 CONFIG INFO   server.socket_port: 8080
13/Sep/2006:20:15:56 CONFIG INFO   server.socket_file:
13/Sep/2006:20:15:56 CONFIG INFO   server.reverse_dns: False
13/Sep/2006:20:15:56 CONFIG INFO   server.socket_queue_size: 5
13/Sep/2006:20:15:56 CONFIG INFO   server.thread_pool: 10
13/Sep/2006:20:16:01 HTTP INFO Port 8080 not free on 'localhost'
2006-09-13 20:16:01,350::ERROR::Failed to start web-interface
Traceback (most recent call last):
  File "./SABnzbd.py", line 308, in main
    cherrypy.server.start()
  File "/usr/local/sabnzbd/lib/python2.4/site-packages/cherrypy/_cpserver.py", line 72, in start
    Engine.start(self)
  File "/usr/local/sabnzbd/lib/python2.4/site-packages/cherrypy/_cpengine.py", line 104, in start
    self._start()
  File "/usr/local/sabnzbd/lib/python2.4/site-packages/cherrypy/_cpserver.py", line 79, in _start
    self.start_http_server()
  File "/usr/local/sabnzbd/lib/python2.4/site-packages/cherrypy/_cpserver.py", line 99, in start_http_server
    wait_for_free_port(host, port)
  File "/usr/local/sabnzbd/lib/python2.4/site-packages/cherrypy/_cpserver.py", line 252, in wait_for_free_port
    raise cherrypy.NotReady("Port not free.")
NotReady: Port not free.
michel@ubuntu:/usr/local/sabnzbd/sabnzbd$

Aha, nu ik het lees zie ik dat poort 8080 niet beschikbaar is. Wie hem dan wel gebruikt is mij niet duidelijk, maar ik zal deze eens aanpassen.

Michel

  • Gast
SABnzbd opstart problemen
« Reactie #13 Gepost op: 2006/09/13, 20:33:31 »
Ongelofelijk, SABnzbd start op in de browser. Ik zal hem zo testen.

Ik had eerder naar deze informatie moeten kijken, ik gebruik nu een andere poort en heb de incomplete diretory gewijzigd.
De fout met celementree snap ik niet elementree is wel geinstalleerd, maar levert vooralsnog geen problemen op.

Ik zal direct laten weten hoe het met dwnloaden gaat.

Offline profoX

  • Lid
    • wesley
    • Lionslink
SABnzbd opstart problemen
« Reactie #14 Gepost op: 2006/09/13, 20:40:39 »
sudo netstat -plantu|grep :8080

zo kan je trouwens zien wat er op poort 8080 draait
Human Knowledge Belongs To The World -- Antitrust (2001)
Nederlandstalige Ubuntu documentatie van Ubuntu-NL (wiki)

Michel

  • Gast
SABnzbd opstart problemen
« Reactie #15 Gepost op: 2006/09/13, 22:25:41 »
Ik heb 'm overleeft, de hel....

Hoe doet watie moet doen. Poort 8080 was bezet omdat ik SABnzbd twee keer geactiveerd had...

Bedankt voor alle hulp.

(De psychologische beloning is nu toch groter dan bij Windows, daar ws het te makkelijk)

Offline profoX

  • Lid
    • wesley
    • Lionslink
SABnzbd opstart problemen
« Reactie #16 Gepost op: 2006/09/13, 22:27:19 »
PS: over een kleine maand begin ik weer met een eigen repository waar onder andere sabnzbd zal inkomen :)
Human Knowledge Belongs To The World -- Antitrust (2001)
Nederlandstalige Ubuntu documentatie van Ubuntu-NL (wiki)

Michel

  • Gast
SABnzbd opstart problemen
« Reactie #17 Gepost op: 2006/09/14, 07:21:21 »
Wanneer je tzt de locatie post zal ik 'm zeker opnemen.

,_,_9>|

  • Gast
SABnzbd opstart problemen
« Reactie #18 Gepost op: 2006/09/14, 10:59:07 »
Citaat van: profoX
PS: over een kleine maand begin ik weer met een eigen repository waar onder andere sabnzbd zal inkomen :)
Vraagje, is dat sabnzb echt zo goed? ik gebruik nu de wekelijkse Beta's van Pan newsreader,

bvd

zie

Michel

  • Gast
SABnzbd opstart problemen
« Reactie #19 Gepost op: 2006/09/14, 16:50:27 »
Wanneer SABnzbd eenmaal geinstalleerd is is het gemak alom.

Je zet een NZB bestand in een van te voren opgegeven directory en alles kan automatisch afgehandeld worden.
Downloaden, bestandscontrole (PAR2), uitpakken (RAR en zo) en de gedownloaden bestanden verwijderen. Dit alles zonder tussenkomt van de mens.

,_,_9>|

  • Gast
SABnzbd opstart problemen
« Reactie #20 Gepost op: 2006/09/14, 18:48:35 »
Klinktr goed, maar vraagj kan je bijv ook ipv 300 par2 bestanden 10 par2 selecteren?
En het instaleren is de bottleneck ?

BVD

Offline profoX

  • Lid
    • wesley
    • Lionslink
SABnzbd opstart problemen
« Reactie #21 Gepost op: 2006/09/14, 20:34:53 »
sabnzbd zoekt automatisch uit hoeveel par2 je nodig hebt, en daarna download hij pas de benodigde par2 bestanden en daarna repareert hij automatisch de bestanden. Je download dus nooit teveel :)

installatie is de grootste bottleneck, voorlopig

Pan vind ik persoonlijk maar niks. Dan nog liever klibido. Maar sabnzbd is wel mijn favoriet. Werkt op de achtergrond en als je ff wat wil aanpassen kan je inloggen via dezelfde pc, of een andere pc als dit zo geconfigureerd is, om sabnzbd te besturen.
Human Knowledge Belongs To The World -- Antitrust (2001)
Nederlandstalige Ubuntu documentatie van Ubuntu-NL (wiki)

breukkie

  • Gast
SABnzbd opstart problemen
« Reactie #22 Gepost op: 2006/10/31, 21:12:59 »
Een ander schijnbaar makkelijk programma  is te vinden op de volgende link

http://www.hellanzb.com/trac/hellanzb/wiki/HellaHella

Werkt gelijk aan Sanzbd

breukkie

  • Gast
SABnzbd opstart problemen
« Reactie #23 Gepost op: 2006/11/07, 08:06:40 »
Hmm herstel de bovengenoemde link is niet correct.
Ik heb met behulp van deze pagina hellanzb geinstalleerd.
Goede howto easy todo :
http://www.mixel.nl/index.php?id=hellanzb
Met dank aan Michel die deze pagina heeft geschreven.

en met deze pagina
http://www.hellanzb.com/trac/ kun je nog een webinterface erbij zetten.

Greetzz breukkie

- Nixo -

  • Gast
SABnzbd opstart problemen
« Reactie #24 Gepost op: 2006/11/07, 08:40:01 »
Ik moet zeggen dat SABnzbd er beter uitziet qua opties en interface. Het is een hel om het te installeren. Maar ik heb em nu up and running en gaat als een trein. Een echt superprogramma. Had ik deze maar gevonden destijds onder Windows daar gebruikte ik Newsleecher maar die kan hier nog een puntje aan leechen ;)

SABnzbd rules!

Nico