If you encountered this error while pushing your recent change to your git repo, worry not. You’re not alone. Just recently, like a few minutes ago, I’m having trouble pushing my latest commit to my Bitbucket repo. Good thing I found out that it’s just a bitbucket issue, not really an issue with my repo or with my server or with my localhost.
Below is the exact error I’m getting while trying to push my latest commits:
remote: canceling statement due to conflict with recovery
remote: LINE 1: …er”.”date_joined” FROM “bb_repository” INNER JOIN “auth_user…
remote: DETAIL: User was holding a relation lock for too long.
! [remote rejected] master -> master (pre-receive hook declined)
I actually tried pushing it again and again, switch branches, cloned a new repo, but no can do. Nothing I tried worked, it’s because Bitbucket is having issues, not me. Haha!
Let’s just wait for Bitbucket to fix the issue and not panic.