1panel新版本更新失败

当前 v1.10.7-lts,更新时提示缺少1Panel.db-shm和1Panel.db-wal文件,手动在db目录下建立空文件后也无法更新。

root@l-u-101:/opt/1panel/db# vi 1Panel.db-wal
root@l-u-101:/opt/1panel/db# ls -l
total 358308
-rw-r–r-- 1 root root 177713152 May 28 16:35 1Panel.db
-rw-r–r-- 1 root root 0 May 28 16:35 1Panel.db-shm
-rw-r–r-- 1 root root 0 May 28 16:35 1Panel.db-wal
-rw-r–r-- 1 root root 189177856 May 28 16:34 monitor.db
drwxr-xr-x 2 root root 4096 May 28 09:36 xpack
root@l-u-101:/opt/1panel/db# tail -f /opt/1panel/log/1Panel.log
[2024-05-28 16:34:48] [INFO] start to upgrade now…
[2024-05-28 16:34:58] [INFO] download all file successful!
[2024-05-28 16:34:58] [DEBUG] tar zxvfC /opt/1panel/tmp/upgrade/upgrade_20240528163448/downloads/1panel-v1.10.9-lts-linux-amd64.tar.gz /opt/1panel/tmp/upgrade/upgrade_20240528163448/downloads
[2024-05-28 16:35:00] [DEBUG] tar --warning=no-file-changed --ignore-failed-read -zcf /opt/1panel/tmp/upgrade/upgrade_20240528163448/original/db.tar.gz --exclude ./1Panel.db-* --exclude .sock -C /opt/1panel db
[2024-05-28 16:35:10] [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-28 16:35:10] [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-28 16:35:45] [INFO] start to upgrade now…
[2024-05-28 16:35:51] [INFO] download all file successful!
[2024-05-28 16:35:51] [DEBUG] tar zxvfC /opt/1panel/tmp/upgrade/upgrade_20240528163545/downloads/1panel-v1.10.9-lts-linux-amd64.tar.gz /opt/1panel/tmp/upgrade/upgrade_20240528163545/downloads
[2024-05-28 16:35:52] [DEBUG] tar --warning=no-file-changed --ignore-failed-read -zcf /opt/1panel/tmp/upgrade/upgrade_20240528163545/original/db.tar.gz --exclude ./1Panel.db-
--exclude *.sock -C /opt/1panel db
[2024-05-28 16:36:02] [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-28 16:36:02] [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
^C
root@l-u-101:/opt/1panel/db# ls -l
total 358308
-rw-r–r-- 1 root root 177713152 May 28 16:36 1Panel.db
-rw-r–r-- 1 root root 189177856 May 28 16:34 monitor.db
drwxr-xr-x 2 root root 4096 May 28 09:36 xpack

看一下这个解决方案