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

BUG: Add-on doesnt seem to survive a restart #1334

Open
nappyjim opened this issue Aug 29, 2024 · 1 comment
Open

BUG: Add-on doesnt seem to survive a restart #1334

nappyjim opened this issue Aug 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@nappyjim
Copy link

nappyjim commented Aug 29, 2024

Describe the bug

My cameras work fine. But then after a power cycle when I go to the WebUI, it says its detected 7 cameras, but I dont see anything. Then after I press the back button, or some combination of buttons I still cant quite figure out, I am then brought back to the login screen when I have to enter the wyze API again.

Here is my WebUI
image

Affected Bridge Version

v2.10.2

Bridge type

Docker Run/Compose

Affected Camera(s)

All

Affected Camera Firmware

No response

docker-compose or config (if applicable)

[WyzeBridge] 👻 test is offline.
[WyzeBridge] test will cooldown for 10s.
[WyzeBridge] 👻 Basement is offline.
[WyzeBridge] Basement will cooldown for 10s.
[WyzeBridge] 📕 Client stopped reading from backyard
[WyzeBridge] 📕 Client stopped reading from bird-feeder
[WyzeBridge] 📕 Client stopped reading from driveway
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - test on 192.168.86.16
[WyzeBridge] 🎉 Connecting to WyzeCam V2 - Basement on 192.168.86.11
[WyzeBridge] 📖 New client reading from bird-feeder
[WyzeBridge] 📖 New client reading from driveway
[WyzeBridge] 📖 New client reading from backyard
[basement] [-90] IOTC_ER_DEVICE_OFFLINE
[WyzeBridge] 📕 Client stopped reading from backyard
[WyzeBridge] 👻 Basement is offline.
[WyzeBridge] Basement will cooldown for 10s.
[WyzeBridge] 📕 Client stopped reading from bird-feeder
[test] [-90] IOTC_ER_DEVICE_OFFLINE
[WyzeBridge] 👻 test is offline.
[WyzeBridge] test will cooldown for 10s.
[WyzeBridge] 📕 Client stopped reading from driveway
[WyzeBridge] [MOTION] Motion detected on backyard at  18:05:42
[WyzeBridge] ☁️ Pulling "backyard" thumbnail to /media/wyze/img/backyard.jpg
[WyzeBridge] ERROR pulling thumbnail:404 Client Error: Not Found for url: https://c-t-usw2.s3.us-west-2.amazonaws.com/D03F27B2BDAC/2024-08-26/D03F27B2BDAC011724713542_1724713542893_1_1_0/209b9e09927444d9a473d64ae0fcccf1.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20240826T230544Z&X-Amz-SignedHeaders=host&X-Amz-Credential=AKIAYS2NUP7ILWMJOSP5%2F20240826%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Expires=1200&X-Amz-Signature=69567d8ce0d428efcc5f71defec0df868a30c32d62517ea53aa0c4957d08c1fb
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - test on 192.168.86.16
[WyzeBridge] 🎉 Connecting to WyzeCam V2 - Basement on 192.168.86.11
[WyzeBridge] 📖 New client reading from bird-feeder
[WyzeBridge] 📖 New client reading from backyard
[WyzeBridge] 📖 New client reading from driveway
[WyzeBridge] 📕 Client stopped reading from backyard
[WyzeBridge] 📕 Client stopped reading from bird-feeder
[test] [-90] IOTC_ER_DEVICE_OFFLINE
[basement] [-90] IOTC_ER_DEVICE_OFFLINE
[WyzeBridge] 👻 test is offline.
[WyzeBridge] test will cooldown for 10s.
[WyzeBridge] 👻 Basement is offline.
[WyzeBridge] Basement will cooldown for 10s.
[WyzeBridge] 📕 Client stopped reading from driveway
[WyzeBridge] [MOTION] Motion detected on driveway at  18:11:12
[WyzeBridge] ☁️ Pulling "driveway" thumbnail to /media/wyze/img/driveway.jpg
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - test on 192.168.86.16
[WyzeBridge] 🎉 Connecting to WyzeCam V2 - Basement on 192.168.86.11
[WyzeBridge] 📖 New client reading from bird-feeder
[WyzeBridge] 📖 New client reading from driveway
[WyzeBridge] 📖 New client reading from backyard
[WyzeBridge] 📕 Client stopped reading from bird-feeder
[WyzeBridge] 📕 Client stopped reading from backyard
[test] [-90] IOTC_ER_DEVICE_OFFLINE
[WyzeBridge] 👻 test is offline.
[WyzeBridge] test will cooldown for 10s.
[WyzeBridge] 📕 Client stopped reading from driveway
[basement] [-90] IOTC_ER_DEVICE_OFFLINE
[WyzeBridge] 👻 Basement is offline.
[WyzeBridge] Basement will cooldown for 10s.
[WyzeBridge] 🎉 Connecting to WyzeCam V3 - test on 192.168.86.16
[WyzeBridge] 🎉 Connecting to WyzeCam V2 - Basement on 192.168.86.11
[WyzeBridge] 📖 New client reading from bird-feeder
[WyzeBridge] 📖 New client reading from driveway
[WyzeBridge] 📖 New client reading from backyard
[WyzeBridge] 📕 Client stopped reading from bird-feeder
[test] [-90] IOTC_ER_DEVICE_OFFLINE
[basement] [-90] IOTC_ER_DEVICE_OFFLINE
[WyzeBridge] 📕 Client stopped reading from backyard
[WyzeBridge] 👻 test is offline.
[WyzeBridge] test will cooldown for 10s.
[WyzeBridge] 👻 Basement is offline.
[WyzeBridge] Basement will cooldown for 10s.
[WyzeBridge] 📕 Client stopped reading from driveway
[WyzeBridge] 🏠 Home Assistant Mode

