Previous Topic: Specify a User-Defined Script in PropertiesNext Topic: Configuring the RHA NAT Utility for Various Network Setups


Troubleshoot Script Use

I receive an error code (1) when my VBS script using cscript.exe is executed.

Error code (1) from a script means that there is an invalid parameter or that the script cannot be found. Check the arguments in the scenario and verify that the syntax is correct and that all characters, especially the quote symbols, are present. Sometimes, when copying and pasting into the arguments field within the scenario, the quotes can be taken as literal special characters and are not presented to cscript.exe correctly at execution.

I receive an error message, ER00160: Script<script name> did not finish execution in <number> "seconds" during switchover.

This problem can occur when a high availability script takes longer than the designated timeout period to complete. The default time is 300 seconds (5 mins). You can modify the ws_rep.cfg file within the Engine install directory to adjust this time. The attribute to modify is HAScriptExecutionTimeout=300. To change this value, remove the # in front of the attribute, modify the right-hand numeric value, and then restart the engine service.

I receive the error, ER00564: Script<script> doesn't exist. Or, ER00569: Script<script> not found, is displayed.

This means that the script that was supposed to execute is not in the location specified. Check that there are no spaces within the root directory. If there are spaces, the script directory needs to be placed inside quotes, like "c:\Program Files\ScriptExamples".

I receive the error, Check script on standby host failure, or Check script on Active host failure.

This means that the Is Alive script returned a fail code on the host specified and a switchover will either take place or needs to take place.

When starting the scenario, I receive an error, ERROR: Network traffic is directed to host<host>, but application is still running on <host>.

The Identify Network Traffic Redirection scripts could be returning incorrect values. Make sure that the script on the Active host is returning 0 and the standby host is returning non-zero.

When starting the scenario, I receive the error, ERROR: Unable to run scenario.

The Identify Network Traffic Redirection scripts could be returning identical values. Make sure that the script on the Active host is returning 0 and the standby host is returning non-zero.

When starting the scenario, I receive the warning, WARNING: Unable to connect to <Master or Replica> host<host> and error, ERROR: No network information for <Master or Replica> to check against.

The Identify Network Traffic Redirection script on the Master or Replica could not be found by the engine.