Mosquitto setup

dexterbot80

Cadet
Joined
Oct 9, 2022
Messages
2
Hello,
I install Mosquitto and i need to edit mosquitto.conf file to make it work
How to edit mosquitto.conf (Read Only) file ?

Thank you
 

whodat

Dabbler
Joined
Apr 28, 2018
Messages
34
In the WebGUI > Apps > Installed Applications, try clicking the 3 dots next to 'Mosquitto' and choose 'Shell'. Here's a similar menu for my Grafana App:
VenwnZ7.png

From the App's shell, you should be able to find 'mosquitto.conf' wherever the App developer "normally" puts it e.g. /etc/mosquitto.conf

You might also consider editing your Mosquitto App's configuration to WebGUI > Storage and Persistence > Type of Storage = Host Path (simple) , and then map the App's /etc directory to some directory on your TrueNAS SCALE host's filesystem, if you would like to be able to access the App's /etc directory outside of the App's shell. This would also mean that the App's entire /etc directory would persist if the App was deleted.
 

dexterbot80

Cadet
Joined
Oct 9, 2022
Messages
2
Hello #whodat
Thank you for your replay.
mosquitto.conf is located in /mosquitto/config/mosquitto.conf
mosquitto.conf is just an Readonly file -That is my problem
I do not know how to edit this file
 

whodat

Dabbler
Joined
Apr 28, 2018
Messages
34
@dexterbot80 I quickly ran up the Mosquitto App on my system, and saw in the App's shell that by default you are logged in as user 568, while most other files are either owned by the user mosquitto or root. This explains your permission issue.

I don't know for sure how to fix this, but I would look at this section in your Mosquitto's App's settings:

acr6l6T.png


As @danb35 mentioned, you'd likely get better support from the Truecharts Discord, etc.
See: https://truecharts.org/contact/
 
Top