Hi,
I am getting the following error after I moved the site from one server to another. Copied the database. The funny thing is it works sometimes and most of the times i get 500 internal error on the browser. On the error_log file here is what I am getting.
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] mod_wsgi (pid=22995): Exception occurred processing WSGI script '/opt/OSQA/osqa.wsgi'.
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] Traceback (most recent call last):
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] File "/opt/ActivePython-2.6/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 252, in __call__
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] response = middleware_method(request, response)
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] File "/opt/ActivePython-2.6/lib/python2.6/site-packages/django/contrib/sessions/middleware.py", line 36, in process_response
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] request.session.save()
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] File "/opt/ActivePython-2.6/lib/python2.6/site-packages/django/contrib/sessions/backends/db.py", line 63, in save
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] obj.save(force_insert=must_create, using=using)
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] File "/opt/ActivePython-2.6/lib/python2.6/site-packages/django/db/models/base.py", line 458, in save
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] self.save_base(using=using, force_insert=force_insert, force_update=force_update)
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] File "/opt/ActivePython-2.6/lib/python2.6/site-packages/django/db/models/base.py", line 551, in save_base
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] result = manager._insert(values, return_id=update_pk, using=using)
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] File "/opt/ActivePython-2.6/lib/python2.6/site-packages/django/db/models/manager.py", line 195, in _insert
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] return insert_query(self.model, values, **kwargs)
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] File "/opt/ActivePython-2.6/lib/python2.6/site-packages/django/db/models/query.py", line 1524, in insert_query
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] return query.get_compiler(using=using).execute_sql(return_id)
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] File "/opt/ActivePython-2.6/lib/python2.6/site-packages/django/db/models/sql/compiler.py", line 788, in execute_sql
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] cursor = super(SQLInsertCompiler, self).execute_sql(None)
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] File "/opt/ActivePython-2.6/lib/python2.6/site-packages/django/db/models/sql/compiler.py", line 732, in execute_sql
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] cursor.execute(sql, params)
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] File "/opt/ActivePython-2.6/lib/python2.6/site-packages/django/db/backends/sqlite3/base.py", line 200, in execute
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] return Database.Cursor.execute(self, query, params)
[Mon Oct 10 01:50:11 2011] [error] [client 110.36.105.95] DatabaseError: database disk image is malformed
asked
10 Oct '11, 02:03
eskimo
1●1
accept rate:
0%