ruby-on-rails - Capistrano/Passenger 错误@nginx 使用 nokogiri - 库版本不兼容
问题描述
我正在使用 capistrano 启动我的 rails 应用程序,但出现以下错误消息nginx.log
[ E 2019-09-13 17:16:40.3640 4469/To age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /home/deploy/eurotec-crm/current: The application encountered the following error: incompatible library version - /vendor/cache/ruby/2.5.0/gems/nokogiri-1.10.4/lib/nokogiri/nokogiri.so (LoadError)
Error ID: 4276d735
Error details saved to: /tmp/passenger-error-sxGWLJ.html
[ E 2019-09-13 17:16:40.3689 4469/Ta age/Cor/Con/CheckoutSession.cpp:276 ]: [Client 2-2] Cannot checkout session because a spawning error occurred. The identifier of the error is 4276d735. Please see earlier logs for details about the error.
因此,我尝试通过以下链接解决问题:
- 在 ubuntu 服务器上部署 capistrano 时有关 nokogiri 的错误
- Capistrano 部署中的 Nokogiri gem 安装失败
- 库版本不兼容:nokogiri.bundle 需要 11.0.0 或更高版本,但 libxml2.2.dylib
- LoadError:库版本不兼容 - /home/ubuntu/.rvm/gems/ruby-2.3.1@lm5/gems/nokogiri-1.8.2/lib/nokogiri/nokogiri.so
- nokogiri 上的“库版本不兼容”
- 我们很抱歉,但有些不对劲。- 使用 Rails、Apache、Passenger
- LoadError:库版本不兼容 - nokogiri
最后:capistrano deploy 无法安装 nokogiri。
我搜索了很多,按照我能找到的所有步骤进行操作 - 包括重新安装所有 gems,重新安装所有系统依赖项,无限次重启服务器,哭一下……
任何人都可以阐明一下吗?
解决方案
推荐阅读
- sockets - FD_SETSIZE 是 64,这是每个内存包还是线程?
- javascript - 动态改变追加 D3
- c - C 函数接受比需要更多的输入参数(Matlab MEX)
- odbc - ODBC 无法访问雪花中查询的输出
- node.js - 节点快递(打字稿)| 将日期类型序列化为 epeach ms 全局
- python - 重新加载模型并重新训练它,不能再做'model.fit'了
- graph - 如何提高计数查询的性能
- python - Discord.py 查找频道
- wordpress - 使 GraphQL 查询可以为空
- reactjs - Nextjs:ts(7031)类型错误:绑定元素“组件”隐式具有“任何”类型