failed to index assert(eon > ofs)

22 views
Skip to first unread message

Markus Klemm

unread,
Jul 25, 2024, 8:50:03 AMJul 25
to bup-...@googlegroups.com
Hi,

bup "-d" "/home/klemm_ma/Share/BackupReliant2024" "init"
bup "-d" "/home/klemm_ma/Share/BackupReliant2024" "fsck" "--quick" "-j"
"4"
Exit code: 0
bup "-d" "/home/klemm_ma/Share/BackupReliant2024" "index" "-u" "--
exclude" "/home/klemm_ma/.cache" "--exclude"
"/home/klemm_ma/.conan/data" "/home/klemm_ma"
Traceback (most recent call last):
File "/usr/lib/bup/cmd/bup-index", line 295, in <module>
update_index(rp, excluded_paths, exclude_rxs,
xdev_exceptions=xexcept,
File "/usr/lib/bup/cmd/bup-index", line 126, in update_index
rig.next()
File "/usr/lib/bup/cmd/bup-index", line 37, in __next__
self.cur = next(self.i, None)
File "/usr/lib/bup/cmd/../bup/index.py", line 459, in iter
for sub in root.iter(name=name, wantrecurse=wantrecurse):
File "/usr/lib/bup/cmd/../bup/index.py", line 397, in iter
for e in child.iter(name=name, wantrecurse=wantrecurse):
File "/usr/lib/bup/cmd/../bup/index.py", line 397, in iter
for e in child.iter(name=name, wantrecurse=wantrecurse):
File "/usr/lib/bup/cmd/../bup/index.py", line 397, in iter
for e in child.iter(name=name, wantrecurse=wantrecurse):
[Previous line repeated 6 more times]
File "/usr/lib/bup/cmd/../bup/index.py", line 389, in iter
assert(eon > ofs)
AssertionError

Exit code: 1
Kup did not successfully complete the bup backup job: failed to index
everything.

I am using Ubuntu 22.04.4 LTS 6.5.0-41-generic
with bup bup --version
0.32. Is there a fix, or something wrong otherwise?

Regards

Markus Klemm

Rob Browning

unread,
Jul 25, 2024, 10:21:00 PMJul 25
to Markus Klemm, bup-...@googlegroups.com
Markus Klemm <markus...@rohde-schwarz.com> writes:

> Exit code: 1
> Kup did not successfully complete the bup backup job: failed to index
> everything.
>
> I am using Ubuntu 22.04.4 LTS 6.5.0-41-generic
> with bup bup --version
> 0.32. Is there a fix, or something wrong otherwise?

Offhand, while this doesn't explain what went wrong, you could try
clearing the index (i.e. via "bup ... index --clear". That'll make the
next index run more expensive, but should be otherwise harmless.

(We do have some known issues with the current index, which I have done
some work toward resolving, but haven't finished yet.)

Hope this helps
--
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4

Markus Klemm

unread,
Aug 8, 2024, 8:01:25 AMAug 8
to r...@defaultvalue.org, bup-...@googlegroups.com
Hi Rob,

thank you very much, --clear did the job, my backup was successfull
after that.

If it helps for a bug hunt of the cause: I tried --check before, but
this also failed due to an assertion:


klemm_ma@reliant:~/Development$ bup -d
"/home/klemm_ma/Share/BackupReliant2024" index --check
check: starting initial check.                                       
check: checking forward iteration...                                 
index error! at (b'target-ExperimentalStart-Debug-
fe21437a7bde3b6f2f99.json',0xfc01,6340770,1,1715756428519538858,1715756


428519538858,1715756428631566357,1458,33188/16384,0x0000,3569936,0x00b5


1edf/0)                                    

Traceback (most recent call last):                                   

  File "/usr/lib/bup/cmd/bup-index", line 278, in <module>           
    check_index(index.Reader(indexfile))                             
  File "/usr/lib/bup/cmd/bup-index", line 47, in check_index         
    for e in reader.forward_iter():                                  
  File "/usr/lib/bup/cmd/../bup/index.py", line 447, in forward_iter 
    assert(eon > ofs)                                                
AssertionError                                                       
klemm_ma@reliant:~/Development

Have a nice day and regards

Markus

Rob Browning

unread,
Aug 8, 2024, 4:06:20 PMAug 8
to Markus Klemm, bup-...@googlegroups.com
Markus Klemm <markus...@rohde-schwarz.com> writes:

> Hi Rob,
>
> thank you very much, --clear did the job, my backup was successfull
> after that.
>
> If it helps for a bug hunt of the cause: I tried --check before, but
> this also failed due to an assertion:

Glad that fixed it, and be even happier once we fix the underling issue.
Reply all
Reply to author
Forward
0 new messages