Dejan, Thank you for your reply. I can connect to the boker in production mode with "telnet localhost 61613", here's the output:
r...@ekin:~# telnet localhost 61613 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Since I'm working on a poor slice(256MB RAM, 10GB Storage), I'm guessing if it's the lack of the resource causing this timeout error. Just a random thought of mine, correct me if I'm wrong. Thank you. Regards, Hao Liu 2008/12/23 Dejan Bosanac <de...@nighttale.net> > Hi, > > it looks like you're having some kind of network problems between your > client and broker. Can you establish regular telnet connection to you > production broker? > > Cheers > -- > Dejan Bosanac > > Open Source Integration - http://fusesource.com/ > ActiveMQ in Action - http://www.manning.com/snyder/ > Blog - http://www.nighttale.net > > > On Sun, Dec 21, 2008 at 6:21 PM, 刘昊 <leomayleo...@gmail.com> wrote: > > > Hi, > > I'm using ActiveMessaging, stomp, ActiveMQ with Ruby to do some > > heavy-lifting job in the background, while it's working well under > > development mode, once I switched to the production mode, I get the > > following error messags: > > > > Timed out trying to send the message #<OpenStruct > > body="signup_notification", headers={:persistent=>true, :id=>7}> to > > destination deliver_mail via broker default > > > > > > Timeout::Error (execution expired): > > /usr/lib/ruby/1.8/timeout.rb:54:in `_receive' > > /usr/lib/ruby/gems/1.8/gems/stomp-1.0.6/lib/stomp.rb:186:in > > `synchronize' > > /usr/lib/ruby/gems/1.8/gems/stomp-1.0.6/lib/stomp.rb:186:in `_receive' > > /usr/lib/ruby/gems/1.8/gems/stomp-1.0.6/lib/stomp.rb:61:in `socket' > > /usr/lib/ruby/gems/1.8/gems/stomp-1.0.6/lib/stomp.rb:47:in > `initialize' > > > > > /vendor/plugins/activemessaging/lib/activemessaging/adapters/stomp.rb:28:in > > `initialize' > > /vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:112:in > > `new' > > /vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:112:in > > `connection' > > /vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:300:in > > `publish' > > /vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:149:in > > `execute_filter_chain' > > /vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:299:in > > `publish' > > /usr/lib/ruby/1.8/timeout.rb:56:in `timeout' > > /vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:298:in > > `publish' > > > > > /vendor/plugins/activemessaging/lib/activemessaging/message_sender.rb:21:in > > `publish' > > /app/models/user_observer.rb:7:in `after_create' > > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/observer.rb:171:in > > `send' > > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/observer.rb:171:in > > `update' > > /usr/lib/ruby/1.8/observer.rb:185:in `notify_observers' > > /usr/lib/ruby/1.8/observer.rb:184:in `each' > > /usr/lib/ruby/1.8/observer.rb:184:in `notify_observers' > > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/callbacks.rb:328:in > > `notify' > > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/callbacks.rb:321:in > > `callback' > > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/callbacks.rb:238:in > > `create_without_timestamps' > > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/timestamp.rb:29:in > > `create' > > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:2699:in > > `create_or_update_without_callbacks' > > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/callbacks.rb:222:in > > `create_or_update' > > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:2400:in > > `save_without_validation!' > > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/validations.rb:1019:in > > `save_without_dirty!' > > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/dirty.rb:87:in > > `save_without_transactions!' > > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/transactions.rb:150:in > > `save!' > > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in > > `transaction' > > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/transactions.rb:129:in > > `transaction' > > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/transactions.rb:138:in > > `transaction' > > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/transactions.rb:150:in > > `save!' > > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/transactions.rb:158:in > > `rollback_active_record_state!' > > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/transactions.rb:150:in > > `save!' > > /app/controllers/users_controller.rb:29:in `create' > > > > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in > > `send' > > > > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in > > `perform_action_without_filters' > > > > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:617:in > > `call_filters' > > > > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:610:in > > `perform_action_without_benchmark' > > > > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in > > `perform_action_without_rescue' > > /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' > > > > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in > > `perform_action_without_rescue' > > > > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/rescue.rb:136:in > > `perform_action_without_caching' > > > > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:13:in > > `passenger_orig_perform_action' > > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in > > `cache' > > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/query_cache.rb:8:in > > `cache' > > > > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:12:in > > `passenger_orig_perform_action' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/railz/request_handler.rb:53:in > > `perform_action' > > > > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in > > `send' > > > > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in > > `process_without_filters' > > > > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:606:in > > `process_without_session_management_support' > > > > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/session_management.rb:134:in > > `process' > > > > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:392:in > > `process' > > > > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:183:in > > `handle_request' > > > > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:110:in > > `dispatch_unlocked' > > > > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:123:in > > `dispatch' > > > > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in > > `synchronize' > > > > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in > > `dispatch' > > > > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:132:in > > `dispatch_cgi' > > > > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:39:in > > `dispatch' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/railz/request_handler.rb:38:in > > `process_request' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/abstract_request_handler.rb:165:in > > `main_loop' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/railz/application_spawner.rb:321:in > > `start_request_handler' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/railz/application_spawner.rb:282:in > > `handle_spawn_application' > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/utils.rb:163:in > > `safe_fork' > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/utils.rb:161:in > > `fork' > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/utils.rb:161:in > > `safe_fork' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/railz/application_spawner.rb:280:in > > `handle_spawn_application' > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/utils.rb:163:in > > `safe_fork' > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/utils.rb:161:in > > `fork' > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/utils.rb:161:in > > `safe_fork' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/railz/application_spawner.rb:279:in > > `handle_spawn_application' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/abstract_server.rb:317:in > > `__send__' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/abstract_server.rb:317:in > > `main_loop' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/abstract_server.rb:168:in > > `start_synchronously' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/abstract_server.rb:135:in > > `start' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/abstract_server.rb:112:in > > `fork' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/abstract_server.rb:112:in > > `start' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/railz/application_spawner.rb:179:in > > `start' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/railz/framework_spawner.rb:270:in > > `handle_spawn_application' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/railz/framework_spawner.rb:263:in > > `synchronize' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/railz/framework_spawner.rb:263:in > > `handle_spawn_application' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/abstract_server.rb:317:in > > `__send__' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/abstract_server.rb:317:in > > `main_loop' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/abstract_server.rb:168:in > > `start_synchronously' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/abstract_server.rb:135:in > > `start' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/abstract_server.rb:112:in > > `fork' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/abstract_server.rb:112:in > > `start' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/railz/framework_spawner.rb:87:in > > `start' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/spawn_manager.rb:218:in > > `spawn_rails_application' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/spawn_manager.rb:213:in > > `synchronize' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/spawn_manager.rb:213:in > > `spawn_rails_application' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/spawn_manager.rb:122:in > > `spawn_application' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/spawn_manager.rb:247:in > > `handle_spawn_application' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/abstract_server.rb:317:in > > `__send__' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/abstract_server.rb:317:in > > `main_loop' > > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/lib/passenger/abstract_server.rb:168:in > > `start_synchronously' > > > > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.5/bin/passenger-spawn-server:46 > > > > Rendering ./public/500.html (500 Internal Server Error) > > > > > > If there's anything more you need to know, plz let me know, thank you. > > > > Regards, > > Hao Liu > > >