Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2010992

Summary: When ports that are in use are used to update a DS instance the error message is not helpful -use error that is in the logs
Product: Red Hat Directory Server Reporter: Gilbert Kimetto <gkimetto>
Component: cockpit-389-dsAssignee: LDAP Maintainers <idm-ds-dev-bugs>
Status: CLOSED MIGRATED QA Contact: LDAP QA Team <idm-ds-qe-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 12.0CC: idm-ds-dev-bugs, mreynolds, tbordaz, vashirov
Target Milestone: DS12.5Keywords: Triaged
Target Release: dirsrv-12.5   
Hardware: Unspecified   
OS: Linux   
Whiteboard: sync-to-jira
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-06-26 13:47:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gilbert Kimetto 2021-10-05 18:00:38 UTC
Description of problem:

When ports that are in use are used to update a DS instance the error message is not helpful -use error that is in the logs
Version-Release number of selected component (if applicable):


How reproducible:

Always

Steps to Reproduce:
1. Create 2 DS Instances on the Webconsole
2. Update the second instance to use the ports that are currently in use by the
   1st instance
3. Follow the prompt to restart the instance for the changes to take effect. 

Actual results:

The error is displayed which is not helpful:

Danger alert:
Error during instance restart operation - Command '['systemctl', 'start', 'dirsrv@dscre']' returned non-zero exit status 1.


Expected results:
The error that is logged should be displayed in the Web Console as its more helpful to the user

ERR - createprlistensockets - PR_Bind() on All Interfaces port 389 failed: Netscape Portable Runtime error -5982 (Local Network address is in use.)


Additional info:

the instance is irrecoverable the message 
This server instance is not running, either start it from the Actions dropdown menu, or choose a different instance

Is displayed unable to go back and update or change anything

Comment 1 Viktor Ashirov 2023-07-28 08:47:17 UTC
I think we should a check if the new port is already taken before we even attempt to change it.

Comment 3 Viktor Ashirov 2024-06-26 13:47:12 UTC
This BZ has been automatically migrated to Red Hat Issue Tracker https://issues.redhat.com/browse/DIRSRV-29. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated. Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.