Won't Launch; How to Repair - How to Restore Using a Backup - ROES Server
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.
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.
Use the database URL value to connect. It should look similar to one of these:
Use DELETE queries to remove rows from the affected tables:
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:
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
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:
- 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.
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.
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.
ROES-U Reference Links
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.