Skip to content
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

Tons of connection issues on 2.9.2 #1218

Open
2 tasks
bobloadmire opened this issue May 21, 2024 · 8 comments
Open
2 tasks

Tons of connection issues on 2.9.2 #1218

bobloadmire opened this issue May 21, 2024 · 8 comments

Comments

@bobloadmire
Copy link

Describe the bug

[driveway] [CONTROL] ERROR - error=AssertionError('Please call _connect() first!'), cmd='_bitrate'
[side_yard] [CONTROL] ERROR - error=AssertionError('Please call _connect() first!'), cmd='_bitrate'
[driveway] [Exception] Did not receive a frame for 20s
[WyzeBridge] ❌ '/driveway' stream is down
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - Driveway on 192.168.0.20
[WyzeBridge] 📕 Client stopped reading from driveway
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - Driveway on 192.168.0.20
[side_yard] [Exception] Did not receive a frame for 20s
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - Side Yard on 192.168.0.148
[driveway] 📡 Getting 120kb/s HD stream (H264/20fps) via LAN mode (WiFi: 86%) FW: 4.36.11.8391 🔒
[driveway] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
[side_yard] 📡 Getting 120kb/s HD stream (H264/20fps) via LAN mode (WiFi: 80%) FW: 4.36.11.8391 🔒
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - Bonus Room 2 on 192.168.0.212
[side_yard] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
[bonus_room_2] [-90] IOTC_ER_DEVICE_OFFLINE
[WyzeBridge] ✅ '/driveway stream is UP! (3/3)
[WyzeBridge] 👻 Bonus Room 2 is offline.
[WyzeBridge] Bonus Room 2 will cooldown for 10s.
[WyzeBridge] 📖 New client reading from driveway
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - Bonus Room 2 on 192.168.0.212
[WyzeBridge] 📕 Client stopped reading from driveway
[bonus_room_2] [-90] IOTC_ER_DEVICE_OFFLINE
[WyzeBridge] 👻 Bonus Room 2 is offline.
[WyzeBridge] Bonus Room 2 will cooldown for 10s.
[driveway] [-13] IOTC_ER_TIMEOUT
[WyzeBridge] ❌ '/driveway' stream is down
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - Driveway on 192.168.0.20
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - Bonus Room 2 on 192.168.0.212
[bonus_room_2] [-90] IOTC_ER_DEVICE_OFFLINE
[WyzeBridge] 👻 Bonus Room 2 is offline.
[WyzeBridge] Bonus Room 2 will cooldown for 10s.
[lincs_room] [video] super slow
[lincs_room] WARNING: clear buffer
[driveway] [-13] IOTC_ER_TIMEOUT
[WyzeBridge] ☁️ Fetching 'cameras' from the Wyze API...
[WyzeBridge] [API] Fetched [7] cameras
[WyzeBridge] 💾 Saving 'cameras' to local cache...
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - Driveway on 192.168.0.20
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - Bonus Room 2 on 192.168.0.212
[bonus_room_2] [-90] IOTC_ER_DEVICE_OFFLINE
[WyzeBridge] 👻 Bonus Room 2 is offline.
[WyzeBridge] Bonus Room 2 will cooldown for 10s.
[side_yard] [Exception] Did not receive a frame for 20s
[lincs_room] [CONTROL] ERROR - error=AssertionError('Please call _connect() first!'), cmd='_bitrate'
[driveway] 📡 Getting 120kb/s HD stream (H264/20fps) via LAN mode (WiFi: 98%) FW: 4.36.11.8391 🔒
[lincs_room] [Exception] Did not receive a frame for 20s
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - Side Yard on 192.168.0.148
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - Linc's Room on 192.168.0.224
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - Bonus Room 2 on 192.168.0.212
[side_yard] 📡 Getting 120kb/s HD stream (H264/20fps) via LAN mode (WiFi: 80%) FW: 4.36.11.8391 🔒
[side_yard] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
[bonus_room_2] [-90] IOTC_ER_DEVICE_OFFLINE
[WyzeBridge] 👻 Bonus Room 2 is offline.
[WyzeBridge] Bonus Room 2 will cooldown for 10s.
[driveway] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
[WyzeBridge] 📕 Client stopped reading from kitchen
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - Bonus Room 2 on 192.168.0.212
[side_yard] [video] super slow
[side_yard] WARNING: clear buffer
[bonus_room_2] [-90] IOTC_ER_DEVICE_OFFLINE
[WyzeBridge] 👻 Bonus Room 2 is offline.
[WyzeBridge] Bonus Room 2 will cooldown for 10s.
[side_yard] [CONTROL] ERROR - error='[-20021] AV_ER_SENDIOCTRL_ALREADY_CALLED', cmd=('param_info', '1,2,5,6,7,21,22,27,50')
[kitchen] Stream stopped
[side_yard] [CONTROL] ERROR - error='[-20021] AV_ER_SENDIOCTRL_ALREADY_CALLED', cmd='_bitrate'
[lincs_room] [-13] IOTC_ER_TIMEOUT
[WyzeBridge] 172.30.32.2 - - [21/May/2024 09:18:09] "GET / HTTP/1.1" 200 -

