Intermittent "socket.error: (10060, 'Operation timed out')", "socket.sslerror: (8, 'EOF occurred in violation of protocol')" contacting datazilla

RESOLVED WORKSFORME

Status

defect
RESOLVED WORKSFORME
7 years ago
6 years ago

People

(Reporter: philor, Unassigned)

Tracking

({intermittent-failure})

Trunk
x86
Windows 7
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Reporter

Description

7 years ago
Not entirely unlike ye olde bug 791559.

https://tbpl.mozilla.org/php/getParsedLog.php?id=15943070&tree=Mozilla-Inbound
NOISE: datazilla: https//datazilla.mozilla.org/talos; oauth=True
Traceback (most recent call last):
  File "run_tests.py", line 298, in ?
    main()
  File "run_tests.py", line 295, in main
    run_tests(parser)
  File "run_tests.py", line 271, in run_tests
    talos_results.output(results_urls, **results_options)
  File "C:\talos-slave\talos-data\talos\results.py", line 78, in output
    _output.output(results, url)
  File "C:\talos-slave\talos-data\talos\output.py", line 396, in output
    self.post(results, results_server, results_path, results_scheme)
  File "C:\talos-slave\talos-data\talos\output.py", line 476, in post
    responses = req.submit()
  File "C:\talos-slave\talos-data\talos\dzclient.py", line 194, in submit
    responses.append(self.send(dataset))
  File "C:\talos-slave\talos-data\talos\dzclient.py", line 251, in send
    conn.request("POST", path, body, header)
  File "C:\Python24\lib\httplib.py", line 804, in request
    self._send_request(method, url, body, headers)
  File "C:\Python24\lib\httplib.py", line 827, in _send_request
    self.endheaders()
  File "C:\Python24\lib\httplib.py", line 798, in endheaders
    self._send_output()
  File "C:\Python24\lib\httplib.py", line 679, in _send_output
    self.send(msg)
  File "C:\Python24\lib\httplib.py", line 646, in send
    self.connect()
  File "C:\Python24\lib\httplib.py", line 1072, in connect
    sock.connect((self.host, self.port))
  File "<string>", line 1, in connect
socket.error: (10060, 'Operation timed out')
program finished with exit code 1

https://tbpl.mozilla.org/php/getParsedLog.php?id=15943066&tree=Mozilla-Inbound
Reporter

Comment 1

7 years ago
Actually, I'm probably not going to want to file a separate bug for every single possible uncaught socket.py error.

https://tbpl.mozilla.org/php/getParsedLog.php?id=15943606&tree=Mozilla-Inbound

NOISE: datazilla: https//datazilla.mozilla.org/talos; oauth=True
Traceback (most recent call last):
  File "run_tests.py", line 298, in ?
    main()
  File "run_tests.py", line 295, in main
    run_tests(parser)
  File "run_tests.py", line 271, in run_tests
    talos_results.output(results_urls, **results_options)
  File "c:\talos-slave\talos-data\talos\results.py", line 78, in output
    _output.output(results, url)
  File "c:\talos-slave\talos-data\talos\output.py", line 396, in output
    self.post(results, results_server, results_path, results_scheme)
  File "c:\talos-slave\talos-data\talos\output.py", line 476, in post
    responses = req.submit()
  File "c:\talos-slave\talos-data\talos\dzclient.py", line 194, in submit
    responses.append(self.send(dataset))
  File "c:\talos-slave\talos-data\talos\dzclient.py", line 251, in send
    conn.request("POST", path, body, header)
  File "C:\Python24\lib\httplib.py", line 804, in request
    self._send_request(method, url, body, headers)
  File "C:\Python24\lib\httplib.py", line 827, in _send_request
    self.endheaders()
  File "C:\Python24\lib\httplib.py", line 798, in endheaders
    self._send_output()
  File "C:\Python24\lib\httplib.py", line 679, in _send_output
    self.send(msg)
  File "C:\Python24\lib\httplib.py", line 646, in send
    self.connect()
  File "C:\Python24\lib\httplib.py", line 1073, in connect
    ssl = socket.ssl(sock, self.key_file, self.cert_file)
  File "C:\Python24\lib\socket.py", line 74, in ssl
    return _realssl(sock, keyfile, certfile)
socket.sslerror: (8, 'EOF occurred in violation of protocol')
program finished with exit code 1
Reporter

Comment 2

7 years ago
https://tbpl.mozilla.org/php/getParsedLog.php?id=15943627&tree=Mozilla-Beta
socket.error: (10060, 'Operation timed out')

beta?
Reporter

Comment 6

7 years ago
https://tbpl.mozilla.org/php/getParsedLog.php?id=16002832&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16002981&tree=Mozilla-Inbound
Summary: Intermittent "socket.error: (10060, 'Operation timed out')" contacting datazilla → Intermittent "socket.error: (10060, 'Operation timed out')", "socket.sslerror: (8, 'EOF occurred in violation of protocol')" contacting datazilla

Comment 8

7 years ago
We can certainly swallow this error client-side.  Is that what we want to do?

Comment 9

7 years ago
From :jeads:

Sent: Tuesday, October 9, 2012 8:43:25 AM
Subject: Re: datazilla problems?

Joel,

This looks like a problem in the windows C:\Python24\lib\httplib.py implementation that's occurring when dzclient.py calls conn.request("POST", path, body, header).  I found this http://code.activestate.com/recipes/301740-simplest-useful-https-with-basic-proxy-authenticat/ from 6 years ago which might be pertinent since were still running python2.4, take a look at the comment thread.  The last lines in the tracebacks posted are:

"File "C:\Python\lib\socket.py", line 73, in ssl
socket.sslerror: (8, 'EOF occurred in violation of protocol')"

seems to be pretty close to the the last error in the traceback that we generated:

"File "C:\Python24\lib\socket.py", line 74, in ssl
    return _realssl(sock, keyfile, certfile)
socket.sslerror: (8, 'EOF occurred in violation of protocol')"

The last comment:

"'EOF occurred in violation of protocol' This may have been obvious to everyone except a noob like myself, but for some reason (at least in python 2.5.1) base64.encodestring puts a '\n' at the end of the encoded string. This seems to cause the above error. After spending 2 days trying to figure out why I couldn't get this recipe to work, I added the following line:

username_password = username_password.replace('\n','')

and everything now works perfectly. I hope this saves someone some time."

If base64.encodestring in python 2.5 is adding '\n' at the end of the encoded string and that is what is responsible for the error, it's probably also happening in python 2.4.

Jeads
Whiteboard: [orange]
(OrangeWFM bugs not modified in > 2 months)
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.