First time here? Check out the FAQ!
1

Impossible to syncdb

  • retag add tags

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 ...
(more)
asmaps's avatar
21
asmaps
asked 2012-12-09 15:55:31 -0500, updated 2012-12-09 15:57:58 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

Could you try installing askbot alone as is - does that work?

If it does - see what is the difference between the stock settings.py template and your version, that should give some clues.

Evgeny's avatar
13.2k
Evgeny
answered 2012-12-09 16:00:59 -0500
edit flag offensive 0 remove flag delete link

Comments

Thanks for that hint... somehow I didn't realize, that there were differences between my settings.py and the one in setup_templates. I copied the one from the templates and then syncdb guided me through finishing the settings (e.g. putting group_messaging). I'm sorry that I didn't realize this easy solution by myself. Thanks a lot (unfortunately I can't upvote your answer -.- )

asmaps's avatar asmaps (2012-12-09 16:22:47 -0500) edit

Could you email me your version of settings.py? (support@askbot.com) Maybe we could somehow fix our settings tester.

Evgeny's avatar Evgeny (2012-12-09 16:26:02 -0500) edit
add a comment see more comments