Timeshift corrupts all snapshots when no disk space is available

Đang mở
#477 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
linux
Lĩnh vực
operating-systems

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện kịch bản btrfs khi ổ đĩa đầy, sau đó kiểm tra cách Timeshift xử lý các lỗi khi ghi /etc/timeshift/timeshift.json và info.json của từng snapshot. Kiểm tra đường dẫn khởi động và luồng thông báo "không còn dung lượng", bao gồm cả hành động Analyze Disk Usage. Được xem là hoàn tất khi Timeshift vẫn đủ khả dụng để xóa các snapshot mà không làm hỏng hoặc mất siêu dữ liệu của chúng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Describe the bug
I run timeshift with btrfs and had a full SSD. I opend timeshift to see if i can delete any snapshot to gain some space. Timeshift did not open. (Many ENOSPC errors in the console). I couldnt safe a log or coredump, as my drive was full. I think the final error message was, that /etc/timeshift/timeshift.json was not writeable.
While i tried to open timeshift i also entered the subvolid=0 of my btrfs. I saw all snapshots. I then noticed, that the info.json of all snapshots was gone.

I solved the problem with the little space differently (deleting docker images) and open timeshift up again. This time it worked, but all my snapshots where gone. A look into the subvolid=0 mount confirmed this. Aparently timeshift had deleted all snapshots, because they had no valid info.json anymore.

To Reproduce
Steps to reproduce the behavior:
(I havent tested how reproduceable this is)

  1. Configure timeshift with btrfs
  2. Create some snapshots
  3. Fill the drive to the brim (ex. sudo dd if=/dev/urandom of=big.file make sure the root-reserved space is also allocated.)
  4. get massive errors from all programs that the disk is full
  5. try to open timeshift (crash)
  6. free space
  7. open timeshift again
  8. snapshots gone

Expected behavior
If no space is available, timeshift should not crash, but allow the user to delete snapshots. In the best case, the notification, that shows "no space left" should have a button to open timeshift, next to the "Analyze Disk Usage" Button.

Screenshots
In that moment i was not able to store any logs, screenshots or crashdumps :c i will try to reproduce this in a vm.

System:

  • Linux Distribution Name and Version: Linux Mint 21
  • Desktop: Cinnamon x11
  • Application Version: 24.06.3
  • btrfs mode
Ngôn ngữ chính
Vala
Star
4.3k
Fork
159
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của linuxmint/timeshift

Tất cả issue của linuxmint/timeshift

Issue tương tự

Thêm issue về Operating Systems

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.