OpenStack Object Storage (Swift)

User download file fail

Asked by Ray Yen on 2012-11-19

When use a client to download a file, sometimes it will show the error message, but after retry the download is finished.
swift-proxy log:

[2012-11-14 06:51:46,381]proxy-server s3[370] GETorHEAD
[2012-11-14 06:51:46,382]proxy-server s3 interface account_user=mocli362oioy:b7bc9e9c-36d8-4635-94c2-a23514b0395d
[2012-11-14 06:51:46,430]proxy-server s3[180] do_start_response
[2012-11-14 06:52:30,463]proxy-server Client disconnected on read (txn: txf0188823f2f444e79d84b0a82ab1383c) (client_ip: 172.16.206.2)
[2012-11-14 06:52:30,464]proxy-server 172.16.206.2 172.16.206.2 13/Nov/2012/22/52/30 GET /v1/AUTH_mocli362oioy/2062131/3895M HTTP/1.0 499 - Boto/1.9b%20%28linux2%29 mocli362oioy%2Cs3 - 2012741632 - txf0188823f2f444e79d84b0a82ab1383c - 44.0811 -
[2012-11-14 06:52:30,464]proxy-server STDOUT: Traceback (most recent call last): (client_ip: 172.16.206.2)
[2012-11-14 06:52:30,465]proxy-server STDOUT: File "/usr/lib/python2.7/dist-packages/eventlet/greenpool.py", line 80, in _spawn_n_impl (client_ip: 172.16.206.2)
[2012-11-14 06:52:30,465]proxy-server STDOUT: func(*args, **kwargs) (client_ip: 172.16.206.2)
[2012-11-14 06:52:30,465]proxy-server STDOUT: File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 514, in process_request (client_ip: 172.16.206.2)
[2012-11-14 06:52:30,465]proxy-server STDOUT: proto = self.protocol(socket, address, self) (client_ip: 172.16.206.2)
[2012-11-14 06:52:30,466]proxy-server STDOUT: File "/usr/lib/python2.7/SocketServer.py", line 640, in __init__ (client_ip: 172.16.206.2)
[2012-11-14 06:52:30,466]proxy-server STDOUT: self.finish() (client_ip: 172.16.206.2)
[2012-11-14 06:52:30,466]proxy-server STDOUT: File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 456, in finish (client_ip: 172.16.206.2)
[2012-11-14 06:52:30,466]proxy-server STDOUT: BaseHTTPServer.BaseHTTPRequestHandler.finish(self) (client_ip: 172.16.206.2)
[2012-11-14 06:52:30,467]proxy-server STDOUT: File "/usr/lib/python2.7/SocketServer.py", line 693, in finish (client_ip: 172.16.206.2)
[2012-11-14 06:52:30,467]proxy-server STDOUT: self.wfile.flush() (client_ip: 172.16.206.2)
[2012-11-14 06:52:30,467]proxy-server STDOUT: File "/usr/lib/python2.7/socket.py", line 303, in flush (client_ip: 172.16.206.2)
[2012-11-14 06:52:30,467]proxy-server STDOUT: self._sock.sendall(view[write_offset:write_offset+buffer_size]) (client_ip: 172.16.206.2)
[2012-11-14 06:52:30,468]proxy-server STDOUT: File "/usr/lib/python2.7/dist-packages/eventlet/greenio.py", line 307, in sendall (client_ip: 172.16.206.2)
[2012-11-14 06:52:30,468]proxy-server STDOUT: tail = self.send(data, flags) (client_ip: 172.16.206.2)
[2012-11-14 06:52:30,468]proxy-server STDOUT: File "/usr/lib/python2.7/dist-packages/eventlet/greenio.py", line 286, in send (client_ip: 172.16.206.2)
[2012-11-14 06:52:30,468]proxy-server STDOUT: total_sent += fd.send(data[total_sent:], flags) (client_ip: 172.16.206.2)
[2012-11-14 06:52:30,468]proxy-server STDOUT: error: [Errno 32] Broken pipe (client_ip: 172.16.206.2)
[2012-11-14 06:52:42,081]proxy-server s3[506] __call__
[2012-11-14 06:52:42,082]proxy-server s3[491] get_controller
[2012-11-14 06:52:42,083]proxy-server s3[243] GET
[2012-11-14 06:52:42,085]proxy-server s3 interface account_user=mocli362oioy:b7bc9e9c-36d8-4635-94c2-a23514b0395d
[2012-11-14 06:52:42,108]proxy-server s3[180] do_start_response
[2012-11-14 06:52:42,111]proxy-server 172.16.206.2 172.16.206.2 13/Nov/2012/22/52/42 GET /v1/AUTH_mocli362oioy/2062131%3Fformat%3Djson%26limit%3D1 HTTP/1.0 200 - Boto/1.9b%20%28linux2%29 mocli362oioy%2Cs3 - 167 - txb8508445b0fc4e039a7270aad237d2b8 - 0.0246 -

Client message:
File "usr/lib/python2.5/site-packages/boto/s3.key.py", line 645, in get_contents_to_file
    self.get_file(fp, headers, cb, num_cb, torrent=torrent)
File "usr/lib/python2.5/site-packages/boto/s3.key.py", line 581, in get_file
    for bytes in self:
File "usr/lib/python2.5/site-packages/boto/s3.key.py", line 150, in next
    data = self.resp.read(self.BufferSize)
File "usr/lib64/python2.5/httplib.py", line 529, in read
    s = self.fp.read(amt)
File "usr/lib64/python2.5/socket.py", line 309, in read
    data = self._sock.recv(recv_size)
socket.error: (104, 'Connection reset by peer')

How to fix this problem?

Question information

Language:
English Edit question
Status:
Expired
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Last query:
2012-11-19
Last reply:
2012-12-04
Launchpad Janitor (janitor) said : #1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.