Hello Denis,
Hello,I'm trying to setup a new backup server with bareos 16.2.4 and a client with same version and percona-xtrabackup plugin, but I run into trouble :(
I'm running Debian Stretch and I followed the guide here:My percona xtrabackup is version 2.3.5 (I tried also with 2.2 with same result, with 2.4 I received a 11 signal (and I read in a forum that they suggest to downgrade).
The problem is that if i manually run the backup command everything works ok:'xtrabackup --backup --datadir=/var/lib/mysql/ --stream=xbstream --extra-lsndir=/tmp/tmpYmkHJn 'It creates the file with dump.
If i run the job through bareos-director it return ok, but it only backups a file called:_percona/xbstream.000000XX (where XX is a number that increments each time).
The file as NaN size, and if I try to restore it, the restore fails with:Error: python-fd: No lsn information found in restore object for file /tmp/bareos-restores//_percona/xbstream.0000000020 from job 20
Please tell me what I can try, if you need more information simply ask me and I'll provide everything.
thank you all
--
Denis
--
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.
-- With kind regards // Mit freundlichen Grüßen -- Maik Außendorf maik.au...@bareos.com Bareos GmbH & Co. KG Phone: +49221630693-93 http://www.bareos.com Fax: +49221630693-10 ** Visit us at Paris Open Source Summit 2016 http://opensourcesummit.paris ** Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646 Komplementär: Bareos Verwaltungs-GmbH Geschäftsführer: Stephan Dühr, M. Außendorf, J. Steffens, P. Storz
Hello Denis,
Hello Maik, thank you for your reply.
I found the problem, it was so simple, damn :-(the client cannot reach the storage daemon, I discovered it because when I run a file backup it simply told me :(
another strange thing is that the full mysql backup has 2 files and 1GB, but if I click on "show files" I can see only _percona/xbstream.00000XXis this normal? I should have also xtrabackup_checkpoints I think... or I'm wrong?
thank you--
Denis
Yes, that seems to be the problem.it seems that it can't recognize last lsn.
echo 'SHOW ENGINE INNODB STATUS' | mysql -r
It should contain a line like
Log sequence number 14882332
Can you post that line (or the whole result)?
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to bareos...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to bareos...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Denis,
thanks for clarification!
You are right: the plugin needs better error-handling and error-messages. I will keep this in mind for the next release.
Regards
Maik
Thanks,
Denis -I'm able to backup successfully, both full and incremental. I am also getting the "Error: No lsn information found in restore object for file /tmp/bareos-restores/..." error on restore. I can actually restore successfully if I individually retire the full and each incremental and then follow the prepare procedure in xtrabackup. Can you post your .my.cnf file (obviously with the password hidden)? I don't know what you meant by "in .my.cnf i wass missing the part regarding mysql command".
Thanks,
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to bareos...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Dan,
I seem to have run into the same problem as you.
Did you solve the problem eventually?
What was it?
Thanks,
Leon
I have a similar strange problem with the plugin, I can only do full backups, the incremental backup fails with error:
26-Jun 10:02 bareos-dir JobId 286: Using Device "FileStorage" to write.
26-Jun 10:02 sql03.local JobId 286: Fatal error: python-fd: Traceback (most recent call last):
File "/usr/lib64/bareos/plugins/BareosFdWrapper.py", line 58, in restore_object_data
return bareos_fd_plugin_object.restore_object_data(context, ROP)
File "/usr/lib64/bareos/plugins/BareosFdPercona.py", line 423, in restore_object_data
self.rop_data[ROP.jobid] = json.loads(str(self.row_rop_raw))
File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.7/json/decoder.py", line 382, in raw_decode
obj, end = self.scan_once(s, idx)
File "/usr/lib64/python2.7/json/decoder.py", line 38, in errmsg
lineno, colno = linecol(doc, pos)
TypeError: 'NoneType' object is not callable
26-Jun 10:02 sql03.local JobId 286: Fatal error: Failed to authenticate Storage daemon.
26-Jun 10:02 bareos-dir JobId 286: Fatal error: Bad response to Storage command: wanted 2000 OK storage
, got 2902 Bad storage
I tried with Debian 9.4 + MariaDB 10.2 and Centos 7.5 + Percona Server 5.7.
I created a ticket as well (https://bugs.bareos.org/view.php?id=950).
Is there anybody who did a successful Incremental backup with this plugin?
xtrabackup version 2.4.11 based on MySQL server 5.7.19 Linux (x86_64) (revision id: b4e0db5)
MariaDB 10.1.33
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-862.3.2.el7.x86_64
Architecture: x86-64
FileSet {
Name = "MySQL"
Description = "Backup MySQL database using Percona xtrabackup."
Include {
Options {
Signature = MD5 # calculate md5 checksum per file
compression = GZIP
}
Plugin = "python:module_path=/usr/lib64/bareos/plugins:module_name=bareos-fd
-percona:mycnf=/etc/bareos/bareos-fd.d/my.cnf"
}
}
Dan
--
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.
Job ...
JobDefs {
Name = "DefaultMySQLJob"
Type = Backup
Level = Incremental
Client = bareos-fd
FileSet = "MySQL"
Schedule = "MySQLSched"
Storage = File
Messages = Standard
Pool = DBIncremental
Priority = 10
Full Backup Pool = DBFull
Differential Backup Pool = Differential
Incremental Backup Pool = DBIncremental
}
Job {
JobDefs = DefaultMySQLJob
Name = rsch-comb-mysql
Client = rsch-comb-fd
Enabled = yes
}
in the plugin (/usr/lib64/bareos/plugins/BareosFdPercona.py) here is a mistake
look at this record
"echo 'SHOW ENGINE INNODB STATUS' | mysql --defaults-extra-file=/root/.my.cnf -r | grep 'Log sequence number' | cut -d ' ' -f 4"
and change 4 with 13
must be
"echo 'SHOW ENGINE INNODB STATUS' | mysql --defaults-extra-file=/root/.my.cnf -r | grep 'Log sequence number' | cut -d ' ' -f 13"
after this change incremental backup successed