Heroku LoadError:libruby.so.2.2

2023-12-11

当我尝试将更改推送到 Heroku 上的 staging dyno 时,我在构建时收到了以下消息:

$ git push staging
.
.
.
remote: -----> Installing dependencies using 1.9.7
remote:        Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote:        Ignoring bcrypt-3.1.10 because its extensions are not built.  Try: gem pristine bcrypt --version 3.1.10
remote:        Ignoring json-1.8.3 because its extensions are not built.  Try: gem pristine json --version 1.8.3
remote:        Ignoring nokogiri-1.6.6.2 because its extensions are not built.  Try: gem pristine nokogiri --version 1.6.6.2
remote:        Ignoring pg-0.18.2 because its extensions are not built.  Try: gem pristine pg --version 0.18.2
remote:        Ignoring puma-2.11.3 because its extensions are not built.  Try: gem pristine puma --version 2.11.3
.
.
.
remote:        Could not detect rake tasks
remote:        ensure you can run `$ bundle exec rake -P` against your app with no environment variables present
remote:        and using the production group of your Gemfile.
remote:        Ignoring bcrypt-3.1.10 because its extensions are not built.  Try: gem pristine bcrypt --version 3.1.10
remote:        rake aborted!
remote:        LoadError: libruby.so.2.2: cannot open shared object file: No such file or directory - /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/vendor/bundle/ruby/2.2.0/gems/pg-0.18.2/lib/pg_ext.so
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/vendor/bundle/ruby/2.2.0/gems/pg-0.18.2/lib/pg.rb:4:in `require'
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/vendor/bundle/ruby/2.2.0/gems/pg-0.18.2/lib/pg.rb:4:in `<top (required)>'
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `require'
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `each'
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `block in require'
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `each'
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `require'
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler.rb:134:in `require'
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/config/application.rb:7:in `<top (required)>'
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/Rakefile:4:in `require'
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/Rakefile:4:in `<top (required)>'
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/vendor/ruby-2.2.2/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load'
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/vendor/ruby-2.2.2/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load_rakefile'
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/vendor/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:689:in `raw_load_rakefile'
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/vendor/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:94:in `block in load_rakefile'
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/vendor/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/vendor/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:93:in `load_rakefile'
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/vendor/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:77:in `block in run'
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/vendor/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/vendor/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:75:in `run'
remote:        /tmp/build_b71ac242c3d15f1101c544fbb9a9b123/vendor/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
remote:        vendor/bundle/bin/rake:16:in `load'
remote:        vendor/bundle/bin/rake:16:in `<main>'

当我在浏览器中访问该应用程序时,它说Application Error。我检查了日志,发现如下:

