[Feature Requests & Feedback] 25 alpha创建备份无法成功。
Tofloor
poster avatar
罗建平
deepin
2025-04-03 21:45
Author

25 alpha创建备份无法成功。到进度条98%等4分钟就显示失败
image.png

Reply Favorite View the author
All Replies
ssk-wh
deepin
2025-04-07 17:11
#1

尝试下使用下面的命令去创建快照,然后把报错贴一下,我记得这个好像是mount失败了,内部已修复,可能还没对外推新版本吧

sudo DDE_DEBUG_LEVEL=debug deepin-immutable-ctl snapshot create "test-name" "test-desc" -wv

Reply View the author
hotime
deepin
2025-04-08 22:29
#2
ssk-wh

尝试下使用下面的命令去创建快照,然后把报错贴一下,我记得这个好像是mount失败了,内部已修复,可能还没对外推新版本吧

sudo DDE_DEBUG_LEVEL=debug deepin-immutable-ctl snapshot create "test-name" "test-desc" -wv

hotime@T5s-25:~$ sudo DDE_DEBUG_LEVEL=debug deepin-immutable-ctl snapshot create "Deepin25Alpha-02" "20250408 测试备份" -wv
请输入密码:
验证成功

 ostree_manager.go:253: Begin backup OS...
 ostree_manager.go:568: Data commit with index: da54baf6801cfa59d6d096eacc6e4ec1af3a5bd644f3305e110f5e2a34995de4.0
 ostree_manager.go:607: System commit with index: d13959498186e83c870a834bd0b586e1422bc1933cb52196736dab163906934a.0
Preparing backup environment...
 ostree_manager.go:619: Init data layer...
 ostree_manager.go:640: Checkout da54baf6801cfa59d6d096eacc6e4ec1af3a5bd644f3305e110f5e2a34995de4 to /persistent/ostree/data/tmp-244088495/checkout
 ostree_manager.go:654: Setup fuse mount: /persistent/ostree/data/tmp-244088495 -> /persistent/ostree/data/tmp-244088495/fuse-mnt
 ostree_manager.go:677: Mounting overlay
 ostree_manager.go:734: Clean socket files in opt
 utils.go:1239: Copying kernel to /boot
 utils.go:1258: File /boot/vmlinuz-6.12.9-amd64-desktop-rolling already exists, skip copying
 utils.go:1258: File /boot/config-6.12.9-amd64-desktop-rolling already exists, skip copying
 utils.go:1258: File /boot/System.map-6.12.9-amd64-desktop-rolling already exists, skip copying
 utils.go:1258: File /boot/initrd.img-6.12.9-amd64-desktop-rolling already exists, skip copying
 utils.go:1258: File /boot/vmlinuz-6.6.71-amd64-desktop-hwe already exists, skip copying
 utils.go:1258: File /boot/config-6.6.71-amd64-desktop-hwe already exists, skip copying
 utils.go:1258: File /boot/System.map-6.6.71-amd64-desktop-hwe already exists, skip copying
 utils.go:1258: File /boot/initrd.img-6.6.71-amd64-desktop-hwe already exists, skip copying
 ostree_manager.go:684: Unmounting overlay
 ostree_manager.go:760: Replace char files...
 main.go:651: Replace char files in /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/etc
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/etc
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/lib/x86_64-linux-gnu/libEGL.so.1.1.0
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/lib/x86_64-linux-gnu/libEGL.so.1.1.0
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/lib/x86_64-linux-gnu/libGL.so.1.7.0
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/lib/x86_64-linux-gnu/libGL.so.1.7.0
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/lib/x86_64-linux-gnu/libGLESv2.so.2.1.0
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/lib/x86_64-linux-gnu/libGLESv2.so.2.1.0
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/lib/x86_64-linux-gnu/libdde-control-center.so.6.1.16
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/lib/x86_64-linux-gnu/libdde-control-center.so.6.1.16
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/opt
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/opt
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/doc/gtk2-engines-pixbuf/AUTHORS
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/doc/gtk2-engines-pixbuf/AUTHORS
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/doc/gtk2-engines-pixbuf/NEWS.gz
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/doc/gtk2-engines-pixbuf/NEWS.gz
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/doc/gtk2-engines-pixbuf/README.gz
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/doc/gtk2-engines-pixbuf/README.gz
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/doc/libnatspec0/README
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/doc/libnatspec0/README
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/bloom/actions/24/draw-triangle1.svg
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/bloom/actions/24/draw-triangle1.svg
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/bloom/actions/24/draw-triangle2.svg
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/bloom/actions/24/draw-triangle2.svg
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/bloom/actions/24/draw-triangle3.svg
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/bloom/actions/24/draw-triangle3.svg
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/bloom/actions/24/draw-triangle4.svg
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/bloom/actions/24/draw-triangle4.svg
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/128x128/apps/fcitx.png
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/128x128/apps/fcitx.png
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/22x22/apps/fcitx.png
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/22x22/apps/fcitx.png
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/24x24/apps/fcitx.png
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/24x24/apps/fcitx.png
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/32x32/apps/fcitx.png
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/32x32/apps/fcitx.png
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/48x48/apps/fcitx.png
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/48x48/apps/fcitx.png
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/scalable/apps/fcitx.svg
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/scalable/apps/fcitx.svg
 ostree_manager.go:660: Umount fuse mount: /persistent/ostree/data/tmp-244088495/fuse-mnt
 ostree_manager.go:772: Commit fuse-mnt to ostree...
 ostree_manager.go:783: Data layer init done
 ostree_manager.go:629: Remove tmp dir: /persistent/ostree/data/tmp-244088495
 ostree_manager.go:260: Backup success, sys commit: d13959498186e83c870a834bd0b586e1422bc1933cb52196736dab163906934a, data commit: b0baf8b6a4beea24ef3b3769a7089ff4d060e3cd531d040a22346475c63b4a0e
 ostree_manager.go:264: Backup var data to: /persistent/ostree/snapshot/ea818f870b52f53e
 ostree_manager.go:281: Update snapshot config, done
 ostree_manager.go:192: Snapshot backup data deleted: [d47081c15f7f29fb]
 ostree_manager.go:200: Snapshot is invalid: ea818f870b52f53e, error: system repo reference does not exist for snapshot: ea818f870b52f53e
