statusbot UnicodeDecodeError

Bug #1270288 reported by Jeremy Stanley on 2014-01-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Core Infrastructure
Fix Released
Medium
James E. Blair

Bug Description

Statusbot terminates unexpectedly raising UnicodeDecodeError. The corresponding traceback looks like:

Traceback (most recent call last):
  File "/usr/local/bin/statusbot", line 9, in <module>
    load_entry_point('statusbot==a104892', 'console_scripts', 'statusbot')()
  File "/usr/local/lib/python2.7/dist-packages/statusbot/bot.py", line 373, in main
    _main(args.config)
  File "/usr/local/lib/python2.7/dist-packages/statusbot/bot.py", line 357, in _main
    bot.start()
  File "/usr/local/lib/python2.7/dist-packages/irc-8.3-py2.7.egg/irc/bot.py", line 260, in start
    super(SingleServerIRCBot, self).start()
  File "/usr/local/lib/python2.7/dist-packages/irc-8.3-py2.7.egg/irc/client.py", line 1212, in start
    self.ircobj.process_forever()
  File "/usr/local/lib/python2.7/dist-packages/irc-8.3-py2.7.egg/irc/client.py", line 264, in process_forever
    self.process_once(timeout)
  File "/usr/local/lib/python2.7/dist-packages/irc-8.3-py2.7.egg/irc/client.py", line 245, in process_once
    self.process_data(i)
  File "/usr/local/lib/python2.7/dist-packages/irc-8.3-py2.7.egg/irc/client.py", line 210, in process_data
    c.process_data()
  File "/usr/local/lib/python2.7/dist-packages/irc-8.3-py2.7.egg/irc/client.py", line 554, in process_data
    for line in self.buffer:
  File "/usr/local/lib/python2.7/dist-packages/irc-8.3-py2.7.egg/irc/buffer.py", line 84, in <genexpr>
    for line in super(DecodingLineBuffer, self).lines())
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 170: invalid start byte

Jeremy Stanley (fungi) wrote :

Same class of issue...

Traceback (most recent call last):
  File "/usr/local/bin/statusbot", line 9, in <module>
    load_entry_point('statusbot==a104892', 'console_scripts', 'statusbot')()
  File "/usr/local/lib/python2.7/dist-packages/statusbot/bot.py", line 373, in main
    _main(args.config)
  File "/usr/local/lib/python2.7/dist-packages/statusbot/bot.py", line 357, in _main
    bot.start()
  File "/usr/local/lib/python2.7/dist-packages/irc-8.3-py2.7.egg/irc/bot.py", line 260, in start
    super(SingleServerIRCBot, self).start()
  File "/usr/local/lib/python2.7/dist-packages/irc-8.3-py2.7.egg/irc/client.py", line 1212, in start
    self.ircobj.process_forever()
  File "/usr/local/lib/python2.7/dist-packages/irc-8.3-py2.7.egg/irc/client.py", line 264, in process_forever
    self.process_once(timeout)
  File "/usr/local/lib/python2.7/dist-packages/irc-8.3-py2.7.egg/irc/client.py", line 245, in process_once
    self.process_data(i)
  File "/usr/local/lib/python2.7/dist-packages/irc-8.3-py2.7.egg/irc/client.py", line 210, in process_data
    c.process_data()
  File "/usr/local/lib/python2.7/dist-packages/irc-8.3-py2.7.egg/irc/client.py", line 554, in process_data
    for line in self.buffer:
  File "/usr/local/lib/python2.7/dist-packages/irc-8.3-py2.7.egg/irc/buffer.py", line 84, in <genexpr>
    for line in super(DecodingLineBuffer, self).lines())
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 84: invalid continuation byte

Clark Boylan (cboylan) wrote :

This was fixed in Ie3661af84982bd54cebd1456b211cedb5495e2bb openstack-infra/statusbot change. Basically use a silly workaround as provided by upstream, but it seems to work.

Changed in openstack-ci:
status: Triaged → Fix Released
assignee: nobody → James E. Blair (corvus)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers