[英]Why does my single part MP3 file fail to upload to AWS S3 due to an InvalidPart multipart file upload error?
I have a 121MB MP3 file I am trying to upload to my AWS S3 so I can process it via Amazon Transcribe.我有一个 121MB 的 MP3 文件,我正在尝试上传到我的 AWS S3,以便我可以通过 Amazon Transcribe 处理它。
The MP3 file comes from an MP4 file I stripped the audio from using FFmpeg. MP3 文件来自我使用 FFmpeg 剥离音频的 MP4 文件。
When I try to upload the MP3, using the S3 object upload UI in the AWS console, I receive the below error:当我尝试使用 AWS 控制台中的 S3 object 上传 UI 上传 MP3 时,我收到以下错误:
InvalidPart
One or more of the specified parts could not be found. the part may not have been uploaded, or the specified entity tag may not match the part's entity tag
The error makes reference to the MP3 being a multipart file and how the "next" part is missing but it's not a multipart file.该错误提到 MP3 是一个多部分文件,以及“下一个”部分是如何丢失的,但它不是一个多部分文件。
I have re-run the MP4 file through FFmpeg 3 times in case the 1st file was corrupt, but that has not fixed anything.我已经通过 FFmpeg 重新运行 MP4 文件 3 次,以防第一个文件损坏,但这并没有解决任何问题。
I have searched a lot on Stackoverflow and have not found a similar case where anyone has uploaded a single 5MB+ file that has received the error I am.我在 Stackoverflow 上搜索了很多,但没有发现任何人上传了一个 5MB 以上的文件而收到我的错误的类似案例。
I've also crossed out FFmpeg being the issue by saving the audio using VLC as an MP3 file but receive the exact same error.我还划掉了 FFmpeg 问题,方法是使用 VLC 将音频保存为 MP3 文件,但收到完全相同的错误。
What is the issue?问题是什么?
Here's the console in case it helps:如果有帮助,这是控制台:
121MB is below the 160 GB S3 console single object upload limit , the 5GB single object upload limit using the REST API / AWS SDKs as well as the 5TB limit on multipart file upload so I really can't see the issue. 121MB 低于160 GB S3 控制台单个 object 上传限制,使用 REST API / AWS SDK 的 5GB 单个 object 上传限制以及分段文件上传的 5TB 限制,所以我真的看不出问题。
Considering the file exists & you have a stable inte.net-connected (no corrupted uploads), you may have incomplete multipart upload parts in your bucket somehow which may be conflicting with the upload for whatever reason so either follow this guide to remove them and try again or try creating a new folder/bucket and re-uploading again.考虑到该文件存在并且您有一个稳定的 inte.net 连接(没有损坏的上传),您的存储桶中可能有不完整的分段上传部分,无论出于何种原因,这可能与上传发生冲突,因此要么按照本指南删除它们,要么再试一次或尝试创建一个新文件夹/存储桶并再次重新上传。
You may also have a browser caching issue/extension conflict so try incognito (with extensions disabled) or another browser if re-uploading to another bucket/folder doesn't work.您可能还有浏览器缓存问题/扩展冲突,因此如果重新上传到另一个存储桶/文件夹不起作用,请尝试隐身(禁用扩展)或其他浏览器。
Alternatively, try the AWS CLI s3 cp
command or a quick "S3 file upload" application in a supported SDK language to make sure that it's not a console UI issue.或者,使用支持的 SDK 语言尝试 AWS CLI
s3 cp
命令或快速“S3 文件上传”应用程序,以确保这不是控制台 UI 问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.