簡體   English   中英

Heroku Push在加載共享庫時失敗Ruby Rails App錯誤,文件太短

[英]Heroku Push failing Ruby Rails App error while loading shared libraries, file too short

我試圖將新版本的Rails應用程序推送到位於Heroku-16堆棧上的Heroku帳戶,但突然它開始失敗,並出現以下錯誤:

[master 195f4f9] ...
 1 file changed, 6 insertions(+), 1 deletion(-)
Counting objects: 15, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (15/15), done.
Writing objects: 100% (15/15), 1.66 KiB | 1.66 MiB/s, done.
Total 15 (delta 11), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Ruby app detected
remote: /app/tmp/buildpacks/f6d48d8a14fccbb19c0c0402fca224929d18e9ee042b3e204bc5992612e990d3b3a0fb1f9627b1a3bae11e9fa20dffc96e136bd734a2f3cf92a0d05bedd42cfe/vendor/ruby/heroku-16/bin/ruby: error while loading shared libraries: /app/tmp/buildpacks/f6d48d8a14fccbb19c0c0402fca224929d18e9ee042b3e204bc5992612e990d3b3a0fb1f9627b1a3bae11e9fa20dffc96e136bd734a2f3cf92a0d05bedd42cfe/vendor/ruby/heroku-16/bin/../lib/libruby.so.2.2: file too short
remote:  !     Push rejected, failed to compile Ruby app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !   Push rejected to myherokuapp.
remote: 
To https://git.heroku.com/myherokuapp.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/myherokuapp.git'

我嘗試進行捆綁更新,但沒有解決任何問題。 我還嘗試撤消了對代碼的最新更改,但並沒有解決問題。 最后,我還檢查了Heroku的狀態,沒有報告任何相關事件。 知道為什么會這樣嗎?

我找到了解決方案。 我將我的gemfile中的ruby版本升級到2.3.7,這是Heroku表示支持的指定版本之一,似乎可以解決該問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM