简体   繁体   English

为什么我的单部分 MP3 文件由于 InvalidPart 多部分文件上传错误而无法上传到 AWS S3?

[英]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.

相关问题 .NET 中使用 TransferUtility(不支持 aws-chunked)的 AWS S3 多部分文件上传问题 6 - AWS S3 Multipart file upload issue using TransferUtility (aws-chunked is not supported) in .NET 6 AWS S3 自动文件上传 - AWS S3 automated file upload 使用 AWS SDK NoSuchBucket 错误将文件上传到 S3 Bucket - Upload file to S3 Bucket with AWS SDK NoSuchBucket error 如何通过 PowerShell 的 AWS 工具获取分段上传 (AWS S3) 的每个部分的校验和? - How to get checksums of each part of a multipart upload (AWS S3) via AWS Tools for PowerShell? 通过 boto3 upload_file api 将文件上传到 AWS S3 存储桶会出现“匿名用户无法启动分段上传。请进行身份验证。” 错误 - Uploading a file through boto3 upload_file api to AWS S3 bucket gives "Anonymous users cannot initiate multipart uploads. Please authenticate." error Laravel aws lambda 文件上传异常-Aws\S3\Exception\S3Exception: Error executing InvalidAccessKeyId - Laravel aws lambda file upload exception - Aws\S3\Exception\S3Exception: Error executing InvalidAccessKeyId 如何设置 AWS S3 Glacier 分段上传的存储 class? - How to set the storage class of an AWS S3 Glacier Multipart Upload? aws sdk 使用 node.js 分段上传到 s3 - aws sdk Multipart Upload to s3 with node.js AWS:无法通过 SDK 将文件上传到私有 S3 - AWS: Can't upload a file to private S3 through SDK 使用 POST 将文件上传到 s3 - Upload file to s3 with POST
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM