naparuba/shinken — Issue #19: Memcache retention module issue
Author: Frescha
Created: 2011-10-28 18:32:51+00:00
State: open
Labels: Scheduler

Hi,

An exception is raised when memcache retention module try to load data:

2011-10-28 04:31:32,530 [1319790692] The instance MemcacheRetention? raise an exception Keys must be str()'s, notunicode. Convert your unicode strings using mystring.encode(charset)!. I disable it and set it t
o restart it later

2011-10-28 04:31:32,550 [1319790692] Back trace of this remove : Traceback (most recent call last):

File "/usr/lib/python2.5/site-packages/shinken/scheduler.py", line 274, in hook_point

f(self)

File "/usr/lib/python2.5/site-packages/shinken/modules/memcache_retention_scheduler.py", line 104, in hook_load_retention

val = self.mc.get(key)

File "/var/lib/python-support/python2.5/memcache.py", line 619, in get

check_key(key)

File "/var/lib/python-support/python2.5/memcache.py", line 878, in check_key

raise Client.MemcachedStringEncodingError?, ("Keys must be str()'s, not"

MemcachedStringEncodingError?: Keys must be str()'s, notunicode. Convert your unicode strings using mystring.encode(charset)!

It seems to be a key encoding issue.

Rémi