Solution to the Error "An App Armor policy prevents this sender from sending this message to this recipient".

By
Darío Rivera
Posted On
in
MySQL
This problem occurs when we have installed MySQL Workbench from Ubuntu Software with snap and we have not assigned sufficient permissions. The error usually occurs when we try to make a connection since we need to save passwords or allow the use of SSH keys.
An App Armor policy prevents this sender from sending this message to this recipient

Solution
To solve this error we have two alternatives. The first one is to run the following commands to configure the password and SSH keys management service.
snap connect mysql-workbench-community:password-manager-service
snap connect mysql-workbench-community:ssh-keys
The second option is to go directly to Ubuntu Software and search for MySQL Workbench again. We must click on permissions and enable the options "Read, add, change, or remove saved passwords" and "ssh-keys: allows reading ssh user configuration and keys".
