Impossible to syncdb
Hi there, since I got problems with the pip-version of askbot I am now trying to use the git version. But either there is a bug or I am just too bad to get it to work...
This time I can't even execute syncdb (see traceback below). I initialized a new database, copied my other project and replaced the askbot-app inside by the one from the current git master-branch. In my other installation I had the same problem, but I fixed it by emptying the database (I already created a cache table). This time the database is empty (I already recreated it) but the error occurs. I tried to put
EXTERNAL_KEYS = {
'RECAPTCHA_SECRET' : 'xxx'
}
in my settings.py. That didn't help. Also I created the cachetable (I use DB-caching) but it didn't help.
So now I'm stuck since a few hours with that and don't know how to fix this. Is there a known solution?
Many thanks for help in advance.
$ sudo python manage.py syncdb
/usr/local/lib/python2.6/dist-packages/django/conf/__init__.py:75: DeprecationWarning: The ADMIN_MEDIA_PREFIX setting has been removed; use STATIC_URL instead.
"use STATIC_URL instead.", DeprecationWarning)
/usr/local/lib/python2.6/dist-packages/django/core/cache/__init__.py:82: DeprecationWarning: settings.CACHE_* is deprecated; use settings.CACHES instead.
DeprecationWarning
Traceback (most recent call last):
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/deps/livesettings/values.py", line 306, in _value
val = self.setting.value
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/deps/livesettings/values.py", line 288, in _setting
return find_setting(self.group.key, self.key)
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/deps/livesettings/models.py", line 43, in find_setting
setting = cache_get(ck)
File "/usr/local/lib/python2.6/dist-packages/keyedcache/__init__.py", line 184, in cache_get
cache_require()
File "/usr/local/lib/python2.6/dist-packages/keyedcache/__init__.py", line 295, in cache_require
cache_set(key,value='1')
File "/usr/local/lib/python2.6/dist-packages/keyedcache/__init__.py", line 234, in cache_set
cache.set(key, val, length)
File "/usr/local/lib/python2.6/dist-packages/django/core/cache/backends/db.py", line 80, in set
self._base_set('set', key, value, timeout)
File "/usr/local/lib/python2.6/dist-packages/django/core/cache/backends/db.py", line 94, in _base_set
cursor.execute("SELECT COUNT(*) FROM %s" % table)
File "/usr/local/lib/python2.6/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 52, in execute
return self.cursor.execute(query, args)
DatabaseError: FEHLER: aktuelle Transaktion wurde abgebrochen, Befehle werden bis zum Ende der Transaktion ignoriert
("Startup error, couldn't load EXTERNAL_KEYS.RECAPTCHA_SECRET", None)
Traceback (most recent call last):
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/deps/livesettings/values.py", line 306, in _value
val = self.setting.value
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/deps/livesettings/values.py", line 288, in _setting
return find_setting(self.group.key, self.key)
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/deps/livesettings/models.py", line 43, in find_setting
setting = cache_get(ck)
File "/usr/local/lib/python2 ...
Comments