-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
s3 sync, s3 cp no space left on device errors handling #1442
Comments
Can you confirm what version of the CLI you're using ( |
1.7.44, |
Not sure I understand. Could you provide a script that demonstrates the issue. Here's what I tried. I'm seeing 0 rc's if the bucket is synced:
Note that if an error occurred during the syncing process a non zero will happen but we still keep trying to sync the remaining files for you. Here's some additional docs on the return codes used by the CLI: http://docs.aws.amazon.com/cli/latest/topic/return-codes.html#cli-aws-help-return-codes You can also see these docs by running |
I can confirm that |
Execuse me for long waiting, simple script: The second one with cp download failed: s3://mybucket//test/setup.log to ../mnt/mount_point_with_no_space_left/test/setup.log Could not create directory s3://mybucket/ /mnt/mount_point_with_no_space_left/test/test5: [Errno 28] No space left on device: 's3://mybucket/ /mnt/mount_point_with_no_space_left/test/test5' And if we have a bucket with billions of files we can wait for a very long time to get the result of 0 after several days, it seems more efficient to stop copy/sync in case of error with no space left. |
Did you get those errors on the console? I got nothing. I think you mean "$?" where you wrote "$#" there. |
yes, It's a typo, I mean $? |
Strange, on other machine it works as expected, it seems the problem is local |
Is this issue indeed local to your machine, or is there a reproducible test case you can provide that works on any/all machines? I'm trying to understand if this issue should remain open based on your last comment. |
In all my testing, copying a file onto a device with insufficient space (as opposed to no space) resulted in success return code with no complaint text - i.e., success behavior. So that seems like a test case to me..? Tried a couple of different machines, but not many - not sure what constitutes "different". |
I also run into the "aws s3 cp" issue (not enough disk space, no error and exit code 0). Took me a while to figure out what the error was :) An error message would be very useful :) Cheers! |
Fixed via #1648. |
aws s3 sync and aws s3 cp to local disk don't handle free space left on device errors
aws s3 sync puts IOError: [Errno 28] No space left on device errors but still tries to continue sync
aws s3 cp doesn't give any error, tries to continue coping and returns 0 exit code at the end
The text was updated successfully, but these errors were encountered: