Commit or Snapshot with Bitbucket Fails with Error 'Push wasn't done due to an error'

When working with a Bitbucket repository, you might receive the error below when committing or doing a full snapshot.

"Unexpected Error while taking a Snapshot. Id: XXXXXXXXXXXXXXX. Message: Push wasn't done due to an error. Tip: check git permissions and authentication key access"

This error is returned when the Git Repository record in Copado has been created with an SSH authentication type, and the SSH key in Bitbucket has been created with read-only access to the repository. This will allow the validation of the Git Repository record but will not allow you to make changes in the repository.

If the SSH key has been added to the repository settings, this means that you have read-only access.

User-added image

In order to get read/write access you need to add the SSH to your user.

User-added image


How did we do?