Bug 912605 - Log errors generated in appserver.log for scalable python-2.7 and python-3.3 app
Summary: Log errors generated in appserver.log for scalable python-2.7 and python-3.3 app
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Mrunal Patel
QA Contact: libra bugs
URL:
Whiteboard:
: 991271 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-19 07:28 UTC by Meng Bo
Modified: 2015-05-14 23:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-07 22:53:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
appserver.log of a scalable python-2.7 app (8.60 KB, text/plain)
2013-07-01 08:34 UTC, jizhao
no flags Details
appserver.log of a scalable python-3.3 app (3.32 KB, text/plain)
2013-07-01 08:41 UTC, jizhao
no flags Details

Description Meng Bo 2013-02-19 07:28:09 UTC
Description of problem:
Create scalable python-2.7 or python-3.3 app. Then try to tail log for the app or simply login to the app via ssh and check the log file /var/lib/openshift/51232133203dfb83ee00006b/python-2.7/logs/appserver.log

There are many errors in the log and the log file keeps growth.

Version-Release number of selected component (if applicable):
devenv-stage_296

How reproducible:
always

Steps to Reproduce:
1.Create scalable python-2.7 or python-3.3 app
2.Tail log for the app 
3.Or login to the app via SSH and check the ~/python-x.x/logs/appserver.log
  
Actual results:
Error message generated continuously.

Expected results:
Should not have such error.

Additional info:
Since the error log will not affect the app function, make the bug as low severity.

$cat ~/python-2.7/logs/appserver.log
<--snip-->
Traceback (most recent call last):
  File "/var/lib/openshift/51232133203dfb83ee00006b/python-2.7/opt/lib/python2.7/wsgiref/handlers.py", line 86, in run
    self.finish_response()
  File "/var/lib/openshift/51232133203dfb83ee00006b/python-2.7/opt/lib/python2.7/wsgiref/handlers.py", line 127, in finish_response
    self.write(data)
  File "/var/lib/openshift/51232133203dfb83ee00006b/python-2.7/opt/lib/python2.7/wsgiref/handlers.py", line 210, in write
    self.send_headers()
  File "/var/lib/openshift/51232133203dfb83ee00006b/python-2.7/opt/lib/python2.7/wsgiref/handlers.py", line 268, in send_headers
    self.send_preamble()
  File "/var/lib/openshift/51232133203dfb83ee00006b/python-2.7/opt/lib/python2.7/wsgiref/handlers.py", line 195, in send_preamble
    self._write('Server: %s\r\n' % self.server_software)
  File "/var/lib/openshift/51232133203dfb83ee00006b/python-2.7/opt/lib/python2.7/socket.py", line 324, in write
    self.flush()
  File "/var/lib/openshift/51232133203dfb83ee00006b/python-2.7/opt/lib/python2.7/socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
Traceback (most recent call last):
  File "/var/lib/openshift/51232133203dfb83ee00006b/python-2.7/opt/lib/python2.7/SocketServer.py", line 284, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/var/lib/openshift/51232133203dfb83ee00006b/python-2.7/opt/lib/python2.7/SocketServer.py", line 310, in process_request
    self.finish_request(request, client_address)
  File "/var/lib/openshift/51232133203dfb83ee00006b/python-2.7/opt/lib/python2.7/SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/var/lib/openshift/51232133203dfb83ee00006b/python-2.7/opt/lib/python2.7/SocketServer.py", line 640, in __init__
    self.finish()
  File "/var/lib/openshift/51232133203dfb83ee00006b/python-2.7/opt/lib/python2.7/SocketServer.py", line 693, in finish
    self.wfile.flush()
  File "/var/lib/openshift/51232133203dfb83ee00006b/python-2.7/opt/lib/python2.7/socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
<--snip-->

Comment 1 Zhe Wang 2013-02-28 05:53:55 UTC
recreated in devenv_2872

Comment 2 jizhao 2013-07-01 08:34:15 UTC
Created attachment 767281 [details]
appserver.log of a scalable python-2.7 app

This is the appserver.log of a scalable python-2.7 app on devenv_3430.

Comment 3 Meng Bo 2013-07-01 08:40:45 UTC
No update for this bug long time. 
The issue still can be reproduced on v2 cartridge.

Raise the severity to medium.

Comment 4 jizhao 2013-07-01 08:41:05 UTC
Created attachment 767282 [details]
appserver.log of a scalable python-3.3 app

This is the appserver.log of a scalable python-3.3 app on devenv_3430.

Comment 5 Mrunal Patel 2013-07-08 19:25:20 UTC
The issue should be resolved with the new python-2.7 scl cart for python-2.7 while the workaround for python-3.3 (and the current python-2.7) is to do a
git push. (This is known limitation that we don't plan to fix).

Comment 6 Meng Bo 2013-07-09 09:39:28 UTC
Will check this bug when the python scl merged into master.

Comment 7 Meng Bo 2013-07-12 01:46:16 UTC
Lower the severity since the issue will be fixed when python-2.7 scl reday in next release.

Comment 8 Xiaoli Tian 2013-08-02 06:09:06 UTC
*** Bug 991271 has been marked as a duplicate of this bug. ***

Comment 9 Meng Bo 2013-08-02 10:20:42 UTC
Checked python2.7 and python3.3 with the workaround in comment#5.
The errors are gone.

Move the bug to verified for now.

If the python2.7 still have this issue, we will report new bug for that.


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