-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
"ERROR: Failed to perform backup: error in addproc" around 75% complete #1588
Comments
Duplicate of #1515 |
Backup just failed for me right as it was doing the second-to-last VM (I checked with lsof, the root.img of that second-to-last VM was open). Sure enough, error with addproc. There are three dangling symlinks in /root, a few in /var/lib/qubes/, and three dangling symlinks in my home directory. None of these should have been cause for the backup to fail, because when I performed a backup of only Dom0, that worked fine. I am so pissed right now. I had left the backup running overnight, it had backed up 400 GB of data, and then it craps out, leaving me with a corrupted file that cannot be used, and a machine I cannot move because the very thing that was supposed to protect its data from theft -- you guessed it, the backup -- simply cannot be completed. Also today I discover that the backup doesn't even want to restore the VMs that were in fact successfully backed up! So, in this sense, the backup tool is inferior to even a simple tar cvzf | openssl enc. Not to mention much slower. But I guess the thing that pisses me off the most, is that the backup tool EATS THE EXCEPTION. It shows me no error message whatsoever, just says "error in addproc". I could fix the issue if I had seen the exception, but as it is, after 400 GB of backing stuff up, to get such a cryptic error, I mean this is probably only slightly marginally better than just crapping out without any error message. WTH is addproc? Error in addproc? What error! Well, I can't know because the code won't tell me, and I do not have another eight hours to reproduce the issue at this point. I think I will stop using the backup tool altogether, and start using some other method to back up data. qubes-core-dom0-3.1.16-1.fc20.x86_64 |
@Rudd-O: Sorry to hear about your backup troubles. FWIW, I too have noticed that |
@Rudd-O do you have a lot of small VMs, or few big ones? Do you have any VM larger than 100GB? |
Yes, one of my VMs is literally 115 GB. I do have dozens of small VMs though. |
Do you use compression? I'll check that. Backup file format have archive split into 100MB files, and named with 3-digits sequential number. In theory having more than 1000 files (which is 100GB) should be handled by simply using 4-digits there, but maybe it doesn't work for some reason. |
On 06/12/2016 06:13 PM, Marek Marczykowski-Górecki wrote:
No compression. Perhaps the 1000 files limit is something I hit. But I have no way of Honestly, the backup tool should be replaced by something like
This would also allow for backup of VMs that are running, so no need to I highly recommend we research replacing qvm-backup with Duplicity.
|
We already have an issue open for considering incremental backup support (#858). Please post your comment there so that we can keep distinct issues and discussions organized. Note that we also had someone ask about Duplicity here: #971 (comment) My response was here: #971 (comment) |
I just had this same problem. First I had my 3.0 fc23 template go south and all vms refused to run, so I upgraded to 3.2 and restored my 3.0 VM's into the new system. Since I lost a few things during the transition I wanted to be sure to do a backup of the new 3.2 system before doing much configuration other than getting up to date on patches. When I did the first backup it failed with the same error, after searching for a solution I found this thread and checked my link files. I found two corrupted links which I fixed and my backups completed just now. What was in common between the two links is that they were both vm-template icon.png files, and both had an invalid path where one started with vm1//usr/share/... and the other vm8/vm8//usr/share/... but the remainder of the path was otherwise correct. Once I pointed these correctly the backup worked like a charm. Something obviously corrupted these two links in a similar manor but exactly when that happened I do not know. I'm still in recovery mode so I can not spend too much time on this right now but I thought this commonality between the two broken links might give you a clue. |
I got a functioning version of a Duplicity backend for a Qubes VM, which works well with the latest Duplicity 0.7.x present in Fedora 23. Place the following file Edit: deleted the file content from this one comment, as I am tracking it into a Github repository now. See comment below this one for more info. |
Excellent news! I have decided to track the development of that Duplicity component in its own repository: https://github.com/Rudd-O/duplicity-qubes. Enjoy! |
Same problem here. With one big qube and other lighter |
I did a fresh install of the newly released v3.2 and bumped into this without creating new VMs nor modifying any of the default VMs. Backing up a couple VMs at a time works, but when I tried shutting down and backing up all VMs in the same batch it failed with the same "addproc" error. Failure correlates with the size of the backup. Are there any recommended diagnostics I should try? Running a large backup takes a while, so I'm not eager to fumble in the dark too much. |
I believe I'm encountering the same issue. Running 3.1, with dom0 fully updated as of 2016-10-09. In preparation for upgrading to 3.2, I've been attempting to backup my AppVMs, but most attempts encounter the "error in addproc" error and abort early. This happens even on quite small backups, e.g., if I select a few small VMs totalling 500MB. It's not fully deterministic, though, as I can sometimes successfully make very small backups, e.g., 120MB. Obviously this is a bit of an impediment to upgrading to 3.2... I suppose I can manually backup the files I care about within each AppVM. |
Try running backup from command line ( Best Regards, |
Getting the same issue. "-> Backing up files: 55%...tar: david/backups/qubes-2016-10-27-T004735: file changed as we read it |
A repeat job saving to /backups in dom0 yielded the same failure. |
Ah, your destination directory is dom0 user home, right? When you make Best Regards, |
And what error did you get then? |
Sorry, I just mis-typed the command. When I backed up to somewhere other than the dom0 user home, I did not run into problems. My mistake. I think the right way to handle this issue is to serve a warning if the user selects a destination in the dom0 home. Maybe check that the destination isn't conflicting in any other ways as well, but I'm guessing this would cover 95% of the cases where people run into this error. |
I'm 100% sure I triggered this without including the backup dest in backups. The real problem does not seem related to backup target. This is pretty annoying to try to trace down since I need to wait through like an hour of backups to trigger it. :( |
Appears that anything which causes tar to exit with non-zero status will cause this. In my case the root cause was existence of files with chmod 000 rights in my dom0 home dir while trying to back up dom0, causing tar to fail. Such situations should never be possible in normal use of Qubes: "thou shalt not muck about with dom0" - especially once we have adminvm/guivm separation. I think we should close this as WONTFIX, and instead open bugs against anything in the future which is found to create unreadable files in the locations which Qubes tries to back up (not aware of any - my case and the others in this thread appear to all be user error). |
In case anyone cares... (from an R3.2 machine) Before (with unreadable files in dom0 ~):
After (without unreadable files):
|
And for those who follow who've somehow ended up with a file causing this issue and don't want to wait through backups in debug mode to figure out which and where, try:
and stop doing stuff in dom0! :P |
I'm sorry this has lingered open. I think it should be safe to close now as I haven't had backup errors in nearly a year. |
On 2018-06-12 03:12, [...] wrote:
Reopening. |
On 2018-06-13 02:45, [...] wrote:
CC: @marmarek |
This issue is being closed because:
If anyone believes that this issue should be reopened, please let us know in a comment here. |
Every time I attempt to do an encrypted backup I end up with an error around 75% complete. The error states:
As stated in the title, I am running RC3.1 and I have updated dom0 using
current testing
. Tell any other information you need.The text was updated successfully, but these errors were encountered: