Strange error after restarting apache
Hello,
I have a question on askbot and apache.
Previously i changed the logo's etc from root (admin login) and it all works fine. logo displayed as it should, the site name etc.
Then i restart apache, and why after that when i access the page, all setting previously done is gone. and looks like it is reverted back to original layout?
Then i went in to the settings and tried to change them again but when i saved, i got internet server error, so i went to the log and here is what i have got: Could somebody point me why i got this error? Thanks.
Traceback (most recent call last):
File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response response = callback(request, callback_args, *callback_kwargs)
File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/views/decorators/cache.py", line 89, in _wrapped_view_func response = view_func(request, args, *kwargs)
File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/contrib/admin/views/decorators.py", line 16, in _checklogin return view_func(request, args, *kwargs)
File "/home/ec2-user/teachqasite/askbot/deps/livesettings/views.py", line 52, in group_settings request.user.message_set.create(message=e.message)
File "/home/ec2-user/teachqasite/askbot/models/__init__.py", line 151, in create return self.model_class.objects.create(user=self.user, **kwargs)
File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/db/models/manager.py", line 137, in create return self.get_query_set().create(**kwargs)
File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/db/models/query.py", line 377, in create obj.save(force_insert=True, using=self.db)
File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/db/models/base.py", line 463, in save self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/db/models/base.py", line 551, in save_base result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw)
File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/db/models/manager.py", line 203, in _insert return insert_query(self.model, objs, fields, **kwargs)
File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/db/models/query.py", line 1576, in insert_query return query.get_compiler(using=using).execute_sql(return_id)
File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/db/models/sql/compiler.py", line 910, in execute_sql cursor.execute(sql, params)
File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 52, in execute return self.cursor.execute(query, args)
DatabaseError: current transaction is aborted, commands ignored until end of transaction block
Comments