Bug 1030648 - node-web-proxy crashes on closed backend connection
Summary: node-web-proxy crashes on closed backend connection
Keywords:
Status: CLOSED DUPLICATE of bug 1034077
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Mrunal Patel
QA Contact: libra bugs
URL:
Whiteboard:
Depends On: 1034077 1034135
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-14 21:02 UTC by Andy Grimm
Modified: 2016-11-08 03:47 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-25 17:10:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


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