Error: snap ID not exists: ea818f870b52f53e
Reply View the author
ssk-wh
deepin
2025-04-09 15:25
#3
hotime
hotime@T5s-25:~$ sudo DDE_DEBUG_LEVEL=debug deepin-immutable-ctl snapshot create "Deepin25Alpha-02" "20250408 测试备份" -wv
请输入密码:
验证成功

 ostree_manager.go:253: Begin backup OS...
 ostree_manager.go:568: Data commit with index: da54baf6801cfa59d6d096eacc6e4ec1af3a5bd644f3305e110f5e2a34995de4.0
 ostree_manager.go:607: System commit with index: d13959498186e83c870a834bd0b586e1422bc1933cb52196736dab163906934a.0
Preparing backup environment...
 ostree_manager.go:619: Init data layer...
 ostree_manager.go:640: Checkout da54baf6801cfa59d6d096eacc6e4ec1af3a5bd644f3305e110f5e2a34995de4 to /persistent/ostree/data/tmp-244088495/checkout
 ostree_manager.go:654: Setup fuse mount: /persistent/ostree/data/tmp-244088495 -> /persistent/ostree/data/tmp-244088495/fuse-mnt
 ostree_manager.go:677: Mounting overlay
 ostree_manager.go:734: Clean socket files in opt
 utils.go:1239: Copying kernel to /boot
 utils.go:1258: File /boot/vmlinuz-6.12.9-amd64-desktop-rolling already exists, skip copying
 utils.go:1258: File /boot/config-6.12.9-amd64-desktop-rolling already exists, skip copying
 utils.go:1258: File /boot/System.map-6.12.9-amd64-desktop-rolling already exists, skip copying
 utils.go:1258: File /boot/initrd.img-6.12.9-amd64-desktop-rolling already exists, skip copying
 utils.go:1258: File /boot/vmlinuz-6.6.71-amd64-desktop-hwe already exists, skip copying
 utils.go:1258: File /boot/config-6.6.71-amd64-desktop-hwe already exists, skip copying
 utils.go:1258: File /boot/System.map-6.6.71-amd64-desktop-hwe already exists, skip copying
 utils.go:1258: File /boot/initrd.img-6.6.71-amd64-desktop-hwe already exists, skip copying
 ostree_manager.go:684: Unmounting overlay
 ostree_manager.go:760: Replace char files...
 main.go:651: Replace char files in /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/etc
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/etc
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/lib/x86_64-linux-gnu/libEGL.so.1.1.0
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/lib/x86_64-linux-gnu/libEGL.so.1.1.0
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/lib/x86_64-linux-gnu/libGL.so.1.7.0
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/lib/x86_64-linux-gnu/libGL.so.1.7.0
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/lib/x86_64-linux-gnu/libGLESv2.so.2.1.0
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/lib/x86_64-linux-gnu/libGLESv2.so.2.1.0
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/lib/x86_64-linux-gnu/libdde-control-center.so.6.1.16
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/lib/x86_64-linux-gnu/libdde-control-center.so.6.1.16
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/opt
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/opt
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/doc/gtk2-engines-pixbuf/AUTHORS
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/doc/gtk2-engines-pixbuf/AUTHORS
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/doc/gtk2-engines-pixbuf/NEWS.gz
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/doc/gtk2-engines-pixbuf/NEWS.gz
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/doc/gtk2-engines-pixbuf/README.gz
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/doc/gtk2-engines-pixbuf/README.gz
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/doc/libnatspec0/README
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/doc/libnatspec0/README
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/bloom/actions/24/draw-triangle1.svg
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/bloom/actions/24/draw-triangle1.svg
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/bloom/actions/24/draw-triangle2.svg
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/bloom/actions/24/draw-triangle2.svg
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/bloom/actions/24/draw-triangle3.svg
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/bloom/actions/24/draw-triangle3.svg
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/bloom/actions/24/draw-triangle4.svg
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/bloom/actions/24/draw-triangle4.svg
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/128x128/apps/fcitx.png
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/128x128/apps/fcitx.png
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/22x22/apps/fcitx.png
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/22x22/apps/fcitx.png
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/24x24/apps/fcitx.png
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/24x24/apps/fcitx.png
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/32x32/apps/fcitx.png
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/32x32/apps/fcitx.png
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/48x48/apps/fcitx.png
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/48x48/apps/fcitx.png
 main.go:683: Create whiteout file for: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/scalable/apps/fcitx.svg
 main.go:693: Deleted file: /persistent/ostree/data/tmp-244088495/fuse-mnt/checkout/usr/share/icons/hicolor/scalable/apps/fcitx.svg
 ostree_manager.go:660: Umount fuse mount: /persistent/ostree/data/tmp-244088495/fuse-mnt
 ostree_manager.go:772: Commit fuse-mnt to ostree...
 ostree_manager.go:783: Data layer init done
 ostree_manager.go:629: Remove tmp dir: /persistent/ostree/data/tmp-244088495
 ostree_manager.go:260: Backup success, sys commit: d13959498186e83c870a834bd0b586e1422bc1933cb52196736dab163906934a, data commit: b0baf8b6a4beea24ef3b3769a7089ff4d060e3cd531d040a22346475c63b4a0e
 ostree_manager.go:264: Backup var data to: /persistent/ostree/snapshot/ea818f870b52f53e
 ostree_manager.go:281: Update snapshot config, done
 ostree_manager.go:192: Snapshot backup data deleted: [d47081c15f7f29fb]
 ostree_manager.go:200: Snapshot is invalid: ea818f870b52f53e, error: system repo reference does not exist for snapshot: ea818f870b52f53e
