minio 上传文件失败问题,时区问题

Blade 未结 1 1342
94759413
94759413 剑圣 2021-12-14 20:06

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

1. 使用资源管理--对象存储--调试功能 上传图片


我的后台服务器时区和minio服务器时区都改成了 上海, 但是上传就是报时间差距太大。

minio服务器端口开放了 9000,9001;

系统配置的地址、账号、密码也没错、网络也通


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

正常上传文件


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

bladex2.8.0

操作系统 centos


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

Caused by: error occurred
ErrorResponse(code = RequestTimeTooSkewed, message = The difference between the request time and the server's time is too large., bucketName = null, objectName = null, resource = [表情]adex, requestId = null, hostId = 3e272c1a-2ddf-4d0d-b611-414bef2533a8)
request={method=GET, url=http://10.11.50.9:9000/bladex?location=, headers=Host: 10.11.50.9:9000
Accept-Encoding: identity
User-Agent: MinIO (Linux; amd64) minio-java/8.1.0
Content-MD5: 1B2M2Y8AsgTpgAmY7PhCfg==
x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date: 20221214T115135Z
Authorization: AWS4-HMAC-SHA256 Credential=*REDACTED*/20221214/us-east-1/s3/aws4_request, SignedHeaders=content-md5;host;x-amz-content-sha256;x-amz-date, Signature=*REDACTED*
}
response={code=403, headers=Accept-Ranges: bytes
Content-Length: 289
Content-Type: application/xml
Server: MinIO
Vary: Origin
Date: Tue, 14 Dec 2021 03:37:14 GMT
}

at io.minio.MinioClient.execute(MinioClient.java:773)
at io.minio.MinioClient.getRegion(MinioClient.java:805)
at io.minio.MinioClient.execute(MinioClient.java:568)
at io.minio.MinioClient.executeHead(MinioClient.java:837)
at io.minio.MinioClient.bucketExists(MinioClient.java:2209)
at org.springblade.core.oss.MinioTemplate.makeBucket(MinioTemplate.java:73)
at org.sp

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

image.png


image.png

1条回答
提交回复