Unable to open rietveld, specific issue, or /mine due to ProtocolBufferDecodeError('corrupted',)

43 views
Skip to first unread message

Dan Pomeroy

unread,
Jan 30, 2016, 1:57:59 AM1/30/16
to codereview-discuss
Hi,

I'm having trouble viewing an issue in rietveld. Rather than loading, the page returns a 500 with the error "ProtocolBufferDecodeError('corrupted',)". The error is shown below. This error also occurs on http://<review-host>/ and http://<review-host>/mine. Other users are able to view http://<review-host>/user/<my-user>, but I am not. I was wondering if removing this corrupt issue would solve the problem, but I've been having trouble deleting it. I am not sure where to find it in the db to delete it that way, and DELETE http://<review-host>/<id> fails due to the same 500.

Does anyone have a solution to this problem? I can provide any additional info if needed.

Thanks!

Environment:


Request Method: GET
Request URL: http://<review-host>/306991/

Django Version: 1.4.13
Python Version: 2.7.8
Installed Applications:
('codereview',)
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.middleware.http.ConditionalGetMiddleware',
 'codereview.middleware.RedirectToHTTPSMiddleware',
 'codereview.middleware.AddHSTSHeaderMiddleware',
 'codereview.middleware.AddUserToRequestMiddleware',
 'codereview.middleware.PropagateExceptionMiddleware')


Traceback:
File "/root/google_appengine/lib/django-1.4/django/core/handlers/base.py" in get_response
  109.                         response = callback(request, *callback_args, **callback_kwargs)
File "/root/rietveld/codereview/decorators.py" in issue_wrapper
  126.     issue = models.Issue.get_by_id(int(issue_id))
File "/root/google_appengine/google/appengine/ext/ndb/utils.py" in positional_wrapper
  142.       return wrapped(*args, **kwds)
File "/root/google_appengine/google/appengine/ext/ndb/model.py" in _get_by_id
  3530.     return cls._get_by_id_async(id, parent=parent, **ctx_options).get_result()
File "/root/google_appengine/google/appengine/ext/ndb/tasklets.py" in get_result
  325.     self.check_success()
File "/root/google_appengine/google/appengine/ext/ndb/tasklets.py" in _help_tasklet_along
  368.           value = gen.throw(exc.__class__, exc, tb)
File "/root/google_appengine/google/appengine/ext/ndb/context.py" in get
  744.       entity = yield self._get_batcher.add_once(key, options)
File "/root/google_appengine/google/appengine/ext/ndb/tasklets.py" in _help_tasklet_along
  368.           value = gen.throw(exc.__class__, exc, tb)
File "/root/google_appengine/google/appengine/ext/ndb/context.py" in _get_tasklet
  329.     entities = yield self._conn.async_get(options, datastore_keys)
File "/root/google_appengine/google/appengine/ext/ndb/tasklets.py" in _on_rpc_completion
  454.       result = rpc.get_result()
File "/root/google_appengine/google/appengine/api/apiproxy_stub_map.py" in get_result
  613.       return self.__get_result_hook(self)
File "/root/google_appengine/google/appengine/datastore/datastore_rpc.py" in __get_hook
  1609.     self.check_rpc_success(rpc)
File "/root/google_appengine/google/appengine/datastore/datastore_rpc.py" in check_rpc_success
  1340.       rpc.check_success()
File "/root/google_appengine/google/appengine/api/apiproxy_stub_map.py" in check_success
  579.       self.__rpc.CheckSuccess()
File "/root/google_appengine/google/appengine/api/apiproxy_rpc.py" in _WaitImpl
  157.                                self.request, self.response)
File "/root/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py" in MakeSyncCall
  201.         self._MakeRealSyncCall(service, call, request, response)
File "/root/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py" in _MakeRealSyncCall
  235.       raise pickle.loads(response_pb.exception())

Exception Type: RuntimeError at /306991/
Exception Value: ProtocolBufferDecodeError('corrupted',)



Dan Pomeroy

unread,
Feb 2, 2016, 1:53:44 PM2/2/16
to codereview-discuss
One other thing is I think that deleting the issue would work, but I'm not familiar with the sqlite db.

Is there a way I can find the issue by its id and then delete it via sqlite?
Reply all
Reply to author
Forward
0 new messages