ResumableUploadAbortException on gsutil

Using gsutil

I see the following error:
ResumableUploadAbortException: Upload complete with 6275 additional bytes left in stream

The command is very simple, something like

gsutil cp -r <source_path> gs://<target-bucket>/<target_path>

About 80 files inside <source_path>. Inside <source_path>there are subfolders. Changing gsutil cpup gsutil -m cpdoes not matter. And this error is reproduced when I run it inside a python script along with a lot of other code. However, when I run the command separately in bash, it has no problems. So, I wonder what could be causing the ResumableUploadAbortException, please?

Tail debug output with gsutil -D -m cp

total_bytes_transferred: 794750002
Total bytes copied=794750002, total elapsed time=7.932 secs (95.55 MiBps)
DEBUG: Exception stack trace:
    Traceback (most recent call last):
      File "/usr/lib/google-cloud-sdk/platform/gsutil/gslib/__main__.py", line 565, in _RunNamedCommandAndHandleExceptions
        parallel_operations, perf_trace_token=perf_trace_token)
      File "/usr/lib/google-cloud-sdk/platform/gsutil/gslib/command_runner.py", line 280, in RunNamedCommand
        return_code = command_inst.RunCommand()
      File "/usr/lib/google-cloud-sdk/platform/gsutil/gslib/commands/cp.py", line 998, in RunCommand
        self.op_failure_count, plural_str, plural_str))
    CommandException: CommandException: 1 file/object could not be transferred.
+4
source share
1 answer

, , . , , , .

0

All Articles