Some restore operations fail after running gc

115 views
Skip to first unread message

Yusuf Tran

unread,
Nov 6, 2015, 4:14:45 PM11/6/15
to ZBackup general discussion
Hi,

I'm using the latest version of zbackup on a central backup server (1.4.4) and recently ran gc on my repo's with default 'fast' setting.
Now when I try to restore I'm getting errors reporting certain bundle files are missing, just wondering if anyone else has had this problem?

If it helps, the backup server is CentOS 7.

Yusuf

Yusuf Tran

unread,
Nov 6, 2015, 4:20:15 PM11/6/15
to ZBackup general discussion
if it helps, I've been using zbackup since the 1.4.1 so some old backups were done with that version!

Vladimir Stackov

unread,
Nov 6, 2015, 4:47:17 PM11/6/15
to Yusuf Tran, ZBackup general discussion
Greetings,

can you rebuild zbackup with debug enabled (cmake -DCMAKE_BUILD_TYPE=Debug) and post complete output of failing restore?
Have you interrupted garbage collection process?

2015-11-07 0:20 GMT+03:00 Yusuf Tran <linh...@gmail.com>:
if it helps, I've been using zbackup since the 1.4.1 so some old backups were done with that version!

--
You received this message because you are subscribed to the Google Groups "ZBackup general discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zbackup+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Kind regards,
Vladimir.

Yusuf Tran

unread,
Nov 6, 2015, 5:12:20 PM11/6/15
to ZBackup general discussion, linh...@gmail.com
Hi Vlad,

I think the GC failed on one of the repo's if I recall correctly, error couldn't open file, apologies, this may be why restore is failing.
Does this mean the repo is unrecoverable now?

Would you still like me to build a debug version and run a restore?

Vladimir Stackov

unread,
Nov 9, 2015, 1:27:17 PM11/9/15
to Yusuf Tran, ZBackup general discussion
>I think the GC failed on one of the repo's if I recall correctly, error couldn't open file, apologies, this may be why restore is failing.

I don't get it.
What error have you seen when was failed?

Vladimir Stackov

unread,
Nov 9, 2015, 1:27:27 PM11/9/15
to Yusuf Tran, ZBackup general discussion
*When GC was failed
--
Kind regards,
Vladimir.

yusuf...@cognolink.com

unread,
Nov 10, 2015, 4:10:05 AM11/10/15
to ZBackup general discussion, linh...@gmail.com

Apologies Vlad, I've lost track of the error, I know, not much help, in the mean time I've made a new repository and going to test gc again to try and catch the error.

yusuf...@cognolink.com

unread,
Nov 10, 2015, 4:24:11 AM11/10/15
to ZBackup general discussion
ok, testing again on another old repo (without running gc yet), errors when restoring:

error: size of the encrypted file is incorrect
...
error: Bad padding encountered
...
[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type "FileHeader" because it is missing re
quired fields: version
...
error: Can't parse message FileHeader

I think backups made with 1.4.1 are incompatible with 1.4.4, gonna test with a few more backups and gc process

Vladimir Stackov

unread,
Nov 10, 2015, 4:36:03 AM11/10/15
to yusuf...@cognolink.com, ZBackup general discussion
Looks like one of your bundles is damaged (by some external force) before GC.
ZBackup currently does not support bundle recovering and there is an issue so you can track progress: https://github.com/zbackup/zbackup/issues/31

Backups of 1.4.1 are compatible with 1.4.4, all released versions was backward-compatible.

Anyway I've raised an issue to eliminate some risks of GC: https://github.com/zbackup/zbackup/issues/104

--
You received this message because you are subscribed to the Google Groups "ZBackup general discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zbackup+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Kind regards,
Vladimir.

Yusuf Tran

unread,
Nov 10, 2015, 7:46:33 AM11/10/15
to ZBackup general discussion, yusuf...@cognolink.com
ok, thanks Vlad
Reply all
Reply to author
Forward
0 new messages