Closed kquinsland closed 1 year ago
MQTT user substation is only supported in 0.12 so that's why it fails.
MQTT user substation is only supported in 0.12 so that's why it fails.
That ... makes sense.
Small PR that would have saved me some time: https://github.com/blakeblackshear/frigate/pull/5641
Describe the problem you are having
I can not get a successful connection to my MQTT broker when using env-vars in the MQTT broker configuration.
Obviously, I changed the user/pass for my MQTT broker since posting this however the credentials in the configuration below are the ones that I was attempting to use / testing with. I did not modify them / replace them with generic
myPasswordHere
values in the hopes of others being able to reproduce the issue.When the first or second test case is active, this is what I see in the logs:
this will loop over and over until I stop the container.
When the credentials come from the third test case,
pydantic
gets upset:The 4th test case is me hard-coding the credentials right into the
yml
file. There are no issues here; the logs do not look like they do with any of the three prior test cases.The camera portion of the
config.yml
provided is intentionally incorrect and - as expected - produces errors like this in the logs:The camera should return a
401
here as the credentials contained in theFRIGATE_MQTT_USER
andFRIGATE_MQTT_PASSWORD
vars are incorrect for the camera. The reason why I used the mqtt env-vars is because the "resolved" values are emitted via logs which allowed me to confirm that the values that{FRIGATE_MQTT_PASSWORD}
and{FRIGATE_MQTT_USER}
resolve to are correct.I can copy the user/pass from the "server returned 401" log line and they match the user/pass in my password manager. Additionally, I can copy the user/pass straight from the log line and paste them into my MQTT client ... and get in.
Furthermore, when I change the env-vars in the
rtsp://....
expression back to the correct values, frigate is able to connect to the camera and authenticate as expected.I am running frigate via
docker run ...
with an env-vars file:Version
0.11.1-2eada21
Frigate config file
Relevant log output
FFprobe output from your camera
Frigate stats
No response
Operating system
Other Linux
Install method
Docker CLI
Coral version
M.2
Network connection
Wired
Camera make and model
N/A
Any other information that may be helpful
No response