Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up[R4.0 RC2] qvm-backup-restore or qvm-backup error #3211
Comments
na--
changed the title from
qvm-backup-restore error
to
[R4.0 RC2] qvm-backup-restore or qvm-backup error
Oct 25, 2017
andrewdavidwong
added
bug
C: core
P: major
labels
Oct 26, 2017
andrewdavidwong
added this to the Release 4.0 milestone
Oct 26, 2017
andrewdavidwong
referenced this issue
Oct 27, 2017
Closed
qvm-backup-restore fails to properly parse labels #3219
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
na--
Oct 27, 2017
Thanks! I'll test the proposed fix later to see if it works. In my case it was Qubes 4.0 RC2 backups failing to be restored in the same RC2 machine, but it looks like the same issue and error.
Earlier today I had only very minor problems restring 3.2 backups in 4.0 RC2 - application shortcuts needed to be refreshed and virt_mode defaults to pv, but the restored VMs work perfectly. My current issue is that it's very hard to know how much free space I have left in 4.0, but that's a separate issue
na--
commented
Oct 27, 2017
•
|
Thanks! I'll test the proposed fix later to see if it works. In my case it was Qubes 4.0 RC2 backups failing to be restored in the same RC2 machine, but it looks like the same issue and error. Earlier today I had only very minor problems restring 3.2 backups in 4.0 RC2 - application shortcuts needed to be refreshed and virt_mode defaults to pv, but the restored VMs work perfectly. My current issue is that it's very hard to know how much free space I have left in 4.0, but that's a separate issue |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jwoytek
Oct 27, 2017
jwoytek
commented
Oct 27, 2017
|
For the record, after implementing the quick fix, we were able to
successfully restore rc1 to rc1 and rc2, and rc2 to rc2.
On Fri, Oct 27, 2017 at 5:11 AM na-- ***@***.***> wrote:
Thank, I'll test the proposed fix later to see if it works. In my case it
was Qubes 4.0 RC2 backups failing to be restored in the same RC2 machine,
but it looks like the same issue and error.
Earlier today I had only very minor problems restring 3.2 backups in 4.0
RC2 - application shortcuts needed to be refreshed and virt_mode defaults
to pv, but the restored VMs work perfectly. My current issue is that it's
very hard to know how much free space I have left in 4.0, but that's a
separate issue
--
Sent from my Commodore64
|
marmarek
self-assigned this
Oct 29, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
tasket
Nov 1, 2017
I encountered this error when trying --verify-only on a new backup, and unsuccessfully tried @jwoytek workaround like this:
"At line 134 in file /usr/lib/python3.5/site-packages/qubesadmin/backup/core3.py:"
vm.label = vm.properties.pop('label')
try:
vm.label = self.labels[vm.label]
except KeyError:
pass
This yields the same error. I then tried commenting-out the first "vm.label =" line and got:
File "/usr/lib64/python3.5/posixpath.py", line 139, in basename
i = p.rfind(sep) + 1
AttributeError: 'NoneType' object has no attribute 'rfind'
I successfully restored an R3.2 backup a few days ago, but currently I have to assume R4 qvm-backup is broken and that the new archive file is bad, so I am looking for a simple alternative.
tasket
commented
Nov 1, 2017
|
I encountered this error when trying --verify-only on a new backup, and unsuccessfully tried @jwoytek workaround like this:
This yields the same error. I then tried commenting-out the first "vm.label =" line and got: I successfully restored an R3.2 backup a few days ago, but currently I have to assume R4 qvm-backup is broken and that the new archive file is bad, so I am looking for a simple alternative. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 1, 2017
Member
The backup archive produced by R4 qvm-backup is ok. The restore code is broken. I'm working on this right now.
|
The backup archive produced by R4 qvm-backup is ok. The restore code is broken. I'm working on this right now. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
See the commit I've just pushed (automatically linked above). |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
tasket
Nov 1, 2017
@marmarek Maybe there is a different issue related to file paths, as I'm still getting the AttributeError shown above (KeyError is gone).
tasket
commented
Nov 1, 2017
|
@marmarek Maybe there is a different issue related to file paths, as I'm still getting the AttributeError shown above (KeyError is gone). |
marmarek
closed this
in
marmarek/qubes-core-admin-client@7f728e2
Nov 9, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
opposablebrain
commented
Nov 10, 2017
•
marmarek
reopened this
Nov 10, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Nov 14, 2017
Automated announcement from builder-github
The package qubes-core-admin-client_4.0.10-1+deb8u1 has been pushed to the r4.0 testing repository for the Debian jessie template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing jessie-testing, then use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
qubesos-bot
commented
Nov 14, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-jessie-cur-test
label
Nov 14, 2017
qubesos-bot
referenced this issue
in QubesOS/updates-status
Nov 14, 2017
Closed
core-admin-client v4.0.10 (r4.0) #294
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Nov 14, 2017
Automated announcement from builder-github
The package qubes-core-admin-client_4.0.10-1+deb9u1 has been pushed to the r4.0 testing repository for the Debian stretch template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing stretch-testing, then use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
qubesos-bot
commented
Nov 14, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-stretch-cur-test
label
Nov 14, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Nov 14, 2017
Automated announcement from builder-github
The package python2-qubesadmin-4.0.10-0.1.fc24 has been pushed to the r4.0 testing repository for the Fedora fc24 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r4.0-current-testing
qubesos-bot
commented
Nov 14, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-fc24-cur-test
label
Nov 14, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Nov 14, 2017
Automated announcement from builder-github
The package python2-qubesadmin-4.0.10-0.1.fc25 has been pushed to the r4.0 testing repository for the Fedora fc25 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r4.0-current-testing
qubesos-bot
commented
Nov 14, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-fc25-cur-test
label
Nov 14, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Nov 14, 2017
Automated announcement from builder-github
The package python2-qubesadmin-4.0.10-0.1.fc26 has been pushed to the r4.0 testing repository for the Fedora fc26 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r4.0-current-testing
qubesos-bot
commented
Nov 14, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-fc26-cur-test
label
Nov 14, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Nov 14, 2017
Automated announcement from builder-github
The package python2-qubesadmin-4.0.10-0.1.fc25 has been pushed to the r4.0 testing repository for dom0.
To test this update, please install it with the following command:
sudo qubes-dom0-update --enablerepo=qubes-dom0-current-testing
qubesos-bot
commented
Nov 14, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-dom0-cur-test
label
Nov 14, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Dec 11, 2017
Automated announcement from builder-github
The package qubes-core-admin-client_4.0.11-1+deb8u1 has been pushed to the r4.0 stable repository for the Debian jessie template.
To install this update, please use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
qubesos-bot
commented
Dec 11, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
r4.0-jessie-stable
and removed
r4.0-jessie-cur-test
labels
Dec 11, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Dec 11, 2017
Automated announcement from builder-github
The package qubes-core-admin-client_4.0.11-1+deb9u1 has been pushed to the r4.0 stable repository for the Debian stretch template.
To install this update, please use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
qubesos-bot
commented
Dec 11, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
r4.0-stretch-stable
and removed
r4.0-stretch-cur-test
labels
Dec 11, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Dec 11, 2017
Automated announcement from builder-github
The package python2-qubesadmin-4.0.11-0.1.fc25 has been pushed to the r4.0 stable repository for dom0.
To install this update, please use the standard update command:
sudo qubes-dom0-update
Or update dom0 via Qubes Manager.
qubesos-bot
commented
Dec 11, 2017
|
Automated announcement from builder-github The package
Or update dom0 via Qubes Manager. |
qubesos-bot
added
r4.0-dom0-stable
and removed
r4.0-dom0-cur-test
labels
Dec 11, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Jan 5, 2018
Automated announcement from builder-github
The package python2-qubesadmin-4.0.12-0.1.fc24 has been pushed to the r4.0 stable repository for the Fedora fc24 template.
To install this update, please use the standard update command:
sudo yum update
qubesos-bot
commented
Jan 5, 2018
|
Automated announcement from builder-github The package
|
qubesos-bot
added
r4.0-fc24-stable
and removed
r4.0-fc24-cur-test
labels
Jan 5, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Jan 5, 2018
Automated announcement from builder-github
The package python2-qubesadmin-4.0.12-0.1.fc25 has been pushed to the r4.0 stable repository for the Fedora fc25 template.
To install this update, please use the standard update command:
sudo yum update
qubesos-bot
commented
Jan 5, 2018
|
Automated announcement from builder-github The package
|
qubesos-bot
added
r4.0-fc25-stable
and removed
r4.0-fc25-cur-test
labels
Jan 5, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Jan 5, 2018
Automated announcement from builder-github
The package python2-qubesadmin-4.0.12-0.1.fc26 has been pushed to the r4.0 stable repository for the Fedora fc26 template.
To install this update, please use the standard update command:
sudo yum update
qubesos-bot
commented
Jan 5, 2018
|
Automated announcement from builder-github The package
|
qubesos-bot
added
r4.0-fc26-stable
and removed
r4.0-fc26-cur-test
labels
Jan 5, 2018
mossy-nw
referenced this issue
Jan 16, 2018
Closed
Restoring R4.0_rc3 backups >53.0 GB fail with error #3468
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Does it still apply? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
na--
Feb 27, 2018
Your original commit fixed the issue for me and, if memory serves, I've restored backups after that with no problems. So I'm closing this and if @opposablebrain or someone else still has problems, creating a new issue would probably be better.
na--
commented
Feb 27, 2018
|
Your original commit fixed the issue for me and, if memory serves, I've restored backups after that with no problems. So I'm closing this and if @opposablebrain or someone else still has problems, creating a new issue would probably be better. |
na-- commentedOct 25, 2017
Qubes OS version:
R4.0 RC2
Affected TemplateVMs:
none (dom0 issue)
Steps to reproduce the behavior:
Create a backup with
qvm-backup --compress /some/file some-vmand then try to restore from it viaqvm-backup-restore /some/fileExpected behavior:
Successful restore of the backed up VM.
Actual behavior:
The following error is displayed:
General notes:
I'm not even sure why the
KeyErrorisred, since the backup contained only a single VM - the defaultdebian-8template that has a black label...Related issues:
None that I could find