search cancel

SslConfig fails to stop services when reverting to http

book

Article ID: 239393

calendar_today

Updated On:

Products

DX NetOps CA Performance Management - Usage and Administration

Issue/Introduction

Trying to use Sslconfig to revert https back to http, but the script throws an error:

Select your option: 3

Revert to Default Settings

Are you sure you want to revert Performance Center to use default values. This will stop the Single Sign On and Console processes [y/n]?: y

Configuring Performance Center to use default values

Waiting for caperfcenter_sso to stop... Process has failed to stop

Waiting for caperfcenter_console to stop... Process has failed to stop

Options

        1 : SSL Health Check

        2 : Configure SSL

        3 : Revert to Default Settings

Cause

There was a service command on the system under /usr/local/sbin that was interfering with the process.

You can confirm by running the command:

which service

 

Normally the path returned /usr/sbin/service.

In your case this returned /usr/local/bin/service which looked to be an older version of the service command.

Environment

Release : 20.2

Component : NetOps Portal web server

Resolution

The following had to be used to work around the issue:

PATH="/usr/sbin:$PATH" ./SslConfig

 

This put /usr/sbin ahead of /usr/local when running the SslConfig command.

Additional Information

Environmental issue caused by bad path statement.

Excerpt from ssslconfig.log

INFO  | 2020-05-19 11:38:17,535 | com.ca.im.portal.sslConfig.impl.utils.OutputUtils |   Password for the Trust Store: [Password obscured]

INFO  | 2020-05-19 11:38:17,535 | com.ca.im.portal.sslConfig.impl.utils.OutputUtils | Do you want to change any information before proceeding [y/n/b]?:

INFO  | 2020-05-19 11:38:35,149 | com.ca.im.portal.sslConfig.impl.components.Prompt | User entered: 'n'

INFO  | 2020-05-19 11:38:35,149 | com.ca.im.portal.sslConfig.impl.utils.OutputUtils |

INFO  | 2020-05-19 11:38:35,151 | com.ca.im.portal.sslConfig.impl.utils.OutputUtils | Waiting for caperfcenter_sso to stop...

INFO  | 2020-05-19 11:38:35,180 | com.ca.im.portal.sslConfig.impl.utils.OutputUtils | Process has failed to stop

INFO  | 2020-05-19 11:38:35,180 | com.ca.im.portal.sslConfig.impl.utils.OutputUtils | Waiting for caperfcenter_console to stop...

INFO  | 2020-05-19 11:38:35,190 | com.ca.im.portal.sslConfig.impl.utils.OutputUtils | Process has failed to stop

INFO  | 2020-05-19 11:38:35,191 | com.ca.im.portal.sslConfig.impl.utils.OutputUtils | Hit any key to continue:

INFO  | 2020-05-19 11:38:57,389 | com.ca.im.portal.sslConfig.impl.components.Prompt | User entered: ''

INFO  | 2020-05-19 11:38:57,389 | com.ca.im.portal.sslConfig.impl.utils.OutputUtils |