Error: snap ID not exists: ea818f870b52f53e

这是一个内部还没发现的bug,针对于从之前的版本升级上来的用户会有这种问题,已经定位到原因,本周内部就可以修复,需要等下个版本推送,更新deepin-immutable-ctl(> 0.0.33)这个包再尝试创建快照

Reply View the author
hotime
deepin
2025-04-09 20:02
#4
ssk-wh

这是一个内部还没发现的bug,针对于从之前的版本升级上来的用户会有这种问题,已经定位到原因,本周内部就可以修复,需要等下个版本推送,更新deepin-immutable-ctl(> 0.0.33)这个包再尝试创建快照

前面发的确实是从deepin25preview通过控制中心升级到alpha的。

我这另一个全新安装alpha的设备(安装好后进行过一次控制中心升级),也是备份失败的。

日志输出超过了万行,最后几行内容是这样:

 ostree_manager.go:913: Total migration size: 75363264
 ostree_manager.go:1280: Checking out system commit: a7f74ef4b0ba1298ae5d158236d25e6eaa5319415482dc5a2c76108f0b85fd8d ...
 ostree_manager.go:794: Remove tmp dir: /persistent/ostree/data/tmp-3623668416
Error: failed to create snapshot: failed to backup current system, failed to move to system: failed to checkout system commit: failed to execute ostree checkout command: command { /usr/bin/ostree checkout --repo=/sysroot/ostree/repo -H a7f74ef4b0ba1298ae5d158236d25e6eaa5319415482dc5a2c76108f0b85fd8d /sysroot/immutable/checkout } failed, error: exit status 1, stderr: error: Hardlinking 38/9846c2702216e1367c8dfb68326a6b93ccf5703c89c93979052a9bf359608e.file to bin: 无效的跨设备链接
Reply View the author
ssk-wh
deepin
2025-04-10 14:02
#5
It has been deleted!
ssk-wh
deepin
2025-04-10 14:04
#6
hotime

前面发的确实是从deepin25preview通过控制中心升级到alpha的。

我这另一个全新安装alpha的设备(安装好后进行过一次控制中心升级),也是备份失败的。

日志输出超过了万行,最后几行内容是这样:

 ostree_manager.go:913: Total migration size: 75363264
 ostree_manager.go:1280: Checking out system commit: a7f74ef4b0ba1298ae5d158236d25e6eaa5319415482dc5a2c76108f0b85fd8d ...
 ostree_manager.go:794: Remove tmp dir: /persistent/ostree/data/tmp-3623668416
Error: failed to create snapshot: failed to backup current system, failed to move to system: failed to checkout system commit: failed to execute ostree checkout command: command { /usr/bin/ostree checkout --repo=/sysroot/ostree/repo -H a7f74ef4b0ba1298ae5d158236d25e6eaa5319415482dc5a2c76108f0b85fd8d /sysroot/immutable/checkout } failed, error: exit status 1, stderr: error: Hardlinking 38/9846c2702216e1367c8dfb68326a6b93ccf5703c89c93979052a9bf359608e.file to bin: 无效的跨设备链接

我先反馈下内部测试同学吧,看能否复现出来,这个情况确实没见到过,需要出现后再分析下原因

Reply View the author
罗建平
deepin
2025-04-11 17:26
#7

刚用命令更新了一下V25 ALPHA系统,在UI界面创建备份还是到98%失败,和更新前一样。原来是等待4分钟失败,现在要等到6分钟失败,不知道什么原因。

Reply View the author
zhaohui
deepin
Community Developer
2025-04-15 17:34
#8
罗建平

刚用命令更新了一下V25 ALPHA系统,在UI界面创建备份还是到98%失败,和更新前一样。原来是等待4分钟失败,现在要等到6分钟失败,不知道什么原因。

已经定位到原因,是Alpha系统中存在的bug,在新版本中已修复,需要等下个版本推送更新deepin-immutable-ctl这个包

Reply View the author
hotime
deepin
2025-04-15 21:12
#9
ssk-wh

我先反馈下内部测试同学吧,看能否复现出来,这个情况确实没见到过,需要出现后再分析下原因

系统环境

hotime@Miix4-dp25
-----------------
OS: Deepin beige 25 x86_64
Host: 80QL (Lenovo ideapad MIIX 700-12ISK)
Kernel: Linux 6.6.71-amd64-desktop-hwe
Uptime: 6 mins
Packages: 1871 (dpkg)
Shell: bash 5.2.21
Display (SDC4144): 2160x1440 @ 60 Hz in 12″ [Built-in]
DE: DDE
WM: KWin (X11)
Theme: deepin [GTK2]
Icons: nirvana [GTK2]
Cursor: bloom
Terminal: deepin-terminal 6.0.17
Terminal Font: Noto Sans Mono (14pt)
CPU: Intel(R) Core(TM) m3-6Y30 (4) @ 2.20 GHz
GPU: Intel HD Graphics 515 @ 0.85 GHz [Integrated]
Memory: 2.02 GiB / 3.72 GiB (54%)
Swap: 512.00 KiB / 4.40 GiB (0%)
Disk (/): 7.08 GiB / 22.47 GiB (32%) - ext4
Disk (/persistent): 33.87 GiB / 88.08 GiB (38%) - ext4
Local IP (wlp1s0): 192.168.1.8/24
Battery (L15L4P71): 70% [Discharging]
Locale: zh_CN.UTF-8

问题描述

deepin25Alpha备份失败

复现步骤

  1. 全盘安装deepin25Alpha
  2. 安装完成进入系统后,通过控制中心更新至Alpha最新
  3. 更新完成重启后,打开终端,手动执行命令进行系统备份并记录日志,命令如下:
sudo sh -c 'DDE_DEBUG_LEVEL=debug deepin-immutable-ctl snapshot create "test-name" "test-desc" -wv > immut_backup.log 2>&1'

日志文件

一万五千余行:immut_backup.txt

截图/录屏

补充信息

deepin-immutable-ctl:0.0.31.5

稍微不一样的地方是,我曾用自己编写的脚本为系统级目录写入过一些文件(这些文件在原系统中并不存在),不确定这一行为是否有影响,如:

/etc/vim/vimrc.local
/usr/local/bin/xxx(私人脚本)
/etc/X11/xorg.conf.d/50-Miix4-FolioTouch.conf(用于开启触摸板右键滚动)
/etc/X11/xorg.conf.d/60-Miix4-ElanTouchscreen.conf(用于屏蔽半坏的触摸屏)
Reply View the author
我是昵称
deepin
2025-04-15 21:40
#10
ssk-wh

尝试下使用下面的命令去创建快照,然后把报错贴一下,我记得这个好像是mount失败了,内部已修复,可能还没对外推新版本吧

sudo DDE_DEBUG_LEVEL=debug deepin-immutable-ctl snapshot create "test-name" "test-desc" -wv

系统环境

虚拟机全新安装的

OS: Deepin beige 25 x86_64
Host: VirtualBox (1.2)
Kernel: Linux 6.12.9-amd64-desktop-rolling
Uptime: 32 mins
Packages: 1761 (dpkg)
Shell: bash 5.2.21
Display (Virtual1): 1280x800 @ 60 Hz
DE: DDE
WM: KWin (X11)
Icons: nirvana [GTK2]
Cursor: bloom
Terminal: deepin-terminal 6.0.17
Terminal Font: Noto Sans Mono (11pt)
CPU: Intel(R) Core(TM) i7-14700 (8) @ 2.11 GHz
GPU: VMware SVGA II Adapter
Memory: 2.13 GiB / 5.78 GiB (37%)
Swap: 0 B / 8.18 GiB (0%)
Disk (/): 7.08 GiB / 22.47 GiB (32%) - ext4
Disk (/persistent): 16.68 GiB / 65.71 GiB (25%) - ext4
Local IP (enp0s3): 10.0.2.15/24
Locale: zh_CN.UTF-8

