[0.6] Unable to load working sabnzbd.ini

Bug #608209 reported by jcfp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LottaNZB
Fix Released
High
Severin H

Bug Description

Nothing shown in the lottanzb interface or log, but command line shows the following on startup (fresh install, first run - never used hellanzb):

$ lottanzb
13:56:27 lottanzb.core Starting LottaNZB 0.6...
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/lottanzb/gui/__init__.py", line 63, in on_component_loading_failure
    self.show_session_selection_dialog(error)
  File "/usr/lib/pymodules/python2.6/lottanzb/gui/__init__.py", line 84, in show_session_selection_dialog
    dialog = self._component_manager.load(sessions.SelectionDialog)
  File "/usr/lib/pymodules/python2.6/lottanzb/core/component.py", line 352, in load
    component = component_class(self)
  File "/usr/lib/pymodules/python2.6/lottanzb/gui/sessions/__init__.py", line 42, in __init__
    MainDelegateComponent.__init__(self, component_manager)
  File "/usr/lib/pymodules/python2.6/lottanzb/gui/framework/__init__.py", line 292, in __init__
    MainDelegate.__init__(self)
  File "/usr/lib/pymodules/python2.6/lottanzb/gui/framework/__init__.py", line 56, in __init__
    self.create_ui()
  File "/usr/lib/pymodules/python2.6/lottanzb/gui/sessions/__init__.py", line 48, in create_ui
    view = self._component_manager.load(view_cls)
  File "/usr/lib/pymodules/python2.6/lottanzb/core/component.py", line 352, in load
    component = component_class(self)
  File "/usr/lib/pymodules/python2.6/lottanzb/gui/sessions/local/__init__.py", line 33, in __init__
    self._session = self._component_manager.load(LocalSession)
  File "/usr/lib/pymodules/python2.6/lottanzb/core/component.py", line 352, in load
    component = component_class(self)
  File "/usr/lib/pymodules/python2.6/lottanzb/backend/sessions/local.py", line 89, in __init__
    self.sabnzbd_config.load()
  File "/usr/lib/pymodules/python2.6/lottanzb/backend/sessions/local.py", line 60, in load
    sabnzbd.LocalConfig.load(self, custom_config_file)
  File "/usr/lib/pymodules/python2.6/lottanzb/config/roots.py", line 206, in load
    self._read(file_object)
  File "/usr/lib/pymodules/python2.6/lottanzb/config/roots.py", line 444, in _read
    raise error
lottanzb.config.errors.ParsingError: Unable to load the configuration file /home/jp/.sabnzbd/sabnzbd.ini: Syntax error on line: 4

First 10 lines of the ini are attached to this report. Obviously, sabnzbd doesn't have a problem with it. Should you need the whole thing, let me know.

Ubuntu lucid, Lottanzb 0.6~bzr1282~1222~201007181851~lucid1, Sab 0.5.3

Revision history for this message
jcfp (jcfp) wrote :
Revision history for this message
Severin H (severinh) wrote :

Hi jcfp,

thanks alot for reporting this bug! This is exactly the kind of bug that I wouldn't be able to catch on by own as I wrote the configuration system in such a way that it's capable of loading and saving configuration files that have the same format as such files created by SABnzbd from scratch. Obviously, it doesn't cover all valid ConfigObj formats. I'll fix it this weekend.

The reason why LottaNZB doesn't use ConfigObj is that it uses the configuration code for loading, changing and storing local LottaNZB, HellaNZB and SABnzbd files altogether as well as remote SABnzbd configurations. It's quite sophisticated, but has probably become too complex. Locally, SABnzbd's configuration file is only loaded to silently get the correct connection information and is created if no configuration file exists yet.

Regards,
Severin

Changed in lottanzb:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Severin Heiniger (lantash)
milestone: none → 0.6
Revision history for this message
Severin H (severinh) wrote :

The fact that unhandled exceptions don't appear in the LottaNZB message log (except for the console) is a bug too, of course: #602481.

Severin H (severinh)
Changed in lottanzb:
status: Triaged → Fix Committed
Revision history for this message
Severin H (severinh) wrote :

A fix has been committed and updated daily builds are being created. In order to resolve the bug, LottaNZB now simply uses ConfigObj to load the SABnzbd configuration file.

Thanks again for reporting this bug!

Severin H (severinh)
Changed in lottanzb:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.