1Panel-dev / 1Panel-dev/1Panel

[Bug] Image synchronization is not working properly

Open
#13,683 4 comments 0 reactions 2 assignees View on GitHub

@ssongliu is already working on this.

Since Sep 7, 2026.

type: question
Dominant language
Go
Stars
37k
Forks
3.4k
Avg merge
9h 16m
Merged PRs (30d)
105

Description

Contact Information

No response

1Panel Version

2.2.5

Problem Description

示例:A 、B、C 三个服务器,A 是主控。先尝试 从B直接镜像同步到C ,失败。于是 B->A, A->C,成功,但是镜像变了,体积变大了,并且哈希值不相同。在C上尝试执行镜像是成功的,重新拉取镜像之后恢复正常。

Image
Steps to Reproduce

B->C:(失败的记录)

2026/08/31 14:54:58 镜像同步 1 张镜像 任务开始 [START]
2026/08/31 14:54:58 开始保存镜像 ba57179e65cf
2026/08/31 14:55:01 保存镜像标签 svhd/logto:1.43.0
2026/08/31 14:56:21 保存镜像 ba57179e65cf 成功
2026/08/31 14:56:21 开始同步镜像 ba57179e65cf 到节点 10.99.1.45
2026/08/31 14:56:22 处理镜像同步节点私钥
2026/08/31 14:56:23 处理镜像同步节点公钥
2026/08/31 14:56:24 开始传输镜像临时文件:10.55.39.42:/tmp/1panel-image-sync/ba57179e65cf6a95a3dffdc21c6bdba7.tar -> 10.99.1.45:/tmp/1panel-image-sync/ba57179e65cf6a95a3dffdc21c6bdba7.tar
2026/08/31 14:58:39 ssh: connect to host 10.99.1.45 port 22: Connection timed out
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(232) [sender=3.2.7]
2026/08/31 14:58:39 同步镜像 ba57179e65cf 到节点 10.99.1.45 失败: Process exited with status 255
2026/08/31 14:58:40 镜像同步 1 张镜像 任务失败
2026/08/31 14:58:40 [TASK-END]

B->A:

2026/08/31 15:12:57 镜像同步 2 张镜像 任务开始 [START]
2026/08/31 15:12:57 开始保存镜像 7002094f7251
2026/08/31 15:13:00 保存镜像标签 commitgo/gitea-ee:27.3.0
2026/08/31 15:13:03 保存镜像 7002094f7251 成功
2026/08/31 15:13:03 开始同步镜像 7002094f7251 到节点 local
2026/08/31 15:13:03 处理镜像同步节点私钥
2026/08/31 15:13:04 处理镜像同步节点公钥
2026/08/31 15:13:05 开始传输镜像临时文件:10.55.39.42:/tmp/1panel-image-sync/7002094f7251b305d79ea7ce5d388477.tar -> 127.0.0.1:/tmp/1panel-image-sync/7002094f7251b305d79ea7ce5d388477.tar
2026/08/31 15:15:13 在节点 local 加载镜像 7002094f7251
2026/08/31 15:15:14 Loaded image: commitgo/gitea-ee:27.3.0
2026/08/31 15:15:14 同步镜像 7002094f7251 到节点 local 成功
2026/08/31 15:15:14 开始清理镜像 7002094f7251 临时文件
2026/08/31 15:15:15 清理镜像 7002094f7251 临时文件 成功
2026/08/31 15:15:15 开始保存镜像 ba57179e65cf
2026/08/31 15:15:17 保存镜像标签 svhd/logto:1.43.0
2026/08/31 15:16:38 保存镜像 ba57179e65cf 成功
2026/08/31 15:16:38 开始同步镜像 ba57179e65cf 到节点 local
2026/08/31 15:16:38 处理镜像同步节点私钥
2026/08/31 15:16:39 处理镜像同步节点公钥
2026/08/31 15:16:40 开始传输镜像临时文件:10.55.39.42:/tmp/1panel-image-sync/ba57179e65cf6a95a3dffdc21c6bdba7.tar -> 127.0.0.1:/tmp/1panel-image-sync/ba57179e65cf6a95a3dffdc21c6bdba7.tar
2026/08/31 15:25:03 在节点 local 加载镜像 ba57179e65cf
2026/08/31 15:25:33 Loaded image: svhd/logto:1.43.0
2026/08/31 15:25:33 同步镜像 ba57179e65cf 到节点 local 成功
2026/08/31 15:25:33 开始清理镜像 ba57179e65cf 临时文件
2026/08/31 15:25:35 清理镜像 ba57179e65cf 临时文件 成功
2026/08/31 15:25:35 镜像同步 2 张镜像 任务成功
2026/08/31 15:25:35 [TASK-END]

A->C:

2026/08/31 15:27:28 镜像同步 2 张镜像 任务开始 [START]
2026/08/31 15:27:28 开始保存镜像 7002094f7251
2026/08/31 15:27:28 保存镜像标签 commitgo/gitea-ee:27.3.0
2026/08/31 15:27:30 保存镜像 7002094f7251 成功
2026/08/31 15:27:30 开始同步镜像 7002094f7251 到节点 10.99.1.45
2026/08/31 15:27:30 处理镜像同步节点私钥
2026/08/31 15:27:30 处理镜像同步节点公钥
2026/08/31 15:27:30 开始传输镜像临时文件:127.0.0.1:/tmp/1panel-image-sync/7002094f7251b305d79ea7ce5d388477.tar -> 10.99.1.45:/tmp/1panel-image-sync/7002094f7251b305d79ea7ce5d388477.tar
2026/08/31 15:27:32 在节点 10.99.1.45 加载镜像 7002094f7251
2026/08/31 15:27:34 Loaded image: commitgo/gitea-ee:27.3.0
2026/08/31 15:27:34 同步镜像 7002094f7251 到节点 10.99.1.45 成功
2026/08/31 15:27:34 开始清理镜像 7002094f7251 临时文件
2026/08/31 15:27:34 清理镜像 7002094f7251 临时文件 成功
2026/08/31 15:27:34 开始保存镜像 ba57179e65cf
2026/08/31 15:27:34 保存镜像标签 svhd/logto:1.43.0
2026/08/31 15:27:47 保存镜像 ba57179e65cf 成功
2026/08/31 15:27:47 开始同步镜像 ba57179e65cf 到节点 10.99.1.45
2026/08/31 15:27:47 处理镜像同步节点私钥
2026/08/31 15:27:47 处理镜像同步节点公钥
2026/08/31 15:27:47 开始传输镜像临时文件:127.0.0.1:/tmp/1panel-image-sync/ba57179e65cf6a95a3dffdc21c6bdba7.tar -> 10.99.1.45:/tmp/1panel-image-sync/ba57179e65cf6a95a3dffdc21c6bdba7.tar
2026/08/31 15:27:56 在节点 10.99.1.45 加载镜像 ba57179e65cf
2026/08/31 15:28:18 Loaded image: svhd/logto:1.43.0
2026/08/31 15:28:18 同步镜像 ba57179e65cf 到节点 10.99.1.45 成功
2026/08/31 15:28:18 开始清理镜像 ba57179e65cf 临时文件
2026/08/31 15:28:19 清理镜像 ba57179e65cf 临时文件 成功
2026/08/31 15:28:19 镜像同步 2 张镜像 任务成功
2026/08/31 15:28:19 [TASK-END]
The expected correct result

No response

Related log output

Additional Information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.