Fails to start when python-path contains multiple path components separated by a colon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fedora |
Won't Fix
|
Undecided
|
|||
mod-wsgi (Debian) |
New
|
Unknown
|
|||
mod-wsgi (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
Given a configuration of:
WSGIDaemonProcess X user=user group=group threads=10 python path=/opt/
apache's error log contains:
[Mon Jul 11 15:48:45.005148 2016] [mpm_event:notice] [pid 1654:tid 140660516243328] AH00489: Apache/2.4.18 (Ubuntu) mod_wsgi/4.3.0 Python/3.5.1+ configured -- resuming normal operations
[Mon Jul 11 15:48:45.005423 2016] [core:notice] [pid 1654:tid 140660516243328] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 11 15:48:45.082878 2016] [wsgi:error] [pid 1657:tid 140660516243328] mod_wsgi (pid=1657): Call to 'site.addsitedir()' failed for '(null)', stopping.
[Mon Jul 11 15:48:45.083149 2016] [wsgi:error] [pid 1657:tid 140660516243328] mod_wsgi (pid=1657): Call to 'site.addsitedir()' failed for '/opt/landing:
This is a known issue and has been fixed upstream: https:/
This is a regression from 14.04.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: libapache2-
ProcVersionSign
Uname: Linux 4.4.0-28-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Mon Jul 11 15:50:14 2016
SourcePackage: mod-wsgi
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in mod-wsgi (Debian): | |
status: | Unknown → New |
Changed in mod-wsgi (Ubuntu): | |
importance: | Undecided → High |
Changed in fedora: | |
importance: | Unknown → Undecided |
status: | Unknown → Won't Fix |
Description of problem:
When multiple directories are specified in python-path, mod_wsgi will fail to start
Version-Release number of selected component (if applicable): 3.5.1-7. fc24.x86_ 64 mod_wsgi- 4.4.8-4. fc24.x86_ 64
python3-
python3-
How reproducible:
Always
Steps to Reproduce: path=/srv/ httpd/django/ lib1:/srv/ httpd/django/ lib2 processes=2 threads=15 user=example group=example
1. Create mod_wsgi app
2. WSGIDaemonProcess example.com python-
3.
Actual results: django/ lib2'
mod_wsgi (pid=5175): Call to 'site.addsitedir()' failed for '(null)', stopping.
mod_wsgi (pid=5175): Call to 'site.addsitedir()' failed for '/srv/httpd/
Expected results:
App loads normally
Additional info: /github. com/GrahamDumpl eton/mod_ wsgi/issues/ 92
Upstream issue:
https:/
Workaround: use single directory in python-path=
## app.wsgi ('/srv/ httpd/django/ lib2') in app.wsgi
import site
site.addsitedir