Bug 467082 - Kup/bup fails to save
Summary: Kup/bup fails to save
Status: RESOLVED UPSTREAM
Alias: None
Product: kup
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Simon Persson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-08 22:36 UTC by samcaspar
Modified: 2024-05-03 08:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description samcaspar 2023-03-08 22:36:48 UTC
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
Comment 1 samcaspar 2023-03-09 00:17:44 UTC
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.
Comment 2 samcaspar 2023-06-12 03:42:52 UTC
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")
Comment 3 Simon Persson 2024-05-03 08:28:55 UTC
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.