You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the slapd-cli script is missing to ret=$? statements which lead to an issue if BACKUP_AT_SHUTDOWN is set to "1" when executing slapd-cli with either restoreconfig or stop as action.
This is a real world output when executing "slapd-cli stop"
The same ALERT message occurs when using the action "restoreconfig".
However it does not happen when I implement the "ret=$?" after line 1035 which is:
$UMASK $MASK && $BACKUP_COMPRESS_BIN "$file"
and after line 1037 which is:
$SU "$UMASK $MASK && $BACKUP_COMPRESS_BIN $file"
I am talking about the last line in the output with the ALERT message. That is what I think can easily be fixed when saving the return code in the ret variable.
You might have noticed a second issue with xz claiming the compressed file already esists. I was not yet able to understand why this sometimes happens and sometimes not. But I can live whit that and currently don't have time to investigate in more detail.
I am using OpenLDAP-LTB 2.6.x on RHEL 8 though the RHEL 9 script looks to be the same so probably has the same issue as well.
Let me know if I should create a pull request with my proposed change.
Best,
Cyril
The text was updated successfully, but these errors were encountered:
Hi
I think the slapd-cli script is missing to ret=$? statements which lead to an issue if BACKUP_AT_SHUTDOWN is set to "1" when executing slapd-cli with either restoreconfig or stop as action.
This is a real world output when executing "slapd-cli stop"
slapd-cli: [INFO] Using /usr/local/openldap/etc/openldap/slapd-cli.conf for configuration slapd-cli: [INFO] Halting OpenLDAP... slapd-cli: [OK] OpenLDAP stopped slapd-cli: [INFO] Launching OpenLDAP database backup... /usr/bin/xz: /var/backups/openldap/openldap-data-20250123143741.ldif.xz: File exists slapd-cli: [ALERT] OpenLDAP database backup compression failed
The same ALERT message occurs when using the action "restoreconfig".
However it does not happen when I implement the "ret=$?" after line 1035 which is:
$UMASK $MASK && $BACKUP_COMPRESS_BIN "$file"
and after line 1037 which is:
$SU "$UMASK $MASK && $BACKUP_COMPRESS_BIN $file"
I am talking about the last line in the output with the ALERT message. That is what I think can easily be fixed when saving the return code in the ret variable.
You might have noticed a second issue with xz claiming the compressed file already esists. I was not yet able to understand why this sometimes happens and sometimes not. But I can live whit that and currently don't have time to investigate in more detail.
I am using OpenLDAP-LTB 2.6.x on RHEL 8 though the RHEL 9 script looks to be the same so probably has the same issue as well.
Let me know if I should create a pull request with my proposed change.
Best,
Cyril
The text was updated successfully, but these errors were encountered: