RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1476322 - backup fails if changelog is enabled
Summary: backup fails if changelog is enabled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: 389-ds-base
Version: 7.4
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: Ludwig
QA Contact: Viktor Ashirov
Marc Muehlfeld
URL:
Whiteboard:
Depends On:
Blocks: 1479755
TreeView+ depends on / blocked
 
Reported: 2017-07-28 15:52 UTC by Ludwig
Modified: 2020-12-14 09:16 UTC (History)
4 users (show)

Fixed In Version: 389-ds-base-1.3.7.5-4.el7
Doc Type: Bug Fix
Doc Text:
Backup now succeeds if replication was enabled and a changelog file existed Previously, if replication was enabled and a changelog file existed, performing a backup on this master server failed. This update sets the internal options for correctly copying a file. As a result, creating a backup now succeeds in the mentioned scenario.
Clone Of:
: 1479755 (view as bug list)
Environment:
Last Closed: 2018-04-10 14:19:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0811 0 None None None 2018-04-10 14:20:43 UTC

Description Ludwig 2017-07-28 15:52:50 UTC
Description of problem:


If replication is enabled and a changelog is configured backup fails

 [28/Jul/2017:12:09:00.566037827 +0200] - ERR - dblayer_copy_directory - Backend instance "changelogdb" does not exist; Instance path /var/lib/dirsrv/slapd-s1/changelogdb could be invalid.
[28/Jul/2017:12:09:00.572168833 +0200] - ERR - dblayer_backup - Error in copying directory (/var/lib/dirsrv/slapd-s1/changelogdb -> /var/lib/dirsrv/slapd-s1/bak/s1-2017_07_28_12_08_59/.repl_changelog_backup): err=-1

and the backup is incomplete

Comment 2 Ludwig 2017-07-28 15:53:40 UTC
upstream ticket: #49334

Comment 5 Orion Poplawski 2017-08-28 16:21:40 UTC
I'm getting similar, but with a different db name:

[26/Aug/2017:03:00:21.233754356 -0600] - ERR - dblayer_copy_directory - Backend instance "cldb" does not exist; Instance path /var/lib/dirsrv/slapd-NWRA-COM/cldb could be invalid.
[26/Aug/2017:03:00:21.307454032 -0600] - ERR - dblayer_backup - Error in copying directory (/var/lib/dirsrv/slapd-NWRA-COM/cldb -> /var/lib/dirsrv/slapd-NWRA-COM/bak/NWRA-COM/.repl_changelog_backup): err=-1

Comment 7 ashiveka 2017-11-22 04:21:56 UTC
    ============================================================================ test session starts ============================================================================
    platform linux -- Python 3.5.1, pytest-3.2.3, py-1.4.34, pluggy-0.4.0 -- /opt/rh/rh-python35/root/usr/bin/python3
    cachedir: .cache
    metadata: {'Python': '3.5.1', 'Packages': {'pytest': '3.2.3', 'pluggy': '0.4.0', 'py': '1.4.34'}, 'Platform': 'Linux-4.11.0-44.el7a.x86_64-x86_64-with-redhat-7.4-Maipo', 'Plugins': {'metadata': '1.5.0', 'html': '1.16.0'}}
    389-ds-base: 1.3.6.1-21.el7_4
    nss: 3.28.4-15.el7_4
    nspr: 4.13.1-1.0.el7_3
    openldap: 2.4.44-5.el7
    svrcore: 4.1.3-2.el7
     
    rootdir: /mnt/tests/rhds/tests/upstream, inifile:
    plugins: metadata-1.5.0, html-1.16.0
    collected 3 items                                                                                                                                                            
     
    ds/dirsrvtests/tests/suites/replication/changelog_test.py::test_verify_changelog PASSED
    ds/dirsrvtests/tests/suites/replication/changelog_test.py::test_verify_changelog_online_backup PASSED
    ds/dirsrvtests/tests/suites/replication/changelog_test.py::test_verify_changelog_offline_backup PASSED
     
    ========================================================================= 3 passed in 28.60 seconds =========================================================================

Comment 10 errata-xmlrpc 2018-04-10 14:19:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0811


Note You need to log in before you can comment on or make changes to this bug.