首页 > 解决方案 > 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.

因此,我尝试通过以下链接解决问题:

最后:capistrano deploy 无法安装 nokogiri

我搜索了很多,按照我能找到的所有步骤进行操作 - 包括重新安装所有 gems,重新安装所有系统依赖项,无限次重启服务器,哭一下……

任何人都可以阐明一下吗?

标签: ruby-on-railsrubycapistranonokogiripassenger

解决方案


推荐阅读