ruby-on-rails – 乘客mod_passenger中的意外错误:无法连接到Unix套接字

ruby-on-rails – 乘客mod_passenger中的意外错误:无法连接到Unix套接字,第1张

概述我刚把我的rails应用程序移到了一台新机器上.我正在使用apache 2.2.3和乘客3.0.11.在初始加载数据库之后,我间歇性地看到一个错误,指出rails app无法启动.这是我在apache错误日志中看到的内容: [Sun Mar 18 04:02:13 2012] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal 我刚把我的rails应用程序移到了一台新机器上.我正在使用apache 2.2.3和乘客3.0.11.在初始加载数据库之后,我间歇性地看到一个错误,指出rails app无法启动.这是我在apache错误日志中看到的内容:

[Sun Mar 18 04:02:13 2012] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations[ pID=10788 thr=47366521234240 file=ext/apache2/Hooks.cpp:860 time=2012-03-18 08:51:10.215 ]: Unexpected error in mod_passenger: Cannot connect to Unix socket '/tmp/passenger.1.0.13044/generation-0/socket': No such file or directory (2)Backtrace: in 'Passenger::ApplicationPool::ClIEnt* Passenger::ApplicationPool::ClIEnt::connect(const std::string&,const std::string&,const Passenger::StaticString&)' (ClIEnt.h:438) in 'Passenger::ApplicationPool::ClIEnt* Hooks::getApplicationPool()' (Hooks.cpp:266) in 'Passenger::SessionPtr Hooks::getSession(const Passenger::PoolOptions&)' (Hooks.cpp:292) in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:561)

我做了一些谷歌搜索,但我似乎只能找到乘客说升级乘客到版本3,但我已经在版本3.我也看到有人说改变logrotate脚本重新启动apache而不是重新加载,这对我没什么用.有人有什么想法吗?这是我乘客的阿帕奇.我正在使用rvm版本的ruby企业和乘客安装为gem:

LoadModule passenger_module /usr/local/rvm/gems/ree-1.8.7-2012.02/gems/passenger-3.0.11/ext/apache2/mod_passenger.soPassengerRoot /usr/local/rvm/gems/ree-1.8.7-2012.02/gems/passenger-3.0.11PassengerRuby /usr/local/rvm/wrappers/ree-1.8.7-2012.02/ruby

我还尝试将rails spawn方法添加为保守并添加最大池大小,结果相同.不知道在哪里转.

解决方法 你有SElinux吗?运行cat / selinux / enforce来查找.如果它打印1,请尝试使用echo 0>禁用SElinux. / selinux /强制查看是否能解决问题.如果这样可以解决问题,您可以选择尝试解决问题(例如,通过设置PassengerTempDir设置.在 Passenger user guide中搜索SElinux)或永久关闭它. 总结

以上是内存溢出为你收集整理的ruby-on-rails – 乘客mod_passenger中的意外错误:无法连接到Unix套接字全部内容,希望文章能够帮你解决ruby-on-rails – 乘客mod_passenger中的意外错误:无法连接到Unix套接字所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/1289596.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-09
下一篇 2022-06-09

发表评论

登录后才能评论

评论列表(0条)

保存