Using version 18.2.6
After bareos-fd file daemon process runs continuously for more than 2-3 days, it is no longer able to restore any files.
Backups are still done without any error, but when trying to restore, the error message is:
Error: Encryption session provided an invalid symmetric key: ERR=error:0407109F:rsa routines:RSA_padding_check_PKCS1_type_2:pkcs decoding error
Error: Encryption session provided an invalid symmetric key: ERR=error:04065072:rsa routines:RSA_EAY_PRIVATE_DECRYPT:padding check failed
Error: Encryption session provided an invalid symmetric key: ERR=error:0607A082:digital envelope routines:EVP_CIPHER_CTX_set_key_length:invalid key length
Stopping and restarting the bareos-fd file daemon process solves the problem, all files can then be restored again.
But the most recent files, those that were backed up during the time when the restore did malfunction, will
also show an error message (but will restore nevertheless):
Error: OpenSSL digest Verify final failed: ERR=error:0407008A:rsa routines:RSA_padding_check_PKCS1_type_1:invalid padding
Error: OpenSSL digest Verify final failed: ERR=error:04067072:rsa routines:RSA_EAY_PUBLIC_DECRYPT:padding check failed
Error: filed/crypto.cc:205 Signature validation failed for file /tmp/bareos-restore/var/mail/admin: ERR=Signature is invalid
I could reproduce this phenomenon multiple times. How can it be fixed?