From eirik at efficiency20.com Thu Sep 9 19:28:19 2010 From: eirik at efficiency20.com (Eirik Dentz Sinclair) Date: Thu, 9 Sep 2010 16:28:19 -0700 Subject: Unicorn fails to restart gracefully on capistrano deploy Message-ID: <162ABE91-E653-45BE-B611-AF6C2B37CC4B@efficiency20.com> First off thanks very much for all the hard work on unicorn. Alas, we've encountered an issue where unicorn fails to spawn new workers that have loaded the incoming revision on a capistrano deploy. I'm not entirely sure the issue is due to unicorn as it appears that bundler was responsible for a similar issue in the past: http://github.com/carlhuda/bundler/issues/issue/259/#comment_180830 But presumably bundler has corrected that issue and any help in sorting out the issue would be greatly appreciated. We are following EngineYard's instructions for loading unicorn via bundle exec: http://docs.engineyard.com/appcloud/howtos/cutomization/customize-unicorn So far we've tried deploying with the unicorn config set to both "preload_app true" and "preload_app false". (unicorn.rb being used: https://gist.github.com/9a208e3d1d1e44161018) When "preload_app true" is used the "uninitialized constant Prefix::OurCustomApi (NameError)" log entry/stacktrace appears once. And the workers never load the incoming code. So while the incoming code is in place and the symlinks are all updated we're still running the previous revision until a unicorn stop/start or reload is sent. When "preload_app false" is used the "uninitialized constant Prefix::OurCustomApi (NameError)" log entry/stacktrace is written to the unicorn.stderr.log continuously as it keeps trying to respawn workers in a loop. This goes on until a unicorn stop command is sent. Then a unicorn start can be used to load the incoming revision successfully. The common deployment stack and versions follow: Capistrano 2.5.19 Bundler 1.0.0rc6 Rails 2.3.8 Unicorn 1.0.1 (tested under unicorn 1.1.3 with same results) The deployments differ as follows: The deployed versioned directory is 20100830230613 The incoming versioned directory is 20100902192111 Code in version 20100830230613 uses our_custom_api.gem version 1.0 via the Gemfile Code in version 20100830230613 uses the constant OurCustomApi in config/initializers/our_custom_api.rb Code in version 20100902192111 uses prefix_our_custom_api.gem version 2.0 via the Gemfile Code in version 20100902192111 uses the constant Prefix::OurCustomApi in config/initializers/our_custom_api.rb The relevant relevant unicorn.stderr.log can be found below and appear to show some sort of issue where both versioned directories are being loaded into the same process? Unicorn 1.0.1: https://gist.github.com/ddc852b23617fc8584e0 Unicorn 1.1.3: https://gist.github.com/6314ea0e14ff78b4e8dc Thanks in advance, Eirik Dentz Sinclair From jamie at tramchase.com Thu Sep 9 20:19:35 2010 From: jamie at tramchase.com (Jamie Wilkinson) Date: Thu, 9 Sep 2010 17:19:35 -0700 Subject: Unicorn fails to restart gracefully on capistrano deploy In-Reply-To: <162ABE91-E653-45BE-B611-AF6C2B37CC4B@efficiency20.com> References: <162ABE91-E653-45BE-B611-AF6C2B37CC4B@efficiency20.com> Message-ID: <94DA7535-598C-4C42-8D81-91D5A98183EF@tramchase.com> On Sep 9, 2010, at 4:28 PM, Eirik Dentz Sinclair wrote: > First off thanks very much for all the hard work on unicorn. Alas, we've encountered an issue where unicorn fails to spawn new workers that have loaded the incoming revision on a capistrano deploy. I'm not entirely sure the issue is due to unicorn as it appears that bundler was responsible for a similar issue in the past: http://github.com/carlhuda/bundler/issues/issue/259/#comment_180830 > > But presumably bundler has corrected that issue and any help in sorting out the issue would be greatly appreciated. > > [snip] > > The deployed versioned directory is 20100830230613 > The incoming versioned directory is 20100902192111 I think I may have run into a potentially related bundler+unicorn+capistrano issue just today! With bundler+unicorn the shell environment does not really get cleared between USR2 restarts/forkings, which was the cause of the aforementioned GitHub ticket... PATH/RUBYOPT would just get infinitely appended to by bundler, and unicorn is happy to let you do whatever with the environment The bug I found today cropped up while upgrading from rails 2.3.8 to rails 2.3.9 -- on deploy the new unicorn master would die with "hey you've already loaded rails 2.3.8!". Weird. Some quick debugging showed my BUNDLE_GEMFILE environment variable was referencing a Gemfile from a (very) old capistrano release.... I'm actively debugging it now. I'm also using preload_app=true which might have contributed. Eirik, can you confirm any similar "old release" weirdnesses by dumping the ENV in your unicorn.rb's before_exec / before_fork? STDERR.puts ENV.inspect From lawrence.pit at gmail.com Thu Sep 9 21:16:10 2010 From: lawrence.pit at gmail.com (Lawrence Pit) Date: Fri, 10 Sep 2010 11:16:10 +1000 Subject: Unicorn fails to restart gracefully on capistrano deploy In-Reply-To: <94DA7535-598C-4C42-8D81-91D5A98183EF@tramchase.com> References: <162ABE91-E653-45BE-B611-AF6C2B37CC4B@efficiency20.com> <94DA7535-598C-4C42-8D81-91D5A98183EF@tramchase.com> Message-ID: <4C8986DA.7090603@gmail.com> See the before_exec in http://gist.github.com/534668 Cheers, Lawrence > On Sep 9, 2010, at 4:28 PM, Eirik Dentz Sinclair wrote: > >> First off thanks very much for all the hard work on unicorn. Alas, we've encountered an issue where unicorn fails to spawn new workers that have loaded the incoming revision on a capistrano deploy. I'm not entirely sure the issue is due to unicorn as it appears that bundler was responsible for a similar issue in the past: http://github.com/carlhuda/bundler/issues/issue/259/#comment_180830 >> >> But presumably bundler has corrected that issue and any help in sorting out the issue would be greatly appreciated. >> >> [snip] >> >> The deployed versioned directory is 20100830230613 >> The incoming versioned directory is 20100902192111 > I think I may have run into a potentially related bundler+unicorn+capistrano issue just today! > > With bundler+unicorn the shell environment does not really get cleared between USR2 restarts/forkings, which was the cause of the aforementioned GitHub ticket... PATH/RUBYOPT would just get infinitely appended to by bundler, and unicorn is happy to let you do whatever with the environment > > The bug I found today cropped up while upgrading from rails 2.3.8 to rails 2.3.9 -- on deploy the new unicorn master would die with "hey you've already loaded rails 2.3.8!". Weird. > > Some quick debugging showed my BUNDLE_GEMFILE environment variable was referencing a Gemfile from a (very) old capistrano release.... I'm actively debugging it now. I'm also using preload_app=true which might have contributed. > > Eirik, can you confirm any similar "old release" weirdnesses by dumping the ENV in your unicorn.rb's before_exec / before_fork? > > STDERR.puts ENV.inspect > _______________________________________________ > Unicorn mailing list - mongrel-unicorn at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-unicorn > Do not quote signatures (like this one) or top post when replying > From matts at morgansound.com Tue Sep 7 15:29:44 2010 From: matts at morgansound.com (Matt Smith) Date: Tue, 7 Sep 2010 12:29:44 -0700 Subject: unicorn_rails and rails 2.3.8 Message-ID: First off, I love unicorn. Thanks to all who have worked on it. For the first time, I am trying to run a rails 2.3 app with unicorn. I don't understand what is not set correctly. I have rails 2.3.8 and dependencies installed. I am sure it is something simple.... See output below. Much thanks! Matt config/environment.rb ... RAILS_GEM_VERSION = '2.3.8' unless defined? RAILS_GEM_VERSION ... ruby-1.9.2-p0 repositories/rails_apps/fat_free_crm[master]% unicorn_rails I, [2010-09-07T12:20:54.342354 #9085] INFO -- : reaped # worker=0 I, [2010-09-07T12:20:54.343368 #9085] INFO -- : worker=0 spawning... I, [2010-09-07T12:20:54.348304 #9088] INFO -- : worker=0 spawned pid=9088 I, [2010-09-07T12:20:54.349106 #9088] INFO -- : Refreshing Gem list Missing the Rails 2.3.8 gem. Please `gem install -v=2.3.8 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed. ^CI, [2010-09-07T12:20:56.514921 #9085] INFO -- : reaped # worker=0 I, [2010-09-07T12:20:56.515901 #9085] INFO -- : master complete ruby-1.9.2-p0 repositories/rails_apps/fat_free_crm[master]% gem list *** LOCAL GEMS *** abstract (1.0.0) actionmailer (3.0.0, 3.0.0.rc, 2.3.8) actionpack (3.0.0, 3.0.0.rc, 2.3.8) activemodel (3.0.0, 3.0.0.rc) activerecord (3.0.0, 3.0.0.rc, 2.3.8) activeresource (3.0.0, 3.0.0.rc, 2.3.8) activesupport (3.0.0, 3.0.0.rc, 2.3.8) arel (1.0.1, 0.4.0) builder (2.1.2) bundler (1.0.0.rc.5) capistrano (2.5.19) cucumber (0.8.5) cucumber-rails (0.3.2) diff-lcs (1.1.2) erubis (2.6.6) gherkin (2.1.5) god (0.11.0) highline (1.6.1) hoe (2.6.2) i18n (0.4.1) json_pure (1.4.6) mail (2.2.5) mime-types (1.16) mysql (2.8.1) mysql2 (0.2.3) net-scp (1.0.3) net-sftp (2.0.5) net-ssh (2.0.23) net-ssh-gateway (1.0.1) nokogiri (1.4.3.1) paperclip (2.3.3) polyglot (0.3.1) rack (1.2.1, 1.1.0) rack-mount (0.6.13, 0.6.12, 0.6.11) rack-test (0.5.4) rails (3.0.0, 3.0.0.rc, 2.3.8) railties (3.0.0, 3.0.0.rc) rake (0.8.7) rdoc (2.5.11) rspec (2.0.0.beta.20) rspec-core (2.0.0.beta.20) rspec-expectations (2.0.0.beta.20) rspec-mocks (2.0.0.beta.20) rspec-rails (2.0.0.beta.20) rubyforge (2.0.4) sqlite3-ruby (1.3.1) term-ansicolor (1.0.5) test-unit (1.2.3) thor (0.14.0) treetop (1.4.8) trollop (1.16.2) tzinfo (0.3.23) unicorn (1.1.3, 1.1.2) webrat (0.7.2.beta.1) From edhoprima at gmail.com Sat Sep 11 11:42:26 2010 From: edhoprima at gmail.com (Edho P Arief) Date: Sat, 11 Sep 2010 22:42:26 +0700 Subject: unicorn_rails and rails 2.3.8 In-Reply-To: References: Message-ID: On Wed, Sep 8, 2010 at 2:29 AM, Matt Smith wrote: > First off, I love unicorn. Thanks to all who have worked on it. > > For the first time, I am trying to run a rails 2.3 app with unicorn. I don't understand what is not set correctly. I have rails 2.3.8 and dependencies installed. I am sure it is something simple.... See output below. > > rack (1.2.1, 1.1.0) You probably want to install rack 1.0.1 and then create a copy of unicorn_rails startup script and modify it to force load rack of that version. -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org From eirik at efficiency20.com Wed Sep 15 02:40:14 2010 From: eirik at efficiency20.com (Eirik Dentz Sinclair) Date: Tue, 14 Sep 2010 23:40:14 -0700 Subject: Unicorn fails to restart gracefully on capistrano deploy Message-ID: <5F1A02DB-CBDA-4302-9E26-8050C2D72433@efficiency20.com> Lawrence, Jamie Thanks very much for your responses. The before_exec block in Lawrence's gist was just what was needed. Not sure how many others are using Capistrano and bundler, but seems like that before_exec block would be a good addition to this page: http://unicorn.bogomips.org/Sandbox.html Thanks again for the help. -Eirik From normalperson at yhbt.net Wed Sep 15 17:52:03 2010 From: normalperson at yhbt.net (Eric Wong) Date: Wed, 15 Sep 2010 14:52:03 -0700 Subject: Unicorn fails to restart gracefully on capistrano deploy In-Reply-To: <5F1A02DB-CBDA-4302-9E26-8050C2D72433@efficiency20.com> References: <5F1A02DB-CBDA-4302-9E26-8050C2D72433@efficiency20.com> Message-ID: <20100915215203.GA26305@dcvr.yhbt.net> Eirik Dentz Sinclair wrote: > Lawrence, Jamie > > Thanks very much for your responses. > > The before_exec block in Lawrence's gist was just what was needed. Not sure how many others are using Capistrano and bundler, but seems like that before_exec block would be a good addition to this page: http://unicorn.bogomips.org/Sandbox.html > > Thanks again for the help. Thanks for confirming the fix. I've updated the Sandbox document with the following patch. Patches/pull-requests to the mailing list for documentation are very much appreciated, especially for Bundler and maybe other things I don't use myself. Lets try to treat the in-source documentation much like a wiki, except anybody who grabs the source also has the latest up-to-date docs ready for offline reading (and readable without a web browser :) >From 1a75966a5d1a1f6307ed3386e2f91a28bbb72ca0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 15 Sep 2010 14:42:54 -0700 Subject: [PATCH] doc: update Sandbox document for Bundler Thanks to Lawrence Pit, Jamie Wilkinson, and Eirik Dentz Sinclair. ref: mid.gmane.org/4C8986DA.7090603 at gmail.com ref: mid.gmane.org/5F1A02DB-CBDA-4302-9E26-8050C2D72433 at efficiency20.com --- Sandbox | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/Sandbox b/Sandbox index d2f7590..d101106 100644 --- a/Sandbox +++ b/Sandbox @@ -24,6 +24,9 @@ this: Then use HUP to reload, and then continue with the USR2+QUIT upgrade sequence. +Environment variable pollution when exec-ing a new process (with USR2) +is the primary issue with sandboxing tools such as Bundler and Isolate. + == Bundler === Running @@ -42,6 +45,12 @@ This is no longer be an issue as of bundler 0.9.17 ref: http://mid.gmane.org/8FC34B23-5994-41CC-B5AF-7198EF06909E at tramchase.com +=== Other ENV pollution issues + +You may need to set or reset BUNDLE_GEMFILE, GEM_HOME, GEM_PATH and PATH +environment variables in the before_exec hook as illustrated by +http://gist.github.com/534668 + == Isolate === Running -- Eric Wong From no-reply at greenbeard.com Wed Sep 15 21:57:22 2010 From: no-reply at greenbeard.com (Leroy Ware) Date: Wed, 15 Sep 2010 20:57:22 -0500 (CDT) Subject: You're Invited to Greenbeard! Message-ID: <20100916015722.A0F02361DF@webmail.greenbeard.com> Check out this new Advisor Search Engine called Greenbeard. Get paid to give advice over the phone. Greenbeard finds your clients, connects the call, and then collects all the money for you. We are looking for articulate and diverse counselors/advisors/educators/tutors/mentors who want to get paid for their knowledge and experience on any topic including but not limited to: Art, Automotive, Medicine, Law, Chemistry, Mathematics, Science, Computers, Fashion, Home Repair, Career Coaching, Fitness, Travel, Photography, Video, Sports, Religion, Social Media, Dating, Friendship, Astrology, Meditation, Psychic Readings, and many more. Benefits include: Set your own compensation rate and hours Work from your home, office or anywhere you have access to phone and computer No upfront investment if you have a computer and telephone You can work full or part time Our adviser coaches will help you through the process of promoting your expertise. We will also show you methods of developing passive income through our recruiting program. If you are an association, organization, blogger, non-profit or group, find out how you can help generate income for your organization and members. Sign up now by clicking the link below: http://greenbeard.com/signup1.php?r=32 Leroy Ware Greenbeard Recruiter If you would like to unsubscribe to this newsletter, paste the following link into your browser: http://greenbeard.com/lists/?p=unsubscribe&uid=756dd4812028249cda5916cbfbb44cd9 From noreply at greenbeard.com Wed Sep 15 22:24:55 2010 From: noreply at greenbeard.com (The Greenbeard Team) Date: Wed, 15 Sep 2010 21:24:55 -0500 Subject: Goodbye from our Newsletter Message-ID: <14d57d9206620892625036c931dd6836@greenbeard.com> You have been unsubscribed from our newsletter. To re-subscribe, please go to http://greenbeard.com/lists/?p=subscribe and follow the steps. Thank you From no-reply at greenbeard.com Thu Sep 16 00:34:00 2010 From: no-reply at greenbeard.com (Leroy Ware) Date: Wed, 15 Sep 2010 23:34:00 -0500 (CDT) Subject: You're Invited to Greenbeard! Message-ID: <20100916043400.82D96170003@webmail.greenbeard.com> Check out this new Advisor Search Engine called Greenbeard. Get paid to give advice over the phone. Greenbeard finds your clients, connects the call, and then collects all the money for you. We are looking for articulate and diverse counselors/advisors/educators/tutors/mentors who want to get paid for their knowledge and experience on any topic including but not limited to: Art, Automotive, Medicine, Law, Chemistry, Mathematics, Science, Computers, Fashion, Home Repair, Career Coaching, Fitness, Travel, Photography, Video, Sports, Religion, Social Media, Dating, Friendship, Astrology, Meditation, Psychic Readings, and many more. Benefits include: Set your own compensation rate and hours Work from your home, office or anywhere you have access to phone and computer No upfront investment if you have a computer and telephone You can work full or part time Our adviser coaches will help you through the process of promoting your expertise. We will also show you methods of developing passive income through our recruiting program. If you are an association, organization, blogger, non-profit or group, find out how you can help generate income for your organization and members. Sign up now by clicking the link below: http://greenbeard.com/signup1.php?r=32 Leroy Ware Greenbeard Recruiter If you would like to unsubscribe to this newsletter, paste the following link into your browser: http://greenbeard.com/lists/?p=unsubscribe&uid=7af426d4f88f79cae8b1c0b05e457de4 From sam-bounces at lists.clayton.edu Fri Sep 24 10:34:59 2010 From: sam-bounces at lists.clayton.edu (sam-bounces at lists.clayton.edu) Date: Fri, 24 Sep 2010 10:34:59 -0400 Subject: Your message to Sam awaits moderator approval Message-ID: Your mail to 'Sam' with the subject Delivery failed Is being held until the list moderator can review it for approval. The reason it is being held: Post by non-member to a members-only list Either the message will get posted to the list, or you will receive notification of the moderator's decision. If you would like to cancel this posting, please visit the following URL: http://lists.clayton.edu/cgi-bin/mailman/confirm/sam/2bda4ca5280fd93c7ac0460e09bde0d388d95087 From normalperson at yhbt.net Mon Sep 27 23:03:02 2010 From: normalperson at yhbt.net (Eric Wong) Date: Mon, 27 Sep 2010 20:03:02 -0700 Subject: [ANN] kgio library / RubyGem Message-ID: <20100928030302.GA3452@dcvr.yhbt.net> Hello all, I've released kgio, a kinder, gentler I/O library for Ruby. Some of its features are useful for Unicorn, and all of it is useful for Rainbows! I intend to make kgio a requirement for both Unicorn and Rainbows!/Zbatery. I'm comfortable with the code, but extra testers and extra eyes to review it would be helpful (it's nearly all C). There were several factors leading the creation of this library: 1. The performance loss from Ruby 1.9.2 due to extending exceptions with IO::Wait{Read,Writ}able is annoying. While it's partly fixed[1] and fixable[2] for 1.9.3, it could be a while before 1.9.3 is available. Unicorn currently does non-blocking accept very aggressively. 2. (Rainbows! only) Slicing partially written strings for non-blocking I/O in gets painful with Ruby 1.9, it's much easier (at least for me) to do this in C and kgio_trywrite allows exactly that, returning the unwritten portion of a string. 3. (Rainbows! only) It offers hooks for using alternative methods to switch execution contexts (experience taken from building the FiberSpawn/FiberPool modules). 4. (philosophical) I've never considered EAGAIN/EINPROGRESS "exceptional" conditions when explicitly doing non-blocking I/O, and thus unworthy of raising exceptions. kgio currently passes all tests on on Linux 2.6 (1.9.{1,2}, 1.8.{6,7}, rbx 1.1) and FreeBSD 7.0 (1.8.7). http://unicorn.bogomips.org/kgio/ git://git.bogomips.org/kgio.git http://git.bogomips.org/cgit/kgio.git [1] - http://thread.gmane.org/gmane.comp.lang.ruby.core/30854 [2] - http://thread.gmane.org/gmane.comp.lang.ruby.core/31801 -- Eric Wong From heatherfranks at gmail.com Tue Sep 28 20:11:26 2010 From: heatherfranks at gmail.com (Armando ; Mckinnon) Date: Wed, 29 Sep 2010 00:11:26 -0000 Subject: Business/Medical Marketing Lists Message-ID: We have the following high-quality lists: HEALTHCARE > Doctors (34 different specialties) > Chiropractors > Alternative Medicine > Dentists > Veterinarians > Hospitals > Pharmaceutical Companies > Physical Therapists > Oncology Doctors > US Surgery Centers > Massage Therapists > Acupuncturists > Medical Equipment Suppliers > Mental Health Counselors > Psychologists BUSINESS LISTS > Real Estate Agents > US New Business Database > Financial Planners Database > Finance and Money Professionals Database PROFESSIONALS LISTS > USA Lawyers Database > Criminal Attorneys - 142,906 Send me an email here for samples and stats: saveonlists at gmx.com Send email to purgefile at gmx.com for deleted status