Project

General

Profile

Actions

Bug #10373

closed

Upgrading from 4.0 to 4.1 failed on Centos7.3, and purged LDAP directory

Added by Nicolas CHARLES about 7 years ago. Updated about 2 years ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
Critical - prevents main use of Rudder | no workaround | data loss | security
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

During upgrade from 4.0 to 4.1, there's been an error


INFO: StopINFO: Scheduling an inventory during next run...
  Mise à jour  : 1398866025:rudder-inventory-ldap-4.1.0.rc2.git201703080240-1.EL.7.x86_64                                                               4/21 
warning: /opt/rudder/etc/openldap/slapd.conf created as /opt/rudder/etc/openldap/slapd.conf.rpmnew
INFO: Setting rudder-slapd as a boot service... Done
INFO: Reloading syslogd...  Done
ping rudder-slapd... Done
58bfd7f4 mdb_id2entry_put: mdb_put failed: MDB_MAP_FULL: Environment mapsize limit reached(-30792) "directiveId=e40a1aa0-bdb3-4c4e-9114-5333eb552227,activeTechniqueId=5eef7cab-74c4-4bfc-8d78-6e3266a20a29,techniqueCategoryId=filedistribution,techniqueCategoryId=active techniques,ou=rudder,cn=rudder-configuration" 
58bfd7f4 => mdb_tool_entry_put: id2entry_add failed: err=80
58bfd7f4 => mdb_tool_entry_put: txn_aborted! Internal error (80)
slapadd: could not add entry dn="directiveId=e40a1aa0-bdb3-4c4e-9114-5333eb552227,activeTechniqueId=5eef7cab-74c4-4bfc-8d78-6e3266a20a29,techniqueCategoryId=fileDistribution,techniqueCategoryId=Active Techniques,ou=Rudder,cn=rudder-configuration" (line=71143): txn_aborted! Internal error (80)
INFO: Starting rudder-slapd... Done
INFO: OpenLDAP database was successfully upgraded to new format
INFO: You can safely remove the backups in /var/rudder/ldap/openldap-data-backup-upgrade-on-20170308100741/
INFO: and /var/rudder/ldap/backup/openldap-data-pre-upgrade-20170308100741.ldif
INFO: Restarting rudder-slapd... Done

Error was not correctly detected, and i don't have anything anymore on the web interface

# /opt/rudder/sbin/slapcat 
# echo $?
0

Subtasks 2 (0 open2 closed)

Bug #10405: Bad way to calculate the size of mdb database for LDAP dataReleasedAlexis MoussetActions
Bug #10408: Invalid detection of success and failure in rudder-ldap-inventory upgrade in 4.1ReleasedBenoît PECCATTEActions

Related issues 3 (1 open2 closed)

Related to Rudder - Bug #10374: On upgrade from 4.0 to 4.1, on Centos7.3 slapd.conf file was not replaced by new slapd.conf fileRejectedActions
Related to Rudder - Architecture #9839: Build slapd with lmdbReleasedAlexis Mousset2016-12-21Actions
Related to Rudder - Enhancement #10404: Document how to monitor and upgrade the size of mdb database for LDAP data for prod envNewActions
Actions

Also available in: Atom PDF