16. Troubleshooting and Best Practices

This chapter covers problems that can occur when you configure or use Retrospective, and guidelines for using it effectively.

16.1. Out of Memory (Java Heap Space)

While working with Retrospective, an operation fails with an OutOfMemoryError (“Java heap space”).

The amount of search/monitoring data being held exceeds the maximum heap the Java virtual machine (JVM) is allowed to allocate. This usually happens when you work with many search/monitoring tabs at the same time, or when you collect very large result sets.

Retrospective always keeps collected result data in its local database. The Disk storage limit on the Result Options preferences page caps how much data each tab keeps there. The most effective remedies are:

  • Increase the maximum heap by raising the -Xmx value in the retrospective.vmoptions file, which is located in the Retrospective installation directory. Follow the Java documentation. On macOS, write the value, for example -Xmx4G, into a plain-text file named Retrospective.vmoptions beside Retrospective.app. It overrides the 2 GB set inside the app, which you must not edit.

  • Reduce the number of search/monitoring tabs open at the same time.

To see how close a session is getting to the limit before it fails, select Show memory use in the status bar (see Memory Use).

If none of these solves your problem, send the Retrospective log files to support@centeractive.com for further analysis. They are located in the folder <user home>/.Retrospective/<version>. On a Windows computer, for example, that is C:\Users\<username>\.Retrospective\<version>. When Retrospective was started with -Dretrospective.home=<folder>, they are in <folder>/<version>, and -Dlog.dir=<folder> puts them in that folder. Send Retrospective.log, the rolled files Retrospective.log.1 to Retrospective.log.10, and any hs_err_pid*.log crash report of the Java runtime.

16.2. Reporting Problems

When Retrospective encounters an unexpected error, it records the error and shows the i-notifications-error error badge in the status bar. Click the badge to open the Error report form. There you review the technical details, enter your email address and optionally add a short description of what you were doing. Then submit the report, which helps us reproduce and fix the problem. See Reporting a Program Error.

16.3. High Resource Consumption

Retrospective uses a lot of CPU and memory when you search log data locally on your computer or on mounted or mapped drives.

Retrospective processes local log files in Java, inside its own JVM instance. No SSH and no shell is involved, hence fast-performing *NIX tools such as sed and grep cannot be used. Retrospective reads each log file entirely from disk and analyzes it to find the log entries that match the search criteria.

  • First decrease the option Max. threads for local file searching/monitoring located on the System Resources preferences page.

  • Add more specific search criteria so that fewer log entries match. Processing fewer entries lowers both CPU and memory usage.

16.4. Recovering from a Corrupted Session

Retrospective was terminated unexpectedly. When you restart it, the program does not start up correctly, or it does not restore the previous session properly.

When Retrospective is terminated, it tries to write information about the current state (open tabs and their settings) to a file named _exitStateLastSession.xml. If an unexpected error occurs during program termination, this file may be corrupted. Retrospective then cannot restore the state of the last session properly. If the file exists but cannot be read, for example because another program locks it, the Status view shows a warning that names the file.

To start the program without any issue again, proceed as follows:

Both files named below live in the release-dependent configuration directory described under Changing Configuration Location. That is .Retrospective\<version> in your user home on Windows, and .Retrospective/<version> on macOS and Linux. If you moved that directory with -Dretrospective.home, look there instead.

  • Stop Retrospective and make sure no other Retrospective process runs in the background. On Windows, start the Task Manager and terminate any Retrospective process; on macOS and Linux, check with ps and end any process left over.

  • Delete the _exitStateLastSession.xml file from the desktops subfolder of that directory.

  • Try to launch the program.

16.5. Recovering from a Damaged Result Database

Retrospective was terminated unexpectedly, for example because the disk ran full and the process had to be killed. After the restart, the results of the last session are gone, and the Status view shows a warning that the result database could not be read.

Retrospective stores search results in a result database, in the db subfolder of the configuration directory. An unexpected termination can damage it. Retrospective checks the result database at startup. If it cannot be read, Retrospective moves its files to a new folder named db_broken-<date>-<time> next to the db subfolder and starts with a new, empty result database. The warning in the Status view names that folder.

If the files cannot be moved, for example because another program holds them open, Retrospective cannot store any results, and the warning in the Status view names the db subfolder instead. Reset the result database by hand as described below.

Only search results are lost. Your configuration, data sources, profiles and saved views are stored in other files and are kept. The tabs of the last session reopen without their results; run their searches again.

The moved folder still uses disk space. Delete it once you no longer need it, for example after the support team has looked at it.

If searches still fail afterwards, reset the result database by hand:

  • Stop Retrospective and make sure no other Retrospective process runs in the background.

  • Rename the db subfolder of the configuration directory, for example to db_old.

  • Launch Retrospective again. It creates a new, empty result database.

16.6. Common Problems

The table below lists problems that may occur when you use Retrospective, and how to solve them.

Case

Solution

Cannot access remote server

  • Make sure that you have correct host IP address, SSH port number and user login credentials.

  • Make sure that the remote host you are trying to connect to has the SSH service enabled.

  • Check that the connection is not blocked by the firewall.

“The SSH server accepted the login but opened no session”

The server let Retrospective log in but then refused to open a session, or did not answer in time. Check MaxSessions in the server’s sshd_config, where 0 refuses every session. Check also how busy the server is. A server that limits sessions across all connections is reported the same way instead of being waited for.

Host key rejected or changed

Retrospective refuses a host whose key it cannot verify. Open the Host Manager and press Test to answer the question for an unknown host. For a host that really was reinstalled, remove the old key where the refusal says it is kept. Use Remove stored key in the Host Manager, or edit the ~/.ssh file the dialog names. See Server Identity.

Data source does not exist

Make sure that the data source on the host has not been deleted or renamed, and that the profile still lists the right path.

Path does not exist or permission denied

Check the path and the read permission of the account the host definition logs in with.

No data sources have been selected

Add data sources to the profile (see Profile Manager).

Search does not return any results

Check and refine the search criteria.

Disk limit exceeded: … earliest entries were removed from this tab.

Raise the Disk storage limit on the Result Options preferences page, or add search criteria to collect fewer entries.

The profile ‘…’ does not exist anymore, the Search tab cannot be restored.

The profile was deleted or renamed after the view was saved. Open a new search tab on another profile, then save the view again.

Error occurred while saving view to file. …

Retrospective could not write the view file. Check the free disk space and the permissions of the configuration directory (see Changing Configuration Location), then try again.

Cannot save table data

Retrospective could not write the export file. Check the free disk space and the permissions of the target folder, then try again.

Master password forgotten

Stored credentials cannot be recovered — not by you, and not by us. Use Forgotten Password… on the Security preferences page to start over with a new key. Hosts, profiles and all other settings are kept; each password has to be entered again. See If You Forget the Master Password.

The key could not be unwrapped — wrong master password, …

You typed a wrong current master password into Change Master Password… or Turn Off Protection…. Try again. If the password is lost, use Forgotten Password… (see If You Forget the Master Password).

Credential could not be decrypted — wrong key, or the stored value was modified

This configuration was copied from another computer without its keystore, or the stored value was changed outside Retrospective. Re-enter the affected credentials, or re-export them from the original installation with an export password (see Sharing a Configuration).

Retrospective is locked — the master password is needed before stored credentials can be used

No master password prompt could be shown, or another one was still open. Retry the action and enter the master password when asked.

Cancelled — the master password is needed before this stored credential can be used

You cancelled the master password prompt. Retry the action and enter the master password.

“The stored credentials cannot be opened on this installation”

The key file that opens them is damaged, or it was written by a different installation. No stored password can be used until the store is started over. Open the Security preferences page and press Reset Stored Passwords…. Hosts, profiles and all other settings are kept, and each password has to be entered again.

Retrospective refuses the master password and names a start-up option

Retrospective was started with an option that lets another program observe it, so it declines to accept the master password at all. Remove that option from retrospective.vmoptions beside the launcher, and restart. On macOS, the file is Retrospective.vmoptions beside Retrospective.app. See Hardening the Installation.

“Installation can be modified” at start-up

The account running Retrospective can change its installation directory. Another program running as that account could therefore alter Retrospective and read the master password. Make the installation read-only for your account. See Hardening the Installation.

Export password rejected on import

The password must be the one set when that file was exported, not the master password of either installation. If it is lost, the file cannot be opened; export it again from the original installation.

16.7. Best Practices

The following best practices help you work with Retrospective effectively. Many of them are faster with the keyboard — see the keyboard shortcut reference.

16.7.1. Bookmarking

Retrospective can store the exact definition of search criteria as a bookmark. If you frequently search for given phrases, define a bookmark and then run those searches from the Bookmarks view.

16.7.2. Pinning Tabs

Retrospective allows pinning individual tabs. A pinned tab cannot be closed until you un-pin it. Moving the tab to a different position keeps it pinned. To pin a tab, right-click its label and select Pin Tab from the context menu.

16.7.3. Application State Saving

If you have to follow a given number of data sources on a daily basis, save the state of the application (the opened Search tabs). This saves time whenever Retrospective is started (see Save/Reload/Manage Application State).

16.7.4. Display Options

Retrospective lets you detach individual tabs into separate windows (see Detach Tabs), which makes effective use of high-resolution and multiple-screen setups. Detach several search-result tabs and place them side by side to monitor multiple results without switching between tabs.

16.7.5. Drag and Drop Data Sources

Retrospective supports drag and drop actions on data sources. You can drag and drop a log file from the local file system onto the Profiles tab. Where you drop the selected files and directories decides what happens.

  • When dropped onto the data sources panel, the selected files and directories are added to the selected profile.

  • When dropped onto a profile name, the selected files and directories are added to that profile.

  • When dropped on an empty space within the profiles list, a new profile is created and the selected files and directories are added to it.

A log file dropped onto the data sources panel of the Profiles tab

Fig. 16.1 Dropping a log file onto the data sources panel of the Profiles tab.

The numbered marker identifies the drop target.

  1. Drop the files on the sources table of a profile.

You can also drag and drop an existing data source definition from one profile to another. For more about profiles and data sources, see Profile Manager.