Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3084 by [email protected]: Import Error of
django.core.handlers.wsgi
http://code.google.com/p/reviewboard/issues/detail?id=3084
What version are you running?
RB 1.7.13, Django 1.4.6, Python 2.6.6, mod_wsgi 3.3, Apache 2.2.16
What's the URL of the page containing the problem?
First page ever to load. E.G. Fails to start
What steps will reproduce the problem?
1. Install RB as instructed.
2. Install-config with rb-site install
3. adjust apache site-... files.
What is the expected output? What do you see instead?
Expected: The RB site loaded.
Instead: Internal server error
What operating system are you using? What browser?
Debian 6
Please provide any additional information below.
apache error.log reads:
[Mon Sep 09 11:40:03 2013] [notice] Apache/2.2.16 (Debian) mod_wsgi/3.3
Python/2.6.6 configured -- resuming normal operations
[Mon Sep 09 11:40:13 2013] [error] [client 10.15.15.11] mod_wsgi
(pid=12976): Target WSGI
script '/var/www/czsrv-cbreview01/htdocs/reviewboard.wsgi' cannot be loaded
as Python module.
[Mon Sep 09 11:40:13 2013] [error] [client 10.15.15.11] mod_wsgi
(pid=12976): Exception occurred processing WSGI
script '/var/www/czsrv-cbreview01/htdocs/reviewboard.wsgi'.
[Mon Sep 09 11:40:13 2013] [error] [client 10.15.15.11] Traceback (most
recent call last):
[Mon Sep 09 11:40:13 2013] [error] [client 10.15.15.11]
File "/var/www/czsrv-cbreview01/htdocs/reviewboard.wsgi", line 11, in
<module>
[Mon Sep 09 11:40:13 2013] [error] [client 10.15.15.11] import
django.core.handlers.wsgi
[Mon Sep 09 11:40:13 2013] [error] [client 10.15.15.11] ImportError: No
module named django.core.handlers.wsgi
[Mon Sep 09 11:40:13 2013] [error] [client 10.15.15.11] Symbolic link not
allowed or link target not accessible:
/var/www/czsrv-cbreview01/htdocs/errordocs
----------------------------------------------------------
reviewboard.wsgi in htdocs is:
import os
import sys
os.environ['DJANGO_SETTINGS_MODULE'] = "reviewboard.settings"
os.environ['PYTHON_EGG_CACHE'] = "/var/www/czsrv-cbreview01/tmp/egg_cache"
os.environ['HOME'] = "/var/www/czsrv-cbreview01/data"
os.environ['PYTHONPATH'] = '/var/www/czsrv-cbreview01/conf:' +
os.environ.get('PYTHONPATH', '')
sys.path = ['/var/www/czsrv-cbreview01/conf'] + sys.path
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
----------------------------------------------------------
in python run as sudo the import works fine, righs change on libs folders
did not help
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/groups/opt_out.