2015-07-24T16:34:36.532160+00:00 heroku[slug-compiler]: Slug compilation started
2015-07-24T16:34:36.532180+00:00 heroku[slug-compiler]: Slug compilation finished
2015-07-24T16:34:36.481987+00:00 heroku[api]: Deploy f611e08 by [email protected]
2015-07-24T16:34:36.481987+00:00 heroku[api]: Release v8 created by [email protected]
2015-07-24T16:34:36.732152+00:00 heroku[web.1]: State changed from up to starting
2015-07-24T16:34:39.699147+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb`
2015-07-24T16:34:40.106519+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2015-07-24T16:34:40.968709+00:00 app[web.1]: [3] - Gracefully shutting down workers...
2015-07-24T16:34:41.527857+00:00 app[web.1]: Ignoring bcrypt-3.1.10 because its extensions are not built.  Try: gem pristine bcrypt --version 3.1.10
2015-07-24T16:34:41.640162+00:00 app[web.1]: [3] === puma shutdown: 2015-07-24 16:34:41 +0000 ===
2015-07-24T16:34:41.640171+00:00 app[web.1]: [3] - Goodbye!
2015-07-24T16:34:42.025147+00:00 app[web.1]: [3] Puma starting in cluster mode...
2015-07-24T16:34:42.025157+00:00 app[web.1]: [3] * Version 2.12.2 (ruby 2.2.2-p95), codename: Plutonian Photo Shoot
2015-07-24T16:34:42.025185+00:00 app[web.1]: [3] * Environment: production
2015-07-24T16:34:42.025159+00:00 app[web.1]: [3] * Min threads: 5, max threads: 5
2015-07-24T16:34:42.025191+00:00 app[web.1]: [3] * Preloading application
2015-07-24T16:34:42.025187+00:00 app[web.1]: [3] * Process workers: 2
2015-07-24T16:34:42.583286+00:00 app[web.1]: [3] ! Unable to load application: LoadError: libruby.so.2.2: cannot open shared object file: No such file or directory - /app/vendor/bundle/ruby/2.2.0/gems/pg-0.18.2/lib/pg_ext.so
2015-07-24T16:34:42.583297+00:00 app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/pg-0.18.2/lib/pg.rb:4:in `require': libruby.so.2.2: cannot open shared object file: No such file or directory - /app/vendor/bundle/ruby/2.2.0/gems/pg-0.18.2/lib/pg_ext.so (LoadError)
2015-07-24T16:34:42.583302+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/pg-0.18.2/lib/pg.rb:4:in `<top (required)>'
2015-07-24T16:34:42.583306+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `require'
2015-07-24T16:34:42.583308+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
2015-07-24T16:34:42.583311+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `each'
2015-07-24T16:34:42.583315+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `block in require'
2015-07-24T16:34:42.583316+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `each'
2015-07-24T16:34:42.583320+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `require'
2015-07-24T16:34:42.583324+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler.rb:134:in `require'
2015-07-24T16:34:42.583328+00:00 app[web.1]:    from /app/config/application.rb:7:in `<top (required)>'
2015-07-24T16:34:42.583330+00:00 app[web.1]:    from /app/config/environment.rb:2:in `require'
2015-07-24T16:34:42.583334+00:00 app[web.1]:    from /app/config/environment.rb:2:in `<top (required)>'
2015-07-24T16:34:42.583339+00:00 app[web.1]:    from config.ru:3:in `require'
2015-07-24T16:34:42.583343+00:00 app[web.1]:    from config.ru:3:in `block in <module:PumaRackCompat>'
2015-07-24T16:34:42.583344+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/puma-2.12.2/lib/puma/rack/builder.rb:189:in `instance_eval'
2015-07-24T16:34:42.583347+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/puma-2.12.2/lib/puma/rack/builder.rb:189:in `initialize'
2015-07-24T16:34:42.583349+00:00 app[web.1]:    from config.ru:in `new'
2015-07-24T16:34:42.583352+00:00 app[web.1]:    from config.ru:in `<module:PumaRackCompat>'
2015-07-24T16:34:42.583356+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/puma-2.12.2/lib/puma/rack/builder.rb:183:in `eval'
2015-07-24T16:34:42.583359+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/puma-2.12.2/lib/puma/rack/builder.rb:183:in `new_from_string'
2015-07-24T16:34:42.583361+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/puma-2.12.2/lib/puma/rack/builder.rb:174:in `parse_file'
2015-07-24T16:34:42.583364+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/puma-2.12.2/lib/puma/configuration.rb:104:in `load_rackup'
2015-07-24T16:34:42.583369+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/puma-2.12.2/lib/puma/runner.rb:113:in `load_and_bind'
2015-07-24T16:34:42.583368+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/puma-2.12.2/lib/puma/configuration.rb:71:in `app'
2015-07-24T16:34:42.583372+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/puma-2.12.2/lib/puma/cluster.rb:304:in `run'
2015-07-24T16:34:42.583376+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/puma-2.12.2/lib/puma/cli.rb:215:in `run'
2015-07-24T16:34:42.583379+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/puma-2.12.2/bin/puma:10:in `<top (required)>'
2015-07-24T16:34:42.583383+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/bin/puma:23:in `load'
2015-07-24T16:34:42.583384+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/bin/puma:23:in `<main>'

两周前,当我创建这个暂存测功机时,没有任何问题。今天我刚刚添加了一个 html erb 文件,推送更改,它给了我上面的错误。

有什么帮助吗?


发现问题...heroku dyno 中的缓存需要清除。 Heroku 制作了一个插件可以做到这一点。安装它:

$ heroku plugins:install heroku-repo

And run:

$ heroku repo:purge_cache -a appname

然后提交一些东西或者运行heroku repo:reset并再次部署。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Heroku LoadError:libruby.so.2.2 的相关文章

  • 如何在 Rails 中获取“应用程序跟踪”而不是完整的详细回溯?

    在开发环境的Rails默认错误页面中 您可以查看三个回溯 1 Application Trace 2 Framework Trace和3 Full Trace 但是如何在 Rails 控制器中获取 应用程序跟踪 完整跟踪 exception
  • 文件位置 Rails 7 中的 Javascript 与样式表

    在使用导入映射功能的新默认 Rails 7 应用程序中 Javascript 存储在app javascript 而 CSS 位于app assets stylesheets 它们不仅位于不同的层次结构级别 而且javascript是奇异的
  • 如何使用 form_for 将参数传递给控制器​​ ruby​​ on Rails

    我有一个用户模型和一个课程模型 用户登录后可以自己上传课程 但是 我希望管理员能够为用户上传 以防用户不够精明 我的想法是对用户上传和管理员上传使用相同的创建操作 并使用 if 语句 管理员将在用户 id视图页面中为他上传之前选择用户 然后
  • Heroku 上的 dyno 是否同时重启?

    我在 Heroku 网站上看到 dynos 大约每 24 小时重新启动一次 例如 如果您有两个网络测功机 它们是否有可能同时重新启动 谢谢你的时间 根据赫罗库 骑行每 24 小时进行一次 加上最多 216 个随机 分钟 以防止应用程序的每个
  • 搜索逻辑和虚拟属性

    假设我有以下模型 Person
  • 如何将枚举作为字符串存储到rails中的数据库中

    如何在 ruby 中创建迁移 其中默认值是字符串而不是整数 我想将枚举存储到数据库中 但我不想将其存储为整数 因为这样对于另一个应用程序来说没有意义想要使用同一张桌子 我该怎么做default female 代替default 0 clas
  • 如何构建任务“gems:install”

    我正在将 Rails 应用程序部署到 Linux 服务器 并且缺少一些 rake 任务 包括 rake gems install 和 rake db 我正在运行来自 GEM 的 Rails 2 3 4 为什么是这样 我该如何解决 我可以以某
  • 对构建过程依赖于与另一个容器通信的应用程序进行 Docker 化

    我有一个 Ruby on Rails 应用程序 我正在尝试对其进行容器化 以便可以使用 Docker 进行部署 version 3 4 services db image postgres web container name my rai
  • Rails3 has_many 关系中子项计数的范围

    尝试在rails3中做一个范围 book has many chapters 我想要 range long 返回超过 10 章的书籍 如何最好地构建这个范围 不使用计数器缓存 thanks 这应该会让你继续 class Book scope
  • jRails 是 Rails + jQuery 必须的吗?

    我是rails新手 使用rails 2 3 10 并且想使用jquery 特别是jquery ui 该项目是一个全新的项目 我计划使用 jquery ui 中的一些小部件 如 datapicker 和 selectable 等 我听说可以安
  • 从表单中选择枚举以设置角色

    Ruby on Rails 4 1 我正在将 Devise 与枚举角色一起使用 目前 它在创建用户时使用默认角色 我想在创建用户的表单中添加一个字段来设置枚举角色 I read this https github com RailsApps
  • rspec 测试 has_many :through 和 after_save

    我有一个 我认为 相对简单的has many through与连接表的关系 class User lt ActiveRecord Base has many user following thing relationships has ma
  • 解析迁移到 mLabs 和 Heroku 的错误

    我至少一年前将解析数据库迁移到 Mlabs 从那时起我就一直在开发该应用程序 解析仪表板表示我已成功迁移 Mlab 和 Parse 都收到了数据库的更新 然而 在过去一两周内 该应用程序不再经过登录页面 没有调整代码 这是服务器问题 以下是
  • 限制 Imagemagick 使用的空间和内存

    我在 Rails 应用程序上使用 Imagemagick 使用 rmagick 但我的服务器 Ubuntu 不是很大 当我启动转换进程时 Imagemagick 占据了我的服务器 30GB HDD 的所有位置 内存 我想限制内存和 tmp
  • 在 Rails 中将多个输入字段作为列表发布,而不是使用单独的名称。

    我想向控制器提交一个列表 其中包含form for 该列表应填充text fields 此实施将提交 some list列表中只有一个 text field 的值 如预期 我想要 X 数量text fields 作为列表提交 因为文本字段的
  • 从 Ruby on Rails 3.2.6 中的 Paperclip 生成的文件中删除问号

    我正在使用 Paperclip FFMPEG 将视频文件上传到我的开发环境 并最终在我的项目投入生产时上传到本地服务器 视频上传时 默认文件名如下 system modelnames paperclipnames mynewfile mp4
  • 新 Rails 应用程序出现问题

    我刚刚创建了一个新的rails应用程序 在CL上 使用rails new 我使用的是4 2 6 但似乎在我对应用程序执行任何操作之前我遇到了错误 first config environments development rb 53 in
  • Rails 4 中如何使用 attr_accessible?

    attr accessible似乎不再在我的模型中工作 Rails 4 中允许批量分配的方法是什么 Rails 4 现在使用参数强 http edgeapi rubyonrails org classes ActionController
  • 如何监听第三方应用程序触发的数据库更改

    我需要将 Ruby on Rails 应用程序与第 3 方应用程序集成 该应用程序将共享一个公共 PostgreSQL 数据库 也就是说 Rails 应用程序和第 3 方应用程序将使用相同的 PG 数据库 是否可以在 Rails 应用程序中
  • watir selenium:浏览器构造函数无法识别的参数

    在我的 Rails 应用程序中 我有一个 nokogiri watir 爬虫 运行良好 在我升级了 gems 也升级了例如 selenium 后 当我使用以下命令打开爬虫浏览器时 BROWSER OPTIONS w headless no

随机推荐