I first setup my site to use files as caching, but then the docs convinced me to change to memcached.
I set the value for memcaches location to:
unix:/tmp/memcached.sock
It saved, and the site continued to work for a while (including the admin
area), but all of a sudden it stopped working when I'd visit the admin area
(and only the admin area).
Now I see this in the console logs:
Feb 13 01:37:21 host rb-site[6331]: return self.tag_func(context, *args)
Feb 13 01:37:21 host rb-site[6331]: File
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.21-py2.7.egg/reviewboard/admin/templatetags/rbadmintags.py",
line 52, in admin_widget
Feb 13 01:37:21 host rb-site[6331]: return widget.render(request)
Feb 13 01:37:21 host rb-site[6331]: File
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.21-py2.7.egg/reviewboard/admin/widgets.py",
line 71, in render
Feb 13 01:37:21 host rb-site[6331]: self.data = self.generate_data(request)
Feb 13 01:37:21 host rb-site[6331]: File
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.21-py2.7.egg/reviewboard/admin/widgets.py",
line 260, in generate_data
Feb 13 01:37:21 host rb-site[6331]: cache_stats = get_cache_stats()
Feb 13 01:37:21 host rb-site[6331]: File
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.21-py2.7.egg/reviewboard/admin/cache_stats.py",
line 62, in get_cache_stats
Feb 13 01:37:21 host rb-site[6331]: s.connect((host, int(port)))
Feb 13 01:37:21 host rb-site[6331]: ValueError: invalid literal for int() with
base 10: '/tmp/memcached.sock'
I googled and saw a suggestion to change it to
"memcached://unix:/tmp/memcached.sock", but I can't:
$ rb-site manage /path/to/site.com set-siteconfig --
--key=cache_backend.default.LOCATION
--value="memcached://unix:/tmp/memcached.sock"
Error: Cannot set list keys
Help? Can't get work done. :-(
--
Please do not email me anything that you are not comfortable also sharing with
the NSA.
signature.asc
Description: Message signed with OpenPGP using GPGMail