问题描述

复现步骤

日志文件

 overlay_syncher.go:156: Deleting dir /persistent/ostree/data/tmp-672226187/ovl-mnt/boot/initrd.img-6.12.9-amd64-desktop-rolling
 overlay_syncher.go:173: Copying file /persistent/ostree/data/tmp-672226187/ovl-mnt/boot/initrd.img-6.12.9-amd64-desktop-rolling
 overlay_syncher.go:156: Deleting dir /persistent/ostree/data/tmp-672226187/ovl-mnt/boot/vmlinuz-6.12.9-amd64-desktop-rolling
 overlay_syncher.go:173: Copying file /persistent/ostree/data/tmp-672226187/ovl-mnt/boot/vmlinuz-6.12.9-amd64-desktop-rolling
 ostree_manager.go:877: System layer root: /sysroot/ostree/deploy/deepin/deploy/a7f74ef4b0ba1298ae5d158236d25e6eaa5319415482dc5a2c76108f0b85fd8d.2
 ostree_manager.go:882: System admin dir: /sysroot/ostree/deploy/deepin/deploy/a7f74ef4b0ba1298ae5d158236d25e6eaa5319415482dc5a2c76108f0b85fd8d.2/usr/lib/dpkg/var
 ostree_manager.go:1348: Skip non-regular file /persistent/ostree/data/tmp-672226187/checkout/usr/lib/dpkg/var/info/linux-headers-6.6.71-amd64-desktop-hwe.list, mode: Dcrw-r--r--
 ostree_manager.go:1348: Skip non-regular file /persistent/ostree/data/tmp-672226187/checkout/usr/lib/dpkg/var/info/linux-headers-deepin-hwe-amd64.list, mode: Dcrw-r--r--
 ostree_manager.go:1348: Skip non-regular file /persistent/ostree/data/tmp-672226187/checkout/usr/lib/dpkg/var/info/linux-image-6.6.71-amd64-desktop-hwe.list, mode: Dcrw-r--r--
 ostree_manager.go:1348: Skip non-regular file /persistent/ostree/data/tmp-672226187/checkout/usr/lib/dpkg/var/info/linux-image-deepin-hwe-amd64.list, mode: Dcrw-r--r--
 ostree_manager.go:895: System package list files: []
 ostree_manager.go:913: Total migration size: 0
 ostree_manager.go:931: Data volume insufficient to trigger migration to system layer
 utils.go:1060: Run in normal
 ostree_manager.go:794: Remove tmp dir: /persistent/ostree/data/tmp-672226187
Error: failed to create snapshot: failed to backup current system, failed to create ref, failed to execute ostree refs --create command: command { /usr/bin/ostree --repo=/sysroot/ostree/repo refs --create=snapshot/2e4a82c65e62e904 a7f74ef4b0ba1298ae5d158236d25e6eaa5319415482dc5a2c76108f0b85fd8d } failed, error: exit status 1, stderr: error: open(O_TMPFILE): 只读文件系统

截图/录屏

Reply View the author
ssk-wh
deepin
2025-04-17 16:59
#11
hotime

系统环境

hotime@Miix4-dp25
-----------------
OS: Deepin beige 25 x86_64
Host: 80QL (Lenovo ideapad MIIX 700-12ISK)
Kernel: Linux 6.6.71-amd64-desktop-hwe
Uptime: 6 mins
Packages: 1871 (dpkg)
Shell: bash 5.2.21
Display (SDC4144): 2160x1440 @ 60 Hz in 12″ [Built-in]
DE: DDE
WM: KWin (X11)
Theme: deepin [GTK2]
Icons: nirvana [GTK2]
Cursor: bloom
Terminal: deepin-terminal 6.0.17
Terminal Font: Noto Sans Mono (14pt)
CPU: Intel(R) Core(TM) m3-6Y30 (4) @ 2.20 GHz
GPU: Intel HD Graphics 515 @ 0.85 GHz [Integrated]
Memory: 2.02 GiB / 3.72 GiB (54%)
Swap: 512.00 KiB / 4.40 GiB (0%)
Disk (/): 7.08 GiB / 22.47 GiB (32%) - ext4
Disk (/persistent): 33.87 GiB / 88.08 GiB (38%) - ext4
Local IP (wlp1s0): 192.168.1.8/24
Battery (L15L4P71): 70% [Discharging]
Locale: zh_CN.UTF-8

问题描述

deepin25Alpha备份失败

复现步骤

  1. 全盘安装deepin25Alpha
  2. 安装完成进入系统后,通过控制中心更新至Alpha最新
  3. 更新完成重启后,打开终端,手动执行命令进行系统备份并记录日志,命令如下:
sudo sh -c 'DDE_DEBUG_LEVEL=debug deepin-immutable-ctl snapshot create "test-name" "test-desc" -wv > immut_backup.log 2>&1'

日志文件

一万五千余行:immut_backup.txt

截图/录屏

补充信息

deepin-immutable-ctl:0.0.31.5

稍微不一样的地方是,我曾用自己编写的脚本为系统级目录写入过一些文件(这些文件在原系统中并不存在),不确定这一行为是否有影响,如:

/etc/vim/vimrc.local
/usr/local/bin/xxx(私人脚本)
/etc/X11/xorg.conf.d/50-Miix4-FolioTouch.conf(用于开启触摸板右键滚动)
/etc/X11/xorg.conf.d/60-Miix4-ElanTouchscreen.conf(用于屏蔽半坏的触摸屏)

这些文件是不影响的

问题我们内部已解决,要等推送,和8楼回复的问题原因是一样的

Reply View the author
ssk-wh
deepin
2025-04-17 17:01
#12
我是昵称

系统环境

虚拟机全新安装的

OS: Deepin beige 25 x86_64
Host: VirtualBox (1.2)
Kernel: Linux 6.12.9-amd64-desktop-rolling
Uptime: 32 mins
Packages: 1761 (dpkg)
Shell: bash 5.2.21
Display (Virtual1): 1280x800 @ 60 Hz
DE: DDE
WM: KWin (X11)
Icons: nirvana [GTK2]
Cursor: bloom
Terminal: deepin-terminal 6.0.17
Terminal Font: Noto Sans Mono (11pt)
CPU: Intel(R) Core(TM) i7-14700 (8) @ 2.11 GHz
GPU: VMware SVGA II Adapter
Memory: 2.13 GiB / 5.78 GiB (37%)
Swap: 0 B / 8.18 GiB (0%)
Disk (/): 7.08 GiB / 22.47 GiB (32%) - ext4
Disk (/persistent): 16.68 GiB / 65.71 GiB (25%) - ext4
Local IP (enp0s3): 10.0.2.15/24
Locale: zh_CN.UTF-8

问题描述

复现步骤

日志文件

 overlay_syncher.go:156: Deleting dir /persistent/ostree/data/tmp-672226187/ovl-mnt/boot/initrd.img-6.12.9-amd64-desktop-rolling
 overlay_syncher.go:173: Copying file /persistent/ostree/data/tmp-672226187/ovl-mnt/boot/initrd.img-6.12.9-amd64-desktop-rolling
 overlay_syncher.go:156: Deleting dir /persistent/ostree/data/tmp-672226187/ovl-mnt/boot/vmlinuz-6.12.9-amd64-desktop-rolling
 overlay_syncher.go:173: Copying file /persistent/ostree/data/tmp-672226187/ovl-mnt/boot/vmlinuz-6.12.9-amd64-desktop-rolling
 ostree_manager.go:877: System layer root: /sysroot/ostree/deploy/deepin/deploy/a7f74ef4b0ba1298ae5d158236d25e6eaa5319415482dc5a2c76108f0b85fd8d.2
 ostree_manager.go:882: System admin dir: /sysroot/ostree/deploy/deepin/deploy/a7f74ef4b0ba1298ae5d158236d25e6eaa5319415482dc5a2c76108f0b85fd8d.2/usr/lib/dpkg/var
 ostree_manager.go:1348: Skip non-regular file /persistent/ostree/data/tmp-672226187/checkout/usr/lib/dpkg/var/info/linux-headers-6.6.71-amd64-desktop-hwe.list, mode: Dcrw-r--r--
 ostree_manager.go:1348: Skip non-regular file /persistent/ostree/data/tmp-672226187/checkout/usr/lib/dpkg/var/info/linux-headers-deepin-hwe-amd64.list, mode: Dcrw-r--r--
 ostree_manager.go:1348: Skip non-regular file /persistent/ostree/data/tmp-672226187/checkout/usr/lib/dpkg/var/info/linux-image-6.6.71-amd64-desktop-hwe.list, mode: Dcrw-r--r--
 ostree_manager.go:1348: Skip non-regular file /persistent/ostree/data/tmp-672226187/checkout/usr/lib/dpkg/var/info/linux-image-deepin-hwe-amd64.list, mode: Dcrw-r--r--
 ostree_manager.go:895: System package list files: []
 ostree_manager.go:913: Total migration size: 0
 ostree_manager.go:931: Data volume insufficient to trigger migration to system layer
 utils.go:1060: Run in normal
 ostree_manager.go:794: Remove tmp dir: /persistent/ostree/data/tmp-672226187
Error: failed to create snapshot: failed to backup current system, failed to create ref, failed to execute ostree refs --create command: command { /usr/bin/ostree --repo=/sysroot/ostree/repo refs --create=snapshot/2e4a82c65e62e904 a7f74ef4b0ba1298ae5d158236d25e6eaa5319415482dc5a2c76108f0b85fd8d } failed, error: exit status 1, stderr: error: open(O_TMPFILE): 只读文件系统

截图/录屏

和挂载相关的问题,我们内部也是修复了的,也要等推送

方便说一下deepin-immutable-ctl的版本么以及你的系统的分区情况吗,我好确认是否这个修复对你有效

使用apt policy deepin-immutable-ctl和findmnt去查看

Reply View the author
我是昵称
deepin
2025-04-17 21:04
#13
ssk-wh

和挂载相关的问题,我们内部也是修复了的,也要等推送

方便说一下deepin-immutable-ctl的版本么以及你的系统的分区情况吗,我好确认是否这个修复对你有效

使用apt policy deepin-immutable-ctl和findmnt去查看

testtest@testtest-PC:~$ apt policy deepin-immutable-ctl
deepin-immutable-ctl:
  已安装:0.0.31.4
  候选: 0.0.31.5
  版本列表:
     0.0.31.5 500
        500 https://proposed-packages.deepin.com/beige-testing unstable/25/commercial amd64 Packages
 *** 0.0.31.4 100
        100 /usr/lib/dpkg/var/status
testtest@testtest-PC:~$ findmnt
TARGET SOURCE   FSTYPE   OPTIONS
/      /dev/sda3[/ostree/deploy/deepin/deploy/a7f74ef4b0ba1298ae5d158236d25e6eaa5319415482dc5a2c76108f0b85fd8d.2]
│               ext4     rw,relatime
├─/sys sysfs    sysfs    rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/security
│ │    securityfs
│ │             security rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/cgroup
│ │    cgroup2  cgroup2  rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot
│ ├─/sys/fs/pstore
│ │    pstore   pstore   rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/bpf
│ │    bpf      bpf      rw,nosuid,nodev,noexec,relatime,mode=700
│ ├─/sys/kernel/debug
│ │    debugfs  debugfs  rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/tracing
│ │    tracefs  tracefs  rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/fuse/connections
│ │    fusectl  fusectl  rw,nosuid,nodev,noexec,relatime
│ └─/sys/kernel/config
│      configfs configfs rw,nosuid,nodev,noexec,relatime
├─/proc
│ │    proc     proc     rw,nosuid,nodev,noexec,relatime
│ └─/proc/sys/fs/binfmt_misc
│   │  systemd-1
│   │           autofs   rw,relatime,fd=32,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=7262
│   └─/proc/sys/fs/binfmt_misc
│      binfmt_misc
│               binfmt_m rw,nosuid,nodev,noexec,relatime
├─/dev udev     devtmpfs rw,nosuid,relatime,size=2951084k,nr_inodes=737771,mode=755
│ ├─/dev/pts
│ │    devpts   devpts   rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
│ ├─/dev/shm
│ │    tmpfs    tmpfs    rw,nosuid,nodev
│ ├─/dev/hugepages
│ │    hugetlbfs
│ │             hugetlbf rw,nosuid,nodev,relatime,pagesize=2M
│ └─/dev/mqueue
│      mqueue   mqueue   rw,nosuid,nodev,noexec,relatime
├─/run tmpfs    tmpfs    rw,nosuid,nodev,noexec,relatime,size=606176k,mode=755
│ ├─/run/lock
│ │    tmpfs    tmpfs    rw,nosuid,nodev,noexec,relatime,size=5120k
│ └─/run/user/1000
│   │  tmpfs    tmpfs    rw,nosuid,nodev,relatime,size=606172k,nr_inodes=151543,mode=700,uid=1000,gid=1000
│   └─/run/user/1000/gvfs
│      gvfsd-fuse
│               fuse.gvf rw,nosuid,nodev,relatime,user_id=1000,group_id=1000
├─/usr usr-overlay
│               overlay  ro,relatime,lowerdir=/root/persistent/ostree/data/9fcb73ccfe58ca88e604dd8246123ac3336
├─/opt opt-overlay
│               overlay  rw,relatime,lowerdir=/root/persistent/ostree/data/9fcb73ccfe58ca88e604dd8246123ac3336
├─/etc etc-overlay
│               overlay  rw,relatime,lowerdir=/root/persistent/ostree/data/9fcb73ccfe58ca88e604dd8246123ac3336
├─/sysroot
│ │    /dev/sda3
│ │             ext4     rw,relatime
│ └─/sysroot/ostree
│      /dev/sda3[/ostree]
│               ext4     ro,relatime
├─/persistent
│ │    /dev/sda5
│ │             ext4     rw,relatime
│ └─/persistent/ostree
│      /dev/sda5[/ostree]
│               ext4     ro,relatime
├─/var /dev/sda5[/ostree/deploy/deepin/var]
│               ext4     rw,relatime
├─/home
│      /dev/sda5[/home]
│               ext4     rw,relatime
├─/root
│      /dev/sda5[/root]
│               ext4     rw,relatime
├─/tmp tmpfs    tmpfs    rw,nosuid,nodev,nr_inodes=1048576
└─/boot
       /dev/sda1
                ext4     rw,relatime
