MySQL & MariaDB error 4098 ER_WARN_CANNOT_SECURELY_PERSIST_SENSITIVE_VARIABLES
Same number, two different errors. 4098 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLSENSITIVE system variable '…' was persisted without encryption. Consider restarting server with keyring component support to persist SENSITIVE variables securely.