两天前,我的应用程序崩溃,没有任何警告。没有人碰到这个盒子,它只是摔倒了。 Apache的error_log列出了以下所有内容。我试图在httpd.conf,my-app.conf,passenger.conf中更改我能设置的所有设置,但仍然没有。我删除并重新安装了两次红宝石。一旦系统范围ree和rvm一次(现在是rvm)。我重新安装了我能想到的所有东西,我对此错误感到满意。我完全搞不清楚。我用Google搜索谷歌和谷歌搜索,我什么都没有。我希望那里有人有答案或至少有新的方向。
Env => RVM,REE187,Rails2.3.5,passenger3.0.2 Linux [名称] 2.6.18-128.1.10.el5#1 SMP Wed Apr 29 13:53:08 EDT 2009 x86_64 x86_64 x86_64 GNU / Linux
我接下来的步骤是降低乘客的评级,看看是否能解决这个问题。
[Sun Jan 30 19:08:54 2011] [notice] Apache/2.2.3 (Red Hat) configured -- resuming normal operations
[ pid=9547 thr=1092303168 file=ext/common/MessageServer.h:481 time=2011-01-30 19:08:57.775 ]: MessageServer client thread 9 interrupted.
[ pid=9547 thr=1092372800 file=ext/common/ApplicationPool/Pool.h:939 time=2011-01-30 19:08:57.775 ]: Spawning a process for /var/www/my-app/sandbox/current because there are none for this app group
[ pid=9547 thr=1092372800 file=ext/common/ApplicationPool/../SpawnManager.h:291 time=2011-01-30 19:08:57.775 ]: Spawning a new application process for /var/www/my-app/sandbox/current...
[ pid=9547 thr=1092372800 file=ext/common/ApplicationPool/Server.h:295 time=2011-01-30 19:08:57.775 ]: Client 11: SpawnException occured (no error page)
[ pid=9547 thr=1092372800 file=ext/common/MessageServer.h:486 time=2011-01-30 19:08:57.775 ]: An error occurred in a MessageServer client thread 11:
message: ['get', 'app_root', '/var/www/my-app/sandbox/current', 'app_group_name', '/var/www/my-app/sandbox/current', 'app_type', 'rails', 'environment', 'sandbox', 'spawn_method', 'smart', 'user', '', 'group', '', 'default_user', 'deployer', 'default_group', 'deployer', 'framework_spawner_timeout', '-1', 'app_spawner_timeout', '-1', 'base_uri', '/', 'max_requests', '0', 'min_processes', '1', 'use_global_queue', 'true', 'show_version_in_header', 'true', 'stat_throttle_rate', '0', 'restart_dir', '', 'rights', '4', 'debugger', 'false', 'analytics', 'false', 'initiate_session', 'true', 'print_exceptions', 'true', 'has_environment_variables', 'false', 'environment_variables', '']
exception: write() failed: Broken pipe (32)
backtrace:
in 'void Passenger::ApplicationPool::Server::processGet(Passenger::MessageServer::CommonClientContext&, Passenger::ApplicationPool::Server::SpecificContext*, const std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)' (Server.h:285)
in 'void Passenger::MessageServer::clientHandlingMainLoop(Passenger::FileDescriptor&)' (MessageServer.h:470)
[...]
[ pid=9547 thr=1098529088 file=ext/common/ApplicationPool/Server.h:295 time=2011-01-30 19:08:57.777 ]: Client 14: SpawnException occured (no error page)
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::lock_error> >'
what(): boost::lock_error
[ pid=9547, timestamp=1296432537 ] Process aborted! signo=6, reason=SI_TKILL, signal sent by PID 9547 with UID 0, backtrace available.
--------------------------------------
[ pid=9547 ] Backtrace with 34 frames:
PassengerHelperAgent[0x4f3abd]
/lib64/libpthread.so.0[0x3d4260e4c0]
/lib64/libc.so.6(gsignal+0x35)[0x3d41a30215]
/lib64/libc.so.6(abort+0x110)[0x3d41a31cc0]
/usr/lib64/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x114)[0x3d550bec44]
/usr/lib64/libstdc++.so.6[0x3d550bcdb6]
/usr/lib64/libstdc++.so.6[0x3d550bc16b]
/usr/lib64/libstdc++.so.6(__gxx_personality_v0+0x353)[0x3d550bcc43]
/lib64/libgcc_s.so.1[0x3d518088e8]
/lib64/libgcc_s.so.1(_Unwind_Resume+0x9a)[0x3d51808c5a]
PassengerHelperAgent(_ZN5boost5mutex4lockEv+0x58)[0x4b55ee]
PassengerHelperAgent(_ZN5boost10lock_guardINS_5mutexEEC1ERS1_+0x27)[0x4b561d]
PassengerHelperAgent(_ZN9Passenger5Timer5startEv+0x1d)[0x4b580b]
PassengerHelperAgent(_ZN18TimerUpdateHandler18clientDisconnectedERN9Passenger13MessageServer19CommonClientContextERN5boost10shared_ptrINS1_13ClientContextEEE+0x3d)[0x4b5877]
PassengerHelperAgent(_ZN9Passenger13MessageServer29DisconnectEventBroadcastGuardD1Ev+0x7c)[0x48b722]
PassengerHelperAgent(_ZN9Passenger13MessageServer22clientHandlingMainLoopERNS_14FileDescriptorE+0xd4e)[0x4e559c]
PassengerHelperAgent(_ZNK5boost4_mfi3mf1IvN9Passenger13MessageServerERNS2_14FileDescriptorEEclEPS3_S5_+0x6a)[0x4954e8]
PassengerHelperAgent(_ZN5boost3_bi5list2INS0_5valueIPN9Passenger13MessageServerEEENS2_INS3_14FileDescriptorEEEEclINS_4_mfi3mf1IvS4_RS7_EENS0_5list0EEEvNS0_4typeIvEERT_RT0_i+0x5a)[0x49609c]
PassengerHelperAgent(_ZN5boost3_bi6bind_tIvNS_4_mfi3mf1IvN9Passenger13MessageServerERNS4_14FileDescriptorEEENS0_5list2INS0_5valueIPS5_EENSA_IS6_EEEEEclEv+0x36)[0x4960dc]
PassengerHelperAgent(_ZN5boost6detail8function26void_function_obj_invoker0INS_3_bi6bind_tIvNS_4_mfi3mf1IvN9Passenger13MessageServerERNS7_14FileDescriptorEEENS3_5list2INS3_5valueIPS8_EENSD_IS9_EEEEEEvE6invokeERNS1_15function_bufferE+0x20)[0x4960fe]
PassengerHelperAgent(_ZNK5boost9function0IvEclEv+0x61)[0x4c63e9]
PassengerHelperAgent(_ZN3oxt20dynamic_thread_group11thread_mainERN5boost8functionIFvvEEEPNS0_13thread_handleE+0x2f)[0x4c64d7]
PassengerHelperAgent(_ZNK5boost4_mfi3mf2IvN3oxt20dynamic_thread_groupERNS_8functionIFvvEEEPNS3_13thread_handleEEclEPS3_S7_S9_+0x72)[0x4953fa]
PassengerHelperAgent(_ZN5boost3_bi5list3INS0_5valueIPN3oxt20dynamic_thread_groupEEENS2_INS_8functionIFvvEEEEENS2_IPNS4_13thread_handleEEEEclINS_4_mfi3mf2IvS4_RS9_SC_EENS0_5list0EEEvNS0_4typeIvEERT_RT0_i+0x73)[0x495ed5]
PassengerHelperAgent(_ZN5boost3_bi6bind_tIvNS_4_mfi3mf2IvN3oxt20dynamic_thread_groupERNS_8functionIFvvEEEPNS5_13thread_handleEEENS0_5list3INS0_5valueIPS5_EENSE_IS8_EENSE_ISB_EEEEEclEv+0x36)[0x495f16]
PassengerHelperAgent(_ZN5boost6detail8function26void_function_obj_invoker0INS_3_bi6bind_tIvNS_4_mfi3mf2IvN3oxt20dynamic_thread_groupERNS_8functionIFvvEEEPNS8_13thread_handleEEENS3_5list3INS3_5valueIPS8_EENSH_ISB_EENSH_ISE_EEEEEEvE6invokeERNS1_15function_bufferE+0x20)[0x495f38]
PassengerHelperAgent(_ZNK5boost9function0IvEclEv+0x61)[0x4c63e9]
PassengerHelperAgent(_ZN3oxt6thread11thread_mainEN5boost8functionIFvvEEENS1_10shared_ptrINS0_11thread_dataEEE+0x50)[0x4e1ebc]
PassengerHelperAgent(_ZN5boost3_bi5list2INS0_5valueINS_8functionIFvvEEEEENS2_INS_10shared_ptrIN3oxt6thread11thread_dataEEEEEEclIPFvS5_SB_ENS0_5list0EEEvNS0_4typeIvEERT_RT0_i+0x6e)[0x49d12e]
PassengerHelperAgent(_ZN5boost3_bi6bind_tIvPFvNS_8functionIFvvEEENS_10shared_ptrIN3oxt6thread11thread_dataEEEENS0_5list2INS0_5valueIS4_EENSD_IS9_EEEEEclEv+0x36)[0x49d1b6]
PassengerHelperAgent(_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvPFvNS_8functionIFvvEEENS_10shared_ptrIN3oxt6thread11thread_dataEEEENS2_5list2INS2_5valueIS6_EENSF_ISB_EEEEEEE3runEv+0x1c)[0x49d1d4]
PassengerHelperAgent(thread_proxy+0x59)[0x50097b]
/lib64/libpthread.so.0[0x3d42606367]
/lib64/libc.so.6(clone+0x6d)[0x3d41ad30ad]