-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Support]: Frigate Docker Install HA Supervised 502 Bad Gateway Error #2335
Comments
I got one camera to respond with ffprobe I believe I had the url wrong and the other camera isn't being powered over Poe I think it is too far. Here is the output. Input #0, rtsp, from 'rtsp://admin:admin@192.168.1.33:554/': |
What do the logs for Frigate's docker container show? You posted logs from home assistant, not frigate. |
Oh sorry, here they are. [s6-init] making user provided files available at /var/run/s6/etc...exited 0. |
It looks like it is failing to connect to your mqtt server (192.168.1.14). |
I'm not sure. How do I check. It looks like it is running fine. The logs on my mqtt server show it is up. I can do a test in ha with it and it works there. Not sure where the issue is. |
MQTT logs: [s6-init] making user provided files available at /var/run/s6/etc...exited 0. |
It seems like frigate is trying to connect to the mqtt server, but is failing. 401: Unauthorized1638226898: Socket error on client , disconnecting. I have checked the password it seems to be right. |
It seems like the request is timing out for some reason. That is what the frigate logs say. When I change the ip it just says connection refused so that makes me think I have the right ip which it should just be the ip of my ha instance. |
It's weird to me that i'm not hitting any of the frigate error messages for mqtt. I am just getting "timed out". |
I get a similar error with no cams, fresh K8 install, no mqtt setup - just pristine (btw - I don't know if this can work that way). |
MQTT is required in current versions. Normally you would see a reference to the frigate client_id when it connects which is "frigate". I'm not sure why the mqtt error messages sometimes come across without the logging header, but typically that's what I have seen for others in the past. |
@blakeblackshear Do you have any tips for debugging this? I have been trying everything I can think of with no luck. I am using Lorex Cameras. I don't know if it is because of it not connecting to mqtt or if it can't connect to the camera. |
I have never been able to reproduce this type of error message. Are you using the Hass Addon for MQTT? Is Frigate running on a separate machine? |
I never got it working in the docker container. However, I switched to using the HA addon with this url for mqtt core-mosquitto.local.hass.io and it worked. For some reason the docker standalone container could not resolve the ip. When adding it through home assistant as an addon it could, but only using that url. |
Now I am just trying to figure out how to get my cameras other streams. I want to have a regular 20fps or something stream on my dashboards and use the 5fps for frigate detection. I am using Lorex cameras most of the urls I have tried have failed. Only ones that work are rtsp://user:pass@ip:554/ and tsp://user:pass@ip:554/live. Both of those give the same stream too. |
I was able to reproduce this and fix it. In my case, using docker-compose (instead of docker run) caused a new network interface and docker network to be created for this container. That network was not in my list of allowed networks, and with a default-deny firewall rule, it was making it impossible for Frigate to reach my MQTT server. Once I figured out the state of the network, and opened my firewall to the new network for docker-compose, it worked. As a suggestion, it might be useful to add some connection data to the error message, going from "timed out" to "timed out connecting to MQTT server: 1.2.3.4:1883". That would give a hint to people who run into this that it might be a firewall issue. |
That's the thing. This error message seems to come from somewhere I don't control. I don't have any way to modify the message because nothing in my code produces it. |
What exactly did you do to fix it? I am also getting millions of 502 Bad Gateaway error in the browser console and its not loading. Actually its getting spammed that much that my browser starts lagging. It shows 502 Bad gateaway with method get and file "config" (http://...:***/api/config) |
I'm not getting the bad gateway errors, just the "timed out" error in my logs. In my case, the problem was that the firewall on my MQTT server was not configured to allow traffic from the network/interface created by docker-compose for my containers. (I had previously used |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Describe the problem you are having
I cannot seem to connect to the web UI for frigate. I have some Lorex cameras and I have been trying to find their RTSP url. I am unsure if I am using the right one I have tried many and none seem to work. When I go to the frigate site it just shows the loading indicator as it is trying to hit the frigate api to no avail. It gets a 502 Bad Gateway error every-time. I appreciate any help.
Version
Latest stable-amd64
Frigate config file
Relevant log output
FFprobe output from your camera
Frigate stats
Operating system
Debian
Install method
Docker Compose
Coral version
M.2
Network connection
Wired
Camera make and model
Lorex E841CA
Any other information that may be helpful
No response
The text was updated successfully, but these errors were encountered: