Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion failure in monitor #218

Open
Eric678 opened this issue Oct 23, 2024 · 1 comment
Open

Assertion failure in monitor #218

Eric678 opened this issue Oct 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Eric678
Copy link

Eric678 commented Oct 23, 2024

wyng monitor --- the archive passes full arch-check fine. There are 2-4 sessions for each volume.

Wyng 0.8 beta release 20240827

Preparing snapshots in '/dev/qubes_dom0/'...
Warning: Local '/dev/qubes_dom0/boot' does not exist!
Warning: Local '/dev/qubes_dom0/efi' does not exist!
Warning: Local '/dev/qubes_dom0/vm-sys-usb-private' does not exist!
Warning: Local '/dev/qubes_dom0/wyng-qubes-metadata' does not exist!
Acquiring deltas.
  6222 ch, 7 dis| root
  344 ch, 0 dis | vm-anon-whonix-private
Traceback (most recent call last):
  File "/usr/local/bin/wyng", line 5115, in <module>
    monitor_send(storage, aset, vols or selected_vols, monitor_only=True)
  File "/usr/local/bin/wyng", line 3814, in monitor_send
    updated, svsize, vperms = storage.process_deltas(storage, aset, datavol, monitor_only)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/wyng", line 3184, in update_delta_digest_lvm
    assert t1 == t2
           ^^^^^^^^
@tasket tasket added the bug Something isn't working label Oct 23, 2024
@Eric678
Copy link
Author

Eric678 commented Oct 27, 2024

@tasket I presume this is the result of the above (on next backup after the assert fail):

Removed mis-matched snapshot for 'vm-anon-whonix-private'
  Queuing full scan of 'vm-anon-whonix-private'

I notice that I have a .tick and .tock LV for each qube, not sure when they appeared, assumed left over from above, noticed a couple of days later.
Guessing that the .tock is a renamed .tick when a vol is queued and a new .tick is forked?
A bit more info on how wyng works for those that don't read python would be useful to decide what to do when there is a failure.

The backup that had the above warning eventually failed 6 qubes later with:

Traceback (most recent call last):
  File "/usr/local/bin/wyng", line 5125, in <module>
    sid = monitor_send(storage, aset, vols or selected_vols, monitor_only=False, use_sesid=sid,
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/wyng", line 3835, in monitor_send
    send_volume(storage, vol, curtime, ses_tags, send_all=datavol in send_alls)
  File "/usr/local/bin/wyng", line 3598, in send_volume
    raise RuntimeError("tar transport failure code %d" % retcode)
RuntimeError: tar transport failure code 1

Given that tar exit 1 is due to a file mod time changing during backup, could this be related to the assert fail in monitor?
Nothing much was running and I was just watching the backup terminal. How to recover?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants