提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档
前言
今天做项目的时候遇到一个关于minio的问题
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 = /testbucket, requestId = 179E7D79ECE7945D, hostId = e318e4cd5089903a714f2d5585fb1c70bf1ed0af4fc8fea5b3775a5a687fd040)
大概内容是请求端和服务端的时间跨度太大
一、案发现场
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 = /testbucket, requestId = 179E7D79ECE7945D, hostId = e318e4cd5089903a714f2d5585fb1c70bf1ed0af4fc8fea5b3775a5a687fd040)
我的MinIo是在虚拟机上,查看虚拟机时间
查看时区配置
timedatectl
查看系统时间和硬件时间
date // 查看系统时间
hwclock // 查看硬件时间
时间跨度太大
二、解决
- 安装ntp ntpdate
yum -y install ntp ntpdate
- 与时间服务器同步时间
ntpdate cn.pool.ntp.org
- 将系统时间写入硬件时间
hwclock --systohc