【问题标题】:Ruby on rails, passenger getting handshake errorRuby on rails,乘客握手错误
【发布时间】:2013-05-06 12:30:12
【问题描述】:

尝试我的应用程序时为什么会出现以下错误的任何线索 apache/passenger/mysql,而 webtrick 也能正常运行?

[ 2013-05-12 01:39:31.3313 26429/7f0535e4b700 Pool2/Implementation.cpp:762 ]: Could not spawn process for group /home/ruby/work/depot#default: An error occurred while starting up the preloader: it did not write a handshake message in time.
 in 'void Passenger::ApplicationPool2::SmartSpawner::throwPreloaderSpawnException(const std::string&, Passenger::SpawnException::ErrorKind, Passenger::ApplicationPool2::Spawner::BackgroundIOCapturerPtr&, const Passenger::ApplicationPool2::Spawner::DebugDirPtr&)' (SmartSpawner.h:149)
 in 'std::string Passenger::ApplicationPool2::SmartSpawner::negotiatePreloaderStartup(Passenger::ApplicationPool2::SmartSpawner::StartupDetails&)' (SmartSpawner.h:539)
 in 'void Passenger::ApplicationPool2::SmartSpawner::startPreloader()' (SmartSpawner.h:205)
 in 'virtual Passenger::ApplicationPool2::ProcessPtr Passenger::ApplicationPool2::SmartSpawner::spawn(const Passenger::ApplicationPool2::Options&)' (SmartSpawner.h:743)
 in 'void Passenger::ApplicationPool2::Group::spawnThreadRealMain(const Passenger::ApplicationPool2::SpawnerPtr&, const Passenger::ApplicationPool2::Options&, unsigned int)' (Implementation.cpp:695)

[ 2013-05-12 01:39:31.3315 26429/7f053688d700 agents/HelperAgent/RequestHandler.h:1884 ]: [Client 20] Cannot checkout session. An error occurred while starting up the preloader: it did not write a handshake message in time.

【问题讨论】:

    标签: mysql ruby-on-rails runtime-error passenger handshake


    【解决方案1】:

    在我的情况下,帮助删除对 /etc/profile 的访问 - 检查您是否在那里或 bashrc/bash_profile 等中没有一些阻塞调用。乘客正在生成 bash 进程以启动应用程序并且它正在读取 profile/rc .我知道这是迟到的答案,但也许它会对某人有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-09-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-03
      相关资源
      最近更新 更多