Bug 733569 - fpaste-server does not require mod_wsgi
Summary: fpaste-server does not require mod_wsgi
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: fpaste-server
Version: el5
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Clint Savage
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-26 03:38 UTC by Othman Madjoudj
Modified: 2011-08-26 13:21 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-26 04:28:11 UTC


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.