On Sat, 8 Apr 2017 15:18:18 +0000 (UTC) Ricardo Pardim Claus via samba <samba at lists.samba.org> wrote:> Gentlemen, > > I upgraded my two DCs, from Samba 4.4.5 to 4.6.2. > When I check the database, I get the errors below. > Could someone help me in this case? >try 'samba-tool domain tombstones expunge' Rowland
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())
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
On Sat, 2017-04-08 at 16:13 +0000, Ricardo Pardim Claus via samba 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())In this case you have an old time.pyc or time.py file in your install. Clean our the old binaries and python files from your install and re- run make install. It won't help however, as the links you show are both not deleted and point to an object that doesn't exist. We now find these (we didn't in 4.4) but we don't propose a solution, as it isn't clear (enough) what to do with them! My guess is that you have removed or re-built SVR13 in the past? Is that the case? Sorry, Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba