<p dir="auto">Using Django 1.4.3, django-celery 3.0.11 and celery 3.0.16. In settings configuration I have USE_TZ=Yes and I am using redis as a queue manager.</p>
<p dir="auto">After some time the server is running,</p>
<p dir="auto">My celery is restarting every time showing this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2013-05-06 04:00:01,586: ERROR/MainProcess] Unrecoverable error: TypeError(&quot;can't compare offset-naive and offset-aware datetimes&quot;,)
Traceback (most recent call last):
  File &quot;/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/__init__.py&quot;, line 363, in start
    component.start()
  File &quot;/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/consumer.py&quot;, line 395, in start
    self.consume_messages()
  File &quot;/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/consumer.py&quot;, line 480, in consume_messages
    readers[fileno](fileno, event)
  File &quot;/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/kombu/transport/redis.py&quot;, line 770, in handle_event
    self._callbacks[queue](message)
  File &quot;/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/kombu/transport/virtual/__init__.py&quot;, line 480, in _callback
    return callback(message)
  File &quot;/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/kombu/messaging.py&quot;, line 562, in _receive_callback
    return on_m(message) if on_m else self.receive(decoded, message)
  File &quot;/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/kombu/messaging.py&quot;, line 531, in receive
    [callback(body, message) for callback in callbacks]
  File &quot;/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/consumer.py&quot;, line 438, in on_task_received
    strategies[name](message, body, message.ack_log_error)
  File &quot;/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/strategy.py&quot;, line 25, in task_message_handler
    delivery_info=message.delivery_info))
  File &quot;/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/consumer.py&quot;, line 511, in on_task
    if task.revoked():
  File &quot;/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/job.py&quot;, line 296, in revoked
    expired = self.maybe_expire()
  File &quot;/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/job.py&quot;, line 267, in maybe_expire
    if now &gt; self.expires:
TypeError: can't compare offset-naive and offset-aware datetimes
[2013-05-06 04:00:01,589: INFO/MainProcess] Celerybeat: Shutting down...
[2013-05-06 04:00:01,590: WARNING/MainProcess] Restoring 1 unacknowledged message(s)."><pre class="notranslate"><code class="notranslate">[2013-05-06 04:00:01,586: ERROR/MainProcess] Unrecoverable error: TypeError("can't compare offset-naive and offset-aware datetimes",)
Traceback (most recent call last):
  File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/__init__.py", line 363, in start
    component.start()
  File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 395, in start
    self.consume_messages()
  File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 480, in consume_messages
    readers[fileno](fileno, event)
  File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/kombu/transport/redis.py", line 770, in handle_event
    self._callbacks[queue](message)
  File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/kombu/transport/virtual/__init__.py", line 480, in _callback
    return callback(message)
  File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/kombu/messaging.py", line 562, in _receive_callback
    return on_m(message) if on_m else self.receive(decoded, message)
  File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/kombu/messaging.py", line 531, in receive
    [callback(body, message) for callback in callbacks]
  File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 438, in on_task_received
    strategies[name](message, body, message.ack_log_error)
  File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/strategy.py", line 25, in task_message_handler
    delivery_info=message.delivery_info))
  File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 511, in on_task
    if task.revoked():
  File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/job.py", line 296, in revoked
    expired = self.maybe_expire()
  File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/job.py", line 267, in maybe_expire
    if now &gt; self.expires:
