ZoneMinder / zmeventnotification

Machine Learning powered Secure Websocket & MQTT based ZoneMinder event notification server
415 stars 129 forks source link

Can't Start Eventnotification #10

Closed sbcrumb closed 8 years ago

sbcrumb commented 8 years ago

OK lets start this over. I have got further but here is where it keeps hanging up the logs I am only for now running this local in my LAN to test. NO SSL and not pushing to your proxy yet. I don't get any alarms pushed and /etc/private/tokens.txt is 777 owner group www-data:www-data

2016-08-26 12:26:43.395390 zmeventnotification 4057 INF Correct authentication provided by 192.168.2.151 zmeventnotification.pl
2016-08-26 12:26:43.364800 zmeventnotification 4057 INF Websockets: New Connection Handshake requested from 192.168.2.151:44623 state=pending auth zmeventnotification.pl
2016-08-26 12:26:43.361070 zmeventnotification 4057 INF got a websocket connection from 192.168.2.151 (0) active connections zmeventnotification.pl
2016-08-26 12:26:38.328850 zmeventnotification 4057 INF Marking 192.168.2.151 for deletion as websocket closed remotely zmeventnotification.pl
2016-08-26 12:26:38.324910 zmeventnotification 4057 INF Websocket remotely disconnected from 192.168.2.151 zmeventnotification.pl
2016-08-26 12:26:38.323180 zmeventnotification 4057 INF Rejecting 192.168.2.151 - authentication timeout zmeventnotification.pl
2016-08-26 12:26:34.147060 zmeventnotification 4057 INF Contrl: Storing token ...,monlist:3,6,5,intlist:1,1,1,pushstate: zmeventnotification.pl
2016-08-26 12:26:16.961430 zmeventnotification 4057 INF Websockets: New Connection Handshake requested from 192.168.2.151:44615 state=pending auth

pliablepixels commented 8 years ago
  1. Please enable debug logs in zmNinja (Developer settings)
  2. Please post full debug logs (even if you feel its not relevant)
  3. Please post full logs of zmeventserver when you start it (syslog)
  4. What are the last 5 digits of your token (in tokens.txt) -I'd like to make sure its registered in my push server

Lets take it from there

sbcrumb commented 8 years ago

Ok I got them working local on the desktop client and android if the client is open and running however push not so much. Believe this is what you as asking for in token. MawWc:::android:enabled

zmeventserverlogs

08/26/2016 13:48:45.972888 zmeventnotification[4068].INF [Push enabled via PushProxy] 08/26/2016 13:48:45.974549 zmeventnotification[4068].INF [direct APNS disabled] 08/26/2016 13:48:45.975809 zmeventnotification[4068].INF [Event Notification daemon v 0.9 starting] 08/26/2016 13:48:46.007356 zmeventnotification[4068].INF [Total event client connections: 1] 08/26/2016 13:48:46.008446 zmeventnotification[4068].INF [Reloading Monitors...] 08/26/2016 13:48:46.008828 zmeventnotification[4068].INF [Loading monitors] 08/26/2016 13:48:46.010110 zmeventnotification[4068].INF [Checking https://185.124.74.36:8801 reachability...] 08/26/2016 13:48:47.240602 zmeventnotification[4068].INF [PushProxy https://185.124.74.36:8801 is reachable.] 08/26/2016 13:48:47.241851 zmeventnotification[4068].INF [Secure WS is disabled...] 08/26/2016 13:48:47.242301 zmeventnotification[4068].INF [Web Socket Event Server listening on port 9000] 08/26/2016 13:48:47.573775 zmeventnotification[4068].INF [got a websocket connection from 192.168.2.101 (1) active connections] 08/26/2016 13:48:47.575637 zmeventnotification[4068].INF [Websockets: New Connection Handshake requested from 192.168.2.101:55682 state=pending auth] 08/26/2016 13:48:47.585597 zmeventnotification[4068].INF [Correct authentication provided by 192.168.2.101] 08/26/2016 13:48:52.175074 zmeventnotification[4068].INF [got a websocket connection from 192.168.2.151 (2) active connections] 08/26/2016 13:48:52.177338 zmeventnotification[4068].INF [Websockets: New Connection Handshake requested from 192.168.2.151:44874 state=pending auth] 08/26/2016 13:48:52.195888 zmeventnotification[4068].INF [Correct authentication provided by 192.168.2.151] 08/26/2016 13:48:52.200510 zmeventnotification[4068].INF [Storing token ...V0QwJMawWc,monlist:-1,intlist:-1,pushstate:enabled] 08/26/2016 13:48:52.738984 zmeventnotification[4068].WAR [Push Proxy Token registration Error:500 Internal Server Error] 08/26/2016 13:49:12.247883 zmeventnotification[4068].INF [New event 1211 reported for FrontPTZ] 08/26/2016 13:49:12.249546 zmeventnotification[4068].INF [Broadcasting new events to all 3 websocket clients] 08/26/2016 13:49:12.250090 zmeventnotification[4068].INF [Checking alarm rules for token ending in:...LS_tuY_pRs] 08/26/2016 13:49:12.250671 zmeventnotification[4068].INF [Checking alarm rules for 192.168.2.101:55682] 08/26/2016 13:49:12.251288 zmeventnotification[4068].INF [Monitor 3 event: last time not found, so sending] 08/26/2016 13:49:12.252867 zmeventnotification[4068].INF [192.168.2.101-sending over websockets] 08/26/2016 13:49:12.253591 zmeventnotification[4068].INF [Checking alarm rules for 192.168.2.151:44874 token ending in:...V0QwJMawWc] 08/26/2016 13:49:12.254111 zmeventnotification[4068].INF [Monitor 3 event: last time not found, so sending] 08/26/2016 13:49:12.254647 zmeventnotification[4068].INF [Sending notification over PushProxy] 08/26/2016 13:49:12.795146 zmeventnotification[4068].INF [Push Proxy push message Error:500 Internal Server Error] 08/26/2016 13:49:12.796829 zmeventnotification[4068].INF [192.168.2.151-sending supplementary data over websockets]

Trying to get the app logs for you I have debug turned on. When I use the email but it warns me of sensitive data I say ok and then nothing happens. I assumed it would open up email app or something to give me the option to email. Is there another way to get those?

pliablepixels commented 8 years ago

Ah thank you. As it turns out my push server is down! Its returning a 500 error! Checking

sbcrumb commented 8 years ago

No problem thanks. I was trying to figure out how to create my own push server but that didn't work out. Trying to avoid overloading you.

pliablepixels commented 8 years ago

Server back up - please give it another go

sbcrumb commented 8 years ago

Looks to be working. Anyway to change it so it does not vibrate? Etc?

pliablepixels commented 8 years ago

I suppose that is something you can change inside Android notification settings?

sbcrumb commented 8 years ago

That is what I thought but my notifications are silent, this is a app only thing.

pliablepixels commented 8 years ago

You're right. Can you create a new issue please - 'Add app level support to enable/disable sound and vibration on push notifications' at http://github.com/pliablepixels/zmNinja/issues

sbcrumb commented 8 years ago

Sure thing. Thanks for your help.