login community faq

Here is an error log I'm getting after stopping and restarting apache, which is my final step in setting up OSQA:

[Mon Jul 23 17:45:23 2012] [warn] mod_wsgi: Compiled for Python/2.7.1.

[Mon Jul 23 17:45:23 2012] [warn] mod_wsgi: Runtime using Python/2.7.3.

[Mon Jul 23 17:45:23 2012] [notice] Apache/2.2.17 (Unix) mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations

[Tue Jul 24 01:26:11 2012] [notice] caught SIGTERM, shutting down

[Tue Jul 24 01:26:18 2012] [warn] mod_wsgi: Compiled for Python/2.7.1.

[Tue Jul 24 01:26:18 2012] [warn] mod_wsgi: Runtime using Python/2.7.3.

[Tue Jul 24 01:26:18 2012] [notice] Apache/2.2.17 (Unix) mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations

[Tue Jul 24 01:26:25 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 01:26:29 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 01:26:31 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 01:26:32 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 01:26:35 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 01:26:46 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 01:27:01 2012] [notice] caught SIGTERM, shutting down

[Tue Jul 24 01:27:06 2012] [warn] mod_wsgi: Compiled for Python/2.7.1.

[Tue Jul 24 01:27:06 2012] [warn] mod_wsgi: Runtime using Python/2.7.3.

[Tue Jul 24 01:27:06 2012] [notice] Apache/2.2.17 (Unix) mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations

[Tue Jul 24 01:27:09 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 01:27:13 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 01:27:16 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 01:27:51 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 01:27:55 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 01:27:57 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 01:28:45 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 01:28:53 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 01:29:10 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 01:29:12 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 01:30:13 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 01:30:14 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 01:36:50 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 01:37:58 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 01:38:00 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 04:48:09 2012] [notice] caught SIGTERM, shutting down

[Tue Jul 24 04:48:14 2012] [warn] mod_wsgi: Compiled for Python/2.7.1.

[Tue Jul 24 04:48:14 2012] [warn] mod_wsgi: Runtime using Python/2.7.3.

[Tue Jul 24 04:48:14 2012] [notice] Apache/2.2.17 (Unix) mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations

[Tue Jul 24 04:48:32 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 04:48:35 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 04:48:38 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 04:53:45 2012] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/davehust/osqa/osqa.wsgi

[Tue Jul 24 05:01:21 2012] [notice] caught SIGTERM, shutting down

[Tue Jul 24 05:09:33 2012] [warn] mod_wsgi: Compiled for Python/2.7.1.

[Tue Jul 24 05:09:33 2012] [warn] mod_wsgi: Runtime using Python/2.7.3.

[Tue Jul 24 05:09:33 2012] [notice] Apache/2.2.17 (Unix) mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations

[Tue Jul 24 05:34:14 2012] [notice] caught SIGTERM, shutting down

[Tue Jul 24 05:34:18 2012] [warn] mod_wsgi: Compiled for Python/2.7.1.

[Tue Jul 24 05:34:18 2012] [warn] mod_wsgi: Runtime using Python/2.7.3.

[Tue Jul 24 05:34:18 2012] [notice] Apache/2.2.17 (Unix) mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations

[Tue Jul 24 01:34:33 2012] [error] [client 127.0.0.1] mod_wsgi (pid=3117): Exception occurred processing WSGI script '/home/davehust/webapps/qa/osqa.wsgi'.

[Tue Jul 24 01:34:33 2012] [error] [client 127.0.0.1] Traceback (most recent call last):

[Tue Jul 24 01:34:33 2012] [error] [client 127.0.0.1] File "/home/davehust/webapps/qa/lib/python2.7/django/core/handlers/wsgi.py", line 219, in call

[Tue Jul 24 01:34:33 2012] [error] [client 127.0.0.1]
self.load_middleware()

[Tue Jul 24 01:34:33 2012] [error] [client 127.0.0.1] File "/home/davehust/webapps/qa/lib/python2.7/django/core/handlers/base.py", line 51, in load_middleware

[Tue Jul 24 01:34:33 2012] [error] [client 127.0.0.1] raise exceptions.ImproperlyConfigured('Middleware module "%s" does not define a "%s" class' % (mw_module, mw_classname))

