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

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#1 2020-12-14 10:31:59

marco.pernigo
Member
Registered: 2020-12-14
Posts: 9

VMWare ESXi: error code 131 | trapped SIGTERM (13)

Hi,
I'm getting a 131 error code. Does anyone know what could be the cause?

Thanks for the help!

Cmd:

xsibackup --backup "VMs(gwca)" ***@***:22:/app/xsi-dc/test --compress --backup-how=hot --remote-path=/app/xsi-dc/xsibackup

Log:

Performing a hot backup as per the --backup-how argument.
-----------------------------------------------------------------------------------------------------------
|---------------------------------------------------------------------------------|
||-------------------------------------------------------------------------------||
|||   (c)XSIBackup-DC 1.4.2.7: Backup & Replication Software                    |||
|||   (c)33HOPS, Sistemas de Informacion y Redes, S.L. | All Rights Reserved    |||
||-------------------------------------------------------------------------------||
|---------------------------------------------------------------------------------|
                   (c)Daniel J. Garcia Fidalgo | info@33hops.com
|---------------------------------------------------------------------------------|
System Information: ESXi, Kernel 6 Major 7 Minor 0 Patch 0
-----------------------------------------------------------------------------------------------------------
License: ***
-----------------------------------------------------------------------------------------------------------
SSH: Mon 14 Dec 2020 11:20:32 AM CET
-----------------------------------------------------------------------------------------------------------
Remote system: Linux
-----------------------------------------------------------------------------------------------------------
PID: 2407539, Running job as: ***
-----------------------------------------------------------------------------------------------------------
LZJB compression has been enabled
-----------------------------------------------------------------------------------------------------------
Block size is 1.00 MB (1048576 bytes)
-----------------------------------------------------------------------------------------------------------
Performing --backup action
-----------------------------------------------------------------------------------------------------------
(c)XSIBackup-DC setting repository at /app/xsi-dc/test
-----------------------------------------------------------------------------------------------------------

-----------------------------------------------------------------------------------------------------------
2020-12-14T10:21:39 | Error code 131 at file signal.c, line 131 | Error description: some error was trapped SIGTERM (13) (13) while executing the job, error: Illegal seek
-----------------------------------------------------------------------------------------------------------

-----------------------------------------------------------------------------------------------------------
Removed current target dir:
-----------------------------------------------------------------------------------------------------------
SIGTERM (13) condition was trapped: check logs for more details
-----------------------------------------------------------------------------------------------------------
Cleaning up...
-----------------------------------------------------------------------------------------------------------
Removed <tmp> dir        OK
-----------------------------------------------------------------------------------------------------------
Unlocked backup          OK
-----------------------------------------------------------------------------------------------------------

Offline

#2 2020-12-14 16:26:07

admin
Administrator
Registered: 2017-04-21
Posts: 1,821

Re: VMWare ESXi: error code 131 | trapped SIGTERM (13)

What Linux distro are you using in the remote end?

You got a 13 signal which is a broken pipe. You will find more details in the remote error log at /var/log/xsi/error.log
Most probably it is due to some lack of permissions or similar issue.

Offline

#3 2020-12-14 17:38:20

marco.pernigo
Member
Registered: 2020-12-14
Posts: 9

Re: VMWare ESXi: error code 131 | trapped SIGTERM (13)

Thanks for taking the time!

The distro is Debian Buster.
I've tried to run the job with root as user on the remote host with the same results.
Also, I can't seem to find any logs at that location on the remote host or in any other likely folder

marco

Last edited by marco.pernigo (2020-12-14 19:17:41)

Offline

#4 2020-12-15 20:30:15

admin
Administrator
Registered: 2017-04-21
Posts: 1,821

Re: VMWare ESXi: error code 131 | trapped SIGTERM (13)

We haven't tested that distro thoroughly enough. We recommend that you use CentOS/RHEL 6/7/8 in production.
Have you copied the xsibackup binary to the remote /bin folder on the remote Linux box?

Offline

#5 2020-12-17 14:14:55

marco.pernigo
Member
Registered: 2020-12-14
Posts: 9

Re: VMWare ESXi: error code 131 | trapped SIGTERM (13)

Yes, I did.

Offline

#6 2020-12-17 17:17:28

admin
Administrator
Registered: 2017-04-21
Posts: 1,821

Re: VMWare ESXi: error code 131 | trapped SIGTERM (13)

Just another seemingly silly question.
Did you exchange keys with the remote host to be able to access the remote FS?.

There is also some clarifying message:

Illegal seek

We would need to debug your particular set up to find out the exact cause, but we can't do that if you go your own way.
The thing is that DC has some dependencies that we cannot guarantee to be met by any Linux distro, thus we recommend CentOS/RHEL because we have tested them thoroughly. We have also tested it on Ubuntu and some other distros.

If you use some distro out of the recommended ones, you are entering unknown territories.

