lingpanda101
2016-Oct-26 15:41 UTC
[Samba] Attempting to expunge tombstones with samba-tool
Hello, I receive the following when I attempt to expunge deleted tombstone records. I'm attempting to fix several dbcheck 'Not removing dangling forward link' errors. samba-tool domain tombstones expunge ERROR(<type 'exceptions.AttributeError'>): uncaught exception - 'module' object has no attribute 'time' File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 176, in _run return self.run(*args, **kwargs) File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/domain.py", line 3791, in run current_time = long(time.time()) I recently updated from 4.5.0 to 4.5.1. Do I need to reanimate deleted objects before I can expunge them? Thanks. -- - James
Rowland Penny
2016-Oct-26 16:11 UTC
[Samba] Attempting to expunge tombstones with samba-tool
On Wed, 26 Oct 2016 11:41:23 -0400 lingpanda101 via samba <samba at lists.samba.org> wrote:> Hello, > > I receive the following when I attempt to expunge deleted tombstone > records. I'm attempting to fix several dbcheck 'Not removing dangling > forward link' errors. > > samba-tool domain tombstones expunge > ERROR(<type 'exceptions.AttributeError'>): uncaught exception - > 'module' object has no attribute 'time' > File > "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", > line 176, in _run > return self.run(*args, **kwargs) > File > "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/domain.py", > line 3791, in run > current_time = long(time.time()) > > I recently updated from 4.5.0 to 4.5.1. Do I need to reanimate > deleted objects before I can expunge them? Thanks. > >That isn't your problem, if you look closely, you seem to have a problem with your version of 'time'. If you look at the top of 'domain.py', there is this line: import time This tells python to use the 'time' module, this module should have the attribute 'time', you can check this with 'pydoc time.time' run in a terminal, this should produce info about 'time.time'. Rowland
lingpanda101
2016-Oct-26 16:47 UTC
[Samba] Attempting to expunge tombstones with samba-tool
On 10/26/2016 12:11 PM, Rowland Penny via samba wrote:> On Wed, 26 Oct 2016 11:41:23 -0400 > lingpanda101 via samba <samba at lists.samba.org> wrote: > >> Hello, >> >> I receive the following when I attempt to expunge deleted tombstone >> records. I'm attempting to fix several dbcheck 'Not removing dangling >> forward link' errors. >> >> samba-tool domain tombstones expunge >> ERROR(<type 'exceptions.AttributeError'>): uncaught exception - >> 'module' object has no attribute 'time' >> File >> "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", >> line 176, in _run >> return self.run(*args, **kwargs) >> File >> "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/domain.py", >> line 3791, in run >> current_time = long(time.time()) >> >> I recently updated from 4.5.0 to 4.5.1. Do I need to reanimate >> deleted objects before I can expunge them? Thanks. >> >> > That isn't your problem, if you look closely, you seem to have a problem > with your version of 'time'. If you look at the top of 'domain.py', > there is this line: > > import time > > This tells python to use the 'time' module, this module should have the > attribute 'time', you can check this with 'pydoc time.time' run in > a terminal, this should produce info about 'time.time'. > > Rowland >I get time.time = time(...) time() -> floating point number Return the current time in seconds since the Epoch. Fractions of a second may be present if the system clock provides them. I'm running Ubuntu 12.04 on these DC's. Python version 2.7.3. Thanks. -- - James
Reasonably Related Threads
- Attempting to expunge tombstones with samba-tool
- Attempting to expunge tombstones with samba-tool
- Attempting to expunge tombstones with samba-tool
- Attempting to expunge tombstones with samba-tool
- 'samba-tool domain tombstones expunge' fails to remove expired tombstones