[Tue Jul 24 01:34:33 2012] [error] [client 127.0.0.1] ImproperlyConfigured: Middleware module "django.middleware.csrf" does not define a "CsrfResponseMiddleware" class

[Tue Jul 24 01:34:36 2012] [error] [client 127.0.0.1] mod_wsgi (pid=3117): Exception occurred processing WSGI script '/home/davehust/webapps/qa/osqa.wsgi'.

[Tue Jul 24 01:34:36 2012] [error] [client 127.0.0.1] Traceback (most recent call last):

[Tue Jul 24 01:34:36 2012] [error] [client 127.0.0.1] File "/home/davehust/webapps/qa/lib/python2.7/django/core/handlers/wsgi.py", line 219, in call

[Tue Jul 24 01:34:36 2012] [error] [client 127.0.0.1]
self.load_middleware()

[Tue Jul 24 01:34:36 2012] [error] [client 127.0.0.1] File "/home/davehust/webapps/qa/lib/python2.7/django/core/handlers/base.py", line 51, in load_middleware

[Tue Jul 24 01:34:36 2012] [error] [client 127.0.0.1] raise exceptions.ImproperlyConfigured('Middleware module "%s" does not define a "%s" class' % (mw_module, mw_classname))

[Tue Jul 24 01:34:36 2012] [error] [client 127.0.0.1] ImproperlyConfigured: Middleware module "django.middleware.csrf" does not define a "CsrfResponseMiddleware" class

[Tue Jul 24 01:40:40 2012] [error] [client 127.0.0.1] mod_wsgi (pid=3118): Exception occurred processing WSGI script '/home/davehust/webapps/qa/osqa.wsgi'.

[Tue Jul 24 01:40:40 2012] [error] [client 127.0.0.1] Traceback (most recent call last):

[Tue Jul 24 01:40:40 2012] [error] [client 127.0.0.1] File "/home/davehust/webapps/qa/lib/python2.7/django/core/handlers/wsgi.py", line 219, in call

[Tue Jul 24 01:40:40 2012] [error] [client 127.0.0.1]
self.load_middleware()

[Tue Jul 24 01:40:40 2012] [error] [client 127.0.0.1] File "/home/davehust/webapps/qa/lib/python2.7/django/core/handlers/base.py", line 51, in load_middleware

[Tue Jul 24 01:40:40 2012] [error] [client 127.0.0.1] raise exceptions.ImproperlyConfigured('Middleware module "%s" does not define a "%s" class' % (mw_module, mw_classname))

[Tue Jul 24 01:40:40 2012] [error] [client 127.0.0.1] ImproperlyConfigured: Middleware module "django.middleware.csrf" does not define a "CsrfResponseMiddleware" class

[Tue Jul 24 05:40:49 2012] [notice] caught SIGTERM, shutting down

[Tue Jul 24 05:40:54 2012] [warn] mod_wsgi: Compiled for Python/2.7.1.

[Tue Jul 24 05:40:54 2012] [warn] mod_wsgi: Runtime using Python/2.7.3.

[Tue Jul 24 05:40:54 2012] [notice] Apache/2.2.17 (Unix) mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations

[Tue Jul 24 01:40:59 2012] [error] [client 127.0.0.1] mod_wsgi (pid=4050): Exception occurred processing WSGI script '/home/davehust/webapps/qa/osqa.wsgi'.

[Tue Jul 24 01:40:59 2012] [error] [client 127.0.0.1] Traceback (most recent call last):

[Tue Jul 24 01:40:59 2012] [error] [client 127.0.0.1] File "/home/davehust/webapps/qa/lib/python2.7/django/core/handlers/wsgi.py", line 219, in call

[Tue Jul 24 01:40:59 2012] [error] [client 127.0.0.1]
self.load_middleware()

[Tue Jul 24 01:40:59 2012] [error] [client 127.0.0.1] File "/home/davehust/webapps/qa/lib/python2.7/django/core/handlers/base.py", line 51, in load_middleware

[Tue Jul 24 01:40:59 2012] [error] [client 127.0.0.1] raise exceptions.ImproperlyConfigured('Middleware module "%s" does not define a "%s" class' % (mw_module, mw_classname))

[Tue Jul 24 01:40:59 2012] [error] [client 127.0.0.1] ImproperlyConfigured: Middleware module "django.middleware.csrf" does not define a "CsrfResponseMiddleware" class

