Bug 1048486

Summary: [abrt] system-config-samba: connection.py:651:call_blocking:DBusException: org.freedesktop.DBus.Python.UnboundLocalError: Traceback (most recent call last):
Product: [Fedora] Fedora Reporter: andreamalfatti
Component: system-config-sambaAssignee: Nils Philippsen <nphilipp>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: nphilipp
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/9f109714030b543df4f751cf37bb6313a1d20a88
Whiteboard: abrt_hash:0c3bc6b8c1667d1152608ac37121317868b300a0
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-29 14:10:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: dso_list
none
File: environ none

Description andreamalfatti 2014-01-04 15:50:27 UTC
Description of problem:
I have installed system-config-samba
[code]---------------------------------------------------------------------------------
# yum install system-config-samba
Plugin abilitati:langpacks, refresh-packagekit
Risoluzione dipendenze
--> Esecuzione del controllo di transazione
---> Pacchetto system-config-samba.noarch 0:1.2.100-2.fc20 settato per essere installato
--> Risoluzione delle dipendenze completata

Dipendenze risolte

================================================================================
 Package                   Arch         Versione             Repository    Dim.
================================================================================
Installazione:
 system-config-samba       noarch       1.2.100-2.fc20       fedora       282 k

Riepilogo della transazione
================================================================================
Install  1 Pacchetto

Dimensione totale del download: 282 k
Dimensione installata: 1.1 M
Is this ok [y/d/N]: y
Downloading packages:
system-config-samba-1.2.100-2.fc20.noarch.rpm              | 282 kB   00:03     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installazione     : system-config-samba-1.2.100-2.fc20.noarch             1/1 
  Verifica in corso : system-config-samba-1.2.100-2.fc20.noarch             1/1 

Installato:
  system-config-samba.noarch 0:1.2.100-2.fc20                                   

Completo!

[/code]---------------------------------------------------------------------------------

Just finished it I launched

[code]---------------------------------------------------------------------------------
# system-config-samba
Traceback (most recent call last):
  File "/bin/system-config-samba", line 56, in <module>
    use_dbus=use_dbus)
  File "/usr/share/system-config-samba/mainWindow.py", line 136, in __init__
    self.samba_data = sambaConfig.SambaConfig(self.samba_backend)
  File "/usr/lib/python2.7/site-packages/scsamba/core/sambaConfig.py", line 29, in __init__
    self.parseFile()
  File "/usr/lib/python2.7/site-packages/scsamba/core/sambaConfig.py", line 32, in parseFile
    return self.parse(self.backend.readSmbConf())
  File "/usr/lib/python2.7/site-packages/scsamba/core/sambaBackend.py", line 79, in readSmbConf
    self.parser.parse(filecontents)
  File "/usr/lib/python2.7/site-packages/scsamba/core/sambaParser.py", line 360, in parse
    if token:
UnboundLocalError: local variable 'token' referenced before assignment
[/code]---------------------------------------------------------------------------------

Version-Release number of selected component:
system-config-samba-1.2.100-2.fc20

Additional info:
reporter:       libreport-2.1.10
cmdline:        /usr/bin/python /usr/bin/system-config-samba
executable:     /usr/bin/system-config-samba
kernel:         3.12.6-300.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
connection.py:651:call_blocking:DBusException: org.freedesktop.DBus.Python.UnboundLocalError: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/slip/dbus/service.py", line 127, in reply_handler
    result = method(self, *p, **k)
  File "/usr/lib/python2.7/site-packages/scsamba/dbus/service/sambaBackend.py", line 54, in readSmbConf
    return self.backend.readSmbConf()
  File "/usr/lib/python2.7/site-packages/scsamba/core/sambaBackend.py", line 79, in readSmbConf
    self.parser.parse(filecontents)
  File "/usr/lib/python2.7/site-packages/scsamba/core/sambaParser.py", line 360, in parse
    if token:
UnboundLocalError: local variable 'token' referenced before assignment


Traceback (most recent call last):
  File "/usr/bin/system-config-samba", line 56, in <module>
    use_dbus=use_dbus)
  File "/usr/share/system-config-samba/mainWindow.py", line 136, in __init__
    self.samba_data = sambaConfig.SambaConfig(self.samba_backend)
  File "/usr/lib/python2.7/site-packages/scsamba/core/sambaConfig.py", line 29, in __init__
    self.parseFile()
  File "/usr/lib/python2.7/site-packages/scsamba/core/sambaConfig.py", line 32, in parseFile
    return self.parse(self.backend.readSmbConf())
  File "<string>", line 2, in readSmbConf
  File "/usr/lib/python2.7/site-packages/slip/dbus/polkit.py", line 121, in _enable_proxy
    return func(*p, **k)
  File "/usr/lib/python2.7/site-packages/scsamba/dbus/proxy/sambaBackend.py", line 56, in readSmbConf
    return self.dbus_interface.readSmbConf()
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/site-packages/slip/dbus/proxies.py", line 51, in __call__
    return dbus.proxies._ProxyMethod.__call__(self, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
DBusException: org.freedesktop.DBus.Python.UnboundLocalError: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/slip/dbus/service.py", line 127, in reply_handler
    result = method(self, *p, **k)
  File "/usr/lib/python2.7/site-packages/scsamba/dbus/service/sambaBackend.py", line 54, in readSmbConf
    return self.backend.readSmbConf()
  File "/usr/lib/python2.7/site-packages/scsamba/core/sambaBackend.py", line 79, in readSmbConf
    self.parser.parse(filecontents)
  File "/usr/lib/python2.7/site-packages/scsamba/core/sambaParser.py", line 360, in parse
    if token:
UnboundLocalError: local variable 'token' referenced before assignment


Local variables in innermost frame:
byte_arrays: False
self: <dbus._dbus.SystemBus (system) at 0x7fc69e56d590>
args: ()
object_path: '/org/fedoraproject/Config/Samba/Backend'
signature: ''
bus_name: dbus.UTF8String(':1.124')
get_args_opts: {'byte_arrays': False, 'utf8_strings': False}
timeout: 2147483.647
kwargs: {}
dbus_interface: 'org.fedoraproject.Config.Samba.Backend'
message: <dbus.lowlevel.MethodCallMessage path: /org/fedoraproject/Config/Samba/Backend, iface: org.fedoraproject.Config.Samba.Backend, member: readSmbConf dest: :1.124>
method: 'readSmbConf'

Comment 1 andreamalfatti 2014-01-04 15:50:34 UTC
Created attachment 845384 [details]
File: backtrace

Comment 2 andreamalfatti 2014-01-04 15:50:36 UTC
Created attachment 845385 [details]
File: dso_list

Comment 3 andreamalfatti 2014-01-04 15:50:39 UTC
Created attachment 845386 [details]
File: environ

Comment 4 andreamalfatti 2014-01-05 10:33:58 UTC
after a reboot the system-config-samba has started regularly

Comment 5 Fedora End Of Life 2015-05-29 10:19:42 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 6 Fedora End Of Life 2015-06-29 14:10:05 UTC
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.