markds75
2010-Apr-10 20:16 UTC
ruby 1.8.7p249 + rails 2.3.5 + Snow Leopard = hung processes?
A few weeks ago I updated my development computer to Snow Leopard (finally). I put it off because I was in the middle of a project, and it seems its a good thing I did. Last week I started something new and it seems that any rails related ruby process will get ... stuck, I guess is the best word. I''ve seen it happen as soon as a minute, or take as long as an hour. It happens for script/server and script/ runner based processes; as far as I''ve been able to tell, it doesn''t happen with pure ruby processes, but then again the test script I used wasn''t trying to do things like connect to a MySQL DB. When the processes get stuck, control-c does not stop them, they have to be forced to quit with "kill -9". Has anyone else seen this? Thanks! Mark Some info from my environment...> ruby --versionruby 1.8.7 (2010-01-10 patchlevel 249) [i686-darwin10.2.0]> env | grep RUBYRUBYOPT=rubygems> mysql --versionmysql Ver 14.14 Distrib 5.1.44, for apple-darwin10.2.0 (i386) using readline 5.1> gem list --localactionmailer (2.3.5, 2.1.1) actionpack (2.3.5, 2.1.1) activerecord (2.3.5, 2.1.1) activeresource (2.3.5, 2.1.1) activesupport (2.3.5, 2.1.1) ... mongrel (1.1.5) mysql (2.8.1) ... rails (2.3.5, 2.1.1) rake (0.8.7, 0.8.3) ... rubyforge (2.0.3, 1.0.1) rubygems-update (1.3.6, 1.3.5) ...> gem --version1.3.6 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
markds75
2010-Apr-10 20:46 UTC
Re: ruby 1.8.7p249 + rails 2.3.5 + Snow Leopard = hung processes?
I found this blog article just after posting: http://www.darianshimy.com/2009/09/fixing-rails-in-snow-leopard/ I figured I''d try his fix for mongrel, which involves uninstalling the gem and re-installing it. But whenever I try to run "sudo gem install mongrel", the gem process seems to hang. I''ve had it running for 10 minutes now, and with verbose output turned on, this is all its said:> sudo gem install --verbose mongrelGET http://gems.rubyforge.org/latest_specs.4.8.gz 302 Found GET http://production.s3.rubygems.org/latest_specs.4.8.gz I was able to access http://production.s3.rubygems.org/latest_specs.4.8.gz in my browser and the file downloaded in a few seconds, so I doubt that''s the issue. At the same time, I was able to run "sudo gem install thin" and there were no problems. Mark -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.