Environment (if applicable)

  • Affected Camera(s): V3
  • Affected Camera Firmware: 4.36.11.8391
  • Affected Bridge Version: 2.9.2
  • Bridge type:
    • Docker Compose/Docker Run
    • [X ] Home Assistant
    • Other
@Dram23
Copy link

Dram23 commented May 22, 2024

I'm having the same issue

@mrlt8
Copy link
Owner

mrlt8 commented May 22, 2024

Can you set on_demand to false?

@bobloadmire
Copy link
Author

bobloadmire commented May 22, 2024

On demand was set to false before I posted. Updated to 2.9.3, same issues.

@songokussm
Copy link

on_demand to false appears to have done nothing.
went back to 2.90 and the connection drops have stopped.

@mrlt8
Copy link
Owner

mrlt8 commented May 22, 2024

Is the connection more stable if audio is disabled?

@songokussm
Copy link

songokussm commented May 23, 2024

Disabling Audio was a major improvement.
OnDemand=false

30 minutes of docker log:
DOCKER-WYZE-BRIDGE v2.9.3 X86_64
[WyzeBridge] ♻️ Clearing local cache...
[WyzeBridge] 🔍 Could not find local cache for 'auth'

  • Serving Flask app 'frontend'
    [WyzeBridge] ☁️ Fetching 'auth' from the Wyze API...
  • Debug mode: off
    [WyzeBridge] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Running on all addresses (0.0.0.0)
  • Running on http://127.0.0.1:5000
  • Running on http://172.17.0.6:5000
    [WyzeBridge] Press CTRL+C to quit
    [WyzeBridge] 💾 Saving 'auth' to local cache...
    [WyzeBridge] 🔍 Could not find local cache for 'user'
    [WyzeBridge] ☁️ Fetching 'user' from the Wyze API...
    [WyzeBridge] 💾 Saving 'user' to local cache...
    [WyzeBridge] 🔍 Could not find local cache for 'cameras'
    [WyzeBridge] ☁️ Fetching 'cameras' from the Wyze API...
    [WyzeBridge] [API] Fetched [2] cameras
    [WyzeBridge] 💾 Saving 'cameras' to local cache...
    [WyzeBridge] [+] Adding Door [HL_DB2]
    [WyzeBridge] [+] Adding Garage [HL_PAN3]
    [WyzeBridge] starting MediaMTX 1.1.1
    [WyzeBridge] 🎬 2 streams enabled
    [WyzeBridge] 🎉 Connecting to WyzeCam Pan V3 - Garage on 192.168.99.192
    [WyzeBridge] 🎉 Connecting to WyzeCam Door V2 - Door on 10.0.0.104
    [Garage] 📡 Getting 180kb/s HD stream (H264/20fps) via LAN mode (WiFi: 61%) FW: 4.50.4.9222 🔒
    [door] 📡 Getting 180kb/s 2K stream (H264/15fps) via LAN mode (WiFi: 60%) FW: 4.51.1.9807 🔒
    [door] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
    [WyzeBridge] ✅ '/door stream is UP! (3/3)
    [WyzeBridge] 📖 New client reading from door
    [Garage] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
    [WyzeBridge] ✅ '/Garage stream is UP! (3/3)
    [WyzeBridge] 📖 New client reading from Garage
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:45:04] "GET / HTTP/1.1" 200 -
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:45:04] "GET /static/site.css HTTP/1.1" 200 -
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:45:04] "GET /static/bulma-toast.js HTTP/1.1" 200 -
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:45:04] "GET /static/bulma.css HTTP/1.1" 200 -
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:45:04] "GET /static/loading.svg HTTP/1.1" 200 -
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:45:04] "GET /static/site.js HTTP/1.1" 200 -
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:45:04] "GET /api/sse_status HTTP/1.1" 200 -
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:45:04] "GET /favicon.ico HTTP/1.1" 404 -
    [WyzeBridge] 📖 New client reading from door
    [WyzeBridge] 📖 New client reading from Garage
    [WyzeBridge] 📕 Client stopped reading from door
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:45:06] "GET /img/door.jpg HTTP/1.1" 200 -
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:45:06] "GET /img/door.jpg HTTP/1.1" 304 -
    [WyzeBridge] 📕 Client stopped reading from Garage
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:45:07] "GET /img/Garage.jpg HTTP/1.1" 200 -
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:45:07] "GET /img/Garage.jpg HTTP/1.1" 304 -
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:47:26] "GET / HTTP/1.1" 200 -
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:47:26] "GET /static/site.css HTTP/1.1" 304 -
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:47:26] "GET /static/bulma.css HTTP/1.1" 304 -
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:47:26] "GET /static/bulma-toast.js HTTP/1.1" 304 -
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:47:26] "GET /img/door.jpg HTTP/1.1" 304 -
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:47:26] "GET /static/site.js HTTP/1.1" 304 -
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:47:26] "GET /img/Garage.jpg HTTP/1.1" 304 -
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:47:26] "GET /img/door.jpg HTTP/1.1" 304 -
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:47:26] "GET /img/Garage.jpg HTTP/1.1" 304 -
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:47:26] "GET /api/sse_status HTTP/1.1" 200 -
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:47:26] "GET /img/Garage.jpg HTTP/1.1" 304 -
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:47:26] "GET /img/door.jpg HTTP/1.1" 304 -
    [WyzeBridge] 📖 New client reading from Garage
    [WyzeBridge] 📕 Client stopped reading from Garage
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:47:37] "GET /snapshot/Garage.jpg?1716468454100 HTTP/1.1" 200 -
    [WyzeBridge] 📖 New client reading from Garage
    [WyzeBridge] 📕 Client stopped reading from Garage
    [WyzeBridge] 192.168.99.105 - - [23/May/2024 05:47:39] "GET /snapshot/Garage.jpg?1716468454100 HTTP/1.1" 200 -

previously the log would contain nothing but:
[WyzeBridge] 📖 New client reading from Garage
[WyzeBridge] 📕 Client stopped reading from Garage

edit: 7 hours later. No drop outs.

@mrlt8
Copy link
Owner

mrlt8 commented May 24, 2024

Thank you. I'll have a look at the A/V syncing that may be causing the issue.

mrlt8 added a commit that referenced this issue May 25, 2024
@mrlt8
Copy link
Owner

mrlt8 commented May 25, 2024

@songokussm could you try the edge builds to see if that helps reduce some of those errors?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants