"Error occurred while connecting to the OpsCenter Server. Please ensure that the server is running." After upgrading to 7.0.1

Article:TECH140359  |  Created: 2010-09-20  |  Updated: 2014-05-01  |  Article URL http://www.symantec.com/docs/TECH140359
Article Type
Technical Solution


Issue



 Issue:

Error occurred while connecting to the OpsCenter Server. Please ensure that the server is running.

Cause: not waiting to login the OpsCenter Console until the after the dbbupgrade process has completed.

        Monitor progress     # ps –ef | grep –I dbupgrade  

 

During an OpsCenter 7.0 to 7.01 upgrade, the script exits with “Database successfully installed 


But the user is unable to log into the OpsCenter Admin Console https://<opscenterserver_hostname>/opscenter

Seeing  empty domains and warning about server process not running.

 

Symptoms:

- Unable to log into the OpsCenter Console

  Error occurred while connecting to the OpsCenter Server.   Please ensure that the server is running.

-Drop  down for Domain: OpsCenterUsers(vx) unavailable/empty

                 

Troubleshooting:

Verify that services are running:

  # /opt/SYMCOpsCenterServer/bin/opsadmin.sh monitor

AT service is up

PBX service is up

Symantec OpsCenter Database Server Service is up

Symantec OpsCenter Server Service is up

Symantec OpsCenter WebServer Service is up

 

 

Check install log:

  # tail  /opt/SYMCOpsCenterServer/db/log/dbManager_yyyy_mm_dd_xxxxxx_.log

 

ERROR: Failed to Install database. Exit  code is: 1

 

 

This error indicates the dbupgrade process was interrupted prior to completion and a manual upgrade must be performed.

 


Solution



  

Resolution:

1-      Locate the 7.0 db (these will not be directly in ../data but in the 7.0 dir)

   /var/symantec/OpsCenterServer/data/7.0/vxpmdb.db

   /var/symantec/OpsCenterServer/data/7.0/vxpmdb.log

 

        Stop services:

   . /opsadmin stop

 

 

        Verify processes are stopped:

  # . /opsadmin monitor

 

 

 

2-      Move a copy of the above 7.0 db to a location not in the OpsCenter directories

   cp /var/symantec/OpsCenterServer/data/7.0/vx*   /var/tmp/7.0_ops_data

 

 

3-      Copy any configurations that need to be retained:

   cp /opt/SYMCOpsCenterServer/db/conf/server.conf   /var/tmp/7.0_ops_data/server.conf

   cp -r /opt/SYMCOpsCenterServer/config/*    /var/tmp/ 7.0_ops_data/config

   cp -r /var/VRTSat conf    /var/tmp/7.0_ops_data/VRTSatconf

 

4-      Manually upgrade the database by running:

   /bin/sh    /opt/SYMCOpsCenterServer/bin/dbupgrade.sh install 7.0  7.01

 

 

5-      Make a copy of the now upgraded 7.01 DB.

  #  /opt/SYMCOpsCenterServer/dbbackup.sh    /var/tmp/DBBACKUP-post7.01upgrade/

 

6-      Restart the services

  # /opt/SYMCOpsCenterServer/bin/ opsadmin.sh start

     Starting Symantec Opscenter Services

     Starting Symantec OpsCenter Database Server Service

     SQL Anywhere Start Server In Background Utilitiy Version 11.0.1.222

     Symantec OpsCenter Database Server started

     Starting Symantec OpsCenter Server Service

     Starting Symantec OpsCenter Server…

     Symantec OpsCenter Server started, pid = xxxxx

     Starting Symantec OpsCenter WebServer service

 

 

Attempt a login to https://opscenter-server-name/opscenter  

Should the symptoms persist for more than 5 minutes after restart of services, continue with steps 7-15.

 

7-      Uninstall the 7.01 patch

  # /opt/VRTS/install/Ops701/uninstallOpsCenterServerPatch 

Remove this directory if it remains:

  #  rm –rf /var/symantec/OpsCenterServerPatch/save

 

8-      Uninstall the 7.0 Software

  # /opt/VRTS/install/uninstallOpsCenterServer

 

9-      Locate the 7.0 OpsCenter install software and the 7.01 Patch Software

Reinstall 7.0 from media

Patch to 7.01 from download

 

10-   Retain a copy of the clean_db

  #  /opt/SYMCOpsCenterServer/dbbackup.sh    /var/tmp/DBBACKUP-empty_db_7.01upgrade/

 

11-   Stop services: 

  # . /opsadmin stop

 

12-   Verify processes are stopped.

  # . /opsadmin monitor

 

13-   Move manually upgraded db back into the ../data dir:

  # cp  /var/tmp/DBBACKUP-post7.01upgrade/*   /var/symantec/OpsCenterServer/data/

 

Replace the previously retained configuration files:

   cp /opt/SYMCOpsCenterServer/db/conf/server.conf   /var/tmp/7.0_ops_data/server.conf

   cp -r /opt/SYMCOpsCenterServer/config/*    /var/tmp/ 7.0_ops_data/config

   cp -r /var/VRTSat conf    /var/tmp/7.0_ops_data/VRTSatconf

 

14-   Restart the services

  # /opt/SYMCOpsCenterServer/bin/ opsadmin.sh start

     Starting Symantec Opscenter Services

     Starting Symantec OpsCenter Database Server Service

     SQL Anywhere Start Server In Background Utilitiy Version 11.0.1.222

     Symantec OpsCenter Database Server started

     Starting Symantec OpsCenter Server Service

     Starting Symantec OpsCenter Server…

     Symantec OpsCenter Server started, pid = xxxxx

     Starting Symantec OpsCenter WebServer service

 

 

15-   Wait 5 minutes(it typically takes a bit for the services to become active and allow login…..)

  Log into the https://opscenter-server-name/opscenter

    -Accept any certificates or renew, add as trusted site if necessary

 



Supplemental Materials

SourceETrack
Value2100916

Legacy ID



TECH138355


Article URL http://www.symantec.com/docs/TECH140359


Terms of use for this information are found in Legal Notices