Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 514652 - recruiting.gentoo.org "answers to review" gives "We're sorry, but something went wrong."
Summary: recruiting.gentoo.org "answers to review" gives "We're sorry, but something w...
Status: RESOLVED FIXED
Alias: None
Product: Websites
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Infrastructure
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-23 08:18 UTC by Justin Lecher (RETIRED)
Modified: 2014-07-04 06:15 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2014-06-23 08:18:08 UTC
I don't know who to contact so I am doing it here.

Yesterday I changed lots of description of the questions and after that I cannot review any anymore.

Could someone please coordinate the debugging?
Comment 1 Isaiah Peng (RETIRED) gentoo-dev 2014-06-23 19:15:25 UTC
Do we have any facilities like greylog or something to collect the rails logs? It's necessary to see the stack trace to debug the issues happening in production environment.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2014-06-24 19:27:58 UTC
I tried again and sometimes it works.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2014-06-27 21:58:33 UTC
Could we please proceed here somehow?
Comment 4 Isaiah Peng (RETIRED) gentoo-dev 2014-06-28 07:13:13 UTC
Please check my previous comment, I need access to the rails logs, or I cannot do much here.

Please contact the platform guys via what means can we access the logs? If there is not, we will have to deploy errorbit service or pay for one.
Comment 5 Alec Warner (RETIRED) archtester gentoo-dev Security 2014-06-28 17:21:28 UTC
Sorry, are one of you volunteering to maintain this thing?

