Discussion:
[bareos-users] Restore VMware VM backup if vCenter is down
Stefan
2018-02-27 11:51:22 UTC
Permalink
My vCenter server is a Virtual Machine itself, and I've created backups of its VMDK using the Bareos VMware plugin. Now it's down and I need to restore the VMDK from a backup. This, however, seems not to be possible, as the plugins wants to connect to the vCenter server (my vCenter VM is called vc46-1):


27-Feb 12:10 bareos46-1-fd JobId 3976: Warning: python-fd: Could not retrieve SSL Cert from vc46-1.mobile.rz
27-Feb 12:10 bareos46-1-fd JobId 3976: Fatal error: python-fd: Traceback (most recent call last):
File "/usr/lib/bareos/plugins/BareosFdWrapper.py", line 62, in plugin_io
return bareos_fd_plugin_object.plugin_io(context, IOP)
File "/usr/lib/bareos/plugins/BareosFdPluginVMware.py", line 358, in plugin_io
self.vadp.keepalive()
File "/usr/lib/bareos/plugins/BareosFdPluginVMware.py", line 693, in keepalive
if int(time.time()) - self.si_last_keepalive > 900:
TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'

27-Feb 12:10 bareos-sd JobId 3976: Error: bsock_tcp.c:407 Write error sending 60131 bytes to client:10.46.22.80:9103: ERR=Connection reset by peer
27-Feb 12:10 bareos-sd JobId 3976: Fatal error: read.c:156 Error sending to File daemon. ERR=Connection reset by peer
27-Feb 12:10 bareos-sd JobId 3976: Error: bsock_tcp.c:452 Socket has errors=1 on call to client:10.46.22.80:9103
27-Feb 12:10 bareos-dir JobId 3976: Error: Bareos bareos-dir 17.2.4 (21Sep17):
Build OS: x86_64-pc-linux-gnu debian Debian GNU/Linux 8.0 (jessie)
JobId: 3976
Job: RestoreFiles.2018-02-27_12.10.37_04
Restore Client: bareos-fd
Start time: 27-Feb-2018 12:10:39
End time: 27-Feb-2018 12:10:41
Elapsed time: 2 secs
Files Expected: 2
Files Restored: 0
Bytes Restored: 0
Rate: 0.0 KB/s
FD Errors: 1
FD termination status: Error
SD termination status: Fatal Error
Termination: *** Restore Error ***


I would be happy if the plain VMDK file would just be extracted locally therefore I tried the plugin option "python:localvmdk=yes", but that didn't change the story.

How can I extract a backup of this VM without connecting to the vCenter server?
--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users+***@googlegroups.com.
To post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Stefan
2018-02-27 11:52:34 UTC
Permalink
I forgot to mention I'm running Bareos 17.2.4-6.1.
--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users+***@googlegroups.com.
To post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Stephan Duehr
2018-03-08 09:42:08 UTC
Permalink
Hello,

you probably found a bug in the plugin, technically it's not necessary to connect vCenter for
restore to local VMDK file.

If you don't mind, please create a bugreport on https://bugs.bareos.org/

Regards,

Stephan
Post by Stefan
27-Feb 12:10 bareos46-1-fd JobId 3976: Warning: python-fd: Could not retrieve SSL Cert from vc46-1.mobile.rz
File "/usr/lib/bareos/plugins/BareosFdWrapper.py", line 62, in plugin_io
return bareos_fd_plugin_object.plugin_io(context, IOP)
File "/usr/lib/bareos/plugins/BareosFdPluginVMware.py", line 358, in plugin_io
self.vadp.keepalive()
File "/usr/lib/bareos/plugins/BareosFdPluginVMware.py", line 693, in keepalive
TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'
27-Feb 12:10 bareos-sd JobId 3976: Error: bsock_tcp.c:407 Write error sending 60131 bytes to client:10.46.22.80:9103: ERR=Connection reset by peer
27-Feb 12:10 bareos-sd JobId 3976: Fatal error: read.c:156 Error sending to File daemon. ERR=Connection reset by peer
27-Feb 12:10 bareos-sd JobId 3976: Error: bsock_tcp.c:452 Socket has errors=1 on call to client:10.46.22.80:9103
Build OS: x86_64-pc-linux-gnu debian Debian GNU/Linux 8.0 (jessie)
JobId: 3976
Job: RestoreFiles.2018-02-27_12.10.37_04
Restore Client: bareos-fd
Start time: 27-Feb-2018 12:10:39
End time: 27-Feb-2018 12:10:41
Elapsed time: 2 secs
Files Expected: 2
Files Restored: 0
Bytes Restored: 0
Rate: 0.0 KB/s
FD Errors: 1
FD termination status: Error
SD termination status: Fatal Error
Termination: *** Restore Error ***
I would be happy if the plain VMDK file would just be extracted locally therefore I tried the plugin option "python:localvmdk=yes", but that didn't change the story.
How can I extract a backup of this VM without connecting to the vCenter server?
--
Stephan Dühr ***@bareos.com
Bareos GmbH & Co. KG Phone: +49 221-630693-90
http://www.bareos.com

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: S. Dühr, M. Außendorf, J. Steffens, Philipp Storz
--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users+***@googlegroups.com.
To post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Marek Grudzinski
2018-10-25 10:38:59 UTC
Permalink
Is this still a bug?
--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users+***@googlegroups.com.
To post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...