[Samba] Failures after update Samba 4.6.2

Rowland Penny rpenny at samba.org
Sat Apr 8 16:51:16 UTC 2017


On Sat, 8 Apr 2017 16:13:17 +0000 (UTC)
Ricardo Pardim Claus <ricardo.claus at yahoo.com.br> wrote:

> Dear Rowland
> 
> When I execute the command, I get the following error:
> 
> # samba-tool domain tombstones expunge
> ERROR(<type 'exceptions.AttributeError'>): uncaught exception -
> 'module' object has no attribute 'time' File
> "/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/__init__.py",
> line 176, in _run return self.run(*args, **kwargs) File
> "/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/domain.py",
> line 3790, in run current_time = long(time.time())

OK, I think you may have a Samba 'time.py' module still installed. This
was removed from Samba sometime ago, if you do still have it, it will be
in the same directory as 'user.py' & 'group.py' e.g. on a self compiled
Samba it will be in:

/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/

If it is there and if you open it in an editor, it looks like this at
the top:

# time
#
# Copyright Jelmer Vernooij 2010 <jelmer at samba.org>

You will need to remove the file and then try the 'expunge' command 
again.

Rowland



More information about the samba mailing list