Uninstalling Alert Central manually in case of corrupt installation
search cancel

Uninstalling Alert Central manually in case of corrupt installation

book

Article ID: 263031

calendar_today

Updated On:

Products

Alert Central

Issue/Introduction

In case of corrupt installation, which can happen for example, if the system runs out of allocated space middle of the installation. It may not be possible to remove Alert Central using the uninstaller due to the uninstaller not being generated by the installation process, or the uninstaller may not be able to run properly. In such a case it may be necessary to remove AC components manually.

Resolution

To manually remove AC and its components do the following:

1. Clear installation registry - delete .com.zerog.registry.xml file.

    rm /var/.com.zerog.registry.xml

2. Remove AC installation folder.

    rm -rf /opt/brcm/AlertCentral/

3. Uninstall the database.

    rpm --erase $(rpm --query -all 'postgresql*')

4. Remove database folder
    a: on s390x distributions:

        rm -rf /var/lib/pgsql/

    b: on x64 distributions:

    rm -rf /var/lib/pgsql/13/

After the above Installer could be used again in case a reinstall of AC is desired. In case there is a need to remove all the components also execute the following steps:

5. Remove services

    rm /etc/systemd/system/alert-central-api.service
    rm /etc/systemd/system/alert-central-ui.service
systemctl daemon-reload

6. Remove firewall rules. 

    firewall-cmd --permanent --remove-service=postgresql
    firewall-cmd --permanent --remove-service=alert-central-api
    firewall-cmd --permanent --remove-service=alert-central-ui
    rm /etc/firewalld/services/alert-central-api.xml
    rm /etc/firewalld/services/alert-central-ui.xml
    firewall-cmd --reload

7. Clear remaining folders.

    rm -rf /etc/opt/brcm/AlertCentral/
    rm -rf /var/opt/brcm/AlertCentral/
    rm -rf /var/tmp/alertCentralInstallation/ 
    rm -rf /var/tmp/alertCentralUninstallation/ 

8. Remove acsvc (default) user.

    userdel <acsvc user>
    groupdel <acsvc group>

All alert central components are now removed.

Additional Information

In the event where the /var/lib/pqsql directories are missing, one customer reported success with using the below command specifying a hostname, before doing the reinstall: 

 psql -h hostname -U acsvc -d acdb