Versions
Upgrade tasks
Diagnostics for third-party apps
On this page
Related content
- Unable to merge a pull request when using the Required Builds merge check in Bitbucket Data Center
- Missing commits in Bitbucket after a filesystem migration
- Changed file list missing from commit details after upgrade to version 3
- Repository has invalid reflog entry
- Missing Pull Requests in Bitbucket Server
- Bitbucket Server REST API for merging Pull Request fails
- How to diagnose/debug issues with Pull Request rescoping in Bitbucket Data Center
- After the git version upgrade, Bitbucket Server shows the "CRLF will be replaced by LF" error during the commit in Bitbucket UI.
- Recent commits are not visible in pull-requests for all repositories in Bitbucket 8.x
- Pull request tree and user mentions not working after upgrade
UPGRADETASK-2001 Invalid content in pull request commit backfill upgrade marker file WARNING
Problem
With the introduction of pull request links on commit pages in 5.11, Bitbucket Server must run an upgrade task to index existing pull request commit relationships. The upgrade task processes a single repository at a time, and persists progress by writing an upgrade marker file with the ID of the latest repository processed. Once all repositories have been processed, the upgrade task writes -1
to the file.
The UPGRADETASK-2001 issue indicates that the contents of this marker file are not valid. This means progress of the upgrade task cannot be confirmed, and as a result, some pull request commit relationships may not have been indexed. The contents of the file are invalid if the file is empty or the file contents cannot be converted to an integer. A missing upgrade marker file will not trigger this issue.
Alert Details
When UPGRADETASK-2001 is raised, the following data is collected to help diagnose the problem:
content
: the content of the marker file, truncated to 10 characters.
Cause
The upgrade marker file at <PATH_TO_SHARED_HOME>/config/upgrade/core-backfill-pull-request-commits
is corrupted. The contents of the file are considered invalid if the file is empty or the file contents cannot be converted to an integer.
Mitigation
If this issue is encountered, the marker file can be deleted in order to run the upgrade task again next time Bitbucket Server is started.
Alternatively, the contents of the file can be set to -1
in order to mark the upgrade task as completed.
However, this may result in some or all pull request links missing from commits. If the issue occurs repeatedly after manual intervention, contact support at https://support.atlassian.com.
Related content
- Unable to merge a pull request when using the Required Builds merge check in Bitbucket Data Center
- Missing commits in Bitbucket after a filesystem migration
- Changed file list missing from commit details after upgrade to version 3
- Repository has invalid reflog entry
- Missing Pull Requests in Bitbucket Server
- Bitbucket Server REST API for merging Pull Request fails
- How to diagnose/debug issues with Pull Request rescoping in Bitbucket Data Center
- After the git version upgrade, Bitbucket Server shows the "CRLF will be replaced by LF" error during the commit in Bitbucket UI.
- Recent commits are not visible in pull-requests for all repositories in Bitbucket 8.x
- Pull request tree and user mentions not working after upgrade