Bitbucket Server reports "No row with the given identifier exists" error
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
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
Problem
Various operations are failing, for example:
- logging it to Bitbucket Server
- deleting users
The following appears in the atlassian-bitbucket.log
No row with the given identifier exists
Cause
In the past, this has been caused by one of the following:
- Database corruption
- Add ons behaviour
Resolution
This is the list of steps to be performed to address this issue (in order of increasing impact for the end users)
- Disable the add ons by using the Safe Mode option unless a precise add on can be identified as the root cause of the issue
- Restart Bitbucket Server
- Restore from a previous backup