James Ray
2010-Feb-09 09:46 UTC
[Samba] Provision script fails with Samba4 (latest git version)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 All, I'm trying to get samba4 to provision with the latest git version. My provision command looks like so: # ./setup/provision --realm=TEST.DOMAIN --domain=DOMAIN --adminpass=pass - --server-role='domain controller' --ldap-backend-type=openldap - --slapd-path=/usr/sbin/slapd I get the following output from the command: hdb_db_open: database "cn=Schema,cn=Configuration,dc=test,dc=domain": db_open(/usr/local/samba4/private/ldap/db/schema/id2entry.bdb) failed: No such file or directory (2). backend_startup_one (type=hdb, suffix="cn=Schema,cn=Configuration,dc=test,dc=domain"): bi_db_open failed! (2) slap_startup failed (test would succeed using the -u switch) Failed to bind - LDAP client internal error: NT_STATUS_UNEXPECTED_NETWORK_ERROR Failed to connect to 'ldapi://%2Fusr%2Flocal%2Fsamba4%2Fprivate%2Fldap%2Fldapi' 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=test,DC=domain pdc_fsmo_init: no domain object present: (skip loading of domain details) Traceback (most recent call last): File "./setup/provision", line 244, in <module> nosync=opts.nosync,ldap_dryrun_mode=opts.ldap_dryrun_mode,useeadb=eadb) File "bin/python/samba/provision.py", line 1301, in provision dom_for_fun_level=dom_for_fun_level) File "bin/python/samba/provision.py", line 945, in setup_samdb "SAMBA_VERSION_STRING": version File "bin/python/samba/provision.py", line 260, in setup_modify_ldif ldb.modify_ldif(data) File "bin/python/samba/__init__.py", line 261, in modify_ldif self.modify(msg, controls) _ldb.LdbError: (1, 'LDAP client internal error: NT_STATUS_INTERNAL_ERROR') A transaction is still active in ldb context [0x42f1450] on /usr/local/samba4/private/secrets.ldb Any one with any ideas on where I progress from here with this? I seem to have come to a road block. Thanks for any help you can provide. - -- James Ray. <j.ray at qmul.ac.uk> Computing Services (http://pub.tsn.dk/how-to-quote.php) Queen Mary, University of London -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAktxLvgACgkQcGHKt+AwrtjkZgCgjmqOJ5GH/Myi/siTlx+1hbNE m3IAniZmq2vxv98P8OxMcunlWj6jTnFS =GNAH -----END PGP SIGNATURE-----
Endi Sukma Dewata
2010-Feb-09 15:48 UTC
[Samba] Provision script fails with Samba4 (latest git version)
Hi James, There is a bug for this issue: https://bugzilla.samba.org/show_bug.cgi?id=7040 -- Endi S. Dewata ----- "James Ray" <j.ray at qmul.ac.uk> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > All, > I'm trying to get samba4 to provision with the latest git version. > My > provision command looks like so: > # ./setup/provision --realm=TEST.DOMAIN --domain=DOMAIN > --adminpass=pass > - --server-role='domain controller' --ldap-backend-type=openldap > - --slapd-path=/usr/sbin/slapd > > I get the following output from the command: > hdb_db_open: database "cn=Schema,cn=Configuration,dc=test,dc=domain": > db_open(/usr/local/samba4/private/ldap/db/schema/id2entry.bdb) > failed: > No such file or directory (2). > backend_startup_one (type=hdb, > suffix="cn=Schema,cn=Configuration,dc=test,dc=domain"): bi_db_open > failed! (2) > slap_startup failed (test would succeed using the -u switch) > Failed to bind - LDAP client internal error: > NT_STATUS_UNEXPECTED_NETWORK_ERROR > Failed to connect to > 'ldapi://%2Fusr%2Flocal%2Fsamba4%2Fprivate%2Fldap%2Fldapi' > 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=test,DC=domain > pdc_fsmo_init: no domain object present: (skip loading of domain > details) > > Traceback (most recent call last): > File "./setup/provision", line 244, in <module> > > nosync=opts.nosync,ldap_dryrun_mode=opts.ldap_dryrun_mode,useeadb=eadb) > File "bin/python/samba/provision.py", line 1301, in provision > dom_for_fun_level=dom_for_fun_level) > File "bin/python/samba/provision.py", line 945, in setup_samdb > "SAMBA_VERSION_STRING": version > File "bin/python/samba/provision.py", line 260, in > setup_modify_ldif > ldb.modify_ldif(data) > File "bin/python/samba/__init__.py", line 261, in modify_ldif > self.modify(msg, controls) > _ldb.LdbError: (1, 'LDAP client internal error: > NT_STATUS_INTERNAL_ERROR') > A transaction is still active in ldb context [0x42f1450] on > /usr/local/samba4/private/secrets.ldb > > Any one with any ideas on where I progress from here with this? I > seem > to have come to a road block. > > Thanks for any help you can provide. > > - -- > James Ray. <j.ray at qmul.ac.uk> > Computing Services (http://pub.tsn.dk/how-to-quote.php) > Queen Mary, University of London > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAktxLvgACgkQcGHKt+AwrtjkZgCgjmqOJ5GH/Myi/siTlx+1hbNE > m3IAniZmq2vxv98P8OxMcunlWj6jTnFS > =GNAH > -----END PGP SIGNATURE----- > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
Martin Hochreiter
2010-Feb-09 16:29 UTC
[Samba] Provision script fails with Samba4 (latest git version)
Am 2010-02-09 10:46, schrieb James Ray:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > All, > I'm trying to get samba4 to provision with the latest git version. My > provision command looks like so: > # ./setup/provision --realm=TEST.DOMAIN --domain=DOMAIN --adminpass=pass > - --server-role='domain controller' --ldap-backend-type=openldap > - --slapd-path=/usr/sbin/slapd > > I get the following output from the command: > hdb_db_open: database "cn=Schema,cn=Configuration,dc=test,dc=domain": > db_open(/usr/local/samba4/private/ldap/db/schema/id2entry.bdb) failed: > No such file or directory (2). > backend_startup_one (type=hdb, > suffix="cn=Schema,cn=Configuration,dc=test,dc=domain"): bi_db_open > failed! (2) > slap_startup failed (test would succeed using the -u switch) > Failed to bind - LDAP client internal error: > NT_STATUS_UNEXPECTED_NETWORK_ERROR > Failed to connect to > 'ldapi://%2Fusr%2Flocal%2Fsamba4%2Fprivate%2Fldap%2Fldapi' > 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=test,DC=domain > pdc_fsmo_init: no domain object present: (skip loading of domain details) > > Traceback (most recent call last): > File "./setup/provision", line 244, in<module> > nosync=opts.nosync,ldap_dryrun_mode=opts.ldap_dryrun_mode,useeadb=eadb) > File "bin/python/samba/provision.py", line 1301, in provision > dom_for_fun_level=dom_for_fun_level) > File "bin/python/samba/provision.py", line 945, in setup_samdb > "SAMBA_VERSION_STRING": version > File "bin/python/samba/provision.py", line 260, in setup_modify_ldif > ldb.modify_ldif(data) > File "bin/python/samba/__init__.py", line 261, in modify_ldif > self.modify(msg, controls) > _ldb.LdbError: (1, 'LDAP client internal error: NT_STATUS_INTERNAL_ERROR') > A transaction is still active in ldb context [0x42f1450] on > /usr/local/samba4/private/secrets.ldb > > Any one with any ideas on where I progress from here with this? I seem > to have come to a road block. > > Thanks for any help you can provide. >I am experiencing exactly the same behaviour with samba4alpha11 -the script is not able to connect to the ldap server but it still is able to start it - maybe someone can give us a hint, please regards
Apparently Analagous Threads
- Samba4 A11 Provision Fails on 389-DS - Fedora 12
- Unable to provision with openldap/samba4: pdc_fsmo_init: no domain object present
- openldap 5.1 crashing
- samba4 + openldap: provisioning isnt working
- Starting slapd: /bin/bash: /tmp/start-slapd.K12378: Permission denied