ZoneMinder / zmNinja

High performance, cross platform ionic app for Home/Commerical Security Surveillance using ZoneMinder
http://zmninja.zoneminder.com
Other
1.01k stars 268 forks source link

I havent changed anything at all but now im getting BADAUTH on event server and it fails to send me a push message #1001

Closed aaronsta1 closed 4 years ago

aaronsta1 commented 4 years ago

Before you create an issue, please make sure you have read the FAQ. Common questions on API, no image etc are covered there. Please also read HOWTO REPORT ISSUES

The version of zmNinja you are reporting:

1.6.000 android

The version and OS of ZoneMinder you are using:

1.34.21 Ubuntu

Platform zmNinja is running on

android oneplus 6T

Did you build the package from source code yourself? Y or N N

Describe the bug A clear and concise description of what the bug is.

no longer getting push messages.

Debug logs

Oct 15, 2020 04:10:15:973 AM INFO EventServer: Error: {"event":"auth","type":"","reason":"BADAUTH","status":"Fail"}
Oct 15, 2020 04:10:15:972 AM DEBUG EventSever: Real-time event: {"event":"auth","type":"","reason":"BADAUTH","status":"Fail"}
Oct 15, 2020 04:10:15:919 AM DEBUG EventSever: Connection not yet authenticated, adding message to queue
Oct 15, 2020 04:10:15:918 AM DEBUG EventSever: sendMessage: received->{"event":"push","data":{"type":"token","platform":"android","token":"removed key","state":"disabled","appversion":"1.6.000"},"token":"removed key"}
Oct 15, 2020 04:10:15:917 AM DEBUG Sending token state disabled
Oct 15, 2020 04:10:15:916 AM DEBUG EventSever: Connection not yet authenticated, adding message to queue

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

I havent changed anything at all. its been working perfectly fine for years. ive tried to set it to only use websockets in ZMNINJA and ive tried to enable OPT_USE_LEGACY_API_AUTH in ZM but nothing changed.

pliablepixels commented 4 years ago

Bad auth usually means the password zmNinja is sendingis wrong or on ZM side the account password was not migrated to bcryprt when ZM was updated. Check logs on both sides. A good way to validate this is create a new account in ZM and use that with the ES.

aaronsta1 commented 4 years ago

the thing is it was working yesterday? also the app works i can see the monitors and view the video.

pliablepixels commented 4 years ago

What changed from yesterday? Did you update your ES? zmNinja 1.6 needs ES 6

aaronsta1 commented 4 years ago

maybe my phone updated the zmninja app? i didnt change anything on my ubuntu server.

aaronsta1 commented 4 years ago

how do i update the event server? im guessing thats it because i havent updated that for a couple years.. its been running just fine?

pliablepixels commented 4 years ago

https://forums.zoneminder.com/viewtopic.php?f=33&t=30069

aaronsta1 commented 4 years ago

oh, this is going to be complicated.. i rewrote most of your event notification script to enable the use of darknet 4.0 with my gpu. i took out all the python stuff.. lol. i guess its time to learn pytorch and do it that way.. 👍

does your detection script use gpu now?

pliablepixels commented 4 years ago

I'm curious why you had to do that. The ES scripts already support Yolo (v3 and v4) and OpenCV's versions are much faster than the original darknet code. (GPU perf should be similar or better)

The scripts support GPU, CPU and now TPU. Please feel free to read the docs.

aaronsta1 commented 4 years ago

ok, thanks for the help. i guess its a good time to do that dist upgrade to the new ubuntu and reinstall everything. im on 18.04 and the new release is 20.04