Issue #648
closedIf the WSGI application fails to start, wsgi_application() returns None
Description
Description of problem:
If the WSGI application fails to start for any reason, our wsgi_application() function returns None[0]. This is not helpful for debugging, especially if the problem is that logging isn't working correctly. It should raise an informative Exception when this happens instead. Currently, it will print an uninformative error message in /var/log/httpd/ssl_error_log[1].
Version-Release number of selected component (if applicable):
2.4.3
How reproducible:
Every time.
Steps to Reproduce:
1. Edit the wsgi_application() function to raise an Exception in the try: block with an error message. Perhaps something like raise Exception("Oh no!")
2. Look at httpd's ssl_error_log.
Actual results:
You will see something like [1] in the error log.
Expected results:
You should see something useful (like "Oh no!") in the error log.
Additional info:
[0] https://github.com/pulp/pulp/blob/2.4-release/server/pulp/server/webservices/application.py#L125
[1] TypeError: 'NoneType' object is not callable and mod_wsgi (pid=25056): Exception occurred processing WSGI script '/srv/pulp/webservices.wsgi'.
+ This bug was cloned from Bugzilla Bug #1177018 +
Updated by dkliban@redhat.com about 8 years ago
https://github.com/pulp/pulp/pull/1527
+ This comment was cloned from Bugzilla #1177018 comment 1 +
Updated by dkliban@redhat.com almost 8 years ago
- Status changed from 6 to CLOSED - CURRENTRELEASE