Are you running a cluster configuration or just a single mongrel?
An intermittent issue can happen in a cluster when a mongrel goes bad for
whatever reason. You'll only hit the error when the proxy manager points
you to that mongrel.
Long
On Fri, Jun 20, 2008 at 10:02 PM, Fountain <[EMAIL PROTECTED]> wrote:
>
> I can't seem to get this to repeat regularly but what seems like every
> 1 out 4 of my sign ups (i.e. create person) cause an application
> error:
>
> "Application error Rails application failed to start properly"
>
> This has never happened to me in development. Here's what the log
> looks like:
>
> Processing PeopleController#create (for 66.65.187.5 at 2008-06-19
> 09:47:23) [POST]
> Session ID: B...[snip]...d246e
> Parameters: {"commit"=>"Sign up",
> "authenticity_token"=>"995b1cdc19ec4255dbf0135a68b905c963f1d9ab",
> "action"=>"create", "controller"=>"people",
> "person"=>{"name"=>"user_name", "password_confirmation"=>"1234",
> "password"=>"1234", "email"=>"[EMAIL PROTECTED]"}}
> Cookie set: auth_token=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT
> Sent mail:
> From: Email verification <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [prototype161] Email verification
> Mime-Version: 1.0
> Content-Type: text/plain; charset=utf-8
>
> Click here to complete your email verification:
>
> http://prototype161.com/people/verify/8d704410-203c-012b-4204-f4ae03f44779
>
> Thanks!
> Redirected to http://www.prototype161.com/thanks.html
> Completed in 0.63258 (1 reqs/sec) | DB: 0.00000 (0%) | 302 Found
> [http://www.prototype161.com/people]
>
> The strange thing is that my code doesn't redirect to people/index.
> Here's the create method:
>
> def create
> cookies.delete :auth_token
> @person = Person.new(params[:person])
> respond_to do |format|
> @person.deactivated = true if global_prefs.email_verifications?
> if @person.save
> if global_prefs.email_verifications?
> @person.email_verifications.create
> flash[:notice] = %(Thanks for signing up! A verification
> email has
> been sent to [EMAIL PROTECTED])
> # format.html { redirect_to(home_url) } # extracted for pre-
> launch
> format.html { redirect_to('/thanks.html') } # added for pre-
> launch
> else
> self.current_person = @person
> flash[:notice] = "Thanks for signing up!"
> format.html { redirect_back_or_default(home_url) }
> end
> else
> @body = "register single-col"
> format.html { render :action => 'new' }
> end
> end
> end
>
> Does anyone have an idea of why it would fail and redirect to people?
> I feel like it might be a session or cookie thing, but I am not
> experienced enough to know how to track this down. Any advice would be
> greatly appreciated.
> >
>
--
Long Nguyen
[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
Insoshi developer site: http://dogfood.insoshi.com/
Insoshi documentation: http://docs.insoshi.com/
You received this message because you are subscribed to the Google
Groups "Insoshi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/insoshi?hl=en
-~----------~----~----~----~------~----~------~--~---