[Samba] Can't provision with BIND9_DLZ [SOLVED]

Andrew Bartlett abartlet at samba.org
Sun Jun 2 16:00:10 MDT 2013


On Sun, 2013-06-02 at 21:03 +0200, steve wrote:
> On Sun, 2013-06-02 at 23:31 +1000, Andrew Bartlett wrote:
> > On Fri, 2013-05-31 at 14:34 +0200, steve wrote:
> > > Version 4.0.7-GIT-d4cd828
> > > openSUSE 12.04 with bind9 installed but not configured.
> > > 
> > > Hi
> > > Attempting to provision with BIND9_DLZ or samba_upgradedns from a
> > > functioning SAMBA_INTERNAL install produces:
> > > 
> > > Creating DomainDnsZones and ForestDnsZones partitions
> > > Populating DomainDnsZones and ForestDnsZones partitions
> > > Failed to setup database for BIND, AD based DNS cannot be used
> > > ERROR(<type 'exceptions.OSError'>): uncaught exception - [Errno 2] No
> > > such file or directory
> > 
> > >   File
> > > "/usr/local/samba/lib64/python2.7/site-packages/samba/tdb_util.py", line
> > > 36, in tdb_copy
> > >     status = subprocess.call(tdbbackup_cmd, close_fds=True, shell=False)
> > >   File "/usr/lib64/python2.7/subprocess.py", line 493, in call
> > >     return Popen(*popenargs, **kwargs).wait()
> > >   File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__
> > >     errread, errwrite)
> > >   File "/usr/lib64/python2.7/subprocess.py", line 1249, in
> > > _execute_child
> > >     raise child_exception
> > > 
> > > Same with 4.0.6 on the same box. What have I done wrong?
> > > Thanks
> > 
> > What has happened here is that your OS has the right version of libtdb,
> > but hasn't supplied the tdb tools - tdbbackup in this case, which we use
> > to prepare the databases for the DNS server.  Find the OS package for
> > that, and install it.
> > 
> > I hope this helps,
> > 
> > Andrew Bartlett
> > 
> 
> Hi
> Thanks. Actually, I did have the tdbtools installed, but openSUSE in
> their wisdom, chose not to put them in the PATH. A symlink:
> ln -s /usr/bin/tdbbackup /usr/lib/mit/sbin
> did it.
> 
> Sorry, I know it's bad list netiquette not to post the solution. I
> should have done this before.
> Cheers,
> Steve

That is *very* weird.  They may be another package with tdbbackup in a
normal path.  Otherwise, could you follow this up with the OpenSUSE
folks?

Thanks,

Andrew Bartlett
-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org




More information about the samba mailing list