Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tablechop connection reset #37

Open
ethan-eb opened this issue Aug 5, 2013 · 0 comments
Open

Tablechop connection reset #37

ethan-eb opened this issue Aug 5, 2013 · 0 comments

Comments

@ethan-eb
Copy link
Contributor

ethan-eb commented Aug 5, 2013

I'm seeing occasional failures when tablechop attempts to load -listdir.json contents from S3. Since tablechop is meant to run nightly, this error should just be ignored, the next run should pick up the files that didn't get cleaned up.

I can fix this since I'm the only one using tablechop afaik, just needed to log the issue for the next time I'm in there:

Traceback (most recent call last):
  File "/data/syseng/cassandra/eb_tablechop.py", line 67, in <module>
    tablechop.clean_backups(duck_args, log)
  File "/usr/bin/tablechop", line 72, in clean_backups
    jdict = json.loads(ky.get_contents_as_string())
  File "/usr/local/lib/python2.6/dist-packages/boto/s3/key.py", line 1427, in get_contents_as_string
    response_headers=response_headers)
  File "/usr/local/lib/python2.6/dist-packages/boto/s3/key.py", line 1319, in get_contents_to_file
    response_headers=response_headers)
  File "/usr/local/lib/python2.6/dist-packages/boto/s3/key.py", line 1215, in get_file
    for bytes in self:
  File "/usr/local/lib/python2.6/dist-packages/boto/s3/key.py", line 248, in next
    data = self.resp.read(self.BufferSize)
  File "/usr/local/lib/python2.6/dist-packages/boto/connection.py", line 397, in read
    return httplib.HTTPResponse.read(self, amt)
  File "/usr/lib/python2.6/httplib.py", line 538, in read
    s = self.fp.read(amt)
  File "/usr/lib/python2.6/socket.py", line 353, in read
    data = self._sock.recv(left)
  File "/usr/lib/python2.6/ssl.py", line 96, in <lambda>
    self.recv = lambda buflen=1024, flags=0: SSLSocket.recv(self, buflen, flags)
  File "/usr/lib/python2.6/ssl.py", line 217, in recv
    return self.read(buflen)
  File "/usr/lib/python2.6/ssl.py", line 136, in read
    return self._sslobj.read(len)
socket.error: [Errno 104] Connection reset by peer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant