Bug 1340730 - UnicodeDecodeError when celery executes a task
Summary: UnicodeDecodeError when celery executes a task
Keywords:
Status: NEW
Alias: None
Product: TCMS
Classification: Other
Component: Application
Version: Devel
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: cqi
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-30 07:50 UTC by cqi
Modified: 2021-02-16 02:44 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description cqi 2016-05-30 07:50:38 UTC
Description of problem:

[2015-02-10 12:55:46,801: ERROR/MainProcess] Thread Timer crashed: UnicodeDecodeError('ascii', "tcms.core.utils.mailto.blocking_mailto('mail/new_run.txt', u'New run create from plan 6358: Clustering - IPv6 certification (dualstack) 6.4.0.ER\\u011b', [u'mvinkler@redhat.com'], {'test_run': <TestRun: Clustering - IPv6 certification (dualstack) 6.4.0.ER\xc4\x9b>}, None)", 254, 255, 'ordinal not in range(128)')
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/celery/utils/timer2.py", line 71, in run
    delay = self._next_entry()
  File "/usr/lib/python2.6/site-packages/celery/utils/timer2.py", line 57, in _next_entry
    delay, entry = next(self.scheduler)
  File "/usr/lib/python2.6/site-packages/kombu/async/timer.py", line 200, in __iter__
    eventB = pop(queue)
  File "/usr/lib/python2.6/site-packages/kombu/async/timer.py", line 93, in __eq__
    return hash(self) == hash(other)
  File "/usr/lib/python2.6/site-packages/kombu/async/timer.py", line 77, in __hash__
    return hash((self.fun, repr(self.args), repr(self.kwargs)))
  File "/usr/lib/python2.6/site-packages/celery/worker/job.py", line 551, in __repr__
    reprcall(self.name, self.args, self.kwargs))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 254: ordinal not in range(128)
[2015-02-10 12:55:47,005: ERROR/Worker-8] Pool process <Worker(Worker-8, started daemon)> error: OSError(32, 'Broken pipe')
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/billiard/pool.py", line 288, in run
    sys.exit(self.workloop(pid=pid))
  File "/usr/lib64/python2.6/site-packages/billiard/pool.py", line 372, in workloop
    put((READY, (job, i, (False, einfo), inqW_fd)))
  File "/usr/lib64/python2.6/site-packages/billiard/queues.py", line 362, in put
    return send(obj)

Comment 1 cqi 2016-05-30 07:52:30 UTC
[2015-02-10 12:55:46,801: ERROR/MainProcess] Thread Timer crashed: UnicodeDecodeError('ascii', "tcms.core.utils.mailto.blocking_mailto('mail/new_run.txt', u'New run create from plan 6358: Clustering - IPv6 certification (dualstack) 6.4.0.ER\\u011b', [u'mvinkler@redhat.com'], {'test_run': <TestRun: Clustering - IPv6 certification (dualstack) 6.4.0.ER\xc4\x9b>}, None)", 254, 255, 'ordinal not in range(128)
')
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/celery/utils/timer2.py", line 71, in run
    delay = self._next_entry()
  File "/usr/lib/python2.6/site-packages/celery/utils/timer2.py", line 57, in _next_entry
    delay, entry = next(self.scheduler)
  File "/usr/lib/python2.6/site-packages/kombu/async/timer.py", line 200, in __iter__
    eventB = pop(queue)
  File "/usr/lib/python2.6/site-packages/kombu/async/timer.py", line 93, in __eq__
    return hash(self) == hash(other)
  File "/usr/lib/python2.6/site-packages/kombu/async/timer.py", line 77, in __hash__
    return hash((self.fun, repr(self.args), repr(self.kwargs)))
  File "/usr/lib/python2.6/site-packages/celery/worker/job.py", line 551, in __repr__
    reprcall(self.name, self.args, self.kwargs))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 254: ordinal not in range(128)
[2015-02-10 12:55:47,005: ERROR/Worker-8] Pool process <Worker(Worker-8, started daemon)> error: OSError(32, 'Broken pipe')
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/billiard/pool.py", line 288, in run
    sys.exit(self.workloop(pid=pid))

[2016-05-30 14:51:22,807: ERROR/MainProcess] Thread Timer crashed: UnicodeDecodeError('ascii', "tcms.core.utils.mailto.blocking_mailto('mail/new_run.txt', u'New run create from plan 6796: CCC Retention / \\u200bRHEL-6.8-20160115.n.\\u200b0', [u'cc-jenkins.lab.eng.brq.redhat.@redhat.com'], {'test_run': <TestRun: CCC Retention / \xe2\x80\x8bRHEL-6.8-20160115.n.\xe2\x80\x8b0>}, None)", 231, 232, 'ordinal no
t in range(128)')
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/celery/utils/timer2.py", line 71, in run
    delay = self._next_entry()
  File "/usr/lib/python2.6/site-packages/celery/utils/timer2.py", line 57, in _next_entry
    delay, entry = next(self.scheduler)
  File "/usr/lib/python2.6/site-packages/kombu/async/timer.py", line 200, in __iter__
    eventB = pop(queue)
  File "/usr/lib/python2.6/site-packages/kombu/async/timer.py", line 93, in __eq__
    return hash(self) == hash(other)
  File "/usr/lib/python2.6/site-packages/kombu/async/timer.py", line 77, in __hash__
    return hash((self.fun, repr(self.args), repr(self.kwargs)))
  File "/usr/lib/python2.6/site-packages/celery/worker/job.py", line 551, in __repr__
    reprcall(self.name, self.args, self.kwargs))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 231: ordinal not in range(128)


Note You need to log in before you can comment on or make changes to this bug.