TypeError: can't compare offset-naive and offset-aware datetimes
[2013-05-06 04:00:01,589: INFO/MainProcess] Celerybeat: Shutting down...
[2013-05-06 04:00:01,590: WARNING/MainProcess] Restoring 1 unacknowledged message(s).
</code></pre></div>
<p dir="auto">I believe this issue is supposed to be fixed in the versions of DjCelery and Celery I'm using, but I'm still getting TypeErrors thrown when I try any variation of python manage.py celeryd</p>
<p dir="auto">Of note, I'm also using Postgre 9.1.9 on Ubuntu and a Linode server.</p>
<p dir="auto">Here's the traceback:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    [2013-04-19 15:35:30,610: WARNING/MainProcess] celery@convconv ready.
[2013-04-19 15:35:30,657: ERROR/MainProcess] Unrecoverable error: TypeError(&quot;can't compare offset-naive and offset-aware datetimes&quot;,)
Traceback (most recent call last):
  File &quot;/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/__init__.py&quot;, line 363, in start
    component.start()
  File &quot;/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/consumer.py&quot;, line 395, in start
    self.consume_messages()
  File &quot;/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/consumer.py&quot;, line 480, in consume_messages
    readers[fileno](fileno, event)
  File &quot;/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/kombu/connection.py&quot;, line 291, in drain_nowait
    self.drain_events(timeout=0)
  File &quot;/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/kombu/connection.py&quot;, line 280, in drain_events
    return self.transport.drain_events(self.connection, **kwargs)
  File &quot;/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/kombu/transport/pyamqp.py&quot;, line 91, in drain_events
    return connection.drain_events(**kwargs)
  File &quot;/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/amqp/connection.py&quot;, line 288, in drain_events
    return amqp_method(channel, args, content)
  File &quot;/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/amqp/channel.py&quot;, line 1886, in _basic_deliver
    fun(msg)
  File &quot;/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/kombu/messaging.py&quot;, line 562, in _receive_callback
    return on_m(message) if on_m else self.receive(decoded, message)
  File &quot;/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/kombu/messaging.py&quot;, line 531, in receive
    [callback(body, message) for callback in callbacks]
  File &quot;/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/consumer.py&quot;, line 438, in on_task_received
    strategies[name](message, body, message.ack_log_error)
  File &quot;/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/strategy.py&quot;, line 25, in task_message_handler
    delivery_info=message.delivery_info))
  File &quot;/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/consumer.py&quot;, line 511, in on_task
    if task.revoked():
  File &quot;/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/job.py&quot;, line 296, in revoked
    expired = self.maybe_expire()
  File &quot;/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/job.py&quot;, line 267, in maybe_expire
    if now &gt; self.expires:
TypeError: can't compare offset-naive and offset-aware datetimes"><pre class="notranslate"><code class="notranslate">    [2013-04-19 15:35:30,610: WARNING/MainProcess] celery@convconv ready.
[2013-04-19 15:35:30,657: ERROR/MainProcess] Unrecoverable error: TypeError("can't compare offset-naive and offset-aware datetimes",)
Traceback (most recent call last):
  File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/__init__.py", line 363, in start
    component.start()
  File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 395, in start
    self.consume_messages()
  File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 480, in consume_messages
    readers[fileno](fileno, event)
  File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/kombu/connection.py", line 291, in drain_nowait
    self.drain_events(timeout=0)
  File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/kombu/connection.py", line 280, in drain_events
    return self.transport.drain_events(self.connection, **kwargs)
  File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/kombu/transport/pyamqp.py", line 91, in drain_events
    return connection.drain_events(**kwargs)
  File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/amqp/connection.py", line 288, in drain_events
    return amqp_method(channel, args, content)
  File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/amqp/channel.py", line 1886, in _basic_deliver
    fun(msg)
  File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/kombu/messaging.py", line 562, in _receive_callback
    return on_m(message) if on_m else self.receive(decoded, message)
  File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/kombu/messaging.py", line 531, in receive
    [callback(body, message) for callback in callbacks]
  File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 438, in on_task_received
    strategies[name](message, body, message.ack_log_error)
  File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/strategy.py", line 25, in task_message_handler
    delivery_info=message.delivery_info))
  File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 511, in on_task
    if task.revoked():
  File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/job.py", line 296, in revoked
    expired = self.maybe_expire()
  File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/job.py", line 267, in maybe_expire
    if now &gt; self.expires:
TypeError: can't compare offset-naive and offset-aware datetimes
</code></pre></div>