-A
Comment 6 Alec Warner (RETIRED) archtester gentoo-dev Security 2014-06-28 17:25:09 UTC
NoMethodError (undefined method `candidate?' for nil:NilClass):
Completed 500 Internal Server Error in 478ms
ActionView::Template::Error (undefined method `title' for nil:NilClass):
Completed 500 Internal Server Error in 370ms
ActionView::Template::Error (undefined method `title' for nil:NilClass):
Completed 500 Internal Server Error in 129ms
ActionView::Template::Error (undefined method `title' for nil:NilClass):
Completed 500 Internal Server Error in 179ms
ActionView::Template::Error (undefined method `title' for nil:NilClass):
Completed 500 Internal Server Error in 862ms
ActionView::Template::Error (undefined method `title' for nil:NilClass):
Completed 500 Internal Server Error in 917ms
ActionView::Template::Error (undefined method `title' for nil:NilClass):
Completed 500 Internal Server Error in 466ms
ActionView::Template::Error (undefined method `title' for nil:NilClass):
Completed 500 Internal Server Error in 697ms
ActionView::Template::Error (undefined method `title' for nil:NilClass):
Completed 500 Internal Server Error in 466ms
ActionView::Template::Error (undefined method `title' for nil:NilClass):
Completed 500 Internal Server Error in 178ms
ActionView::Template::Error (undefined method `title' for nil:NilClass):
Completed 500 Internal Server Error in 613ms
ActionView::Template::Error (undefined method `title' for nil:NilClass):
Completed 500 Internal Server Error in 767ms
ActionView::Template::Error (undefined method `title' for nil:NilClass):
Completed 500 Internal Server Error in 119ms
ActionView::Template::Error (undefined method `title' for nil:NilClass):
Completed 500 Internal Server Error in 788ms
ActionView::Template::Error (undefined method `title' for nil:NilClass):

Processing by QuestionsController#index as HTML
  Parameters: {"group_id"=>"1"}
  Rendered questions/_list.html.haml (231.9ms)
  Rendered questions/index.html.haml within layouts/application (260.5ms)
Completed 500 Internal Server Error in 752ms

ActionView::Template::Error (undefined method `candidate?' for nil:NilClass):
    3:     %tr
    4:       %th Title
    5:       %th Group
    6:       - if current_user.candidate?
    7:         %th Answer status
    8:       %th
    9:   %tbody
  app/views/questions/_list.html.haml:6:in `_app_views_questions__list_html_haml__2235889936361857887_237497958880'
  app/views/questions/index.html.haml:8:in `_app_views_questions_index_html_haml__3270718309908463133_237498442460'


Processing by ReviewsController#index as HTML
  Parameters: {"page"=>"3"}
  Rendered answers/_list.html.haml (104.7ms)
  Rendered reviews/index.html.haml within layouts/application (118.9ms)
Completed 500 Internal Server Error in 156ms

ActionView::Template::Error (undefined method `title' for nil:NilClass):
    7:   %tbody
    8:     - @answers.each do |answer|
    9:       %tr
    10:         %td= answer.question.title
    11:         %td= unsluggish_name answer.user.name
    12:         %td
    13:           - if answer.awaiting_review?
  app/views/answers/_list.html.haml:10:in `block in _app_views_answers__list_html_haml___3394060269502846341_69870826340'
  app/views/answers/_list.html.haml:8:in `_app_views_answers__list_html_haml___3394060269502846341_69870826340'
  app/views/reviews/index.html.haml:6:in `_app_views_reviews_index_html_haml__2384968588413432263_69876311040'

seem to be the two common tracebacks.
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2014-07-02 19:10:25 UTC
isaiah, any idea for a fix? This is a major blocker to progress with a recruit.
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2014-07-02 19:18:14 UTC
Most probably those two question create the problem

 https://recruiting.gentoo.org/questions/219/answers/309
 https://recruiting.gentoo.org/questions/218/answers/308
Comment 9 Justin Lecher (RETIRED) gentoo-dev 2014-07-02 19:20:40 UTC
https://recruiting.gentoo.org/candidates/tom-gall/recruit is also not working
Comment 10 Isaiah Peng (RETIRED) gentoo-dev 2014-07-02 19:31:18 UTC
Justin, there is a fix to be released. I sent a email several days ago, can you coordinate?
Comment 11 Isaiah Peng (RETIRED) gentoo-dev 2014-07-02 19:31:49 UTC
(In reply to Justin Lecher from comment #9)
> https://recruiting.gentoo.org/candidates/tom-gall/recruit is also not working

This is new, can someone post the stacktrace here, please?
Comment 12 Justin Lecher (RETIRED) gentoo-dev 2014-07-02 19:52:54 UTC
(In reply to Isaiah Peng from comment #10)
> Justin, there is a fix to be released. I sent a email several days ago, can
> you coordinate?

I am trying to push infra. Robert and Jorge are busy so I need to find someone else.
Comment 13 Justin Lecher (RETIRED) gentoo-dev 2014-07-02 19:55:37 UTC
(In reply to Isaiah Peng from comment #11)
> (In reply to Justin Lecher from comment #9)
> > https://recruiting.gentoo.org/candidates/tom-gall/recruit is also not working
> 
> This is new, can someone post the stacktrace here, please?

Someone told me about some stacktrace emailing mechanism.Who was this?
Comment 14 Justin Lecher (RETIRED) gentoo-dev 2014-07-02 19:56:11 UTC
https://recruiting.gentoo.org/candidates/48/answers

is broken as well
Comment 15 Justin Lecher (RETIRED) gentoo-dev 2014-07-03 07:34:38 UTC
Works better now, but we lost tom gall. The complete profile is gone.

Can we recover it?
Comment 16 Justin Lecher (RETIRED) gentoo-dev 2014-07-03 19:12:52 UTC
isaiah please work with infra to recover the lost account. Which db are you using?
Comment 17 Isaiah Peng (RETIRED) gentoo-dev 2014-07-03 20:25:21 UTC
(In reply to Justin Lecher from comment #16)
> isaiah please work with infra to recover the lost account. Which db are you
> using?

The live database is using mysql, I can restore it on my local, please send me the dump if it's possible.
Comment 18 Alec Warner (RETIRED) archtester gentoo-dev Security 2014-07-04 00:03:09 UTC
(In reply to Justin Lecher from comment #16)
> isaiah please work with infra to recover the lost account. Which db are you
> using?

So we are all good here yes? The account was back this morning per our irc discussion?

-A
Comment 19 Justin Lecher (RETIRED) gentoo-dev 2014-07-04 06:15:55 UTC
Yes right. We seem to have lost one answer though, but that can be fixed easily.

Thanks for working on it.