🚀 DOCKER-WYZE-BRIDGE v2.10.2 X86_64

[WyzeBridge] [WARN] Credentials are NOT set
[WyzeBridge] 📚 Using 'auth' from local cache...
[WyzeBridge] [AUTH] WB_AUTH=True
 * Serving Flask app 'frontend'
 * 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.30.33.6:5000
[WyzeBridge] Press CTRL+C to quit
[WyzeBridge] [AUTH] WB_USERNAME=wbadmin
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
    self.run()
  File "/app/wyze_bridge.py", line 33, in run
    self._initialize(fresh_data)
  File "/app/wyze_bridge.py", line 37, in _initialize
    WbAuth.set_email(email=self.api.creds.email, force=fresh_data)
  File "/app/wyzebridge/auth.py", line 71, in set_email
    logger.info(f"[AUTH] WB_PASSWORD={cls._pass[0]}{'*'*(len(cls._pass)-1)}")
                                      ~~~~~~~~~^^^
IndexError: string index out of range
[WyzeBridge] 📚 Using 'cameras' from local cache...
[WyzeBridge] 172.30.32.2 - - [28/Aug/2024 20:50:15] "GET / HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [28/Aug/2024 20:50:15] "GET /static/bulma.css HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [28/Aug/2024 20:50:15] "GET /static/site.css HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [28/Aug/2024 20:50:15] "GET /static/site.js HTTP/1.1" 200 -
[WyzeBridge] 172.30.32.2 - - [28/Aug/2024 20:50:15] "GET /static/bulma-toast.js HTTP/1.1" 200 -
@nappyjim nappyjim added the bug Something isn't working label Aug 29, 2024
mrlt8 added a commit that referenced this issue Aug 29, 2024
@mrlt8
Copy link
Owner

mrlt8 commented Aug 29, 2024

Thanks for the bug report! could you try the dev image to see if that helps?

mrlt8 added a commit that referenced this issue Sep 13, 2024
* Delete old snapshots #1330

* purge old snapshots when taking any snapshot

* Tweak RTMP and add RestreamIO #1333

* Increase MTX_WRITEQUEUESIZE for higher bitrates

* Fix typo

* restart stream on RTMP fail #1333

* Fix restore user data on restart #1334

* Use email from wyze api response directly

* Bump previous build to 2.9.12

* Update config.yml

* bump previous build

* Changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants