Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1098653

Summary: db2bak.pl error with changelogdb
Product: Red Hat Enterprise Linux 6 Reporter: Noriko Hosoi <nhosoi>
Component: 389-ds-baseAssignee: Noriko Hosoi <nhosoi>
Status: CLOSED ERRATA QA Contact: Sankar Ramalingam <sramling>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: amsharma, jgalipea, nhosoi, nkinder, orion, rmeggins
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-base-1.2.11.15-34.el6 Doc Type: Bug Fix
Doc Text:
Cause: When a replication is configured, a replication change log db is also a target of the backup (db2bak and db2bak.pl). Backing up a change log db failed since there was no backend instance associated with a replication change log db. Consequence: Backing up on a server failed if the server hasd a replication change log db. Fix: If a backing up db is a change log db, it skips checking the backend instance is associated with the db or not. Result: Backing up works on a server which has a replication change log db.
Story Points: ---
Clone Of:
: 1098654 (view as bug list) Environment:
Last Closed: 2014-10-14 07:55:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1098654    

Description Noriko Hosoi 2014-05-16 20:16:06 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/389/ticket/47804

We are backing up our database daily with db2bak.pl, and have started to notice the following messages:

[13/May/2014:03:59:08 -0600] - Backend instance "changelogdb" does not exist; Instance path /var/lib/dirsrv/slapd-cora/changelogdb could be invalid.
[13/May/2014:03:59:08 -0600] - Backup: error in copying directory (/var/lib/dirsrv/slapd-cora/changelogdb -> /var/lib/dirsrv/slapd-cora/bak/cora-2014_05_13_03_59_08/.repl_changelog_backup): err=-1

# ls -l /var/lib/dirsrv/slapd-cora/changelogdb
total 2796
-rw-------. 1 dirsrv dirsrv 2859008 May 14 13:22 dab99282-1dd111b2-84f8fd5b-e7890000_4e7cb85b000000010000.db4
-rw-rw-r--. 1 dirsrv dirsrv       0 May 12 14:30 dab99282-1dd111b2-84f8fd5b-e7890000.sema
-rw-------. 1 dirsrv dirsrv      30 Dec  9  2012 DBVERSION

389-ds-base-1.2.11.29-1.el6.x86_64

Noriko reproduced with master as well.

Comment 1 Noriko Hosoi 2014-05-16 20:30:38 UTC
Verify steps:
https://bugzilla.redhat.com/show_bug.cgi?id=1098654#c1

Comment 3 Noriko Hosoi 2014-06-27 00:59:59 UTC
VERIFICATION STEPS:

Set up MMR
Run some update operations to make sure changelog db is generated.
Run db2bak.pk
Check the error log.
If error messages like these are not logged in the error log, the fix is verified:
[..] - Backend instance "changelogdb" does not exist; Instance path /var/lib/dirsrv/slapd-ID/changelogdb could be invalid.
[..] - Backup: error in copying directory (/var/lib/dirsrv/slapd-ID/changelogdb -> /var/lib/dirsrv/slapd-cora/bak/ID-2014_05_13_03_59_08/.repl_changelog_backup): err=-1

Comment 4 Amita Sharma 2014-07-17 08:17:28 UTC
Hi Noriko,

[root@dhcp201-155 slapd-M1]# rpm -qa | grep 389-ds-base
389-ds-base-1.2.11.15-38.el6.x86_64
389-ds-base-debuginfo-1.2.11.15-36.el6.x86_64
389-ds-base-libs-1.2.11.15-38.el6.x86_64

Got below messages related to changelogdb after following comment#3::
======================================================================
[17/Jul/2014:03:48:57 -0400] - Backing up file 28 (/var/lib/dirsrv/slapd-M1/bak/M1-2014_7_17_3_48_57/repman/aci.db4)
[17/Jul/2014:03:48:57 -0400] - Backing up file 29 (/var/lib/dirsrv/slapd-M1/bak/M1-2014_7_17_3_48_57/.repl_changelog_backup/changelog/DBVERSION)
[17/Jul/2014:03:48:57 -0400] - Backing up file 30 (/var/lib/dirsrv/slapd-M1/bak/M1-2014_7_17_3_48_57/.repl_changelog_backup/changelog/0bef4885-0d8511e4-803bc49d-1e0064ac_53c77d00000000010000.db4)
[17/Jul/2014:03:48:57 -0400] - Backing up file 31 (/var/lib/dirsrv/slapd-M1/bak/M1-2014_7_17_3_48_57/log.0000000001)
[17/Jul/2014:03:48:57 -0400] - Backing up file 32 (/var/lib/dirsrv/slapd-M1/bak/M1-2014_7_17_3_48_57/DBVERSION)
[17/Jul/2014:03:48:57 -0400] - Backup finished.

Is it expected?

Comment 5 Noriko Hosoi 2014-07-17 16:18:40 UTC
Yes, your output is what we expect.
> [17/Jul/2014:03:48:57 -0400] - Backing up file 30 (/var/lib/dirsrv/slapd-M1/bak/M1-2014_7_17_3_48_57/.repl_changelog_backup/changelog/0bef4885-0d8511e4-803bc49d-1e0064ac_53c77d00000000010000.db4)

Thanks, Ami!

Comment 6 Amita Sharma 2014-07-18 05:26:48 UTC
Thanks Noriko, Marking the bug as VERIFIED.

Comment 7 errata-xmlrpc 2014-10-14 07:55:07 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.

http://rhn.redhat.com/errata/RHBA-2014-1385.html