Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Heroku推送失败Ruby Rails应用程序加载共享库时出错,文件太短_Ruby On Rails_Heroku - Fatal编程技术网

Ruby on rails Heroku推送失败Ruby Rails应用程序加载共享库时出错,文件太短

Ruby on rails Heroku推送失败Ruby Rails应用程序加载共享库时出错,文件太短,ruby-on-rails,heroku,Ruby On Rails,Heroku,我试图将我的rails应用程序的新版本推送到我的Heroku帐户,该帐户位于Heroku-16堆栈上,但突然它开始失败,出现以下错误: [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. Wri

我试图将我的rails应用程序的新版本推送到我的Heroku帐户,该帐户位于Heroku-16堆栈上,但突然它开始失败,出现以下错误:

[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说它支持其中一个版本,似乎解决了这个问题。

我找到了解决方案。我将gemfile中的ruby版本升级到2.3.7,Heroku说它支持其中一个版本,这似乎解决了这个问题