[Tue Jul 24 01:41:05 2012] [error] [client 127.0.0.1] mod_wsgi (pid=4050): Exception occurred processing WSGI script '/home/davehust/webapps/qa/osqa.wsgi'.

[Tue Jul 24 01:41:05 2012] [error] [client 127.0.0.1] Traceback (most recent call last):

[Tue Jul 24 01:41:05 2012] [error] [client 127.0.0.1] File "/home/davehust/webapps/qa/lib/python2.7/django/core/handlers/wsgi.py", line 219, in call

[Tue Jul 24 01:41:05 2012] [error] [client 127.0.0.1]
self.load_middleware()

[Tue Jul 24 01:41:05 2012] [error] [client 127.0.0.1] File "/home/davehust/webapps/qa/lib/python2.7/django/core/handlers/base.py", line 51, in load_middleware

[Tue Jul 24 01:41:05 2012] [error] [client 127.0.0.1] raise exceptions.ImproperlyConfigured('Middleware module "%s" does not define a "%s" class' % (mw_module, mw_classname))

[Tue Jul 24 01:41:05 2012] [error] [client 127.0.0.1] ImproperlyConfigured: Middleware module "django.middleware.csrf" does not define a "CsrfResponseMiddleware" class

[Tue Jul 24 07:49:25 2012] [error] [client 127.0.0.1] mod_wsgi (pid=4049): Exception occurred processing WSGI script '/home/davehust/webapps/qa/osqa.wsgi'.

[Tue Jul 24 07:49:25 2012] [error] [client 127.0.0.1] Traceback (most recent call last):

[Tue Jul 24 07:49:25 2012] [error] [client 127.0.0.1] File "/home/davehust/webapps/qa/lib/python2.7/django/core/handlers/wsgi.py", line 219, in call

[Tue Jul 24 07:49:25 2012] [error] [client 127.0.0.1]
self.load_middleware()

[Tue Jul 24 07:49:25 2012] [error] [client 127.0.0.1] File "/home/davehust/webapps/qa/lib/python2.7/django/core/handlers/base.py", line 51, in load_middleware

[Tue Jul 24 07:49:25 2012] [error] [client 127.0.0.1] raise exceptions.ImproperlyConfigured('Middleware module "%s" does not define a "%s" class' % (mw_module, mw_classname))

[Tue Jul 24 07:49:25 2012] [error] [client 127.0.0.1] ImproperlyConfigured: Middleware module "django.middleware.csrf" does not define a "CsrfResponseMiddleware" class

[Tue Jul 24 07:49:27 2012] [error] [client 127.0.0.1] mod_wsgi (pid=4050): Exception occurred processing WSGI script '/home/davehust/webapps/qa/osqa.wsgi'.

[Tue Jul 24 07:49:27 2012] [error] [client 127.0.0.1] Traceback (most recent call last):

[Tue Jul 24 07:49:27 2012] [error] [client 127.0.0.1] File "/home/davehust/webapps/qa/lib/python2.7/django/core/handlers/wsgi.py", line 219, in call

[Tue Jul 24 07:49:27 2012] [error] [client 127.0.0.1]
self.load_middleware()

[Tue Jul 24 07:49:27 2012] [error] [client 127.0.0.1] File "/home/davehust/webapps/qa/lib/python2.7/django/core/handlers/base.py", line 51, in load_middleware

[Tue Jul 24 07:49:27 2012] [error] [client 127.0.0.1] raise exceptions.ImproperlyConfigured('Middleware module "%s" does not define a "%s" class' % (mw_module, mw_classname))

[Tue Jul 24 07:49:27 2012] [error] [client 127.0.0.1] ImproperlyConfigured: Middleware module "django.middleware.csrf" does not define a "CsrfResponseMiddleware" class

[Tue Jul 24 11:59:40 2012] [notice] caught SIGTERM, shutting down

[Tue Jul 24 12:04:47 2012] [warn] mod_wsgi: Compiled for Python/2.7.1.

[Tue Jul 24 12:04:47 2012] [warn] mod_wsgi: Runtime using Python/2.7.3.

[Tue Jul 24 12:04:47 2012] [notice] Apache/2.2.17 (Unix) mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations

[Tue Jul 24 12:04:52 2012] [notice] caught SIGTERM, shutting down

[Tue Jul 24 12:04:57 2012] [warn] mod_wsgi: Compiled for Python/2.7.1.

[Tue Jul 24 12:04:57 2012] [warn] mod_wsgi: Runtime using Python/2.7.3.

[Tue Jul 24 12:04:57 2012] [notice] Apache/2.2.17 (Unix) mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations

[Tue Jul 24 08:04:59 2012] [error] [client 127.0.0.1] mod_wsgi (pid=30136): Exception occurred processing WSGI script '/home/davehust/webapps/qa/osqa.wsgi'.

[Tue Jul 24 08:04:59 2012] [error] [client 127.0.0.1] Traceback (most recent call last):

[Tue Jul 24 08:04:59 2012] [error] [client 127.0.0.1] File "/home/davehust/webapps/qa/lib/python2.7/django/core/handlers/wsgi.py", line 219, in call

[Tue Jul 24 08:04:59 2012] [error] [client 127.0.0.1]
self.load_middleware()

[Tue Jul 24 08:04:59 2012] [error] [client 127.0.0.1] File "/home/davehust/webapps/qa/lib/python2.7/django/core/handlers/base.py", line 51, in load_middleware

[Tue Jul 24 08:04:59 2012] [error] [client 127.0.0.1] raise exceptions.ImproperlyConfigured('Middleware module "%s" does not define a "%s" class' % (mw_module, mw_classname))

[Tue Jul 24 08:04:59 2012] [error] [client 127.0.0.1] ImproperlyConfigured: Middleware module "django.middleware.csrf" does not define a "CsrfResponseMiddleware" class

[Tue Jul 24 08:05:01 2012] [error] [client 127.0.0.1] mod_wsgi (pid=30137): Exception occurred processing WSGI script '/home/davehust/webapps/qa/osqa.wsgi'.

[Tue Jul 24 08:05:01 2012] [error] [client 127.0.0.1] Traceback (most recent call last):

[Tue Jul 24 08:05:01 2012] [error] [client 127.0.0.1] File "/home/davehust/webapps/qa/lib/python2.7/django/core/handlers/wsgi.py", line 219, in call

[Tue Jul 24 08:05:01 2012] [error] [client 127.0.0.1]
self.load_middleware()

[Tue Jul 24 08:05:01 2012] [error] [client 127.0.0.1] File "/home/davehust/webapps/qa/lib/python2.7/django/core/handlers/base.py", line 51, in load_middleware

[Tue Jul 24 08:05:01 2012] [error] [client 127.0.0.1] raise exceptions.ImproperlyConfigured('Middleware module "%s" does not define a "%s" class' % (mw_module, mw_classname))

[Tue Jul 24 08:05:01 2012] [error] [client 127.0.0.1] ImproperlyConfigured: Middleware module "django.middleware.csrf" does not define a "CsrfResponseMiddleware" class

I'm guessing this is happening because a file is not pointing to the correct location of the OSQA installation folder. According to the error above it looks like it's looking for it at /home/davehust/osqa/osqa.wsgi

and in the httpd.conf file I made it so it should point to the correct folder by changing the alias to

WSGIScriptAlias / /home/davehust/webapps/qa/osqa.wsgi

What do I need to do now?

Thanks, Dave

asked Jul 24 '12 at 07:09

tazboy's gravatar image

tazboy
32

edited Jul 24 '12 at 07:24


If you have't already, you need to restart the apache server in the django installation. you can do that by running: /home/USERNAME/webapps/OSQA_INSTALL/apache2/bin/restart

I have recently been installing OSQA as well, and found that you MUST be using Python2.6, if that helps you any.

answered Jul 24 '12 at 11:56

dykeag's gravatar image

dykeag
1

I just checked your error log, and based on the latest errors I see there, e.g. ..

1
ImproperlyConfigured: Middleware module "django.middleware.csrf" does not define a "CsrfResponseMiddleware" class

.. I believe the problem is that you've installed OSQA manually with Django 1.4.

I don't believe that OSQA is compatible with anything beyond Django 1.3 at this time.

My recommendation is that you start over using our OSQA installer.

Hope that helps!

answered Jul 24 '12 at 12:17

seanf's gravatar image

seanf ♦♦
56291220

Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×42

Asked: Jul 24 '12 at 07:09

Seen: 446 times

Last updated: Jul 24 '12 at 12:17

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited