Skip to content

minio对象储存问题 #76

@tokpig

Description

@tokpig

4.264 [MAIN] ℹ 🚀 运行模式:增量更新 4.264 [MAIN] ℹ ⚡ 最大并发数:4 4.265 [MAIN] ℹ 🔧 处理模式:多进程集群 4.265 [MAIN] ℹ 🏗️ 使用构建器:PhotoGalleryBuilder (适配器模式) 4.295 [MAIN] ℹ Perl 已安装 4.296 [MAIN] ℹ 🚀 开始从存储获取照片列表... 4.296 [MAIN] ℹ 🔗 使用端点:https://api.3283.org 4.296 [MAIN] ℹ 🌐 自定义域名:https://s3-cdn.3283.org 4.297 [MAIN] ℹ 🪣 存储桶:images 4.297 [MAIN] ℹ 📂 前缀:photos/ 4.299 4.299 [FS] ERROR 🔍 未找到 manifest 文件/解析失败,创建新的 manifest 文件... 4.299 4.299 [MAIN] ℹ 现有 manifest 包含 0 张照片 4.713 4.713 [MAIN] ERROR ❌ 构建 manifest 失败: getaddrinfo ENOTFOUND images.api.3283.org 4.713 4.713 at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) 4.713 4.714 4.714 [MAIN] ERROR 构建失败: getaddrinfo ENOTFOUND images.api.3283.org 4.714 4.714 at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)

Iris 在默认配置下 拼接了 S3 的虚拟主机风格 URL,把桶名 images 拼接到了 endpoint 上,结果变成了错误的域名 images.api.3283.org。

forcePathStyle:是兼容 MinIO 的关键选项,告诉客户端不要将桶名加在域名前面(虚拟主机模式),而是路径拼接。

大多数使用 AWS S3 协议的工具,默认使用以下两种方式生成访问地址:

Image

S3_FORCE_PATH_STYLE=true

用了也没有用呀

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions