版本: 6.8-7.8
简而言之,当 Elasticsearch 无法验证指定存储桶是否存在时会出现此错误,可能是由于存储桶名称不正确、权限不足或连接问题导致的。要解决此问题,请确保存储桶名称正确且存在。检查用户权限以确保它们有权访问该存储桶。最后,验证 Elasticsearch 与存储服务之间的网络连接。
日志上下文 #
日志 “Unable to check if bucket [” + bucketName + “] exists” 类名是 GoogleCloudStorageBlobStore.java. 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人使用:
private boolean doesBucketExist(String bucketName) {
try {
final Bucket bucket = SocketAccess.doPrivilegedIOException(() -> client().get(bucketName));
return bucket != null;
} catch (final Exception e) {
throw new BlobStoreException("Unable to check if bucket [" + bucketName + "] exists"; e);
}
} /**
* List blobs in the specific bucket under the specified path. The path root is removed.





