Hi @brocaar . Can you help me?
I’m following this guide to setup my ACLS and User/Password, but Im having a problem.
When I setup everything and restart Mosquitto, my device and gateway stop working on the Application Server! I checked the logs and this is what it shows:
chirpstack-gateway-bridge[1144]: time=“2021-07-14T17:41:33.888232031-03:00” level=error msg="[client] Connecting to tcp://127.0.0.1:1883 CONNACK was not CONN_ACCEPTED, but rather Connection Refused: Not Authorised" module=mqtt
chirpstack-gateway-bridge[1144]: time=“2021-07-14T17:41:33.888306389-03:00” level=error msg="[client] Failed to connect to a broker" module=mqtt
chirpstack-gateway-bridge[1144]: time=“2021-07-14T17:41:33.888359459-03:00” level=error msg=“integration/mqtt: connection error” error="not Authorized"
but when I delete everything I made on the guide above, they start to work again. What am i doing wrong?
my ACLS file is:
user chirpstack_gw
topic write gateway/+/event/+
topic read gateway/+/command/+
user chirpstack_ns
topic read gateway/+/event/+
topic write gateway/+/command/+
user chirpstack_as
topic write application/+/device/+/event/+
topic read application/+/device/+/command/+
file in conf.d:
allow_anonymous false
password_file /etc/mosquitto/passwd
acl_file /etc/mosquitto/acls
obs: I’m setting up the users and passwords on the toml files as well