ZoneMinder / zmeventnotification

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

Silence log warning about no SSL when using traefik to add certificates #379

Closed tbowmo closed 3 years ago

tbowmo commented 3 years ago

Event Server version 6.1.17

Hooks version (if you are using Object Detection) app:6.1.17, pyzm:0.3.41

Are you using MLAPI? (Y/N) N

The version of ZoneMinder you are using: 1.34.23

What is the nature of your issue Enhancement

Details I run zoneminder in docker, with traefik in front to add SSL certs from lets encrypt. Doing so, I have set zmeventserver to not use ssl certificates, as I also use traefik to add certs to the ws.

I now get frequent log warnings with SSL is disabled, as this is printet on line 952

Is there something that can be done to quiet this log entry? Perhaps a new config parameter yes_ssl_is_disabled_and_i_know_what_i_do ? ;) or handled_externally

pliablepixels commented 3 years ago

You can't be getting frequent log warnings. It prints only one time at startup. If you are restarting the ES multiple times, then that is probably something you should address.

tbowmo commented 3 years ago

Hmm.. according to the logs, then the same PID for zmeventserver is writing the same log entry about missing ssl setup multiple times, and thus I would expect that it is not restarting?

billede

pliablepixels commented 3 years ago

I'm not sure why that is the case and that too with the same timestamp. I just checked, and it prints it only once as intended. You may want to read the debugging section of the ES and run it manually using --debug to see what other logs are being printed that may hint at some other issue that is not evident from seeing just your WAR logs above.

Screen Shot 2021-03-30 at 2 38 37 PM

tbowmo commented 3 years ago

Hmm.. seems like it's zoneminders log viewer that mangles things up, if I set filters on zmeventnotification.pl, I only get one warning, as in your example. But if I only filter on level, I get a whole bunch of the warnings..

I'll close this again, as it is not eventnotification that is the cause..