You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
STDERR: No handlers could be found for logger "mod_pywebsocket.standalone.WebSocketServer"
STDERR: No handlers could be found for logger "mod_pywebsocket.standalone.WebSocketServer"
STDERR: No handlers could be found for logger "mod_pywebsocket.standalone.WebSocketServer"
11:05 <jdm> jgraham: cant we chat about the websocket logging issue/
11:05 <jdm> jgraham: we have really bad problems on our CI with large swaths of websocket tests intermittently timing out, presumably because the server is not set up correctly
11:06 <jdm> and suspicious messages about how there's no default logger configured for the websocket server
11:07 <jgraham> jdm: So there are a couple of problems with logging
11:08 <jgraham> The first is that we use multiprocessing and the default logger is not multiprocessing safe (it uses a threading.Lock which can be locked in the child process due to hillarious design problems in multiprocessing)
11:09 <jgraham> The second problem is that mozlog really wants to own all the logging, so it can produce a nice stream of json objects rather than a mixture of json objects and random other strings
11:09 <jgraham> So there is a wrapper for stdlib logging, but I think it's somewhat broken, and in any case doesn't solve the multiprocessing issue
11:10 <jgraham> What we really want to do is to pass over a logger that puts log messages into a queue and re-logs them on the main thread
11:10 <jgraham> s/thread/process/
11:11 <jdm> that sounds doable
11:11 <jgraham> jdm: Yeah, so there is something similar in tools/wptrunner/wptrunner/wptlogging.py
11:12 <jgraham> Which wraps stdio
Exception in processing request from: ('::ffff:127.0.0.1', 59231, 0, 0)
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 596, in process_request_thread
self.finish_request(request, client_address)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 331, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/Users/servo/buildbot/slave/mac-rel-wpt2/build/tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/standalone.py", line 697, in __init__
self, request, client_address, server)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 652, in __init__
self.handle()
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 342, in handle
self.handle_one_request()
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 310, in handle_one_request
self.raw_requestline = self.rfile.readline(65537)
File "/Users/servo/buildbot/slave/mac-rel-wpt2/build/tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/memorizingfile.py", line 89, in readline
line = self._file.readline()
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 434, in readline
data = recv(1)
error: [Errno 54] Connection reset by peer
So, following up on the anecdotal data suggesting that:
this problem started occurring sometime between April 25 and April 28
this problem was introduced by a WPT sync
I ran some repeated try jobs in #21033. The results strongly suggest that web-platform-tests/wpt@2ae9668 is the cause of the problem (ironically, since it sounds like it fixed a similar kind of problem for Gecko). @jgraham what's the next step here?
Activity
jdm commentedon May 2, 2018
Followed by a lot of:
jdm commentedon May 2, 2018
I have pushed web-platform-tests/wpt#10804 to attempt to address those logging issues and hopefully shed some light on this.
jdm commentedon May 19, 2018
This has been observed on both linux and mac.
jdm commentedon May 22, 2018
From #testing:
jdm commentedon May 22, 2018
Auto merge of #20850 - jdm:websocket-investigate, r=jdm
jdm commentedon May 23, 2018
Auto merge of #20850 - jdm:websocket-investigate, r=<try>
Auto merge of #20850 - jdm:websocket-investigate, r=<try>
Auto merge of #20850 - jdm:websocket-investigate, r=<try>
Auto merge of #20850 - jdm:websocket-investigate, r=<try>
jdm commentedon Jun 7, 2018
web-platform-tests/wpt#11299 did not help, unfortunately.
8 remaining items
Auto merge of #20850 - jdm:websocket-investigate, r=<try>
Auto merge of #20850 - jdm:websocket-investigate, r=<try>
Auto merge of #20850 - jdm:websocket-investigate, r=<try>
Auto merge of #20850 - jdm:websocket-investigate, r=<try>
Auto merge of #20850 - jdm:websocket-investigate, r=<try>
Auto merge of #20850 - jdm:websocket-investigate, r=<try>
Auto merge of #20850 - jdm:websocket-investigate, r=<try>
Auto merge of #20850 - jdm:websocket-investigate, r=<try>
Auto merge of #20850 - jdm:websocket-investigate, r=<try>
jdm commentedon Jun 12, 2018
So, following up on the anecdotal data suggesting that:
I ran some repeated try jobs in #21033. The results strongly suggest that web-platform-tests/wpt@2ae9668 is the cause of the problem (ironically, since it sounds like it fixed a similar kind of problem for Gecko). @jgraham what's the next step here?
Auto merge of #20850 - jdm:websocket-investigate, r=<try>
Auto merge of #20850 - jdm:websocket-investigate, r=<try>
Auto merge of #20850 - jdm:websocket-investigate, r=<try>
Eijebong commentedon Oct 11, 2018
This has been fixed now :)