git - 是什么导致 git push 突然失败 "User was holding a relation lock for too long"?

标签 git bitbucket

<分区>

几个小时后,我回到打开的一些代码,对代码进行了一些更改,然后推送了它。突然之间,我收到了这个错误:

sura@raitorial:~/workspace/conse (master) $ git push 
Counting objects: 15, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 492 bytes | 0 bytes/s, done.
Total 6 (delta 5), reused 0 (delta 0)
remote: canceling statement due to conflict with recovery
remote: LINE 1: ...er"."date_joined" FROM "bb_repository" INNER JOIN "auth_user...
remote:                                                              ^
remote: DETAIL:  User was holding a relation lock for too long.
remote: 
To git@bitbucket.org:sureumar__/conse.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@bitbucket.org:sureumar__/conse.git'
sura@raitorial:~/workspace/conse (master) $ 

如何诊断此错误的原因?

最佳答案

如消息所示,这是 Bitbucket 端的问题。您可以访问 http://status.bitbucket.org/ 查看他们的服务状态。 ,它将通知您(例如):

Verifying - We are gradually restoring inbox content to mitigate any further replication issues. Any messages you'd expect to be there should re-appear slowly as we incrementally complete scheduled maintenance.
Jun 16, 03:22 UTC

Update - Maintenance on the primary database caused excessive lag on replicas used for authenticating Git and Mercurial operations over HTTPS. We've failed over to a spare replica and restored service. Please contact our support team if you're still experiencing problems with your pushes or pulls.
Jun 16, 02:48 UTC

In progress - We're seeing unanticipated complications on gitweb and hgweb traffic, which we are currently working to resolve. Please watch this page for updates.
Jun 16, 02:03 UTC

如果此处未列出当前问题,contact support .

关于git - 是什么导致 git push 突然失败 "User was holding a relation lock for too long"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37848650/

相关文章:

git - 在 git 中记录前 10 个

git - 在 git shell 中运行批处理文件

git - 为什么 git branch -t 失败并显示 "Not tracking: ambiguous information"?

git - Visual Studio Code 如何解决与 git 的 merge 冲突?

git - bitbucket git clone 结果为 'fatal: unable to access ... could not load PEM client certificate, OpenSSL error error:02001003...'

build - Appharbor + Bitbucket 没有触发任何想法吗?

git - 是否可以从 Jenkins 文件中的 Vault 获取凭据?

git - 推送到 bitbucket 后的 Atlassian "logo"

git - 在 bitbucket ssh 连接期间,linux 终端上的 "Bad configuration option"。

git - 为什么 bitbucket 不自动更新我的 pull 请求?