A good way to minimize incompatibilities is to just copy the public key to the remote server's authorized_keys file, that is: exchange keys manually and then retry. Again, we don't know what that distro might have installed by default or whether even if xsibackup can run there.

Try at least to login to the remote host and run:

# xsibackup --help

To see if the binary can execute in the server side.

Offline

#7 2020-12-17 17:29:01

marco.pernigo
Member
Registered: 2020-12-14
Posts: 9

Re: VMWare ESXi: error code 131 | trapped SIGTERM (13)

Not silly at all.

Yes, I exchanged the keys although with xsibackup and not manually. A normal ssh connection from the cli is successful.
If it helps to know after launching the job a new folder is created in the remote target directory.

And yes, the binary exectues normally on the remote host.

As for the distro, it is not a problem to set up a CentOS installation, it's just that we are more comfortable with Debian and I wanted to rule out first the possibility of an error in the configuration.

marco

Offline

#8 2020-12-17 17:58:59

admin
Administrator
Registered: 2017-04-21
Posts: 1,821

Re: VMWare ESXi: error code 131 | trapped SIGTERM (13)

Is there an .xsitools file in the root of that folder?
This new info helps us to narrow the problem down in more detail.
If there's no such file, then:

1 - Check whether a /scratch/XSI/XSIBackup-DC/tmp/NNN/.xsitools file exists in your local ESXi server, where NNN is the pid of the launched job.
2 - Make sure that you are using root as the remote user. You can fine tune your jobs later on, but at first, don't introduce uncertainties regarding permissions that can complicate debugging.

Offline

#9 2020-12-21 08:26:08

marco.pernigo
Member
Registered: 2020-12-14
Posts: 9

Re: VMWare ESXi: error code 131 | trapped SIGTERM (13)

1 - No, there is none. The folder are present but they are empty
2 - Yes. No changes though

marco

Offline

#10 2020-12-21 10:10:24

admin
Administrator
Registered: 2017-04-21
Posts: 1,821

Re: VMWare ESXi: error code 131 | trapped SIGTERM (13)

Your issue seems related to the SSH tunnel or the server component.
The repository folder is created, but when the first file transfer takes place the error is raised: illegal seek, on a system call.
You distro/GLibC could be not compatible with (c)XSIBackup.
To tell you the truth, the set of C functions that we use is indeed simple and should be compatible with "almost anything".
We can't certify every distro out there though, so please try to stick to CentOS/RHEL/Fedora

Also: Debian Buster is a really new release. You are trying to use a back end that is way forward (c)ESXi, which usually sticks to much older versions of OpenSSL & OpenSSH binaries, thus you are forcing things too much. Your OpenSSH versions could not even be compatible. Use CentOS 6/7, we have also tested equivalent in time Ubuntu versions with no issue.

Offline

#11 2020-12-23 09:52:58

marco.pernigo
Member
Registered: 2020-12-14
Posts: 9

Re: VMWare ESXi: error code 131 | trapped SIGTERM (13)

Hi,
I just want to let you know that we tried Centos8 and everything is working as intended.

marco

Offline

#12 2020-12-23 11:34:41

admin
Administrator
Registered: 2017-04-21
Posts: 1,821

Re: VMWare ESXi: error code 131 | trapped SIGTERM (13)

Thank you so much for your feedback.

Always keep in mind that ESXi mimics a fairly old Linux kernel and that its acompanying binaries are also fairly old.
CentOS 8, which we have already tried is more backward compatible. In any case, your best bet is CentOS/RHEL/Fedora 7, or even 6 for ESXi versions 6.5 or below.

Offline

#13 2020-12-31 10:58:10

pojanisu
Member
Registered: 2020-12-31
Posts: 2

Re: VMWare ESXi: error code 131 | trapped SIGTERM (13)

Hi,

Just wanted to let you know that I probably bumped into same issue. I set up xsibackup-DC 1.4.2.8 and Debian 10.7 server as destination (because it's generally very stable and conservative distro). xsibackup --help works  there and job creates directories, but I get this.

Error code 143 at file signal.c, line 143 | Error description: some error was trapped SIGTERM (13) (13) while executing the job, error: Illegal seek

There is no problem setting up Centos as destination and I will do that. But I'd also prefer Debian if given a choice.

Pasi

Offline

#14 2020-12-31 12:12:44

admin
Administrator
Registered: 2017-04-21
Posts: 1,821

Re: VMWare ESXi: error code 131 | trapped SIGTERM (13)

Please read the whole post.
It's not so much a matter of "what distro", but what OpenSSL version.
Some distros keep wide compatibility and let you choose, while others develop as if the admin was an idiot and take decissions for you, so that you don't hurt yourself.
Also mind security services such as Selinux.

Offline

#15 2020-12-31 12:44:08

pojanisu
Member
Registered: 2020-12-31
Posts: 2

Re: VMWare ESXi: error code 131 | trapped SIGTERM (13)

For anyone reading this, Centos 8 worked right out of the box with "minimal install".

Pasi

Offline

Board footer