Bug 1030648

Summary: node-web-proxy crashes on closed backend connection
Product: OpenShift Online Reporter: Andy Grimm <agrimm>
Component: ContainersAssignee: Mrunal Patel <mpatel>
Status: CLOSED DUPLICATE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: bmeng, jgoulding
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-25 17:10:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1034077, 1034135    
Bug Blocks:    

Description Andy Grimm 2013-11-14 21:02:31 UTC
Description of problem:

Several of our nodes have seen frequent node-web-proxy crash/restarts with the following traceback (or something similar. WebSocket.send line 175 is always the location of the exception):

/usr/lib/node_modules/ws/lib/WebSocket.js:175
    else throw new Error('not opened');
               ^
Error: not opened
    at WebSocket.send (/usr/lib/node_modules/ws/lib/WebSocket.js:175:16)
    at WebSocket.<anonymous> (/usr/lib/node_modules/openshift-node-web-proxy/lib/proxy/ProxyServer.js:510:14)
    at WebSocket.EventEmitter.emit (events.js:98:17)
    at Receiver.self._receiver.ontext (/usr/lib/node_modules/ws/lib/WebSocket.js:550:10)
    at Receiver.opcodes.1.finish (/usr/lib/node_modules/ws/lib/Receiver.js:397:14)
    at Receiver.expectHandler (/usr/lib/node_modules/ws/lib/Receiver.js:378:33)
    at Receiver.add (/usr/lib/node_modules/ws/lib/Receiver.js:93:24)
    at CleartextStream.firstHandler (/usr/lib/node_modules/ws/lib/WebSocket.js:530:22)
    at CleartextStream.EventEmitter.emit (events.js:95:17)
    at CleartextStream.<anonymous> (_stream_readable.js:720:14)
DEBUG: Program node /usr/lib/node_modules/openshift-node-web-proxy/bin/web-proxy.js --config /etc/openshift/web-proxy-config.json exited with code 8

This error seems to be because the connection to the backend server has been closed unexpectedly.

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

openshift-origin-node-proxy-1.16.1-1.el6oso.noarch

Comment 2 Meng Bo 2013-11-25 09:35:34 UTC
Still meets such error on devenv_4067.

/usr/lib/node_modules/ws/lib/WebSocket.js:175
    else throw new Error('not opened');

Comment 3 Mrunal Patel 2013-11-25 17:10:34 UTC

*** This bug has been marked as a duplicate of bug 1034077 ***