Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error loading Dynamic security plugin config: File is not readable - check permissions #2849

Open
Mohammed-Abdel-Aziz opened this issue Jul 11, 2023 · 3 comments

Comments

@Mohammed-Abdel-Aziz
Copy link

Mohammed-Abdel-Aziz commented Jul 11, 2023

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

@truongdnascript
Copy link

@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

@thaynes2023
Copy link

thaynes2023 commented Jan 15, 2024

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
`

@edocalia
Copy link

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... :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants