Project

General

Profile

Actions

Bug #9630

closed

Compressing the ldap backup hangs if would require to overwrite it

Added by Janos Mattyasovszky over 7 years ago. Updated over 7 years ago.

Status:
Released
Priority:
N/A
Category:
System integration
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

I have decompressed an ldap-backup (with keep-option) to look up something, and left it there.
At the next agent run I have noticed it hanging during execution. A pstree and strace did reveal that the gzip apprears to wait for input.

Trace of process 20165 - /bin/gzip /var/rudder/ldap/backup/openldap-data-20161104125423.ldif
Process 20165 attached - interrupt to quit
read(0,
/bin/bash
└─ /bin/sh /opt/rudder/share/commands/agent-run
   ├─ /bin/sh /opt/rudder/share/commands/agent-run
   │  └─ awk -v info 0 -v full_strings 0 -v summary_only 0 -v quiet 0 -v multiline 0 -v green \033[1;32m -v darkgreen \033[0;32m -v red
   └─ /var/rudder/cfengine-community/bin/cf-agent -Calways -K
      └─ /bin/gzip /var/rudder/ldap/backup/openldap-data-20161104125423.ldif

I had to press "q" to continue with the run:

success  server-roles              Check rudder status                          The http://localhost:8080/rudder/api/status web application is running
success  server-roles              Check endpoint status                        The http://localhost:8080/endpoint/api/status web application is running
success  server-roles              Check slapd process                          The slapd process is already running
q
2016-11-04T16:21:10+0000    error: /default/root_component_check/methods/'any'/default/compress_ldap_backups/files/'/var/rudder/ldap/backup'[0]: Finished command related to promiser '/var/rudder/ldap/backup' -- an error occurred, returned 2
2016-11-04T16:21:10+0000    error: /default/root_component_check/methods/'any'/default/compress_ldap_backups/files/'/var/rudder/ldap/backup'[0]: Transformer '/var/rudder/ldap/backup/openldap-data-20161104125423.ldif' => '/bin/gzip "/var/rudder/ldap/backup/openldap-data-20161104125423.ldif"' returned error
2016-11-04T16:21:10+0000    error: /default/root_component_check/methods/'any'[0]: Method 'compress_ldap_backups' failed in some repairs
success  server-roles              Check PostgreSQL configu|                    The SuSE specific postgresql configuration is present
success  server-roles              Check postgresql process                     The postgresql process is already running
success  server-roles              Check postgresql boot sc|                    Check postgresql boot starting parameters was correct

Gzipping the files should have the force option at the ldap-log-compression part of the promises.

Actions

Also available in: Atom PDF