SUMMARY Kup/bup fails to save. STEPS TO REPRODUCE 1. click 'save new backup' (Apologies it crashed a few times without me noticing the error, so I don't know what triggered the change) OBSERVED RESULT Log file: ``` Kup is starting bup backup job at Wednesday, 8 March 2023 9:41:16 PM AEDT bup "-d" "<PATH>" "init" bup "-d" "<PATH>" "index" "-u" "--exclude" <exclude paths> Exit code: 0 bup "-d" "<PATH>" "save" "-n" "kup" "-vv" "/home/<USER>" Traceback (most recent call last): File "/usr/lib/bup/cmd/bup-save", line 413, in <module> meta.hardlink_target = find_hardlink_target(hlink_db, ent) AttributeError: 'NoneType' object has no attribute 'hardlink_target' Exception ignored in: <function PackWriter.__del__ at 0x7f13e2c5d2d0> Traceback (most recent call last): File "/usr/lib/bup/cmd/../bup/git.py", line 722, in __del__ File "/usr/lib/bup/cmd/../bup/git.py", line 919, in close File "/usr/lib/bup/cmd/../bup/git.py", line 897, in _end File "/usr/lib/bup/cmd/../bup/git.py", line 942, in write NameError: name 'open' is not defined Exit code: 1 Kup did not successfully complete the bup backup job: failed to save everything. ``` SOFTWARE/OS VERSIONS KDE Plasma Version: 5.27.2 KDE Frameworks Version: 5.103.0 Qt Version: 5.15.8
Kup crashed so I restarted it with `kup-daemon &` and now I can save backups... I'll mark as resolved as there isn't much info here to work with.
I'm reopening as this keeps happening, and I now cannot fix it by restarting kup. Does anyone have any ideas? Some relevant facts: - One of my backups saves fine, the other does not. - The integrity check is satisfied, almost the whole backup is completed, and it errors right near the end. (As you can see below, with bup "save")
Sorry that I have not followed up on this bug report for so long. Since this sounds very much internal to how bup saves data, the best hope of getting this fixed is to report to the mailing list for bup: https://groups.google.com/g/bup-list Thank you for reporting! And I'm sorry I can't help more than that.