version `SAMBA_4.0.0ALPHA18_DEVELOPERBUILD' not found (required by bin/tdbbackup)

Horacio G. de Oro hgdeoro at
Thu Feb 2 21:32:08 MST 2012

Hi! I'm trying to install Samba4 (from Git) on CentOS 6.2. When I run
the provision script, fails (I've added a "print" and
"pdb.set_trace()" to see what's happening, so the line numbers may
differ a little):

$ sudo ./source4/setup/provision
--domain=HGDEORODEV --adminpass=fikPydNogUs6 --server-role='domain
Looking up IPv4 addresses
Looking up IPv6 addresses
No IPv6 address will be assigned
Setting up share.ldb
Setting up secrets.ldb
Setting up the registry
Setting up the privileges database
Setting up idmap db
Setting up SAM db
Setting up sam.ldb partitions and settings
Setting up sam.ldb rootDSE
Pre-loading the Samba 4 and AD schema
Adding DomainDN: DC=samba4-git,DC=hgdeoro,DC=com,DC=ar
Adding configuration container
Setting up sam.ldb schema
Setting up sam.ldb configuration data
Setting up display specifiers
Adding users container
Modifying users container
Adding computers container
Modifying computers container
Setting up sam.ldb data
Setting up well known security principals
Setting up sam.ldb users and groups
Setting up self join
Adding DNS accounts
Populating CN=MicrosoftDNS,CN=System,DC=samba4-git,DC=hgdeoro,DC=com,DC=ar
Creating DomainDnsZones and ForestDnsZones partitions
Populating DomainDnsZones partition
Populating ForestDnsZones partition
bin/tdbbackup: /home/horacio/samba-master/bin/shared/private/
version `SAMBA_4.0.0ALPHA18_DEVELOPERBUILD' not found (required by
system.os -> bin/tdbbackup -s '.dns' /opt/samba4-3bea5a147b/private/sam.ldb
> /home/horacio/samba-master/bin/python/samba/provision/
-> raise Exception("Error copying %s" % file1)
(Pdb) l 680,700
680         for d in dirs:
681             toolpath = os.path.join(d, "tdbbackup")
682             if os.path.exists(toolpath):
683                 break
684         status = os.system("%s -s '.dns' %s" % (toolpath, file1))
686         print "system.os -> %s -s '.dns' %s" % (toolpath, file1)
687         if status == 0:
688             os.rename("%s.dns" % file1, file2)
689         else:
690             import pdb; pdb.set_trace()
691  ->         raise Exception("Error copying %s" % file1)
693     def create_samdb_copy(samdb, logger, paths, names, domainsid,
694         """Create a copy of samdb and give write permissions to
named for dns partitions
695         """
696         private_dir = paths.private_dir
697         samldb_dir = os.path.join(private_dir, "sam.ldb.d")
698         dns_dir = os.path.dirname(paths.dns)
699         dns_samldb_dir = os.path.join(dns_dir, "sam.ldb.d")
(Pdb) status
(Pdb) print "%s -s '.dns' %s" % (toolpath, file1)
bin/tdbbackup -s '.dns' /opt/samba4-3bea5a147b/private/sam.ldb
(Pdb) c
Failed to setup database for BIND, AD based DNS cannot be used
Traceback (most recent call last):
  File "./source4/setup/provision", line 256, in <module>
    useeadb=eadb, next_rid=opts.next_rid, lp=lp)
  File "bin/python/samba/provision/", line 1757, in provision
    am_rodc=am_rodc, lp=lp)
  File "bin/python/samba/provision/", line 1491, in provision_fill
    targetdir=targetdir, site=DEFAULTSITE)
  File "bin/python/samba/provision/", line 993, in setup_ad_dns
    create_samdb_copy(samdb, logger, paths, names, domainsid, domainguid)
  File "bin/python/samba/provision/", line 754, in create_samdb_copy
    os.path.join(dns_dir, "sam.ldb"))
  File "bin/python/samba/provision/", line 691, in tdb_copy
    raise Exception("Error copying %s" % file1)
Exception: Error copying /opt/samba4-3bea5a147b/private/sam.ldb

The commands that fails is "bin/tdbbackup -s '.dns'
/opt/samba4-3bea5a147b/private/sam.ldb". Re-running that command with
sudo from the terminal fails with an exit status of 1:

$ bin/tdbbackup -s '.dns' /opt/samba4-3bea5a147b/private/sam.ldb
bin/tdbbackup: /home/horacio/samba-master/bin/shared/private/
version `SAMBA_4.0.0ALPHA18_DEVELOPERBUILD' not found (required by

FYI, ldd shows:

$ ldd  -v /home/horacio/samba-master/bin/shared/private/ =>  (0x00007fffb3755000) => /lib64/ (0x00007f6a12bff000) =>
(0x00007f6a129f8000) => /lib64/ (0x00007f6a12657000)
        /lib64/ (0x00007f6a1304d000)

        Version information:
       (SAMBA_4.0.0ALPHA18_GIT_F0A5C22) =>
       (GLIBC_2.2.5) => /lib64/
       (GLIBC_2.2.5) => /lib64/
       (GLIBC_2.3) => /lib64/
       (GLIBC_2.2.5) =>
       (GLIBC_PRIVATE) =>
       (GLIBC_2.3.2) => /lib64/
       (GLIBC_PRIVATE) => /lib64/
       (GLIBC_2.2.5) => /lib64/
       (GLIBC_2.2.5) => /lib64/
       (GLIBC_PRIVATE) =>
       (GLIBC_2.3) => /lib64/

The Git commit is 3bea5a147b2a381fc4fa860c7b1ceeed11be4e80.

Is this a known problem? Maybe I'm doing something wrong, I'm folowing
the instructions from

Thanks in advance!
Horacio de Oro

More information about the samba-technical mailing list