Bup failed

19 views
Skip to first unread message

moritz braun

unread,
Jan 13, 2023, 2:44:43 AM1/13/23
to bup-list
Dear All

Please find below my errors

Traceback (most recent call last):
  File "/usr/lib/bup/cmd/../bup/metadata.py", line 832, in read
    result._load_posix1e_acl_rec(port)
  File "/usr/lib/bup/cmd/../bup/metadata.py", line 543, in _load_posix1e_acl_rec
    acl_rep = vint.unpack('ssss', vint.read_bvec(port))
  File "/usr/lib/bup/cmd/../bup/vint.py", line 162, in unpack
    return recv(port, types)
  File "/usr/lib/bup/cmd/../bup/vint.py", line 150, in recv
    result.append(read_bvec(port))
  File "/usr/lib/bup/cmd/../bup/vint.py", line 122, in read_bvec
    n = read_vuint(port)
  File "/usr/lib/bup/cmd/../bup/vint.py", line 38, in read_vuint
    raise EOFError('encountered EOF while reading vuint')
EOFError: encountered EOF while reading vuint

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/bup/cmd/bup-save", line 412, in <module>
    meta = msr.metadata_at(ent.meta_ofs)
  File "/usr/lib/bup/cmd/../bup/index.py", line 66, in metadata_at
    return metadata.Metadata.read(self._file)
  File "/usr/lib/bup/cmd/../bup/metadata.py", line 845, in read
    raise Exception("EOF while reading Metadata")
Exception: EOF while reading Metadata
Exception ignored in: <function PackWriter.__del__ at 0x7f18357b2050>
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

Regards


Moritz

Rob Browning

unread,
Jan 13, 2023, 2:55:19 AM1/13/23
to moritz braun, bup-list
moritz braun <moritz...@gmail.com> writes:

> File "/usr/lib/bup/cmd/../bup/vint.py", line 38, in read_vuint
> raise EOFError('encountered EOF while reading vuint')
> EOFError: encountered EOF while reading vuint

I suspect this might be a known issue with the current index
implementation. If so, then --clear(ing) your index should fix the
problem, but then the next save will be much more expensive than usual
because bup will have to rediscover the hashes.

I've been hoping to finish a possible index overhaul for a while, but
haven't yet had enough concentrated time.

Sorry for the trouble.
--
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

Johannes Berg

unread,
Jan 19, 2023, 2:15:12 PM1/19/23
to moritz braun, bup-list
Hi,

Just saw you also emailed me - I guess you found out list was quicker to
get a response ;-)

On Thu, 2023-01-12 at 23:44 -0800, moritz braun wrote:
> Dear All
>
> Please find below my errors
>
> Traceback (most recent call last):
>   File "/usr/lib/bup/cmd/../bup/metadata.py", line 832, in read
>     result._load_posix1e_acl_rec(port)
>   File "/usr/lib/bup/cmd/../bup/metadata.py", line 543, in
> _load_posix1e_acl_rec
>     acl_rep = vint.unpack('ssss', vint.read_bvec(port))
>   File "/usr/lib/bup/cmd/../bup/vint.py", line 162, in unpack
>     return recv(port, types)
>   File "/usr/lib/bup/cmd/../bup/vint.py", line 150, in recv
>     result.append(read_bvec(port))
>   File "/usr/lib/bup/cmd/../bup/vint.py", line 122, in read_bvec
>     n = read_vuint(port)
>   File "/usr/lib/bup/cmd/../bup/vint.py", line 38, in read_vuint
>     raise EOFError('encountered EOF while reading vuint')
> EOFError: encountered EOF while reading vuint

Agree with Rob, this is likely a corrupted index somehow. Not sure how
that'd have happened, but it's clearly in the metadata.py while reading
the posix1e acl, and since it was save, that must've been the index.

> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "/usr/lib/bup/cmd/bup-save", line 412, in <module>
>     meta = msr.metadata_at(ent.meta_ofs)
>   File "/usr/lib/bup/cmd/../bup/index.py", line 66, in metadata_at
>     return metadata.Metadata.read(self._file)
>   File "/usr/lib/bup/cmd/../bup/metadata.py", line 845, in read
>     raise Exception("EOF while reading Metadata")
> Exception: EOF while reading Metadata
> Exception ignored in: <function PackWriter.__del__ at 0x7f18357b2050>
> 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

Not exactly sure what that is, but also not sure what version exactly
you're running.
Reply all
Reply to author
Forward
0 new messages