carsten.delellis via bareos-users
2018-10-15 14:15:29 UTC
Hi all
I am relatively new to bareos but managed to get some file backups running.
Now I am trying to backup a mysql server using the python plugin.
I am always running into the following error message:
Server side:
15-Oct 15:51 vml000027-dir JobId 44: Start Backup JobId 44, Job=vml000022-mysql.2018-10-15_15.51.01_04
15-Oct 15:51 vml000027-dir JobId 44: Connected Storage daemon at vml000027.delellis.net:9103, encryption: ECDHE-PSK-CHACHA20-POLY1305
15-Oct 15:51 vml000027-dir JobId 44: Using Device "File" to write.
15-Oct 15:51 vml000027-dir JobId 44: Probing... (result will be saved until config reload)
15-Oct 15:51 vml000027-dir JobId 44: Connected Client: vml000022 at 192.168.178.22:9102, encryption: ECDHE-PSK-CHACHA20-POLY1305
15-Oct 15:51 vml000027-dir JobId 44: Handshake: Immediate TLS,15-Oct 15:51 vml000027-dir JobId 44: Encryption: ECDHE-PSK-CHACHA20-POLY1305
15-Oct 15:51 vml000022-fd JobId 44: Fatal error: python-fd: SyntaxError: ('invalid syntax', ('/usr/lib/bareos/plugins/bareos-fd-mysql.py', 7, 1, '<!DOCTYPE html>\n'))
15-Oct 15:51 vml000022-fd JobId 44: Connected Storage daemon at vml000027.delellis.net:9103, encryption: ECDHE-PSK-CHACHA20-POLY1305
15-Oct 15:51 vml000022-fd JobId 44: Fatal error: Failed to authenticate Storage daemon.
15-Oct 15:51 vml000027-dir JobId 44: Fatal error: Bad response to Storage command: wanted 2000 OK storage
, got 2902 Bad storage
15-Oct 15:51 vml000027-dir JobId 44: Error: Bareos vml000027-dir 18.4.1 (01Oct18):
Build OS: Linux-4.4.92-6.18-default ubuntu Ubuntu 18.04 LTS
JobId: 44
Job: vml000022-mysql.2018-10-15_15.51.01_04
Backup Level: Full
Client: "vml000022" 18.4.1 (01Oct18) Linux-4.4.92-6.18-default,ubuntu,Ubuntu 18.04 LTS,xUbuntu_18.04,x86_64
FileSet: "LinuxMySql" 2018-10-15 15:51:01
Pool: "Full" (From command line)
Catalog: "MyCatalog" (From Client resource)
Storage: "File" (From Job resource)
Scheduled time: 15-Oct-2018 15:51:01
Start time: 15-Oct-2018 15:51:03
End time: 15-Oct-2018 15:51:04
Elapsed time: 1 sec
Priority: 10
FD Files Written: 0
SD Files Written: 0
FD Bytes Written: 0 (0 B)
SD Bytes Written: 0 (0 B)
Rate: 0.0 KB/s
Software Compression: None
VSS: no
Encryption: no
Accurate: no
Volume name(s):
Volume Session Id: 10
Volume Session Time: 1539590318
Last Volume Bytes: 0 (0 B)
Non-fatal FD errors: 2
SD Errors: 0
FD termination status: Fatal Error
SD termination status: Waiting on FD
Termination: *** Backup Error ***
15-Oct 15:55 vml000027-dir JobId 0: Error: dird/getmsg.cc:221 Malformed message: python-fd: SyntaxError: ('invalid syntax', ('/usr/lib/bareos/plugins/bareos-fd-mysql.py', 7, 1, '<!DOCTYPE html>\n'))
15-Oct 15:57 vml000027-dir JobId 0: Error: dird/getmsg.cc:221 Malformed message: python-fd: SyntaxError: ('invalid syntax', ('/usr/lib/bareos/plugins/bareos-fd-mysql.py', 7, 1, '<!DOCTYPE html>\n'))
15-Oct 16:01 vml000027-dir JobId 0: Error: dird/getmsg.cc:221 Malformed message: python-fd: SyntaxError: ('invalid syntax', ('/usr/lib/bareos/plugins/bareos-fd-mysql.py', 7, 1, '<!DOCTYPE html>\n'))
15-Oct 16:03 vml000027-dir JobId 0: Error: dird/getmsg.cc:221 Malformed message: python-fd: SyntaxError: ('invalid syntax', ('/usr/lib/bareos/plugins/bareos-fd-mysql.py', 7, 1, '<!DOCTYPE html>\n'))
15-Oct 16:04 bareos-dir JobId 0: Warning: Failed to find any plugins in /usr/lib/bareos/plugins
15-Oct 16:04 bareos-dir JobId 0: Warning: Failed to find any plugins in /usr/lib/bareos/plugins
15-Oct 16:04 vml000027-dir JobId 0: Error: dird/getmsg.cc:221 Malformed message: python-fd: SyntaxError: ('invalid syntax', ('/usr/lib/bareos/plugins/bareos-fd-mysql.py', 7, 1, '<!DOCTYPE html>\n'))
Any hints on this one?
config on server site:
fileset:
Name = "LinuxMySql"
Description = "Backup of MySql databases"
Include {
Options {
Signature = MD5 # calculate md5 checksum per file
compression=lz4
}
Plugin = "python:module_path=/usr/lib/bareos/plugins:module_name=bareos-fd-mysql:mysqlhost=192.168.178.22"
director:
Director { # define myself
Name = vml000027-dir
QueryFile = "/usr/lib/bareos/scripts/query.sql"
Maximum Concurrent Jobs = 10
# Password = "nyNUerNRCpSpRdG9yyC6QXGackp2+3kgy57/MUCIoJMP" # Console password
Password = "password"
Messages = Daemon
Auditing = yes
Plugin Directory = "/usr/lib/bareos/plugins"
client:
fd:
Client {
Name = vml000022-fd
Maximum Concurrent Jobs = 20
Plugin Directory = /usr/lib/bareos/plugins
compatible = no
Any help appreciated.
Carsten
I am relatively new to bareos but managed to get some file backups running.
Now I am trying to backup a mysql server using the python plugin.
I am always running into the following error message:
Server side:
15-Oct 15:51 vml000027-dir JobId 44: Start Backup JobId 44, Job=vml000022-mysql.2018-10-15_15.51.01_04
15-Oct 15:51 vml000027-dir JobId 44: Connected Storage daemon at vml000027.delellis.net:9103, encryption: ECDHE-PSK-CHACHA20-POLY1305
15-Oct 15:51 vml000027-dir JobId 44: Using Device "File" to write.
15-Oct 15:51 vml000027-dir JobId 44: Probing... (result will be saved until config reload)
15-Oct 15:51 vml000027-dir JobId 44: Connected Client: vml000022 at 192.168.178.22:9102, encryption: ECDHE-PSK-CHACHA20-POLY1305
15-Oct 15:51 vml000027-dir JobId 44: Handshake: Immediate TLS,15-Oct 15:51 vml000027-dir JobId 44: Encryption: ECDHE-PSK-CHACHA20-POLY1305
15-Oct 15:51 vml000022-fd JobId 44: Fatal error: python-fd: SyntaxError: ('invalid syntax', ('/usr/lib/bareos/plugins/bareos-fd-mysql.py', 7, 1, '<!DOCTYPE html>\n'))
15-Oct 15:51 vml000022-fd JobId 44: Connected Storage daemon at vml000027.delellis.net:9103, encryption: ECDHE-PSK-CHACHA20-POLY1305
15-Oct 15:51 vml000022-fd JobId 44: Fatal error: Failed to authenticate Storage daemon.
15-Oct 15:51 vml000027-dir JobId 44: Fatal error: Bad response to Storage command: wanted 2000 OK storage
, got 2902 Bad storage
15-Oct 15:51 vml000027-dir JobId 44: Error: Bareos vml000027-dir 18.4.1 (01Oct18):
Build OS: Linux-4.4.92-6.18-default ubuntu Ubuntu 18.04 LTS
JobId: 44
Job: vml000022-mysql.2018-10-15_15.51.01_04
Backup Level: Full
Client: "vml000022" 18.4.1 (01Oct18) Linux-4.4.92-6.18-default,ubuntu,Ubuntu 18.04 LTS,xUbuntu_18.04,x86_64
FileSet: "LinuxMySql" 2018-10-15 15:51:01
Pool: "Full" (From command line)
Catalog: "MyCatalog" (From Client resource)
Storage: "File" (From Job resource)
Scheduled time: 15-Oct-2018 15:51:01
Start time: 15-Oct-2018 15:51:03
End time: 15-Oct-2018 15:51:04
Elapsed time: 1 sec
Priority: 10
FD Files Written: 0
SD Files Written: 0
FD Bytes Written: 0 (0 B)
SD Bytes Written: 0 (0 B)
Rate: 0.0 KB/s
Software Compression: None
VSS: no
Encryption: no
Accurate: no
Volume name(s):
Volume Session Id: 10
Volume Session Time: 1539590318
Last Volume Bytes: 0 (0 B)
Non-fatal FD errors: 2
SD Errors: 0
FD termination status: Fatal Error
SD termination status: Waiting on FD
Termination: *** Backup Error ***
15-Oct 15:55 vml000027-dir JobId 0: Error: dird/getmsg.cc:221 Malformed message: python-fd: SyntaxError: ('invalid syntax', ('/usr/lib/bareos/plugins/bareos-fd-mysql.py', 7, 1, '<!DOCTYPE html>\n'))
15-Oct 15:57 vml000027-dir JobId 0: Error: dird/getmsg.cc:221 Malformed message: python-fd: SyntaxError: ('invalid syntax', ('/usr/lib/bareos/plugins/bareos-fd-mysql.py', 7, 1, '<!DOCTYPE html>\n'))
15-Oct 16:01 vml000027-dir JobId 0: Error: dird/getmsg.cc:221 Malformed message: python-fd: SyntaxError: ('invalid syntax', ('/usr/lib/bareos/plugins/bareos-fd-mysql.py', 7, 1, '<!DOCTYPE html>\n'))
15-Oct 16:03 vml000027-dir JobId 0: Error: dird/getmsg.cc:221 Malformed message: python-fd: SyntaxError: ('invalid syntax', ('/usr/lib/bareos/plugins/bareos-fd-mysql.py', 7, 1, '<!DOCTYPE html>\n'))
15-Oct 16:04 bareos-dir JobId 0: Warning: Failed to find any plugins in /usr/lib/bareos/plugins
15-Oct 16:04 bareos-dir JobId 0: Warning: Failed to find any plugins in /usr/lib/bareos/plugins
15-Oct 16:04 vml000027-dir JobId 0: Error: dird/getmsg.cc:221 Malformed message: python-fd: SyntaxError: ('invalid syntax', ('/usr/lib/bareos/plugins/bareos-fd-mysql.py', 7, 1, '<!DOCTYPE html>\n'))
Any hints on this one?
config on server site:
fileset:
Name = "LinuxMySql"
Description = "Backup of MySql databases"
Include {
Options {
Signature = MD5 # calculate md5 checksum per file
compression=lz4
}
Plugin = "python:module_path=/usr/lib/bareos/plugins:module_name=bareos-fd-mysql:mysqlhost=192.168.178.22"
director:
Director { # define myself
Name = vml000027-dir
QueryFile = "/usr/lib/bareos/scripts/query.sql"
Maximum Concurrent Jobs = 10
# Password = "nyNUerNRCpSpRdG9yyC6QXGackp2+3kgy57/MUCIoJMP" # Console password
Password = "password"
Messages = Daemon
Auditing = yes
Plugin Directory = "/usr/lib/bareos/plugins"
client:
fd:
Client {
Name = vml000022-fd
Maximum Concurrent Jobs = 20
Plugin Directory = /usr/lib/bareos/plugins
compatible = no
Any help appreciated.
Carsten
--
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.
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.