创建快照时出现“无法确定根 blob 的存储库生成”

问题描述 投票:0回答:1

更新访问密钥和秘密密钥后,创建快照会抛出“无法确定从根 blob 生成存储库”错误

这是我用来更新信用的脚本

for pod in $(kubectl get pods -o=name | grep elasticsearch |  grep -v exporter | sed "s/^.\{4\}//")
do
    kubectl exec -t $pod \
          -- /bin/bash -c "echo $1 | bin/elasticsearch-keystore add --stdin --force s3.client.default.access_key && echo $2 | bin/elasticsearch-keystore add --stdin --force s3.client.default.secret_key"
       echo $pod
    done

由 sh updatekey.sh 调用

PUT 请求创建快照

PUT /_snapshot/test_es/test_snapshot_1?wait_for_completion=true
{
  "indices": "test*",
  "ignore_unavailable": true,
  "include_global_state": false
}

运行此程序时,我收到以下错误

{
  "error": {
    "root_cause": [
      {
        "type": "repository_exception",
        "reason": "[test_es] Could not determine repository generation from root blobs"
      }
    ],
    "type": "repository_exception",
    "reason": "[test_es] Could not determine repository generation from root blobs",
    "caused_by": {
      "type": "i_o_exception",
      "reason": "Exception when listing blobs by prefix [index-]",
      "caused_by": {
        "type": "sdk_client_exception",
        "reason": "sdk_client_exception: The requested metadata is not found at http://169.254.169.254/latest/meta-data/iam/security-credentials/"
      }
    }
  },
  "status": 500
}

不确定出了什么问题..非常感谢任何帮助

elasticsearch
1个回答
-1
投票

这个问题你解决了吗?我也有同样的感受

© www.soinside.com 2019 - 2024. All rights reserved.