minio上传遇到A timeout exceeded while waiting to proceed with the request

Blade 未结 1 336
monkey
monkey 剑者 2023-12-05 17:27

一、该问题的重现步骤是什么?

  1. 为了让视频分片上传到minio的文件名称保持相同,使用了如下方法


  2. inputStream = new FileInputStream(temp);
  3. .putObject(
       PutObjectArgs.()
          .bucket()
          .object(+ +  name)
          .stream(inputStreaminputStream.available()-)
          .build())inputStream.close()

 

  一开始能正常上传一些次数,但是一直上传的过程中就会抛出 A timeout exceeded while waiting to proceed with the request, please reduce your request rate,然后minio就不能再上传了。就会一直阻塞。

     官方的方法,上传上去了之后名字会变成随机的,业务上不能满足使用。

二、你期待的结果是什么?实际看到的又是什么?

      希望能够正常上传,实际上传一部分之后就会抛异常。

三、你正在使用的是什么产品,什么版本?在什么操作系统上?

     2.9.0.release

四、请提供详细的错误堆栈信息,这很重要。

2023-12-05 17:05:20.559  INFO 16515 --- [             t2] o.s.resource.core.VideoConverterUtil     : 第10个文件上传=/data/os/14dbccd8c18331ff1e86f33d28d1a43b/14dbccd8c18331ff1e86f33d28d1a43b8.ts , link=000000-ivystar/upload/20231205/14dbccd8c18331ff1e86f33d28d1a43b8.ts

2023-12-05 17:05:20.646  INFO 16515 --- [             t2] o.s.resource.core.VideoConverterUtil     : 第11个文件上传=/data/os/14dbccd8c18331ff1e86f33d28d1a43b/14dbccd8c18331ff1e86f33d28d1a43b9.ts , link=000000-ivystar/upload/20231205/14dbccd8c18331ff1e86f33d28d1a43b9.ts

2023-12-05 17:05:20.768  INFO 16515 --- [             t2] o.s.resource.core.VideoConverterUtil     : 连接服务器失败

error occurred

ErrorResponse(code = SlowDown, message = A timeout exceeded while waiting to proceed with the request, please reduce your request rate, bucketName = null, objectName = null, resource = /000000-ivystar/upload/20231205/14dbccd8c18331ff1e86f33d28d1a43b10.ts, requestId = 179DE42E0EA90A98, hostId = 9a220607-1c74-4c4c-b1a5-7620a3247af9)

request={method=PUT, url=http://192.168.10.35:9523/000000-ivystar/upload/20231205/14dbccd8c18331ff1e86f33d28d1a43b10.ts, headers=Content-Type: application/octet-stream

Host: 192.168.10.35:9523

Accept-Encoding: identity

User-Agent: MinIO (Linux; amd64) minio-java/8.1.0

Content-MD5: NNbJmCTWshJ5uXKAwgqT4A==

x-amz-content-sha256: 8ec835e6eecf0406503d708dd1a3952452286c796354598090e7a0ee5ad62fd1

x-amz-date: 20231205T090520Z

Authorization: AWS4-HMAC-SHA256 Credential=*REDACTED*/20231205/us-east-1/s3/aws4_request, SignedHeaders=content-md5;host;x-amz-content-sha256;x-amz-date, Signature=*REDACTED*

}

response={code=503, headers=Accept-Ranges: bytes

Content-Length: 369

Content-Security-Policy: block-all-mixed-content

Content-Type: application/xml

Retry-After: 120

Server: MinIO

Strict-Transport-Security: max-age=31536000; includeSubDomains

Vary: Origin

X-Amz-Request-Id: 179DE42E0EA90A98

X-Content-Type-Options: nosniff

X-Xss-Protection: 1; mode=block

Date: Tue, 05 Dec 2023 09:05:20 GMT

Connection: close

}


at io.minio.MinioClient.execute(MinioClient.java:773)

at io.minio.MinioClient.putObject(MinioClient.java:4580)

at io.minio.MinioClient.putObject(MinioClient.java:2726)

at io.minio.MinioClient.putObject(MinioClient.java:2843)

at org.springblade.resource.core.VideoConverterUtil$1.lambda$run$0(VideoConverterUtil.java:95)

at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)

at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)

at org.springblade.resource.core.VideoConverterUtil$1.run(VideoConverterUtil.java:88)

at java.lang.Thread.run(Thread.java:750)

五、若有更多详细信息,请在下面提供。

1条回答
提交回复