I'm running Ubuntu 10.04 and installed memcached which works fine locally. I installed the web2py stable 1.84.1 build and the stable wiki plugin from web2py.com. I followed the instructions at: http://web2py.com/book/default/section/11/12 to store the sessions in memcache for the provided Welcome app. Specifically, I created the 0_memcache.py model as instructed and I've tried adding the lines:
from gluon.contrib.memdb import MEMDB session.connect(request,response,db=MEMDB(cache.memcache)) to either db.py or 0_memcache.py. In either case, when I load the welcome app, the following ticket is generated: Traceback (most recent call last): File "/home/scott/Projects/web2py/gluon/main.py", line 391, in wsgibase session._try_store_in_db(request, response) File "/home/scott/Projects/web2py/gluon/globals.py", line 361, in _try_store_in_db record_id = table.insert(**dd) File "/home/scott/Projects/web2py/gluon/contrib/memdb.py", line 256, in insert id = self._create_id() File "/home/scott/Projects/web2py/gluon/contrib/memdb.py", line 291, in _create_id id = self._tableobj.incr(shard_id) File "/home/scott/Projects/web2py/gluon/contrib/memcache/ memcache.py", line 404, in incr return self._incrdecr("incr", key, delta) File "/home/scott/Projects/web2py/gluon/contrib/memcache/ memcache.py", line 428, in _incrdecr return int(line) ValueError: invalid literal for int() with base 10: 'NOT_FOUND' Suggestions are welcome!