system-config-samba.py crashed with SystemError in __init__()

Bug #224599 reported by Ivo Naninck
This bug affects 4 people
Affects Status Importance Assigned to Milestone
system-config-samba (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: system-config-samba

From the Applications Add/Remove button I have installed the Samba and the Gsambad packages.
When I start fromt the System -> Administration -> Samba, I get the crash report.

inaninck@renault:~$ lsb_release -rd
Description: Ubuntu 8.04
Release: 8.04
inaninck@renault:~$

inaninck@renault:~$ apt-cache policy samba
samba:
  Installed: 3.0.28a-1ubuntu4
  Candidate: 3.0.28a-1ubuntu4
  Version table:
 *** 3.0.28a-1ubuntu4 0
        500 http://nl.archive.ubuntu.com hardy/main Packages
        100 /var/lib/dpkg/status
inaninck@renault:~$ apt-cache policy samba-common
samba-common:
  Installed: 3.0.28a-1ubuntu4
  Candidate: 3.0.28a-1ubuntu4
  Version table:
 *** 3.0.28a-1ubuntu4 0
        500 http://nl.archive.ubuntu.com hardy/main Packages
        100 /var/lib/dpkg/status
inaninck@renault:~$ apt-cache policy system-config-samba
system-config-samba:
  Installed: 1.2.50-0ubuntu2
  Candidate: 1.2.50-0ubuntu2
  Version table:
 *** 1.2.50-0ubuntu2 0
        500 http://nl.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status
inaninck@renault:~$ apt-cache policy gsambad
gsambad:
  Installed: 0.1.9-2ubuntu1
  Candidate: 0.1.9-2ubuntu1
  Version table:
 *** 0.1.9-2ubuntu1 0
        500 http://nl.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status
inaninck@renault:~$

ProblemType: Crash
Architecture: i386
Date: Wed Apr 30 11:28:48 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/share/system-config-samba/system-config-samba.py
InterpreterPath: /usr/bin/python2.5
Package: system-config-samba 1.2.50-0ubuntu2
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/sbin/system-config-samba
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/sbin/system-config-samba']
SourcePackage: system-config-samba
Title: system-config-samba.py crashed with SystemError in __init__()
Uname: Linux 2.6.24-16-generic i686
UserGroups:

Revision history for this message
Ivo Naninck (ivo-naninck) wrote :
Revision history for this message
Ivo Naninck (ivo-naninck) wrote :

In the Traceback,txt I see
SystemError: could not open configuration file `/etc/libuser.conf': No such file or directory

So, I did

sudo touch /etc/libuser.conf

and now the tool starts.........

Revision history for this message
Apport retracing service (apport) wrote : Possible regression detected

This crash has the same stack trace characteristics as bug #185543. However, the latter was already fixed in an earlier package version than the one in this report. This might be a regression or because the problem is in a dependent package.

Changed in system-config-samba:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Brian Murray (brian-murray) wrote :

I don't think bug 185543 was ever fixed. I installed the latest version of libuser for Hardy and '/etc/libuser.conf' was not created. bug 214959 has a patch for libuser that will ensure that the file is created.

Revision history for this message
Grizzly (sven-witterstein) wrote :

same here. Libuser.conf ist not created. A good point would be adding the simple "touch /etc/libuser.conf" to the config script, maybe checking if it exists BEFORE trying to open it.
It is always a good idea to check if a file is there, if not create it and then go on...

Revision history for this message
Gerry Grafstrom (res1flcd) wrote : Re: [Bug 224599] Re: system-config-samba.py crashed with SystemError in __init__()

Grizzly wrote:
> same here. Libuser.conf ist not created. A good point would be adding the simple "touch /etc/libuser.conf" to the config script, maybe checking if it exists BEFORE trying to open it.
> It is always a good idea to check if a file is there, if not create it and then go on...
>
>
After reading the bug reports and checking the forums, I ran "touch
/etc/libuser.conf" from a terminal window and Samba will now load. Now
if I could just figure out how to see the other computers attached to
network in Xubuntu I'd be thrilled. I like performance of Xubuntu on
the older machines , but just can't seem to get the hand of Xcfe and
the Thunar file manager for network folders. At least in KDE I can add
an icon for Network folders to my taskbar.

Revision history for this message
Sgcom (quisa137) wrote : Re: [Bug 224599] Re: system-config-samba.py crashed with SystemError in __init__()
  • unnamed Edit (80 bytes, text/html; charset=ISO-8859-1)

Thank you for your advice. I completely fixed my problem. ^^;
Thank you.

Revision history for this message
Jean Levasseur (levasseur.jean) wrote :

Just happened to me. Ubuntu 8.04 with genereic kernel. Steps to reproduce:
1- Install system-config-samba from apt-get
2- Select "Samba" from the System -> Administration menu.

From a terminal:
$ gksudo system- File "/usr/sbin/system-config-samba", line 41, in <module>
    mainWindow.MainWindow(debug_flag)
  File "/usr/share/system-config-samba/mainWindow.py", line 118, in __init__
    self.basic_preferences_win = basicPreferencesWin.BasicPreferencesWin(self, self.xml, self.samba_data, self.samba_backend, self.main_window)
  File "/usr/share/system-config-samba/basicPreferencesWin.py", line 93, in __init__
    self.admin = libuser.admin()
SystemError: could not open configuration file `/etc/libuser.conf': Aucun fichier ou dossier de ce type
config-samba

Changed in system-config-samba:
status: Triaged → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote :

This got fixed in Intrepid recently, and the fix for 8.04 (Hardy) is underway. See bug 214959 for the 8.04 fix.

Changed in system-config-samba:
status: Confirmed → Fix Released
Revision history for this message
Bunk3r_Way5 (bunkerways) wrote :

Guys, thank you! Linux, Ubuntu - Forever! I love you at all! =)

