hjdhjd / homebridge-unifi-protect

:video_camera: Complete HomeKit integration for all UniFi Protect device types with full support for most features including HomeKit Secure Video, and more. https://homebridge.io
Other
1.39k stars 84 forks source link

Possible stability issues on newest Unifi Protect version #1050

Closed dalanmiller closed 3 months ago

dalanmiller commented 3 months ago

Homebridge UniFi Protect Version

v6.19.0

Homebridge Platform and OS

Docker on Ubuntu host

Homebridge Version

Homebridge v1.7.0

Node Version

v18.19.0

UniFi OS Version

v3.2.12

UniFi Protect Controller Version

Version 3.0.22

Describe the problem

Viewing cameras through the "Home" app now will work for awhile, but at some point attempts to view the camera will fail with "No Repsonse. The camera is not responding".

Going into the logs of Homebridge, I see the following:

[3/25/2024, 7:58:53 PM] [UniFi Protect] dalan-UCKP [UCK-G2-PLUS]: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[3/25/2024, 8:00:58 PM] [Homebridge UI] Starting terminal session
[3/25/2024, 8:01:06 PM] [UniFi Protect] dalan-UCKP [UCK-G2-PLUS] Cam [G3 Instant]: Streaming request from 192.168.2.100: 1280x720@30fps, 299 kbps. Using 1920x1080@30fps (High), 3,000 kbps.
[3/25/2024, 8:02:04 PM] [UniFi Protect] dalan-UCKP [UCK-G2-PLUS]. Cam [G3 Instant]: Stopped video streaming session.
[3/25/2024, 8:03:01 PM] [UniFi Protect] dalan-UCKP [UCK-G2-PLUS]: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[3/25/2024, 8:05:35 PM] [UniFi Protect] dalan-UCKP [UCK-G2-PLUS] Cam [G3 Instant]: Streaming request from 192.168.2.100: 1280x720@30fps, 299 kbps. Using 1920x1080@30fps (High), 3,000 kbps.

Attempting to close the Home app on my Mac and. reopen does not fix anything just continues this cycle of logs. Restarting homebridge brings the camera back to life for a time.

I fully understand that this is the least helpful kind of support request, but wanted to put it up here just in case others are experiencing similar issues and we can compare notes. Will attempt to continue to try and determine if I can trigger this.

Update 2024-03-25

Homebridge HBUP JSON configuration

{
    "controllers": [
        {
            "address": "unifi.subdomain.domain.com",
            "password": "PASSWORD",
            "username": "USER"
        }
    ],
    "name": "UniFi Protect",
    "options": [
        "Enable.Device.SyncName.7483C273CCF5",
        "Disable.Doorbell.Messages.7483C273CCF5",
        "Disable.Log.Doorbell.7483C273CCF5",
        "Disable.Log.HKSV.7483C273CCF5",
        "Enable.Video.Transcode.Hardware.7483C273CCF5",
        "Enable.Device.SyncName",
        "Enable.Video.Transcode.Hardware"
    ],
    "verboseFfmpeg": false,
    "platform": "UniFi Protect"
}

Relevant log output

[3/25/2024, 7:58:53 PM] [UniFi Protect] dalan-UCKP [UCK-G2-PLUS]: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[3/25/2024, 8:00:58 PM] [Homebridge UI] Starting terminal session
[3/25/2024, 8:01:06 PM] [UniFi Protect] dalan-UCKP [UCK-G2-PLUS] Cam [G3 Instant]: Streaming request from 192.168.2.100: 1280x720@30fps, 299 kbps. Using 1920x1080@30fps (High), 3,000 kbps.
[3/25/2024, 8:02:04 PM] [UniFi Protect] dalan-UCKP [UCK-G2-PLUS]. Cam [G3 Instant]: Stopped video streaming session.
[3/25/2024, 8:03:01 PM] [UniFi Protect] dalan-UCKP [UCK-G2-PLUS]: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[3/25/2024, 8:05:35 PM] [UniFi Protect] dalan-UCKP [UCK-G2-PLUS] Cam [G3 Instant]: Streaming request from 192.168.2.100: 1280x720@30fps, 299 kbps. Using 1920x1080@30fps (High), 3,000 kbps.

Acknowledgment that you are only running UniFi OS and UniFi Protect releases from the Ubiquiti Official release channel

atx-eshaheen commented 3 months ago

I'm having similar issue as well.

hjdhjd commented 3 months ago

Thanks for the report. As you noted, there’s not much I can do with the report. 😄

This isn’t an HBUP issue as far as I can tell, but given Ubiquiti has issued both Network and Protect updates recently, I’d look there. No response issues generally tend to be more network-centric…either mDNS (Bonjour, ciao, etc) or something else in the environment. I’d also try rebooting your Protect controller / console. The latest Protect firmware has definitely been a bit flaky in general.

Best of luck - feel free to hit folks up on the Discord for additional ideas, but not much for me to do here.

github-actions[bot] commented 3 months ago

This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions.