From luislavena at gmail.com Fri Jan 1 16:46:50 2010 From: luislavena at gmail.com (Luis Lavena) Date: Fri, 1 Jan 2010 18:46:50 -0300 Subject: [Mongrel] [ANN] mongrel_service 0.4.beta2 Released Message-ID: <71166b3b1001011346s40a3bf60p5d0e1915a8d3559f@mail.gmail.com> mongrel_service version 0.4.beta2 has been released! * This plugin offer native win32 services for rails. This replace mongrel_rails_service. Since this is a pre-release gem, you can install it with: gem install mongrel_service --prerelease If no bug is found, expect an final release next week. Changes: ### 0.4.beta2 / 2010-01-01 * Enhancements: * Removed win32-service dependency, making mongrel_service more portable between Ruby implementations on Windows (One-Click and RubyInstaller) * Now mongrel log files are written to the path specified by --log option. Contribution by Daniel Gies (BigFix). Closes #44. * Bugfixes: * Wait longer for child process terminate properly (max 20 seconds). Imported tests from RubyServices project. Closes #18. * Workaround Windows 2008 process detection issues forcing 'service' initialization parameter. Closes #54. [papillon] * Updated ServiceFB to work with FB > 0.18. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From serty2 at gmail.com Tue Jan 26 11:09:55 2010 From: serty2 at gmail.com (serty2 serty2) Date: Tue, 26 Jan 2010 12:09:55 -0400 Subject: [Mongrel] Mongrels Hanging in mysql_adapter.rb Message-ID: Hi everyone, I have been trying to solve this problem for quite some time now and I really don't have any further clue to investigate. I am running a mongrel_cluster 1.0.5-2 (mongrel verison : 1.1.5-5) on a ubuntu box with apache2 2.2.12-1ubuntu2.1 I have 4 different apps on the same box and each app has two mongrel instances. After a short period of time ( < 2 hours ) some of the 8 mongrel instances just stop responding. I read the mongrel FAQ and tried to set ActiveRecord::Base.verification_timeout = 14400 (the mysql parameter is set to the default 28800) in myapp/config/environments/production.rb The problem kept happening. I decided to lower that number, making it 60. No more success. I installed gdb and the ruby macros to make sure i was in the mysql driver while hanging and sure enough, here is the top of the BT from GDB : /var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/mysql_adapter.rb:264:in `active?'", "/var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract_adapter.rb:136:in `verify!'", "/var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:256:in `checkout_and_verify'", "/var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:252:in `checkout_existing_connection'", "/var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:186:in `checkout'", "/var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `loop'", "/var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout'", "/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'", "/var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'", "/var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'", "/var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'", "/var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:121:in `retrieve_connection'", "/var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:113:in `connection'", "/var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:2934:in `quoted_table_name'", "/var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:1626:in `construct_finder_sql'", "/var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:1490:in `find_every'", "/var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:589:in `find'", I figured that since I was running a packaged version of mongrel_cluster (not the gem installed one), I should use the package version of mysql driver for ruby. So i did gem uninstall mysql and installed : apt-get install libmysql-ruby1.8 I then restarted the mongrels and sure enough after 1h25 one of them was hanging in the mysql_adapter.rb, showing the same backtrace as before. I really am out of clue here and any advice / help would be much appreciated. I have to note that I am far from being an ROR guru and maybe the solution to my problem is simpler than what I have been looking for, but I just don't know where to look anymore. Thanks for any advice / answer Damien -------------- next part -------------- An HTML attachment was scrubbed... URL: