Bug 1654134 - 389 web UI gives error when try to do backup management .
Summary: 389 web UI gives error when try to do backup management .
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Directory Server
Classification: Red Hat
Component: cockpit-389-ds
Version: 11.0
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: DS11.0
: dirsrv-11.0
Assignee: mreynolds
QA Contact: RHDS QE
URL:
Whiteboard: sync-to-jira
: 1654510 1654519 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-28 06:36 UTC by Anuj Borah
Modified: 2019-11-06 12:42 UTC (History)
13 users (show)

Fixed In Version: 389-ds-base-1.4.0.20-1.module+el8+2553+e9a4c637
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-06 12:42:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
SS of the error (149.47 KB, image/png)
2018-11-28 06:36 UTC, Anuj Borah
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2019:3731 0 None None None 2019-11-06 12:42:24 UTC

Description Anuj Borah 2018-11-28 06:36:33 UTC
Created attachment 1509363 [details]
SS of the error

Description of problem:

389 web UI gives error when try to do backup management .


Version-Release number of selected component (if applicable):

389-ds-base-1.4.0.19-2.module+el8+1+36e60e1d.x86_64


How reproducible:

Always

Steps to Reproduce:
1. Open https://servername:9090/389-console in browser
2. Go to Left Tab 389 Directory Server
3. Go to upper right Tab:  Actions> Manage Backups 
4. Gives error: Failed to get list of backups

Actual results:

Failed to get list of backups

usage: dsctl [-h] [-v] [-j] [-l] [--remove-all [REMOVE_ALL]]
             [instance]
             {restart,start,stop,status,remove,db2index,db2bak,db2ldif,bak2db,ldif2db,backups}
             ...
dsctl: error: invalid choice: 'slapd-anuj' (choose from 'restart', 'start', 'stop', 'status', 'remove', 'db2index', 'db2bak', 'db2ldif', 'bak2db', 'ldif2db', 'backups')

Expected results:

It should work properly.


Additional info:

Comment 1 Anuj Borah 2018-11-28 06:58:19 UTC
Description of problem:

After creating backup , when we do backup management No backups available for restore.

How reproducible:

Always

Steps to Reproduce:
1. Open https://servername:9090/389-console in browser
2. Go to Left Tab 389 Directory Server
3. Go to Perform Backup , create backup. 
3. Go to upper right Tab:  Actions> Manage Backups 
4. Gives error: No backups available for restore

Actual results:

No backups available for restore

Expected results:

Backups should be there , as i have created one backup and it is present there in /var/lib/dirsrv/slapd-anuj/bak

Comment 2 Arpit Tolani 2018-11-28 10:43:24 UTC
In backend it should run below command.

# dsctl rhds backups 
Backup: /var/lib/dirsrv/slapd-rhds/bak/backup - 2018-11-28 05:35:36 (11M)
Backup: /var/lib/dirsrv/slapd-rhds/bak/newbackup - 2018-11-28 05:37:18 (11M)

i.e. 

# dsctl <instancename> backups

Comment 3 Anuj Borah 2018-11-29 13:37:41 UTC
*** Bug 1654510 has been marked as a duplicate of this bug. ***

Comment 4 mreynolds 2018-12-14 17:33:44 UTC
*** Bug 1654519 has been marked as a duplicate of this bug. ***

Comment 6 Akshay Adhikari 2019-01-24 10:11:06 UTC
Build Tested: cockpit-389-ds-1.4.0.20-5.module+el8+2685+6de0feb1.noarch
              389-ds-base-1.4.0.20-5.module+el8+2685+6de0feb1.x86_64

Steps:

1) Create a DS instance.

2) Once the instance is created click on the action button.

3) Click Perform Backup, give an appropriate name for the backup folder.

4) Click on Manage Backup, it should list the backup files with options to delete/restore and to search.

Comment 9 errata-xmlrpc 2019-11-06 12:42:00 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/RHEA-2019:3731


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