Skip to content

[BUG]centos v1.10.7-lts 更新到v1.10.8-lts 报错 #5111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Coflys opened this issue May 23, 2024 · 5 comments
Closed

[BUG]centos v1.10.7-lts 更新到v1.10.8-lts 报错 #5111

Coflys opened this issue May 23, 2024 · 5 comments
Assignees
Milestone

Comments

@Coflys
Copy link

Coflys commented May 23, 2024

联系方式

No response

1Panel 版本

v1.10.7-lts

问题描述

[2024-05-23 11:54:19] [INFO] start to upgrade now...
[2024-05-23 11:54:40] [INFO] download all file successful!
[2024-05-23 11:54:40] [DEBUG] tar zxvfC /opt/1panel/tmp/upgrade/upgrade_20240523115419/downloads/1panel-v1.10.8-lts-linux-amd64.tar.gz /opt/1panel/tmp/upgrade/upgrade_20240523115419/downloads
[2024-05-23 11:54:43] [DEBUG] tar --warning=no-file-changed --ignore-failed-read -zcf /opt/1panel/tmp/upgrade/upgrade_20240523115419/original/db.tar.gz --exclude ./1Panel.db-* --exclude .sock -C /opt/1panel db
[2024-05-23 11:54:46] [ERROR] do handle tar failed, stdout: stderr: tar: db/1Panel.db-wal: File removed before we read it
tar: db/1Panel.db-shm: File removed before we read it
, err: exit status 1
[2024-05-23 11:54:46] [ERROR] handle backup original file failed, err: do handle tar failed, stdout: stderr: tar: db/1Panel.db-wal: File removed before we read it
tar: db/1Panel.db-shm: File removed before we read it
, err: exit status 1
[2024-05-23 11:57:01] [DEBUG] tar --warning=no-file-changed --ignore-failed-read -zcf /opt/1panel/backup/system/1panel_v1.10.7-lts_amd64_20240523115701/1panel/1panel_backup.tar.gz --exclude ./system --exclude ./system_snapshot --exclude .sock -C /opt/1panel/backup .
[2024-05-23 11:57:01] [DEBUG] docker save 1panel/openresty:1.21.4.3-2-2-focal snowdreamtech/frps:0.58.0 | gzip -c > /opt/1panel/backup/system/1panel_v1.10.7-lts_amd64_20240523115701/docker/docker_image.tar
[2024-05-23 11:58:42] [DEBUG] tar --warning=no-file-changed --ignore-failed-read -zcf /opt/1panel/backup/system/1panel_v1.10.7-lts_amd64_20240523115701/1panel/1panel_data.tar.gz --exclude ./tmp --exclude ./log --exclude ./cache --exclude ./db/1Panel.db-
--exclude ./backup --exclude .
.sock --exclude .sock -C /opt/1panel .
[2024-05-23 11:59:07] [DEBUG] compress successful! size of file: 335.07M
[2024-05-23 11:59:07] [DEBUG] remove snapshot file /opt/1panel/backup/system/1panel_v1.10.7-lts_amd64_20240523115701
[2024-05-23 11:59:07] [DEBUG] start upload snapshot to LOCAL, path: system_snapshot/1panel_v1.10.7-lts_amd64_20240523115701.tar.gz
[2024-05-23 11:59:08] [DEBUG] upload to LOCAL successful
[2024-05-23 11:59:08] [DEBUG] remove snapshot file /opt/1panel/tmp/system/1panel_v1.10.7-lts_amd64_20240523115701.tar.gz
[2024-05-23 12:03:52] [INFO] start to upgrade now...
[2024-05-23 12:04:14] [INFO] download all file successful!
[2024-05-23 12:04:14] [DEBUG] tar zxvfC /opt/1panel/tmp/upgrade/upgrade_20240523120352/downloads/1panel-v1.10.8-lts-linux-amd64.tar.gz /opt/1panel/tmp/upgrade/upgrade_20240523120352/downloads
[2024-05-23 12:04:17] [DEBUG] tar --warning=no-file-changed --ignore-failed-read -zcf /opt/1panel/tmp/upgrade/upgrade_20240523120352/original/db.tar.gz --exclude ./1Panel.db-
--exclude *.sock -C /opt/1panel db
[2024-05-23 12:04:19] [ERROR] do handle tar failed, stdout: stderr: tar: db/1Panel.db-wal: File removed before we read it
tar: db/1Panel.db-shm: File removed before we read it
, err: exit status 1
[2024-05-23 12:04:19] [ERROR] handle backup original file failed, err: do handle tar failed, stdout: stderr: tar: db/1Panel.db-wal: File removed before we read it
tar: db/1Panel.db-shm: File removed before we read it
, err: exit status 1

重现步骤

centos v1.10.7-lts 更新到v1.10.8-lts 报错

期待的正确结果

No response

相关日志输出

No response

附加信息

No response

@ssongliu
Copy link
Member

ssongliu commented May 23, 2024

感谢反馈,这里是升级前备份排除规则的问题。
已经在 #5107 这个 pr 中修复,可以先 1pctl restore 回滚,等下个版本

@Coflys
Copy link
Author

Coflys commented May 23, 2024

好的,已经回滚

@maninhill maninhill added this to the v1.10.9-lts milestone May 23, 2024
@wanghe-fit2cloud
Copy link
Member

v1.10.9-lts 版本已发布。
系统升级失败的临时解决方案:https://bbs.fit2cloud.com/t/topic/5579

@Coflys
Copy link
Author

Coflys commented May 24, 2024

地址不存在,是删除了,还是没有权限哦,看不到哦
image

@Coflys
Copy link
Author

Coflys commented May 24, 2024

看到更新了,
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants