state-hiu / ittc-server-django

Front-End ITTC Server with Proxy, Cache, Logs, and Stats
MIT License
0 stars 3 forks source link

Celery GC / Seg Fault Error #15

Open state-hiu opened 9 years ago

state-hiu commented 9 years ago

Investigate the celery gc / seg fault errors:

Fatal Python error: GC object already tracked

Also,

*** Error in `/usr/bin/python': free(): invalid pointer: 0x00007fbca3cf35b0 ***

References http://stackoverflow.com/questions/10847620/celery-segmentation-fault https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736348#10

state-hiu commented 9 years ago

Not critical, since its infrequent and supervisor reboots celery immediately.

state-hiu commented 9 years ago

Wrap try except around connecting to memcache. Sometimes it is unavailable in direct thread ("bypass"), so we can assume its also unavilable in celery async.

https://github.com/state-hiu/ittc-server-django/blob/master/ittc/cache/tasks.py#L22

state-hiu commented 9 years ago

Hotfixed