Skip to content

Instantly share code, notes, and snippets.

@antoviaque
Created August 22, 2014 11:43
Show Gist options
  • Select an option

  • Save antoviaque/8bf0dab6ef34084b6588 to your computer and use it in GitHub Desktop.

Select an option

Save antoviaque/8bf0dab6ef34084b6588 to your computer and use it in GitHub Desktop.
LMS:
2014-08-22 06:33:43,779 ERROR 8244 [django.request] base.py:215 - Internal Server Error: /courses/Teams/T1/2014_T1/discussion/threads/53f7100087682ea91f000007/unvote
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/newrelic-2.18.1.15/newrelic/hooks/framework_django.py", line 492, in wrapper
return wrapped(*args, **kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/http.py", line 41, in inner
return func(request, *args, **kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 20, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/edx/app/edxapp/edx-platform/lms/djangoapps/django_comment_client/base/views.py", line 56, in wrapper
return fn(request, *args, **kwargs)
File "/edx/app/edxapp/edx-platform/lms/djangoapps/django_comment_client/base/views.py", line 445, in undo_vote_for_thread
user.unvote(thread)
File "/edx/app/edxapp/edx-platform/lms/lib/comment_client/user.py", line 81, in unvote
metric_tags=self._metric_tags + ['target.type:{}'.format(voteable.type)],
File "/edx/app/edxapp/edx-platform/lms/lib/comment_client/utils.py", line 102, in perform_request
raise CommentClient500Error(response.text)
CommentClient500Error: u'<h1>Internal Server Error</h1>'
Forum:
NoMethodError - undefined method `-@' for nil:NilClass:
/edx/app/forum/.gem/bundler/gems/voteable_mongo-538e86856daa/lib/voteable_mongo/voting.rb:145:in `unvote_query_and_update'
/edx/app/forum/.gem/bundler/gems/voteable_mongo-538e86856daa/lib/voteable_mongo/voting.rb:25:in `vote'
/edx/app/forum/.gem/bundler/gems/voteable_mongo-538e86856daa/lib/voteable_mongo/voteable.rb:137:in `vote'
/edx/app/forum/.gem/bundler/gems/voteable_mongo-538e86856daa/lib/voteable_mongo/voter.rb:87:in `vote'
/edx/app/forum/.gem/bundler/gems/voteable_mongo-538e86856daa/lib/voteable_mongo/voter.rb:55:in `unvote'
/edx/app/forum/cs_comments_service/lib/helpers.rb:66:in `undo_vote_for'
/edx/app/forum/cs_comments_service/api/votes.rb:14:in `block in <top (required)>'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:1264:in `call'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:1264:in `block in compile!'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:835:in `[]'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:835:in `block (3 levels) in route!'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:851:in `route_eval'
/edx/app/forum/.gem/gems/newrelic_rpm-3.6.8.164/lib/new_relic/agent/instrumentation/sinatra.rb:133:in `route_eval_with_newrelic'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:835:in `block (2 levels) in route!'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:872:in `block in process_route'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:870:in `catch'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:870:in `process_route'
/edx/app/forum/.gem/gems/newrelic_rpm-3.6.8.164/lib/new_relic/agent/instrumentation/sinatra.rb:116:in `process_route_with_newrelic'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:834:in `block in route!'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:833:in `each'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:833:in `route!'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:936:in `dispatch!'
/edx/app/forum/.gem/gems/newrelic_rpm-3.6.8.164/lib/new_relic/agent/instrumentation/sinatra.rb:151:in `dispatch_and_notice_errors_with_newrelic'
/edx/app/forum/.gem/gems/newrelic_rpm-3.6.8.164/lib/new_relic/agent/instrumentation/sinatra.rb:146:in `block in dispatch_with_newrelic'
/edx/app/forum/.gem/gems/newrelic_rpm-3.6.8.164/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:324:in `perform_action_with_newrelic_trace'
/edx/app/forum/.gem/gems/newrelic_rpm-3.6.8.164/lib/new_relic/agent/instrumentation/sinatra.rb:145:in `dispatch_with_newrelic'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:769:in `block in call!'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:921:in `block in invoke'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:921:in `catch'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:921:in `invoke'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:769:in `call!'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:755:in `call'
/edx/app/forum/.gem/gems/newrelic_rpm-3.6.8.164/lib/new_relic/rack/error_collector.rb:43:in `call'
/edx/app/forum/.gem/gems/newrelic_rpm-3.6.8.164/lib/new_relic/rack/browser_monitoring.rb:16:in `call'
/edx/app/forum/.gem/gems/newrelic_rpm-3.6.8.164/lib/new_relic/rack/agent_hooks.rb:22:in `call'
/edx/app/forum/.gem/gems/mongoid-3.0.15/lib/rack/mongoid/middleware/identity_map.rb:34:in `block in call'
/edx/app/forum/.gem/gems/mongoid-3.0.15/lib/mongoid/unit_of_work.rb:39:in `unit_of_work'
/edx/app/forum/.gem/gems/mongoid-3.0.15/lib/rack/mongoid/middleware/identity_map.rb:34:in `call'
/edx/app/forum/.gem/bundler/gems/rack-contrib-6ff3ca2b2d98/lib/rack/contrib/locale.rb:15:in `call'
/edx/app/forum/.gem/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
/edx/app/forum/.gem/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:in `call'
/edx/app/forum/.gem/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb:17:in `call'
/edx/app/forum/.gem/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:in `call'
/edx/app/forum/.gem/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
/edx/app/forum/.gem/gems/rack-1.4.1/lib/rack/logger.rb:15:in `call'
/edx/app/forum/.gem/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:in `call'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:136:in `call'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:129:in `call'
/edx/app/forum/.gem/gems/rack-1.4.1/lib/rack/head.rb:9:in `call'
/edx/app/forum/.gem/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in `call'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:99:in `call'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:1389:in `block in call'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:1471:in `synchronize'
/edx/app/forum/.gem/gems/sinatra-1.3.3/lib/sinatra/base.rb:1389:in `call'
/edx/app/forum/.gem/gems/rack-timeout-0.1.0beta3/lib/rack/timeout.rb:53:in `call'
/edx/app/forum/.gem/gems/unicorn-4.3.1/lib/unicorn/http_server.rb:531:in `process_client'
/edx/app/forum/.gem/gems/unicorn-4.3.1/lib/unicorn/http_server.rb:606:in `worker_loop'
/edx/app/forum/.gem/gems/newrelic_rpm-3.6.8.164/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb:22:in `call'
/edx/app/forum/.gem/gems/newrelic_rpm-3.6.8.164/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb:22:in `block (4 levels) in <top (required)>'
/edx/app/forum/.gem/gems/unicorn-4.3.1/lib/unicorn/http_server.rb:487:in `spawn_missing_workers'
/edx/app/forum/.gem/gems/unicorn-4.3.1/lib/unicorn/http_server.rb:137:in `start'
/edx/app/forum/.gem/gems/unicorn-4.3.1/bin/unicorn:121:in `<top (required)>'
/edx/app/forum/.gem/bin/unicorn:23:in `load'
/edx/app/forum/.gem/bin/unicorn:23:in `<main>'
source=rack-timeout id=c0ecbdc88775eefd9646e7e6bf2c8cbb timeout=20000ms duration=11ms state=completed at=info
127.0.0.1 - - [22/Aug/2014 10:33:43] "DELETE /api/v1/threads/53f7100087682ea91f000007/votes?user_id=5656&request_id=7b51e08f-d065-4873-be38-a6733b7d5fbe HTTP/1.0" 500 30 0.0118
source=rack-timeout id=b21c5db0c1edf4b0df81b0e2b6036db4 timeout=20000ms state=ready at=info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment