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

Persistence db file not created in Version 2.0.18 on OpenWRT 22.03.5 #3064

Open
DocHardinger opened this issue Jun 10, 2024 · 2 comments
Open

Comments

@DocHardinger
Copy link

DocHardinger commented Jun 10, 2024

We are using mosquitto-ssl V2.0.18 in OpenWRT 22.03.5. We having issues with persistence. The persistence db file is never been created.
Permissions are set correctly in /etc/mosquitto directory (Owner is mosquitto:mosquitto).

In 2.0.17 this worked fine.

Steps to reproduce:

  1. Starting mosquitto service
  2. Connect to Broker with MQTT Explorer and send a retained message
  3. Closing connection
  4. Stopping mosquitto service
  5. Start mosquitto service
  6. Connect again to broker and the retained message is not published

We are using this configuration file:

log_type all
persistence true
autosave_on_changes false
persistence_location /etc/mosquitto/
autosave_interval 5
# mqtt configuration
listener 1883
protocol mqtt
allow_anonymous true
@sukesh-ak
Copy link

@DocHardinger
If docker is an option, you can refer my write-up here to get started
https://github.com/sukesh-ak/setup-mosquitto-with-docker

@DocHardinger
Copy link
Author

DocHardinger commented Jun 14, 2024

No that doesnt work for us we need this running on a small mediathek chip. its an Omega2 with OpenWrt 22.03.05. I now can verify that Version 2.0.17 of mosquitto is working as expected but 2.0.18 isnt. Packages taken from original OpenWrt packages (https://archive.openwrt.org/releases/packages-22.03/mipsel_24kc/packages/ )

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

2 participants