Error loading Dynamic security plugin config: File is not readable - check permissions
please help me to solve this issue.
Loading plugin: /usr/lib/aarch64-linux-gnu/mosquitto_dynamic_security.so Error loading Dynamic security plugin config: File is not readable - check permissions.
thanks
@Mohammed-Abdel-Aziz Have you configured the plugin_opt_config_file?
plugin_opt_config_file /tmp/security_dynamic.json
and make sure the file /tmp/security_dynamic.json exists
I am having the same problem. I cannot figure it out.
`1705296360: Saving in-memory database to /var/lib/mosquitto//mosquitto.db. 1705296360: mosquitto version 2.0.11 starting 1705296360: Config loaded from /etc/mosquitto/mosquitto.conf. 1705296360: Loading plugin: /usr/lib/x86_64-linux-gnu/mosquitto_dynamic_security.so 1705296360: Error loading Dynamic security plugin config: File is not readable - check permissions.
1705296360: Opening ipv4 listen socket on port 1883. 1705296360: Opening websockets listen socket on port 9001. 1705296360: mosquitto version 2.0.11 running`
included in my mosquitto.conf file
plugin /usr/lib/x86_64-linux-gnu/mosquitto_dynamic_security.so plugin_opt_config_file /etc/dynamic-security.json
permissons on files.
`-rwxrwxr-x 1 mosquitto mosquitto 1.3K Jan 15 05:05 dynamic-security.json
-rwxrwxr-x 1 mosquitto mosquitto 103K Nov 19 18:09 mosquitto_dynamic_security.so `
The error message "File is not readable" is misleading, you would get the same msg if the file is not found at all. Check the name, path etc. I had the same issue and it turned out that I had a syntax error in the .json file name... :)