Univention Bugzilla – Bug 53212
Block UCS-5 update if samba would probably not start after update with about 200k users
Last modified: 2023-02-03 16:04:21 CET
With 200k users samba doesn't start after update from UCS 4.4-8 to UCS 5.0-0 Something with ldb seems stuck. E.g. this command doesn't return ldbdel -H /var/lib/samba/private/sam.ldb foo
Maybe it's due to a problem while automatically converting the database format when samba starts. While experimenting root@master:~# ldbdel \ -H /var/lib/samba/private/sam.ldb.d/DC\=BIGENV\,DC\=LOCAL.ldb \ CN=test1,DC=bigenv,DC=local Repacking database from v1 to v2 format (first record CN=test228209,DC=bigenv,DC=local) Repack: re-packed 10000 records so far Repack: re-packed 20000 records so far Repack: re-packed 30000 records so far [...] Repack: re-packed 2060000 records so far Repack: re-packed 2070000 records so far ltdb: tdb(/var/lib/samba/private/sam.ldb.d/DC=BIGENV,DC=LOCAL.ldb): tdb_recovery_allocate: overflow recovery area ltdb: tdb(/var/lib/samba/private/sam.ldb.d/DC=BIGENV,DC=LOCAL.ldb): tdb_transaction_prepare_commit: failed to setup recovery data Failure during prepare_write): Success -> Success delete of 'CN=test1,DC=bigenv,DC=local' failed - (Operations error) ltdb_prepare_commit() called without transaction active
Maybe we need to do something like this https://help.univention.com/t/problem-ucs-4-3-4-samba-4-10-update-aborts-during-database-re-indexing-no-such-object/12492
1637b708de | Block the update if Samba SAM database is too large Package: univention-updater Version: 15.0.3-52A~5.0.0.202105041442 Branch: ucs_5.0-01637b708de | Block the update if Samba SAM database is too large Package: univention-updater Version: 15.0.3-52A~5.0.0.202105041442 Branch: ucs_5.0-0 We will research for a technical solution via Bug #53221
eaf04af018 fixup Version: 15.0.3-52A~5.0.0.202105041507
09fb989e92 | fixup Version: 15.0.3-52A~5.0.0.202105051227
8b54b2aac0 | Add hint about Samba TDB size limit to UCS-5 changelog
OK - update is stopped if a samba tdb of about 1.8Gb is found OK - update50/ignore_samba_tdb_size=true
UCS 5.0 has been released: https://docs.software-univention.de/release-notes-5.0-0-en.html https://docs.software-univention.de/release-notes-5.0-0-de.html If this error occurs again, please use "Clone This Bug".
FYI: git:1637b708ded20dbca55f84bb35f42745fdf2156e base/univention-updater/script/postup.sh: … > at now >&3 2>&3 <<EOF … > if [ "$(pgrep …) -lt 10 ]; then # should be about 25 … > EOF Due to lack of quoting that `pgrep` is executed when the `at`-job is *created*, not when it *executes* (later). Is this code block still needed after the upgrade from UCS 4.4-x to 5.0-0, e.g. for any later patch-level upgrade? I'd like to rip it out for Bug #55640 then.