首页 > 解决方案 > rke 错误:快照缺少哈希但 --skip-hash-check=false

问题描述

我正在尝试在断电后恢复 etcd 快照,但出现以下错误。

FATA[0020] [etcd] Failed to restore etcd snapshot: Failed to run etcd restore container, exit status is: 128, container logs: Error: snapshot missing hash but --skip-hash-check=false

我在跑rke etcd snapshot-restore --config rancher-cluster.yaml --name 202008091207.zip

标签: rke

解决方案


此问题是由 .zip 文件扩展名错误地包含到快照名称参数引起的。

快照名称参数 (--name) 应包含快照名称,不包括文件扩展名。

请尝试以下命令。

rke etcd snapshot-restore --config rancher-cluster.yaml --name 202008091207

推荐阅读