Closed
Bug 976599
Opened 11 years ago
Closed 11 years ago
[traceback] ValueError: astimezone() cannot be applied to a naive datetime
Categories
(Input Graveyard :: Backend, defect)
Input Graveyard
Backend
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: willkg, Unassigned)
References
Details
(Whiteboard: u=dev c=search p= s=input.2014q1)
Task fjord.search.tasks.index_item_task with id bdb0c019-1a0f-4730-be9d-7d2d489cf823 raised exception:
"ValueError('astimezone() cannot be applied to a naive datetime',)"
Task was called with args: (<class 'fjord.feedback.models.ResponseMappingType'>, 4222659L) kwargs: {}.
The contents of the full traceback was:
Traceback (most recent call last):
File "/data/www/input.mozilla.org/input/vendor/lib/python/celery/execute/trace.py", line 181, in trace_task
R = retval = fun(*args, **kwargs)
File "/data/www/input.mozilla.org/input/fjord/search/tasks.py", line 89, in index_item_task
index_item_task.retry(args, kwargs, exc, countdown=retry_time)
File "/data/www/input.mozilla.org/input/vendor/lib/python/celery/app/task/__init__.py", line 548, in retry
self.apply_async(args=args, kwargs=kwargs, **options)
File "/data/www/input.mozilla.org/input/vendor/lib/python/celery/app/task/__init__.py", line 459, in apply_async
**options)
File "/data/www/input.mozilla.org/input/vendor/lib/python/celery/app/amqp.py", line 212, in delay_task
now = now or self.app.now()
File "/data/www/input.mozilla.org/input/vendor/lib/python/celery/app/base.py", line 278, in now
return self.loader.now(utc=self.conf.CELERY_ENABLE_UTC)
File "/data/www/input.mozilla.org/input/vendor/lib/python/djcelery/loaders.py", line 39, in now
return now()
File "/data/www/input.mozilla.org/input/vendor/lib/python/djcelery/utils.py", line 54, in now
return timezone.localtime(timezone.now())
File "/data/www/input.mozilla.org/input/vendor/lib/python/django/utils/timezone.py", line 237, in localtime
value = value.astimezone(timezone)
ValueError: astimezone() cannot be applied to a naive datetime
Ricky fixed this for SUMO already. It's a problem with running Django 1.5 with Celery 2.5.5 and the fix is to upgrade Celery. Ricky upgraded SUMO to Celery 3.0 and that seems to have worked. We should do that, too.
This problem affects the retry code for indexing tasks. That doesn't kick off very often, though, so we can punt on this for a while.
Reporter | ||
Comment 1•11 years ago
|
||
Adding whiteboard data. Putting it in 2014q1 for now, but this can slip to 2014q2 if need be.
Whiteboard: u=dev c=search p= s=input.2014q1
Reporter | ||
Comment 2•11 years ago
|
||
Updating celery (bug #979266) will fix this. Making this depend on that.
Depends on: 979266
Reporter | ||
Comment 3•11 years ago
|
||
This got fixed when we upgraded celery (bug #979266).
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•8 years ago
|
Product: Input → Input Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•