Revision history [back]
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.6/dist-packages/keyedcache/__init__.py", line 198, in cache_get
obj = cache.get(key)
File "/usr/local/lib/python2.6/dist-packages/django/core/cache/backends/db.py", line 62, in get
"WHERE cache_key = %%s" % table, [key])
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
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 459, in execute_manager
utility.execute()
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 196, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 231, in execute
self.validate()
File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 266, in validate
num_errors = get_validation_errors(s, app)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/validation.py", line 30, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File "/usr/local/lib/python2.6/dist-packages/django/db/models/loading.py", line 158, in get_app_errors
self._populate()
File "/usr/local/lib/python2.6/dist-packages/django/db/models/loading.py", line 64, in _populate
self.load_app(app_name, True)
File "/usr/local/lib/python2.6/dist-packages/django/db/models/loading.py", line 88, in load_app
models = import_module('.models', app_name)
File "/usr/local/lib/python2.6/dist-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/models/__init__.py", line 39, in <module>
from askbot.models.question import Thread
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/models/question.py", line 26, in <module>
from askbot.models.post import Post, PostRevision
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/models/post.py", line 28, in <module>
from askbot.models.user import Activity
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/models/user.py", line 20, in <module>
from askbot.forms import DomainNameField
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/forms.py", line 716, in <module>
class NotARobotForm(forms.Form):
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/forms.py", line 718, in NotARobotForm
private_key=askbot_settings.RECAPTCHA_SECRET,
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/conf/settings_wrapper.py", line 50, in __getattr__
return getattr(self.__instance, key).value
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/deps/livesettings/values.py", line 384, in value
val = self._value()
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/deps/livesettings/values.py", line 340, in _value
raise SettingNotSet("Startup error, couldn't load %s.%s" %(self.group.key, self.key))
askbot.deps.livesettings.models.SettingNotSet: ("Startup error, couldn't load EXTERNAL_KEYS.RECAPTCHA_SECRET", None)
Note:
DatabaseError: FEHLER: aktuelle Transaktion wurde abgebrochen, Befehle werden bis zum Ende der Transaktion ignoriert
means something like
DatabaseError: ERROR: current transaction aborted, commands are ignored until end of transaction
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.6/dist-packages/keyedcache/__init__.py", line 198, in cache_get
obj = cache.get(key)
File "/usr/local/lib/python2.6/dist-packages/django/core/cache/backends/db.py", line 62, in get
"WHERE cache_key = %%s" % table, [key])
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
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 459, in execute_manager
utility.execute()
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 196, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 231, in execute
self.validate()
File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 266, in validate
num_errors = get_validation_errors(s, app)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/validation.py", line 30, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File "/usr/local/lib/python2.6/dist-packages/django/db/models/loading.py", line 158, in get_app_errors
self._populate()
File "/usr/local/lib/python2.6/dist-packages/django/db/models/loading.py", line 64, in _populate
self.load_app(app_name, True)
File "/usr/local/lib/python2.6/dist-packages/django/db/models/loading.py", line 88, in load_app
models = import_module('.models', app_name)
File "/usr/local/lib/python2.6/dist-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/models/__init__.py", line 39, in <module>
from askbot.models.question import Thread
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/models/question.py", line 26, in <module>
from askbot.models.post import Post, PostRevision
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/models/post.py", line 28, in <module>
from askbot.models.user import Activity
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/models/user.py", line 20, in <module>
from askbot.forms import DomainNameField
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/forms.py", line 716, in <module>
class NotARobotForm(forms.Form):
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/forms.py", line 718, in NotARobotForm
private_key=askbot_settings.RECAPTCHA_SECRET,
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/conf/settings_wrapper.py", line 50, in __getattr__
return getattr(self.__instance, key).value
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/deps/livesettings/values.py", line 384, in value
val = self._value()
File "/var/www/askbot.selfnet.de/askbotprojectgit/askbot/deps/livesettings/values.py", line 340, in _value
raise SettingNotSet("Startup error, couldn't load %s.%s" %(self.group.key, self.key))
askbot.deps.livesettings.models.SettingNotSet: ("Startup error, couldn't load EXTERNAL_KEYS.RECAPTCHA_SECRET", None)
Note:
DatabaseError: FEHLER: aktuelle Transaktion wurde abgebrochen, Befehle werden bis zum Ende der Transaktion ignoriert
means something like
DatabaseError: ERROR: current transaction aborted, commands are ignored until end of transaction