[Samba] Attempting to expunge tombstones with samba-tool

Rowland Penny rpenny at samba.org
Thu Oct 27 17:30:53 UTC 2016


On Thu, 27 Oct 2016 12:39:32 -0400
lingpanda101 via samba <samba at lists.samba.org> wrote:

> On 10/26/2016 6:46 PM, Garming Sam via samba wrote:
> > This is almost certainly because of a build artifact.
> > python/samba/netcmd/time.py was renamed to nettime.py but there is
> > likely to be a time.pyc file floating around in your directories.
> >
> > The reason it was renamed was so that the samba tool time command
> > wasn't confused with the python time module, but this necessarily
> > causes issues with existing installs unfortunately. The fix is
> > mostly simple, just to remove any conflicting files but until then,
> > it will trigger issues like these.
> >
> > Cheers,
> >
> > Garming
> >
> >
> >
> 
> I removed both /samba/netcmd/time.py and time.pyc. This allowed the 
> command to succeed.
> 
> samba-tool domain tombstones expunge
> Removed 0 objects and 0 links successfully
> 
> Unfortunately it didn't remove the errors.  Is this bug 
> https://bugzilla.samba.org/show_bug.cgi?id=12385 patched in 4.5.1?
> Thanks.
> 
> 

That explains it better, what Garming meant was that there may be an
old version of the Samba 'time.py' in 'samba.netcmd' and this would be
used instead of the correct python 'time' module. This is clearly a
bug and Samba should check to see if the Samba 'time.py' exists and
delete it on upgrade, or at least document this could happen.

You may have got the command to work, but if you had any tombstones,
they didn't appear to get deleted 'Removed 0 objects' 

Rowland



More information about the samba mailing list