-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 errors with "file does not exist" for file in exclude path #2473
Comments
Is the transfer still going as expected? Are any files being uploaded that shouldn't be? I agree that going through excluded files is silly, but if something is getting uploaded improperly then that's a big problem. |
@JordonPhillips Sorry for the delay, totally missed the notification. The ignored files are not actually copied over, only the files that we explicitly include. |
I am experiencing this as well - warnings for explicitly excluded files. This is problematic because When automating We exclude everything and only include the directories we want to sync. The result is that the expected files are uploaded but because of the non-zero exit code - the Concourse CI job using the above resource fails. |
Even if running with the Same problem, seeing a bunch of these when run without
|
Good Morning! We're closing this issue here on GitHub, as part of our migration to UserVoice for feature requests involving the AWS CLI. This will let us get the most important features to you, by making it easier to search for and show support for the features you care the most about, without diluting the conversation with bug reports. As a quick UserVoice primer (if not already familiar): after an idea is posted, people can vote on the ideas, and the product team will be responding directly to the most popular suggestions. We’ve imported existing feature requests from GitHub - Search for this issue there! And don't worry, this issue will still exist on GitHub for posterity's sake. As it’s a text-only import of the original post into UserVoice, we’ll still be keeping in mind the comments and discussion that already exist here on the GitHub issue. GitHub will remain the channel for reporting bugs. Once again, this issue can now be found by searching for the title on: https://aws.uservoice.com/forums/598381-aws-command-line-interface -The AWS SDKs & Tools Team |
@ASayre Thanks for the heads up
Free feedback: That's pretty annoying, another site to register and check to be able to discuss/create feedback/bugs. |
Based on community feedback, we have decided to return feature requests to GitHub issues. |
I don't think it is a feature-request. This is a defect. If a folder is excluded, it should be ignored. |
I agree this is a defect and also a duplicate of #1588. (I'll share my findings there for the fix.) |
Solution(Answer) -- Yes, Same problem was occurring for me also i.e. 'File does not exist' warning. |
I see a similar error message but a different situation. I have an EFS folder with close to 3000 files. 2 can be seen below.
Since I want to copy only one of them I use exclude and include options like this When I use "aws s3 cp" to copy a file to an s3 bucket it takes some time (which is due to some throughput time related to EFS). During this time , if I rename the second file (which is to be excluded from the copy) then it throws a warning for the second file. This should not be happening as that file is to be excluded anyway.
After invoking this command I rename the second file to something else with this command When the original copy command finishes, it throws a warning and returns with a non-zero error code (I just added the time command to show that it takes about 30 seconds, by which I rename the second file).
I believe this should be a bug, but I am not sure if it should be on this bug, or should I open up a new one for this? If it has to be a new one, please let me know and I will create a new one. |
There was a newer duplicate issue of this (#3514) where users concluded the “File does not exist” error was due to filename length limits. This comment gives a more in depth explanation: #3514 (comment) I’m closing this issue as a duplicate. As mentioned earlier in the comments, I think #1588 is a better alternative for sharing errors regarding @madhavvishnubhatta I think you should create a new issue if you're still seeing that. |
|
@tim-finnigan FYI My initial report was on Linux, also the filename was at max 30 characters and not in any subdirectories, so I'm pretty sure filename length wasn't the issue here. |
Hi @simonvanderveldt, thanks for following up. I saw this long path from your original post and thought it may have been the issue:
If you try again do you still see that error? I tried but wasn't able to reproduce. |
@tim-finnigan yeah, that's longer, but quiet a ways off from the 260 characters mentioned in the other issue. |
This seems to be similar to #1082
We run s3 sync using the following command:
This fails with the following error message:
Since we're explicitly excluding everything (which means also the
node_modules
directory) it seems likes3 sync
doesn't actually honor this exclusion in that it still tries to access all files below the current directory even though they are excluded.The text was updated successfully, but these errors were encountered: