abort: abandoned transaction found - run hg recover!

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

The following entry appears in the FISHEYE_INST/var/log/atlassian-fisheye-<DATE>.log:

1 2 3 4 5 6 7 8 9 10 2022-04-05 09:57:48,736 ERROR [InitialPinger3 ] fisheye.app OneOffPingRequest-doRequest - Exception during slurp com.cenqua.fisheye.config.ConfigException: Unable to pull from remote repository: K:\Master - [abort: abandoned transaction found - run hg recover!] - pulling from K:\Master searching for changes ... Caused by: com.atlassian.utils.process.ProcessException: While executing: "c:\Program Files\TortoiseHg\hg.exe --config ui.verbose=false pull K:\Master " ... Caused by: com.atlassian.utils.process.ProcessException: Non-zero exit code: -1 ...

Cause

This is a problem on the Mercurial server side as the Mercurial server throws this error when a previous action (either by Fisheye or another Hg client) was interrupted, e.g. because the network connection dropped.

Resolution

Run the the following command on the Mercurial server:

1 hg recover -R <REPOSITORY_PATH>

Where the -R command-line option is used to specify the repository to perform the recover on.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.