Skip to content

OSS Transfer v4.1.43

Choose a tag to compare

@github-actions github-actions released this 12 Nov 10:52
· 13 commits to main since this release

修复

  • 目标端密钥只有写入权限(没有 s3:GetObject)时,继续或重试任务不再卡住。恢复任务时,执行节点会用 HEAD 核对中断前已写入的对象;冲突策略为“覆盖同名对象或文件”且 HEAD 被拒绝(403)时,这些对象会被视为未确认并重新写入一遍,任务可以继续完成。其他两种冲突策略仍需 HEAD 才能判断,行为不变。

新功能

  • 逐项检查存储桶权限:在“存储连接 → 测试连接 → 检查指定存储桶”中,会在该存储桶上实际执行迁移用到的请求(列举、HEAD、GET),并逐项显示结果和一句结论;勾选写入检查后,还会检查条件写入、读回和分片上传,写入的测试对象检查后删除。CLI 为 oss-transfer-cli storage test <连接名> --bucket <存储桶> [--write],任一必需项未通过时退出码为 1。需要 Master 和执行节点都是 v4.1.43。
  • 手动运行:没有 systemd、也不能用 Docker 的主机,可以用 deploy/manual/oss-transfer-run.sh 直接运行发布包中的程序,它负责后台运行、异常退出后重启和日志。“添加节点”窗口新增“手动运行”页签和“复制邀请链接”按钮,oss-transfer-agent --join-url 也会忽略复制时带上的 ?lang=… 等安装参数。

改进

  • 加入命令恢复为 curl -fsSL '…' | bash。以普通用户运行时,安装脚本会自动通过 sudo 重新执行。
  • 连接测试窗口中“检查指定存储桶”的输入框标签不再被遮挡。
  • 文档:README 新增手动运行说明和对象比对的必要性与代价,规划文档按用途说明目标端各项权限,补充多张中英文截图,Linux 支持按 systemd、Bash 和 curl 的版本说明。

Fixes

  • Resuming or retrying a task no longer gets stuck when the target key can write but lacks s3:GetObject. On recovery, the Agent checks the objects written before the interruption with HEAD. Under the conflict policy "Overwrite existing objects or files", objects whose HEAD is denied (403) are now treated as unconfirmed and written again, so the task can finish. The other two policies need HEAD to decide and behave as before.

New

  • Per-permission bucket check: under Storage connections → Test connection → Check a bucket, the check runs the requests a migration makes on that bucket (list, HEAD, GET) and shows each result with a one-sentence verdict. With the write check selected, it also tries a conditional write, a read-back and a multipart upload, and deletes its test object afterwards. In the CLI: oss-transfer-cli storage test <connection> --bucket <bucket> [--write], which exits 1 when a required check fails. It needs the Master and the Agents on v4.1.43.
  • Run manually: on hosts without systemd that cannot use Docker, deploy/manual/oss-transfer-run.sh runs the programs of the release archive, restarts them after an unexpected exit and keeps their logs. The Add node dialog has a new Run manually tab and a Copy invitation link button, and oss-transfer-agent --join-url ignores installer parameters such as ?lang=… copied with the link.

Improvements

  • The join command is a plain curl -fsSL '…' | bash again; run by a user who is not root, the installer restarts itself through sudo.
  • The label of the Check a bucket field in the connection test is no longer cut off.
  • Documentation: the README covers running manually and why and at what cost to compare objects, the planning guide explains each target permission by use, new screenshots in Chinese and English, and Linux support is described by systemd, Bash and curl versions.