wsgi occasionally hangs and needs apache to be graceful'ed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ratings and Reviews server |
New
|
Undecided
|
Unassigned | ||
Ubuntu Apps Directory |
New
|
Undecided
|
Unassigned |
Bug Description
The rnr site apache logs show many of these in its error log:
[Wed Jan 11 16:10:19 2012] [error] [client 91.189.89.105] Script timed out before returning headers: django.wsgi
[Wed Jan 11 16:10:21 2012] [error] [client 91.189.89.105] (4)Interrupted system call: mod_wsgi (pid=4923): Unable to connect to WSGI daemon process 'reviews.
[Wed Jan 11 16:11:58 2012] [error] [client 91.189.89.105] Premature end of script headers: django.wsgi
[Wed Jan 11 16:11:58 2012] [error] [client 91.189.89.106] (2)No such file or directory: mod_wsgi (pid=3319): Unable to connect to WSGI daemon process 'reviews.
Webops then needs to graceful apache
tags: | added: canonical-losa-ca |
tags: | added: canonical-webops-ca |
tags: | added: u1-notrack |
The closest oops report I can find for this incident on satsuma is OOPS 2202satsuma76540 that provides the following traceback:
Traceback (most recent call last): ubuntu. com/production/ rnr-server/ sourcecode/ django/ django/ core/handlers/ base.py" , line 111, in get_response ubuntu. com/production/ rnr-server/ sourcecode/ django/ django/ views/decorator s/vary. py", line 22, in inner_func python2. 6/dist- packages/ piston/ resource. py", line 74, in __call__ tion.is_ authenticated( request) : ubuntu. com/production/ rnr-server/ src/reviewsapp/ auth.py" , line 77, in is_authenticated prefetch_ oauth_consumer( orequest) ubuntu. com/production/ rnr-server/ src/reviewsapp/ auth.py" , line 101, in prefetch_ oauth_consumer identifier= consumer_ key, signature= request. get_parameter( 'oauth_ signature' )) ubuntu. com/production/ rnr-server/ src/reviewsapp/ utilities. py", line 149, in get_data_ for_account provider. authentications .validate_ token( pymodules/ python2. 6/lazr/ restfulclient/ resource. py", line 301, in __getattr__ get_parameter( attr) pymodules/ python2. 6/lazr/ restfulclient/ resource. py", line 196, in lp_get_parameter _ensure_ representation( ) pymodules/ python2. 6/lazr/ restfulclient/ resource. py", line 331, in _ensure_ representation _browser. get(self. _wadl_resource) pymodules/ python2. 6/lazr/ restfulclient/ _browser. py", line 316, in get headers) pymodules/ python2. 6/lazr/ restfulclient/ _browser. py", line 260, in _request pymodules/ python2. 6/httplib2/ __init_ _.py", line 1129, in request pymodules/ python2. 6/lazr/ restfulclient/ _browser. py", line 154, in _request pymodules/ python2. 6/httplib2/ __init_ _.py", line 901, in _request request( conn, request_uri, method, body, headers) pymodules/ python2. 6/lazr/ restfulclient/ _browser. py", line 159, in _conn_request pymodules/ python2. 6/httplib2/ __init_ _.py", line 871, in _conn_request python2. 6/httplib. py", line 986, in getresponse begin() python2. 6/httplib. py", line 391, in begin python2. 6/httplib. py", line 349, in _read_status python2. 6/socket. py", line 397, in readline python2. 6/ssl.py" , line 96, in <lambda> recv(self. ..
File "/srv/reviews.
response = callback(request, *callback_args, **callback_kwargs)
File "/srv/reviews.
response = func(*args, **kwargs)
File "/usr/lib/
if not self.authentica
File "/srv/reviews.
self.
File "/srv/reviews.
openid_
File "/srv/reviews.
result = self.identity_
File "/usr/lib/
return self.lp_
File "/usr/lib/
self.
File "/usr/lib/
representation = self._root.
File "/usr/lib/
response, content = self._request(url, extra_headers=
File "/usr/lib/
str(url), method=method, body=data, headers=headers)
File "/usr/lib/
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/usr/lib/
redirections, cachekey)
File "/usr/lib/
(response, content) = self._conn_
File "/usr/lib/
conn, request_uri, method, body, headers)
File "/usr/lib/
response = conn.getresponse()
File "/usr/lib/
response.
File "/usr/lib/
version, status, reason = self._read_status()
File "/usr/lib/
line = self.fp.readline()
File "/usr/lib/
data = recv(1)
File "/usr/lib/
self.recv = lambda buflen=1024, flags=0: SSLSocket.