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:
2018-02-28 09:08:30 bareos-dir JobId 38: Start Backup JobId 38,
Job=vml000022-mysql.2018-02-28_09.08.28_37
2018-02-28 09:08:30 bareos-dir JobId 38: Using Device "Backup" to write.
2018-02-28 09:08:30 vml000022 JobId 38: Fatal error: python-fd:
SyntaxError: ('invalid syntax', ('/usr/lib/bareos/plugins/bareos-fd-mysql.py',
7, 1, '\n'))
2018-02-28 09:08:30 vml000022 JobId 38: Fatal error: Failed to authenticate
Storage daemon.
2018-02-28 09:08:30 bareos-dir JobId 38: Fatal error: Bad response to
Storage command: wanted 2000 OK storage
, got 2902 Bad storage
2018-02-28 09:08:30 bareos-dir JobId 38: Error: Bareos bareos-dir 17.2.4
(21Sep17):
Build OS: x86_64-pc-linux-gnu ubuntu Ubuntu 16.04 LTS
JobId: 38
Job: vml000022-mysql.2018-02-28_09.08.28_37
Backup Level: Full
Client: "vml000022" 17.2.4 (21Sep17) x86_64-pc-linux-gnu,ubuntu,Ubuntu 16.04
LTS,xUbuntu_16.04,x86_64
FileSet: "MySQL" 2018-02-27 15:09:50
Pool: "MySQL" (From Job FullPool override)
Catalog: "MyCatalog" (From Client resource)
Storage: "Backup" (From Job resource)
Scheduled time: 28-Feb-2018 09:08:25
Start time: 28-Feb-2018 09:08:30
End time: 28-Feb-2018 09:08:30
Elapsed time: 0 secs
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: 7
Volume Session Time: 1519784122
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 ***
Client side:
bareos-fd (100): lex.c:227-0 open config file:
/etc/bareos/bareos-fd.d/director/bareos-mon.conf
bareos-fd (100): lex.c:227-0 open config file:
/etc/bareos/bareos-fd.d/messages/Standard.conf
vml000022 (100): jcr.c:141-0 read_last_jobs seek to 192
vml000022 (100): jcr.c:148-0 Read num_items=9
vml000022 (50): plugins.c:222-0 load_plugins
vml000022 (10): socket_server.c:97-0 filed: listening on port 9102
vml000022 (100): bnet_server_tcp.c:174-0 Addresses host[ipv4;0.0.0.0;9102]
vml000022 (50): cram-md5.c:68-0 send: auth cram-md5
<2124103486.1519805310@vml000022> ssl=0
vml000022 (100): cram-md5.c:123-0 cram-get received: auth cram-md5
<1316494105.1519805310@bareos-dir> ssl=0
vml000022 (99): cram-md5.c:143-0 sending resp to challenge:
/g/R9S+HPBRlb/+c+S+gkA
vml000022 (100): dir_cmd.c:497-0 <dird: JobId=38
Job=vml000022-mysql.2018-02-28_09.08.28_37 SDid=7 SDtime=1519784122
Authorization=DBOD-NABJ-DAIC-GPIJ-PKID-HAGN-EGKC-PDPD
vml000022 (100): dir_cmd.c:508-0 Executing JobId= command.
vml000022 (5): dir_cmd.c:1649-38 set sd auth key
vml000022 (100): dir_cmd.c:497-38 <dird: level = full mtime_only=0
vml000022 (100): dir_cmd.c:508-38 Executing level = command.
vml000022 (10): dir_cmd.c:1471-38 level_cmd: level = full mtime_only=0
vml000022 (100): dir_cmd.c:497-38 <dird: fileset vss=1
vml000022 (100): dir_cmd.c:508-38 Executing fileset command.
vml000022 (100): fileset.c:264-38 I
vml000022 (100): fileset.c:264-38 O MZf4
vml000022 (100): fileset.c:264-38 N
vml000022 (100): fileset.c:264-38 N
vml000022 (100): fileset.c:264-38 P
python:module_path=/usr/lib/bareos/plugins:module_name=bareos-fd-mysql:mysqlhost=192.168.178.22:mysqluser=backup:mysqlpassword=backup
vml000022 (100): fileset.c:264-38 N
vml000022 (100): dir_cmd.c:497-38 <dird: getSecureEraseCmd
vml000022 (100): dir_cmd.c:508-38 Executing getSecureEraseCmd command.
vml000022 (100): dir_cmd.c:497-38 <dird: storage address=192.168.178.27
port=9103 ssl=0
vml000022 (100): dir_cmd.c:508-38 Executing storage command.
vml000022 (100): dir_cmd.c:1668-38 StorageCmd: storage address=192.168.178.27
port=9103 ssl=0
vml000022 (100): bsock.c:70-38 All source addresses
vml000022 (100): bsock_tcp.c:230-38 Current host[ipv4;192.168.178.27;9103] All
host[ipv4;192.168.178.27;9103]
vml000022 (100): bsock_tcp.c:153-38 who=Storage daemon host=192.168.178.27
port=9103
vml000022 (50): bsock.c:332-38 Failed, because job is canceled.
vml000022 (100): dir_cmd.c:511-38 Quit command loop. Canceled=1
vml000022 (100): jcr.c:184-38 write_last_jobs seek to 192
vml000022 (100): dir_cmd.c:570-0 Done with free_jcr
Configuration on client side:
Client {
Name = vml000022
Maximum Concurrent Jobs = 20
# remove comment from "Plugin Directory" to load plugins from specified
directory.
# if "Plugin Names" is defined, only the specified plugins will be loaded,
# otherwise all storage plugins (*-fd.so) from the "Plugin Directory".
#
# Plugin Directory = /usr/lib/bareos/plugins
# Plugin Names = ""
Plugin Directory = /usr/lib/bareos/plugins
Plugin Names = python
compatible = no
# if compatible is set to yes, we are compatible with bacula
# if set to no, new bareos features are enabled which is the default
# compatible = yes
}
Would appreciate any help on this topic.
Best regards,
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.