Reply View the author
ssk-wh
deepin
2025-04-18 10:05
#14
我是昵称
testtest@testtest-PC:~$ apt policy deepin-immutable-ctl
deepin-immutable-ctl:
  已安装:0.0.31.4
  候选: 0.0.31.5
  版本列表:
     0.0.31.5 500
        500 https://proposed-packages.deepin.com/beige-testing unstable/25/commercial amd64 Packages
 *** 0.0.31.4 100
        100 /usr/lib/dpkg/var/status
testtest@testtest-PC:~$ findmnt
TARGET SOURCE   FSTYPE   OPTIONS
/      /dev/sda3[/ostree/deploy/deepin/deploy/a7f74ef4b0ba1298ae5d158236d25e6eaa5319415482dc5a2c76108f0b85fd8d.2]
│               ext4     rw,relatime
├─/sys sysfs    sysfs    rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/security
│ │    securityfs
│ │             security rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/cgroup
│ │    cgroup2  cgroup2  rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot
│ ├─/sys/fs/pstore
│ │    pstore   pstore   rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/bpf
│ │    bpf      bpf      rw,nosuid,nodev,noexec,relatime,mode=700
│ ├─/sys/kernel/debug
│ │    debugfs  debugfs  rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/tracing
│ │    tracefs  tracefs  rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/fuse/connections
│ │    fusectl  fusectl  rw,nosuid,nodev,noexec,relatime
│ └─/sys/kernel/config
│      configfs configfs rw,nosuid,nodev,noexec,relatime
├─/proc
│ │    proc     proc     rw,nosuid,nodev,noexec,relatime
│ └─/proc/sys/fs/binfmt_misc
│   │  systemd-1
│   │           autofs   rw,relatime,fd=32,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=7262
│   └─/proc/sys/fs/binfmt_misc
│      binfmt_misc
│               binfmt_m rw,nosuid,nodev,noexec,relatime
├─/dev udev     devtmpfs rw,nosuid,relatime,size=2951084k,nr_inodes=737771,mode=755
│ ├─/dev/pts
│ │    devpts   devpts   rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
│ ├─/dev/shm
│ │    tmpfs    tmpfs    rw,nosuid,nodev
│ ├─/dev/hugepages
│ │    hugetlbfs
│ │             hugetlbf rw,nosuid,nodev,relatime,pagesize=2M
│ └─/dev/mqueue
│      mqueue   mqueue   rw,nosuid,nodev,noexec,relatime
├─/run tmpfs    tmpfs    rw,nosuid,nodev,noexec,relatime,size=606176k,mode=755
│ ├─/run/lock
│ │    tmpfs    tmpfs    rw,nosuid,nodev,noexec,relatime,size=5120k
│ └─/run/user/1000
│   │  tmpfs    tmpfs    rw,nosuid,nodev,relatime,size=606172k,nr_inodes=151543,mode=700,uid=1000,gid=1000
│   └─/run/user/1000/gvfs
│      gvfsd-fuse
│               fuse.gvf rw,nosuid,nodev,relatime,user_id=1000,group_id=1000
├─/usr usr-overlay
│               overlay  ro,relatime,lowerdir=/root/persistent/ostree/data/9fcb73ccfe58ca88e604dd8246123ac3336
├─/opt opt-overlay
│               overlay  rw,relatime,lowerdir=/root/persistent/ostree/data/9fcb73ccfe58ca88e604dd8246123ac3336
├─/etc etc-overlay
│               overlay  rw,relatime,lowerdir=/root/persistent/ostree/data/9fcb73ccfe58ca88e604dd8246123ac3336
├─/sysroot
│ │    /dev/sda3
│ │             ext4     rw,relatime
│ └─/sysroot/ostree
│      /dev/sda3[/ostree]
│               ext4     ro,relatime
├─/persistent
│ │    /dev/sda5
│ │             ext4     rw,relatime
│ └─/persistent/ostree
│      /dev/sda5[/ostree]
│               ext4     ro,relatime
├─/var /dev/sda5[/ostree/deploy/deepin/var]
│               ext4     rw,relatime
├─/home
│      /dev/sda5[/home]
│               ext4     rw,relatime
├─/root
│      /dev/sda5[/root]
│               ext4     rw,relatime
├─/tmp tmpfs    tmpfs    rw,nosuid,nodev,nr_inodes=1048576
└─/boot
       /dev/sda1
                ext4     rw,relatime

确实修复了,你先尝试更新deepin-immutable-ctl 到0.0.31.5版本,我记得这个版本就是修了的

后续我们自己还优化了这块流程,能更好的处理挂载的情况,会在后面推送

如果还是不行,有一个手动操作的方式可以临时解决

sudo mount -o remount,rw /sysroot/ostree

然后再执行之前的命令就可以了,不过重启会恢复

Reply View the author