Messaging Installer Completed With Errors

Problem: When upgrading to a newer software level, you are informed of errors.

Explanation: This error happens when the messaging server database upgrade does not complete. Several scenarios may cause this to happen, including general upgrade failure, database configuration problems, inaccessible database, or database errors.

Solution: Check the trace file to get more information, and use it to further diagnose the problem. The trace file is located in SMP_HOME\Servers\MessagingServer\Bin\scripts. The trace file is prefixed with the DBUpgraderTrace_ followed by a timestamp (YYYYMMDDHH24MMSS) indicating when it was written; for example: DBUpgraderTrace_20121106144758.txt. A new trace file is written every time DBUpgrader is run, so look for the most recently written trace file for information about the latest run of DBUpgraderTrace.

Example error log:
“***Error!!! Error!!!***
The Messaging installer completed with the following errors. These errors will have to 
be addressed before the services become functional.
Please refer to documentation for recovery process.
Database upgrade failed."

Scenario 1 – Database Upgrade Failure

Explanation: If you find the Database upgrade failed message in DBUpgraderTrace.log, this may indicate that the messaging server database had some lingering connections to a table while the upgrade was running.

Solution:
  1. Stop all SAP Mobile Server services in all the application nodes.
  2. Restart the database services in the data tier node. This is to make sure the messaging database has no open connections.
  3. From the primary server node, open a Windows command window and navigate to SMP_HOME\Servers\MessagingServer\Bin.
  4. Run the command dbupgrader –v current and make sure no error messages are displayed.

Scenario 2 – Database Configuration

Explanation: If you find this syntax error in DBUpgraderTrace.log, you need to configure the cache database (CDB) with the database option quoted_identifier='ON' for all database users:
20120918T234644.977|ERROR: Syntax error near 'ENCRYPTED' on line 19
20120918T234644.980|-- Caught unexpected exception: Error creating database schema
20120918T234644.981|Got global error [Error creating database schema]
Solution:
  1. Configure the cache database (CDB) with the database option quoted_identifier='ON' for all database users.
    1. Use the dbisql tool.
    2. Run this SQL statement:
      set option quoted_identifier = 'ON'
  2. Stop all SAP Mobile Server services in all the application nodes.
  3. Restart the database services in the data tier node. This is to make sure the messaging database has no open connections.
  4. From the primary server node, open a Windows command window and navigate to SMP_HOME\Servers\MessagingServer\Bin.
  5. Run the command dbupgrader –v current and make sure no error messages are displayed.

Scenario 3 – Database Not Accessible

Explanation: If you find several Database not ready messages followed by a final Database is not accessible message in the DBUpgraderTrace.log, this typically means that the cache database server was not running during the upgrade, or the system has been configured so that the database server is not visible at the configured location.

Solution:
  1. Ensure that the cache database service is running.
  2. Ensure that the cache database service is network-accessible from the machine running the DBUpgrader.
  3. Stop all SAP Mobile Server services in all the application nodes.
  4. Restart the database services in the data tier node. This is to make sure the messaging database has no open connections.
  5. From the primary server node, open a Windows command window and navigate to SMP_HOME\Servers\MessagingServer\Bin.
  6. Run the command dbupgrader –v current and make sure no error messages are displayed.

Scenario 4 – Database Errors

Explanation: Other messages in DBUpgraderTrace.log represent database errors issued while executing particular upgrade commands. The errors generally contain error messages supplied by the database server, next to the command that triggered the error.

Solution:
  1. Look up the error codes in the SQL Anywhere error message documentation, for example: http://infocenter.sybase.com/help/topic/com.sybase.help.sqlanywhere.12.0.1/saerrors/sa-errors-by-sqlcode.html
  2. Use the error code to resolve the database problem.
  3. Stop all SAP Mobile Server services in all the application nodes.
  4. Restart the database services in the data tier node. This is to make sure the messaging database has no open connections.
  5. From the primary server node, open a Windows command window and navigate to SMP_HOME\Servers\MessagingServer\Bin.
  6. Run the command dbupgrader –v current and make sure no error messages are displayed.
Related concepts
Troubleshooting Host Name Problems
Listeners or Services Could Not be Started Errors
Related tasks
Handling Intrusion Detection/Prevention Software
Cannot Access Device Tab and Web Service Error
Cannot Access sampledb
Problems after Installing Agentry Editor Plug-In
Related reference
SAP Mobile Server Service Fails to Restart After Credential Change
System Environment Path is Too Long
Performance Issues if SAP Mobile Server Not Installed on a 64-bit Machine
SAP Mobile Server or RSOE Startup Problems
.NET Environment Problems Affect SAP Mobile Server
Data Change Notification Fails after Upgrade
VMWare Fusion Crashes when Opening PDF File
Installer Hangs Starting Services after Upgrade