gpt4 book ai didi

ruby-on-rails - 为什么有时会得到 `lock' : deadlock detected (fatal) error?

转载 作者:太空狗 更新时间:2023-10-29 13:45:51 29 4
gpt4 key购买 nike

这几天发生了一些奇怪的事情。

有时在推送到 heroku 时出现以下错误:

<internal:prelude>:8:in `lock': deadlock detected (fatal)  

from <internal:prelude>:8:in `synchronize'
from /app/tmp/buildpacks/ruby/vendor/lpxc.rb:57:in `puts'
from /app/tmp/buildpacks/ruby/lib/language_pack/instrument.rb:10:in `bench_msg'
from /app/tmp/buildpacks/ruby/lib/language_pack/instrument.rb:23:in `instrument'
from /app/tmp/buildpacks/ruby/lib/language_pack/base.rb:43:in `instrument'
from /app/tmp/buildpacks/ruby/lib/language_pack/base.rb:39:in `instrument'
from /app/tmp/buildpacks/ruby/lib/language_pack/ruby.rb:261:in `install_ruby'
from /app/tmp/buildpacks/ruby/lib/language_pack/ruby.rb:87:in `block in compile'
from /app/tmp/buildpacks/ruby/lib/language_pack/instrument.rb:19:in `block (2 levels) in instrument'
from /app/tmp/buildpacks/ruby/lib/language_pack/instrument.rb:41:in `yield_with_block_depth'
from /app/tmp/buildpacks/ruby/lib/language_pack/instrument.rb:18:in `block in instrument'
from /usr/local/lib/ruby/1.9.1/benchmark.rb:310:in `realtime'
from /app/tmp/buildpacks/ruby/lib/language_pack/instrument.rb:17:in `instrument'
from /app/tmp/buildpacks/ruby/lib/language_pack/base.rb:43:in `instrument'
from /app/tmp/buildpacks/ruby/lib/language_pack/base.rb:39:in `instrument'
from /app/tmp/buildpacks/ruby/lib/language_pack/ruby.rb:84:in `compile'
from /app/tmp/buildpacks/ruby/lib/language_pack/rails2.rb:48:in `block in compile'
from /app/tmp/buildpacks/ruby/lib/language_pack/instrument.rb:19:in `block (2 levels) in instrument'
from /app/tmp/buildpacks/ruby/lib/language_pack/instrument.rb:41:in `yield_with_block_depth'
from /app/tmp/buildpacks/ruby/lib/language_pack/instrument.rb:18:in `block in instrument'
from /usr/local/lib/ruby/1.9.1/benchmark.rb:310:in `realtime'
from /app/tmp/buildpacks/ruby/lib/language_pack/instrument.rb:17:in `instrument'
from /app/tmp/buildpacks/ruby/lib/language_pack/base.rb:43:in `instrument'
from /app/tmp/buildpacks/ruby/lib/language_pack/base.rb:39:in `instrument'
from /app/tmp/buildpacks/ruby/lib/language_pack/rails2.rb:46:in `compile'
from /app/tmp/buildpacks/ruby/lib/language_pack/rails3.rb:37:in `block in compile'
from /app/tmp/buildpacks/ruby/lib/language_pack/instrument.rb:19:in `block (2 levels) in instrument'
from /app/tmp/buildpacks/ruby/lib/language_pack/instrument.rb:41:in `yield_with_block_depth'
from /app/tmp/buildpacks/ruby/lib/language_pack/instrument.rb:18:in `block in instrument'
from /usr/local/lib/ruby/1.9.1/benchmark.rb:310:in `realtime'
from /app/tmp/buildpacks/ruby/lib/language_pack/instrument.rb:17:in `instrument'
from /app/tmp/buildpacks/ruby/lib/language_pack/base.rb:43:in `instrument'
from /app/tmp/buildpacks/ruby/lib/language_pack/base.rb:39:in `instrument'
from /app/tmp/buildpacks/ruby/lib/language_pack/rails3.rb:36:in `compile'
from /app/tmp/buildpacks/ruby/bin/compile:12:in `block (2 levels) in <main>'
from /app/tmp/buildpacks/ruby/lib/language_pack/base.rb:113:in `log'
from /app/tmp/buildpacks/ruby/bin/compile:11:in `block in <main>'
from /app/tmp/buildpacks/ruby/lib/language_pack/instrument.rb:36:in `call'
from /app/tmp/buildpacks/ruby/lib/language_pack/instrument.rb:36:in `block in trace'
from /app/tmp/buildpacks/ruby/lib/language_pack/instrument.rb:19:in `block (2 levels) in instrument'
from /app/tmp/buildpacks/ruby/lib/language_pack/instrument.rb:41:in `yield_with_block_depth'
from /app/tmp/buildpacks/ruby/lib/language_pack/instrument.rb:18:in `block in instrument'
from /usr/local/lib/ruby/1.9.1/benchmark.rb:310:in `realtime'
from /app/tmp/buildpacks/ruby/lib/language_pack/instrument.rb:17:in `instrument'
from /app/tmp/buildpacks/ruby/lib/language_pack/instrument.rb:36:in `trace'
from /app/tmp/buildpacks/ruby/bin/compile:9:in `<main>'



! Push rejected, failed to compile Ruby/Rails app

但如果我在此之后再次按下几次,一切正常。发生什么事了?
有时我什至明白了

fatal:looseobjecta35c1489005cca1ffeb3c2d3e4d63988408b6a24(storedin.git/objects/a3/5c1489005cca1ffeb3c2d3e4d63988408b6a24) is corrupted

为什么会这样?

最佳答案

这件事发生在我身上,我尝试了第二次并且成功了。它看起来像是某种 Heroku 故障。

关于ruby-on-rails - 为什么有时会得到 `lock' : deadlock detected (fatal) error?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18600890/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com