Won't Launch; How to Repair - How to Restore Using a Backup - ROES Server

ROES Support Knowledgebase

Restore or Repair a ROES Server That Will Not Relaunch

Use this article when ROES Server will not relaunch and the cause may be database rows, a bad working-file order, or a corrupted server configuration file.

Product: ROES Server Category: Restore / Repair Audience: Lab / Support Article ID: 41
Common symptom
ROES Server will not relaunch, or it fails while attempting to load database records, working files, printers, queues, workflows, or preferences.

Important Backup Note

Before deleting database rows, moving files, or replacing configuration folders, make a backup of the ROES Server preferences folder and Working Files folder. Use recent backups to restore known-good files whenever possible (Server Backup Article).

Overview

ROES Server restore/repair troubleshooting usually falls into one of two areas:

  • Database issue: clear the Coordinator, EnsembleListeners, and Queues tables, then attempt a relaunch (Clearing database tables).
  • File issue: look for a corrupted or zero KB file in the Working Files folder, .ROESServer folder, Printers folder, Queues folder, or Workflows folder.

If the Database Is the Issue

Clear the Coordinator, EnsembleListeners, and Queues tables in the database, then attempt to relaunch ROES Server.  (Clearing database tables)

If ROES Server can launch, use the tools under the Data tab. If ROES Server cannot launch, use a database manager to clear those tables.

ROES Server includes a database manager that can be launched by going to the .ROESServer folder, or a similarly named preferences folder such as .ROESSAS, and double-clicking hsqldb.jar.

Note: If hsqldb.jar is not present, the server is using a single-connection File Mode database and this database manager cannot be used.

Use the database URL value to connect. It should look similar to one of these:

jdbc:hsqldb:hsql://10.0.4.94/ProductionInfo jdbc:hsqldb:hsql://localhost/ProductionInfo

Use DELETE queries to remove rows from the affected tables:

DELETE FROM Coordinator; DELETE FROM EnsembleListeners; DELETE FROM Queues;

After clearing those tables, try to relaunch ROES Server. If ROES Server still cannot relaunch, a corrupted file is likely the issue.

If Files Are the Issue

A common clue is a file in the Printers, Queues, or Workflows folders that is zero KB or is full of null values when opened in a text editor.

The bad file may be in the .ROESServer folder, one of its subfolders, or the Working Files folder.

Common locations and files involved in this process:

.ROESServer .ROESSAS Working Files SARPreferences.xml Printers Queues Workflows hsqldb.jar

You can use files from a recent backup to substitute or restore suspected bad files. You can also test-launch ROES Server by moving all files from the .ROESServer folder to a subfolder and then relaunching.

File Repair Steps

1

Rename the Working Files folder

As an easy first test, rename the Working Files directory by adding a single character to the folder name. ROES Server will not find the folder and will not try to digest any order files inside it.

  • Try to relaunch ROES Server.
  • If ROES Server launches, the issue is likely a file in the Working Files directory.
  • The problem is usually the last order processed, or the last order ROES Server attempted to process.
  • Open the Working Files directory and sort by Date Modified.
  • Look for the following items:
.ro files matching folders named the same as the .ro file newest folders by Date Modified
  • A .ro file and matching folder usually means an order did not complete processing.
  • If there are no .ro files, move the two newest folders out of Working Files and try to relaunch.
  • If ROES Server still will not launch, continue to the next step.
2

Remove or replace SARPreferences.xml

The next step is to test whether a file in the .ROESServer folder is bad.

  • Remove SARPreferences.xml from the .ROESServer folder.
  • Try to relaunch ROES Server.
  • If ROES Server launches far enough to ask for a login, use admin and labkey. This indicates the removed preferences file was the bad file.
  • Replace SARPreferences.xml with the copy from a recent backup and relaunch.
  • If there is no backup of the .ROESServer folder, all settings must be re-entered. Use the ROES-U Quick Start Setup reference listed below.
  • Any configuration changes made since the backup will need to be manually updated. This includes most tabs, except the Printing tab.
  • If this does not resolve the launch issue, continue to the next step.
3

Remove or replace Printers, Queues, or Workflows folders

Test whether one of the XML files in the Printers, Queues, or Workflows folder is bad.

  • Remove the Printers folder from the .ROESServer folder.
  • Try to relaunch ROES Server.
  • If ROES Server launches, the issue is isolated to one of the XML files in the Printers folder.
  • To identify the bad XML file, remove all XML files from that folder and put them back one by one, attempting a relaunch after each file is restored.
  • If printer settings have not changed since the last backup, replace the full Printers folder with the copy from backup.
  • If there is no backup, recreate the printer or agent and re-enter its settings. Use the ROES-U Printers List reference below for examples.
  • Repeat the same process with the Queues and Workflows folders.

No Backup Available

If there is no backup of the .ROESServer folder, affected settings must be recreated manually. Use ROES-U setup references as a guide, and manually update any configuration that changed since the last known-good setup.

Expected Result

After the database rows are cleared, the bad order file is removed, or the corrupted preferences/printer/queue/workflow file is restored from backup, ROES Server should relaunch successfully.

Escalation Notes

  • Identify whether the launch failure is database-related or file-related before replacing configuration.
  • Back up the current folders before moving or deleting any files.
  • For database issues, clear Coordinator, EnsembleListeners, and Queues first, then relaunch.
  • For file issues, test Working Files first, then SARPreferences.xml, then Printers, Queues, and Workflows.
  • Use a recent backup whenever possible to restore known-good configuration files.
Suggested keywords: ROES Server restore, ROES Server repair, database issue, Coordinator, EnsembleListeners, Queues, hsqldb.jar, SARPreferences.xml, Working Files, Printers folder, Queues folder, Workflows folder, zero KB, null values

Article Details

Article ID:
41
Category:
Views:
708