acd_cli
acd_cli copied to clipboard
Creating files fails frequently
Trying to cp a bunch of files into a mounted acd about half of them fail with cannot create regular file ...: Communication error on send.
16-10-26 15:47:51.780 [DEBUG] [acdcli.acd_fuse] - -> getattr /Bilder/0017733b8286868a322aec037c09b7.jpg (None,)
16-10-26 15:47:51.781 [DEBUG] [acdcli.acd_fuse] - <- getattr '[Errno 2] No such file or directory'
16-10-26 15:47:51.781 [DEBUG] [acdcli.acd_fuse] - -> getattr /Bilder/0017733b8286868a322aec037c09b7.jpg (None,)
16-10-26 15:47:51.783 [DEBUG] [acdcli.acd_fuse] - <- getattr '[Errno 2] No such file or directory'
16-10-26 15:47:51.784 [DEBUG] [acdcli.acd_fuse] - -> getattr /Bilder/0017733b8286868a322aec037c09b7.jpg (None,)
16-10-26 15:47:51.785 [DEBUG] [acdcli.acd_fuse] - <- getattr '[Errno 2] No such file or directory'
16-10-26 15:47:51.786 [DEBUG] [acdcli.acd_fuse] - -> create /Bilder/0017733b8286868a322aec037c09b7.jpg (33261,)
16-10-26 15:47:51.787 [DEBUG] [acdcli.api.backoff_req] - Retry 0, waiting -0.337454s
16-10-26 15:47:51.787 [INFO] [acdcli.api.backoff_req] - POST "https://content-eu.drive.amazonaws.com/cdproxy/nodes"
16-10-26 15:47:51.787 [DEBUG] [acdcli.api.backoff_req] - <MultipartEncoder: OrderedDict([('metadata', '{"name": "0017733b8286868a322aec037c09b7.jpg", "kind": "FILE", "parents": ["RewlkOs-TAu3R1J-Pwru0g"]}'), ('content', ('0017733b8286868a322aec037c09b7.jpg', <_io.BytesIO object at 0x7f8f807cca08>, 'image/jpeg'))])>
16-10-26 15:47:51.788 [ERROR] [acdcli.acd_fuse] - create: RequestError: 1000, ('Connection aborted.', CannotSendRequest('Request-sent',))
16-10-26 15:47:51.788 [DEBUG] [acdcli.acd_fuse] - <- create '[Errno 70] Communication error on send'
acd_cli 0.3.2, api 0.9.0
However in the ACD web panel the files were created but have a size of 0 B.
Am I doing something wrong or is this some kind of issue?
Looks like empty source file were causing the problem. Maybe acd_cli should handle those somehow?