Am 09.11.26 um 11:48 schrieb Marcin Haba:
Those error messages come from Bacula File Daemon 'pre01svbmd02-fd'.
It looks like restored job files do not have the signatures. If you
use encryption for these backups, this can mean that the restored
backup was not encrypted.
I would propose to look at the first lines of the restore job log.
There is information what jobids were taken into account in this
restore:
localhost-dir JobId 1234: Restoring files from JobId(s) XXX,YYY,ZZZ
and check in the job logs of all the jobids: XXX,YYY,ZZZ if the
Encryption flag was 'yes'.
You were right, I somehow had tried to restore a Job that was run before
I enabled FD data encryption.
Job 463 was with "Encryption: no"
BUT:
Now I retried things with restoring from Job 471, which definitely has
"Encryption: yes"
Now the log messages change to:
bacula-dir JobId 486: Restoring files from JobId(s) 471
bacula-dir JobId 486: Connected to Storage "File1" at
192.168.16.219:9103 with TLS
bacula-dir JobId 486: Using Device "FileStorage_QNAP_NAS" to read.
bacula-dir JobId 486: Connected to Client "pre01svbmd02-fd" at
192.168.16.207:9102 with TLS
pre01svbmd02-fd JobId 486: Connected to Storage at 192.168.16.219:9103
with TLS
bacula-sd JobId 486: Ready to read from volume "Vol-0006" on File device
"FileStorage_QNAP_NAS" (/mnt/nas_bacula_storage/).
bacula-sd JobId 486: Forward spacing Volume "Vol-0006" to addr=14999039876
pre01svbmd02-fd JobId 486: Error: filed/restore.c:785 Missing encryption
session data stream for C:/tmp/bacula-restores/D/xxx
pre01svbmd02-fd JobId 486: Error: filed/restore.c:785 Missing encryption
session data stream for C:/tmp/bacula-restores/D/xxx
hmm
I double-checked the logs for JobId 471 ->
Encryption: yes
And, if relevant (I think so!) I restored to the specific Client/FD
'pre01svbmd02-fd' with the encryption keys in place.
So things changed from
"Missing cryptographic signature"
to
"Missing encryption session data stream"
Before you ask, here the content of bacula-fd.conf on pre01svbmd02-fd:
FileDaemon { # this is me
Name = pre01svbmd02-fd
FDport = 9102 # where we listen for the director
WorkingDirectory = "C:\\Program Files\\Bacula\\working"
Pid Directory = "C:\\Program Files\\Bacula\\working"
Plugin Directory = "C:\\Program Files\\Bacula\\plugins"
Maximum Concurrent Jobs = 5
PKI Signatures = Yes # Enable Data Signing
PKI Encryption = Yes # Enable Data Encryption
PKI Keypair = "C:\\Program Files\\Bacula\\pre01svbmd02-fd.pem" #
Public and Private Keys
PKI Master Key = "C:\\Programme\\Bacula\\master.cert" # ONLY the
Public Key
}
I notice my 2 paths in there:
"C:\\Program Files\\Bacula"
vs
"C:\\Programme\\Bacula"
Edited this to "C:\\Program Files\\Bacula" now and restarted FD (I think
these 2 paths are more or less resulting to the same path .. kind of a
link in windows. I add this for complete transparency)
I rerun a test job now during lunch, and retry a restore later.
Thanks all.
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users