[Support]: Unable to publish to mqtt-topic: client is not connected #13544
-
Describe the problem you are havingSeems this has come up several times before, i can see similar issues in 8083 and 10023 without any conclusion as why is it not working. Running Frigate 0.14 in a Docker container on Debian 12 Bookworm. This is the host IP:
This is a snippet of the frigate errors:
and this is the
Testing the connectivity and functionality of the mqtt server that's running as an add-on inside HASSOS vm on the
In a mosquitto subscriber started in another console:
So, all is working. I'm able to connect to mqtt and publish to a topic from inside Frigate container and pickup the messages via a subscriber to the same topic. Yet frigate itself is struggling for some reason. Version0.14.0-da913d8 What browser(s) are you using?No response Frigate config filemqtt:
enabled: true
host: 192.168.122.211
port: 1883
user: mqtt_user
password: mqtt_passwd
stats_interval: 300 Relevant Frigate log output2024-09-04 17:54:00.209727639 [2024-09-04 17:54:00] frigate.comms.mqtt ERROR : Unable to publish to camera1/audio/dBFS: client is not connected
2024-09-04 17:54:00.211250021 [2024-09-04 17:54:00] frigate.comms.mqtt ERROR : Unable to publish to camera1/audio/rms: client is not connected
2024-09-04 17:54:00.373540187 [2024-09-04 17:54:00] frigate.comms.mqtt ERROR : Unable to publish to camera1/all: client is not connected
2024-09-04 17:54:00.373704739 [2024-09-04 17:54:00] frigate.comms.mqtt ERROR : Unable to publish to camera1/motion: client is not connected
2024-09-04 17:54:00.999063272 [2024-09-04 17:54:00] frigate.comms.mqtt ERROR : Unable to publish to camera1/audio/dBFS: client is not connected
2024-09-04 17:54:01.000054465 [2024-09-04 17:54:00] frigate.comms.mqtt ERROR : Unable to publish to camera1/audio/rms: client is not connected
2024-09-04 17:54:01.958751860 [2024-09-04 17:54:01] frigate.comms.mqtt ERROR : Unable to publish to camera1/audio/dBFS: client is not connected
2024-09-04 17:54:01.959971187 [2024-09-04 17:54:01] frigate.comms.mqtt ERROR : Unable to publish to camera1/audio/rms: client is not connected
2024-09-04 17:54:02.930393613 [2024-09-04 17:54:02] frigate.comms.mqtt ERROR : Unable to publish to camera1/audio/dBFS: client is not connected
2024-09-04 17:54:02.931039367 [2024-09-04 17:54:02] frigate.comms.mqtt ERROR : Unable to publish to camera1/audio/rms: client is not connected
2024-09-04 17:54:03.916149157 [2024-09-04 17:54:03] frigate.comms.mqtt ERROR : Unable to publish to camera2/audio/dBFS: client is not connected
2024-09-04 17:54:03.916911180 [2024-09-04 17:54:03] frigate.comms.mqtt ERROR : Unable to publish to camera2/audio/rms: client is not connected
2024-09-04 17:54:03.956713052 [2024-09-04 17:54:03] frigate.comms.mqtt ERROR : Unable to publish to camera1/audio/dBFS: client is not connected
2024-09-04 17:54:03.960409453 [2024-09-04 17:54:03] frigate.comms.mqtt ERROR : Unable to publish to camera1/audio/rms: client is not connected
2024-09-04 17:54:04.025584933 [2024-09-04 17:54:04] frigate.comms.mqtt ERROR : Unable to publish to camera2/all: client is not connected
2024-09-04 17:54:04.025802047 [2024-09-04 17:54:04] frigate.comms.mqtt ERROR : Unable to publish to camera2/motion: client is not connected
2024-09-04 17:54:04.216046782 [2024-09-04 17:54:04] frigate.comms.mqtt ERROR : Unable to publish to camera2/audio/dBFS: client is not connected
2024-09-04 17:54:04.217210472 [2024-09-04 17:54:04] frigate.comms.mqtt ERROR : Unable to publish to camera2/audio/rms: client is not connected
2024-09-04 17:54:04.918192799 [2024-09-04 17:54:04] frigate.comms.mqtt ERROR : Unable to publish to camera1/audio/dBFS: client is not connected Relevant go2rtc log outputIt is not about the cameras. FFprobe output from your cameraIt is not about the cameras. Frigate statsuser@host:~/frigate-docker$ sudo docker stats --no-stream frigate
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
2389089c0fbd frigate 36.33% 717.5MiB / 15.51GiB 4.52% 522MB / 24.4MB 283kB / 22.3MB 354 Operating systemDebian Install methodDocker Compose Object DetectorCoral Network connectionWired Camera make and modelIt is not about the cameras. Screenshots of the Frigate UI's System metrics pagesNo response Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Maybe try putting quotes around the user / pass |
Beta Was this translation helpful? Give feedback.
-
Ok, this is incredibly embarrassing the mistake was staring at my face all this time:
Copy/paste error from another frigate instance i had running on a different VLAN 🥺 . After fixing it to
Thanks for having a look and sorry for wasting your time. |
Beta Was this translation helpful? Give feedback.
-
Your mistake helped me, I was using localhost then 127.0.0.1, nothing worked. Then I read your post and put in the actual LAN address 192.168.88.10 and it worked. |
Beta Was this translation helpful? Give feedback.
Ok, this is incredibly embarrassing the mistake was staring at my face all this time:
Copy/paste error from another frigate instance i had running on a different VLAN 🥺 . After fixing it to
192.168.1.211
it is all working:Thanks for having a look and sorry for wasting your time.