Bug 733569

Summary: fpaste-server does not require mod_wsgi
Product: [Fedora] Fedora EPEL Reporter: Othman Madjoudj <athmanem>
Component: fpaste-serverAssignee: Clint Savage <herlo1>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: el5CC: herlo1, jonathansteffan, nb
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-26 04:28:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Othman Madjoudj 2011-08-26 03:38:49 UTC
Description of problem:

fpaste-server install a httpd config file which load mod_wsgi but the package does not require this module, thus httpd fails to start

# service httpd start
Starting httpd: httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/fpaste_server.conf: Cannot load /etc/httpd/modules/mod_wsgi.so into server: /etc/httpd/modules/mod_wsgi.so: cannot open shared object file: No such file or directory
                                                           [FAILED]
# head /etc/httpd/conf.d/fpaste_server.conf 
LoadModule wsgi_module modules/mod_wsgi.so

WSGIScriptAlias / /usr/lib/python2.4/site-packages/fpaste_server/conf/fpaste_server.wsgi

Alias /static /usr/lib/python2.4/site-packages/fpaste_server/static

<Directory /usr/lib/python2.4/site-packages/fpaste_server/static>
Order deny,allow
Allow from all
</Directory>


Version-Release number of selected component (if applicable):
fpaste-server-0.1-3.el5

  
Actual results:
fpaste-server does not require mod_wsgi

Expected results:
fpaste-server should require mod_wsgi

Additional info:

Installing mod_wsgi makes httpd start:

# service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd:                                            [  OK  ]

Comment 1 Clint Savage 2011-08-26 04:28:11 UTC
fpaste-server doesn't require mod_wsgi because it is a django application that could be run with nginx and fcgi.  Therefore, installing mod_wsgi is out of scope for fpaste-server.

Cheers,

Clint

Comment 2 Othman Madjoudj 2011-08-26 04:39:17 UTC
(In reply to comment #1)
> fpaste-server doesn't require mod_wsgi because it is a django application that
> could be run with nginx and fcgi.  Therefore, installing mod_wsgi is out of
> scope for fpaste-server.
> 

Sorry for misleading, 

my point was fpaste-server should not install httpd and fpaste_server.conf unless it's an application that work only with Apache httpd.

(fpaste-server pulls httpd)

# rpm -qR fpaste-server
/usr/bin/env  
config(fpaste-server) = 0.1-3.el5
django-dpaste >= 0.2.4
django-mptt >= 0.4.2
django-simple-captcha >= 0.2.0
django-tracking >= 0.2.7
httpd
python(abi) = 2.4
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1

Comment 3 Clint Savage 2011-08-26 13:21:19 UTC
Maybe not requiring apache is appropriate. I will update that in the next release, but I don't see the major harm including a sample config. I do note though, that a newer version is about to release to the repositories which fixes the fpaste_server.conf and renames it to fpaste_server.conf.sample so as to not break an already installed and configured apache instance.

fpaste-server-0.2-1

It can be found here, but I just promoted it to stable yesterday.

http://koji.fedoraproject.org/koji/packageinfo?packageID=11844

Cheers,

Clint