Revision history for this message
sambavictim (o-falay) wrote :

Is there any way to make this samba work ?? its like cancer...

Revision history for this message
djchandler (djchandler) wrote :

It looks like the fix for the gnome configuration utilities in hardy is underway. The bug isn't in Samba itself. If you can write your own smb.conf file, samba will work. Additionally, I wasn't able to use the "Connect to Server" item under "Places," but could connect to my Windows boxes with "Network."

Revision history for this message
dwellerofdungeons (dwellerofdungeons) wrote : RE: [Bug 224599] Re: system-config-samba.py crashed with SystemError in __init__()

Try this.. <http://www.linux.com/feature/135270>

Todd C Franks

Adwriter Inc

<email address hidden>

419-621-2131

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of sambavictim
Sent: Saturday, May 17, 2008 6:23 AM
To: <email address hidden>
Subject: [Bug 224599] Re: system-config-samba.py crashed with SystemError in __init__()

Is there any way to make this samba work ?? its like cancer...

--

system-config-samba.py crashed with SystemError in __init__()

https://bugs.launchpad.net/bugs/224599

You received this bug notification because you are a direct subscriber

of a duplicate bug.

__________ Information from ESET NOD32 Antivirus, version of virus signature database 3106 (20080516) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

Revision history for this message
XTudo - Robson Fernando (xtudo) wrote :

with sudo:
-----------------------------------------------------------------
th4ck3rx@xtudo:~$ sudo system-config-samba
[sudo] password for th4ck3rx:
Traceback (most recent call last):
  File "/usr/sbin/system-config-samba", line 41, in <module>
    mainWindow.MainWindow(debug_flag)
  File "/usr/share/system-config-samba/mainWindow.py", line 118, in __init__
    self.basic_preferences_win = basicPreferencesWin.BasicPreferencesWin(self, self.xml, self.samba_data, self.samba_backend, self.main_window)
  File "/usr/share/system-config-samba/basicPreferencesWin.py", line 93, in __init__
    self.admin = libuser.admin()
SystemError: could not open configuration file `/etc/libuser.conf': Arquivo ou diretório inexistente
th4ck3rx@xtudo:~$

without sudo:
---------------------------------------------------------------------
th4ck3rx@xtudo:~$ system-config-samba
Traceback (most recent call last):
  File "/usr/sbin/system-config-samba", line 41, in <module>
    mainWindow.MainWindow(debug_flag)
  File "/usr/share/system-config-samba/mainWindow.py", line 113, in __init__
    self.samba_user_data = sambaUserData.SambaUserData(self)
  File "/usr/share/system-config-samba/sambaUserData.py", line 42, in __init__
    self.readSmbPasswords()
  File "/usr/share/system-config-samba/sambaUserData.py", line 59, in readSmbPasswords
    raise RuntimeError, (_("You do not have permission to execute %s." % pdbeditcmd))
RuntimeError: You do not have permission to execute /usr/bin/pdbedit.
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 78, in apport_excepthook
    report_file = open(pr_filename, 'wt')
IOError: [Errno 13] Permissão negada: '/var/crash/_usr_share_system-config-samba_system-config-samba.py.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/sbin/system-config-samba", line 41, in <module>
    mainWindow.MainWindow(debug_flag)
  File "/usr/share/system-config-samba/mainWindow.py", line 113, in __init__
    self.samba_user_data = sambaUserData.SambaUserData(self)
  File "/usr/share/system-config-samba/sambaUserData.py", line 42, in __init__
    self.readSmbPasswords()
  File "/usr/share/system-config-samba/sambaUserData.py", line 59, in readSmbPasswords
    raise RuntimeError, (_("You do not have permission to execute %s." % pdbeditcmd))
RuntimeError: You do not have permission to execute /usr/bin/pdbedit.
th4ck3rx@xtudo:~$

Revision history for this message
XTudo - Robson Fernando (xtudo) wrote :

Reading others posts....
https://bugs.launchpad.net/ubuntu/+source/libuser/+bug/214959

$ sudo touch /etc/libuser.conf

temporary fix the problem

Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in hardy-updates.

Revision history for this message
aexl (aexl) wrote :

This bit me after a fresh install of 14.10

$ sudo touch /etc/libuser.conf
fixed the issue for me.

description: updated
Revision history for this message
vince (elodievincent) wrote :

Same thing to me after update 14.04 to 14.10
$ sudo touch /etc/libuser.conf
fixed the issue

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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