mc icon indicating copy to clipboard operation
mc copied to clipboard

Recursive Copy fails to resume previous session

Open thebetauser opened this issue 2 years ago • 1 comments

Expected behavior

When executing a copy command with the --continue flag the client should resume the upload from the previously failed file

Actual behavior

After an upload fails, issuing the same command does not resume the upload but starts from the beginning.

Edit: I was able to actually resume a previously failed session, so this seems to be intermittent issue. I'm going to see if I can track it down some more

Steps to reproduce the behavior

  1. mc cp --continue --recursive "F:\Pictures" minio/pictures/
  2. Error: mc: <ERROR> Failed to copy 'F:\Pictures\Videos\video1.mpg'. A timeout exceeded while waiting to proceed with the request, please reduce your request rate
  3. mc: <ERROR> Command terminated safely. Run this command to resume copy again.
  4. Re-issue command from step 1 and the upload starts from the beginning

mc --version

  • mc version RELEASE.2022-08-11T00-30-48Z (commit-id=c2c2ab4299bbb243c55644984392f1c39af499cf) Runtime: go1.18.5 windows/amd64 Copyright (c) 2015-2022 MinIO, Inc. License GNU AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html

System information

Release-Tag:RELEASE.2022-08-11T00-30-48Z | Commit:c2c2ab4299bb | Host:LAPTOP | OS:windows 11 (21H2) | Arch:amd64 | Lang:go1.18.5 | Mem:323 MB/1.6 GB | Heap:323 MB/1.5 GB

thebetauser avatar Aug 17 '22 20:08 thebetauser

I can confirm this is not a implementation bug but more of a visual issue.

When resuming a saved session there is no notification/output to let's the user know that the current process is comparing local/remote files. I wrongfully assumed the progress indicator showed a new upload session because it started from 0 and went through the entire set of files to upload.

If it is deemed no changes need to be made to notify the user of the resume process you can go ahead and close out this issue.

thebetauser avatar Aug 17 '22 22:08 thebetauser

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 23 '22 07:11 stale[bot]

Is it supposed better if an additional message shown during command mc --continue --recursive cp to mention that Resuming copy from <current size copied> / <total size to be copied> ?

shtripat avatar Jan 23 '23 15:01 shtripat

Is it supposed better if an additional message shown during command mc --continue --recursive cp to mention that Resuming copy from <current size copied> / <total size to be copied> ?

A first line shown with this message would be a good idea and the second line to show the progress bar.

harshavardhana avatar Jan 23 '23 15:01 harshavardhana

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 10 '23 18:06 stale[bot]

Resolved as part of https://github.com/minio/mc/pull/4454. Closing.

shtripat avatar Nov 29 '23 11:11 shtripat