Alexander Harm || ApfelQ
2023-Apr-03 10:41 UTC
[Samba] samba provisioning hangs on "Repacking database from v1 to v2 format"
Hello, I installed a fresh Debian Bullseye 11.6 and Samba 4.17.7-Debian from backports. I followed the steps outlined in https://wiki.samba.org/index.php/Setting_up_Samba_as_an_Active_Directory_Domain_Controller and finally tried to provision the domain with samba-tool domain provision --use-rfc2307 ?interactive The process starts but then it hangs for hours: INFO 2023-04-03 10:29:26,055 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #2125: Looking up IPv6 addresses WARNING 2023-04-03 10:29:26,055 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #2132: No IPv6 address will be assigned INFO 2023-04-03 10:29:26,133 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #2274: Setting up share.ldb INFO 2023-04-03 10:29:26,138 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #2278: Setting up secrets.ldb INFO 2023-04-03 10:29:26,141 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #2283: Setting up the registry INFO 2023-04-03 10:29:26,149 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #2286: Setting up the privileges database INFO 2023-04-03 10:29:26,154 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #2289: Setting up idmap db INFO 2023-04-03 10:29:26,157 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #2296: Setting up SAM db INFO 2023-04-03 10:29:26,158 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #880: Setting up sam.ldb partitions and settings INFO 2023-04-03 10:29:26,158 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #892: Setting up sam.ldb rootDSE INFO 2023-04-03 10:29:26,159 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1305: Pre-loading the Samba 4 and AD schema Unable to determine the DomainSID, can not enforce uniqueness constraint on local domainSIDs INFO 2023-04-03 10:29:26,166 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1383: Adding DomainDN: DC=ad,DC=bafa-gmbh,DC=de INFO 2023-04-03 10:29:26,168 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1415: Adding configuration container INFO 2023-04-03 10:29:26,170 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1430: Setting up sam.ldb schema INFO 2023-04-03 10:29:26,848 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1448: Setting up sam.ldb configuration data INFO 2023-04-03 10:29:26,877 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1489: Setting up display specifiers INFO 2023-04-03 10:29:27,325 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1497: Modifying display specifiers and extended rights INFO 2023-04-03 10:29:27,332 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1504: Adding users container INFO 2023-04-03 10:29:27,332 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1510: Modifying users container INFO 2023-04-03 10:29:27,333 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1513: Adding computers container INFO 2023-04-03 10:29:27,333 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1519: Modifying computers container INFO 2023-04-03 10:29:27,333 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1523: Setting up sam.ldb data INFO 2023-04-03 10:29:27,358 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1553: Setting up well known security principals INFO 2023-04-03 10:29:27,368 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1567: Setting up sam.ldb users and groups INFO 2023-04-03 10:29:27,402 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1575: Setting up self join Repacking database from v1 to v2 format (first record CN=Subnet-Container,CN=Schema,CN=Configuration,DC=ad,DC=bafa-gmbh,DC=de) Repack: re-packed 10000 records so far Repacking database from v1 to v2 format (first record CN=pKICertificateTemplate-Display,CN=41F,CN=DisplaySpecifiers,CN=Configuration,DC=ad,DC=bafa-gmbh,DC=de) Repacking database from v1 to v2 format (first record CN=IIS_IUSRS,CN=Builtin,DC=ad,DC=bafa-gmbh,DC=de) Which I find strange, since it is a clean install out of the box. Any ideas? Alexander
Alexander Harm || ApfelQ
2023-Apr-03 10:48 UTC
[Samba] samba provisioning hangs on "Repacking database from v1 to v2 format"
Just ignore my mail. I need more sleep. Sorry for the noise.> On Monday, Apr 03, 2023 at 12:41 PM, Me <alexander.harm at apfelq.com (mailto:alexander.harm at apfelq.com)> wrote: > Hello, I installed a fresh Debian Bullseye 11.6 and Samba 4.17.7-Debian from backports. I followed the steps outlined in https://wiki.samba.org/index.php/Setting_up_Samba_as_an_Active_Directory_Domain_Controller > and finally tried to provision the domain with > > samba-tool domain provision --use-rfc2307 ?interactive > > The process starts but then it hangs for hours: > > INFO 2023-04-03 10:29:26,055 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #2125: Looking up IPv6 addresses > WARNING 2023-04-03 10:29:26,055 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #2132: No IPv6 address will be assigned > INFO 2023-04-03 10:29:26,133 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #2274: Setting up share.ldb > INFO 2023-04-03 10:29:26,138 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #2278: Setting up secrets.ldb > INFO 2023-04-03 10:29:26,141 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #2283: Setting up the registry > INFO 2023-04-03 10:29:26,149 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #2286: Setting up the privileges database > INFO 2023-04-03 10:29:26,154 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #2289: Setting up idmap db > INFO 2023-04-03 10:29:26,157 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #2296: Setting up SAM db > INFO 2023-04-03 10:29:26,158 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #880: Setting up sam.ldb partitions and settings > INFO 2023-04-03 10:29:26,158 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #892: Setting up sam.ldb rootDSE > INFO 2023-04-03 10:29:26,159 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1305: Pre-loading the Samba 4 and AD schema > Unable to determine the DomainSID, can not enforce uniqueness constraint on local domainSIDs > > INFO 2023-04-03 10:29:26,166 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1383: Adding DomainDN: DC=ad,DC=bafa-gmbh,DC=de > INFO 2023-04-03 10:29:26,168 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1415: Adding configuration container > INFO 2023-04-03 10:29:26,170 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1430: Setting up sam.ldb schema > INFO 2023-04-03 10:29:26,848 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1448: Setting up sam.ldb configuration data > INFO 2023-04-03 10:29:26,877 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1489: Setting up display specifiers > INFO 2023-04-03 10:29:27,325 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1497: Modifying display specifiers and extended rights > INFO 2023-04-03 10:29:27,332 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1504: Adding users container > INFO 2023-04-03 10:29:27,332 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1510: Modifying users container > INFO 2023-04-03 10:29:27,333 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1513: Adding computers container > INFO 2023-04-03 10:29:27,333 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1519: Modifying computers container > INFO 2023-04-03 10:29:27,333 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1523: Setting up sam.ldb data > INFO 2023-04-03 10:29:27,358 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1553: Setting up well known security principals > INFO 2023-04-03 10:29:27,368 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1567: Setting up sam.ldb users and groups > INFO 2023-04-03 10:29:27,402 pid:4386 /usr/lib/python3/dist-packages/samba/provision/__init__.py #1575: Setting up self join > Repacking database from v1 to v2 format (first record CN=Subnet-Container,CN=Schema,CN=Configuration,DC=ad,DC=bafa-gmbh,DC=de) > Repack: re-packed 10000 records so far > Repacking database from v1 to v2 format (first record CN=pKICertificateTemplate-Display,CN=41F,CN=DisplaySpecifiers,CN=Configuration,DC=ad,DC=bafa-gmbh,DC=de) > Repacking database from v1 to v2 format (first record CN=IIS_IUSRS,CN=Builtin,DC=ad,DC=bafa-gmbh,DC=de) > > > Which I find strange, since it is a clean install out of the box. > > Any ideas? > > Alexander > >