©XSIBackup-Free: Free Backup Software for ©VMWare ©ESXi

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#1 2018-01-05 08:23:39

sistemi
Member
Registered: 2017-08-29
Posts: 74

Segmentation fault in rsync or xsidiff

Launching a backup to remote datastore crashes immediately...

###############################################################################
#
#  (c) XSIBACKUP-PRO 10.2.1 | Backup for (c) VMWARE ESXi Hypervisor by 33hops.com
#
###################################################################################

NOTICE: (c) XSIBackup will kill any previous processes, make sure you don't overlap backup jobs
------------------------------------------------------------------------------------------------------------------------------------
XSIBackup PID:          5497803                                                    xxxxxxxxx
Fri, 05 Jan 2018 08:15:16 +0000                                 IPv4: xxxxxxxx/255.255.255.0
VMware ESXi 5.5.0 build-1331820                              (c) Rsync 3.1.0 as opt. dependency
------------------------------------------------------------------------------------------------------------------------------------
Backup Id:                ar1zf                        Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
------------------------------------------------------------------------------------------------------------------------------------
ADVICE: no SSD disks, please consider adding an SSD cache disk to improve performance
------------------------------------------------------------------------------------------------------------------------------------
Backup user is: root
------------------------------------------------------------------------------------------------------------------------------------
Backup program is: onediff
------------------------------------------------------------------------------------------------------------------------------------
Service OpenSSH ready at server yyyyyyyyy:22
Found more than one remote (c) XSIBackup installation dir at [yyyyyyyyy]
Using hardcoded var at conf/xsiopts [xsidefaultpath] as remote path.
------------------------------------------------------------------------------------------------------------------------------------
Remote xsi path set to: /vmfs/volumes/datastore1/xsi-dir (filesystem: VMFS-5)
------------------------------------------------------------------------------------------------------------------------------------
Compression option is deprecated since XSIBackup 10.0.4, SSH 2.0 is forced since this version and it handles compression dynamically
Remote ESXi version is 6.0.0
------------------------------------------------------------------------------------------------------------------------------------
Mirroring to server yyyyyyyyy port 22
Checking Rsync exists on the other side...
------------------------------------------------------------------------------------------------------------------------------------
(c) Rsync (samba.org) found at [ yyyyyyyyyy:22:/vmfs/volumes/...mes/datastore1/xsi-dir/bin/xsibackup-rsync ]
------------------------------------------------------------------------------------------------------------------------------------
Segmentation fault

Offline

#2 2018-01-05 15:00:45

admin
Administrator
Registered: 2017-04-21
Posts: 2,055

Re: Segmentation fault in rsync or xsidiff

You have omited the backup job.
By the output we can deduce that you are parsing the ":z" option to --backup-prog argument, remove it.
Have you updated all program files to v 10.2.1?

Compression option is deprecated since XSIBackup 10.0.4, SSH 2.0 is forced since this version and it handles compression dynamically
Remote ESXi version is 6.0.0

Offline

#3 2018-01-05 16:57:09

sistemi
Member
Registered: 2017-08-29
Posts: 74

Re: Segmentation fault in rsync or xsidiff

all the involved hosts are XSIBACKUP-PRO 10.2.1

Same error after removing :z option, worked well before last update

here the full cmd

xsibackup backupId=AR1ZF  --backup-how=hot --backup-prog=onediff --backup-type=custom --test-mode=false --use-smtp=2 --mail-to=xxxxxxxxxxxx --subject="AR1ZF" --backup-point=xxxxxxxxxxx:22:/vmfs/volumes/datastore1/bkp  --backup-vms=zfs1 --debug-info=yes

Offline

#4 2018-01-05 17:18:37

admin
Administrator
Registered: 2017-04-21
Posts: 2,055

Re: Segmentation fault in rsync or xsidiff

I'm afraid you just need a reboot.
Due to ESXi OS design AFAIK it's not possible to clean memory from the command line as in Linux systems.

Offline

#5 2018-01-05 18:31:34

sistemi
Member
Registered: 2017-08-29
Posts: 74

Re: Segmentation fault in rsync or xsidiff

I rebooted the remote (target) host, nothing, same error, but I can't reboot the source host as is H24 production system, could you explain better which memory is involved and why a reboot will solve?

Offline

#6 2018-01-05 19:51:47

admin
Administrator
Registered: 2017-04-21
Posts: 2,055

Re: Segmentation fault in rsync or xsidiff

Rebooting the target is useless.

There isn't any /proc/sys subsystem to manage memory used by scripts, so, after an upgrade XSIBackup might be trying to access memory blocks that are not empty, causing your issue. I can't be 100% sure, but 85% of the chances are you are falling into this, which is quite common. It's said in a number of posts all over the website and the README.txt file.

From the README.txt file:

	You can try to just overwrite the existing files, but you must be 
	aware of the fact that memory corruption may appear. Should this 
	happen (you will notice it because some weird syntax and runtime 
	errors will be thrown), please reboot your server.

	If you run a mission critical environment and you have a working 
	XSIBackup installation, you'll have to ponder whether to upgrade 
	or continue using the existing version. 

Offline

#7 2018-01-08 10:44:15

sistemi
Member
Registered: 2017-08-29
Posts: 74

Re: Segmentation fault in rsync or xsidiff

I solved my issue commenting lines 1225 to 1237 in xsibackup, which also seems to have coding errors with variable RMXSIDIFFPATH. The script crashes if it executes the comphashes function at line 1226. It's not a real solution but now i0m able to do the scheduled backups.

Offline

#8 2018-01-08 10:46:22

sistemi
Member
Registered: 2017-08-29
Posts: 74

Re: Segmentation fault in rsync or xsidiff

Sorry, the lines could not be the same, since i have customizations, 1208 - 1220 are the correct numbers

Offline

#9 2018-01-08 11:32:41

admin
Administrator
Registered: 2017-04-21
Posts: 2,055

Re: Segmentation fault in rsync or xsidiff

We will check the reported issue and eventually create a bug report. But you must know that you are the only user suffering from such problem, and as you have customized your XSIBACKUP-PRO copy, we cannot offer any support.

Offline

#10 2018-01-08 11:51:00

sistemi
Member
Registered: 2017-08-29
Posts: 74

Re: Segmentation fault in rsync or xsidiff

that's obvious, I'll try with the original copy of the file and I'll give you the feedback

Offline

#11 2018-01-13 15:32:52

Vozzie
Member
Registered: 2018-01-13
Posts: 1

Re: Segmentation fault in rsync or xsidiff

We also get the segmantation fault backing up to a remote server.

Offline

#12 2018-01-13 16:35:48

admin
Administrator
Registered: 2017-04-21
Posts: 2,055

Re: Segmentation fault in rsync or xsidiff

It's a bug affecting some short paths, we'll launch the fix today.
Sorry about the inconvenience.

Offline

#13 2018-01-13 16:49:00

admin
Administrator
Registered: 2017-04-21
Posts: 2,055

Re: Segmentation fault in rsync or xsidiff

The fix is available to download as XSIBACKUP-PRO 10.2.3

Offline

#14 2018-03-19 22:17:47

zack
Member
Registered: 2018-03-19
Posts: 1

Re: Segmentation fault in rsync or xsidiff

This is also a problem when using rsync in the xsibackup-free 10.3.0 version. Any chance of a fix for this version? Thanks.

Offline

#15 2018-03-20 10:49:57

admin
Administrator
Registered: 2017-04-21
Posts: 2,055

Re: Segmentation fault in rsync or xsidiff

The bug this thread started with was resolved some time ago and had nothing to do with Rsync.
Please open a new thread and describe your problem in detail. We cannot help you if you don't help us to help you first.

Offline

Board footer