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

Push Notification issue #639

Closed
viscab opened this issue Jun 2, 2018 · 5 comments
Closed

Push Notification issue #639

viscab opened this issue Jun 2, 2018 · 5 comments
Labels

Comments

@viscab
Copy link

viscab commented Jun 2, 2018

Hi,

I hope you might be able to help me here, if not I dont know what to do.

my setup is as follow.
Ubuntu 18.04 server
ZoneMinder 1.30.4
selfsigned certs (https works great)
latest version of ZMninja on iphone ios 11.1 cert installed on iphone

everything works great with the exception of zmeventserver I have used the following as a guide https://github.com/pliablepixels/zmeventserver/blob/master/README.md#how-do-i-install-it

I have reinstalled Ubuntu several times over the last few days. and noticed the following:
I have to create the /etc/private/tokens.txt file myself (chmod 666) and its always empty.
i copy the zmeventnotification.pl and ini file to etc/bin and chmod 666 on the ini and 777 on .pl

i have tried so much now that I am likely to have broken something, is there a "better" guide than the read me file? (better is a bit cheaky i know) but im not 100% sure I get all the dependencies installed 100% correct.

I really hope someone can help here.

I have attached the logfiles from zoneminder here:

Logs for version:1.2.515 (ios) 
06/02/18 03:44:26 INF IPCAM: 29000 - Capturing at 9.90 fps 
06/02/18 03:43:27 INF Web Socket Event Server listening on port 9000 
06/02/18 03:43:27 INF Secure WS(WSS) is enabled... 
06/02/18 03:43:27 INF About to start listening to socket 
06/02/18 03:43:27 INF Loading monitors 
06/02/18 03:43:27 INF Reloading Monitors... 
06/02/18 03:43:27 INF Total event client connections: 0 
06/02/18 03:43:27 INF Event Notification daemon v 1.0 starting 
06/02/18 03:43:27 INF Push enabled via FCM 
06/02/18 03:43:27 INF using config file: ./zmeventnotification.ini 
06/02/18 03:42:45 INF IPCAM: 28000 - Capturing at 9.80 fps 
06/02/18 03:41:03 INF IPCAM: 27000 - Capturing at 9.80 fps 
06/02/18 03:40:29 INF Login successful for user "ackermannc" 
06/02/18 03:39:21 INF IPCAM: 26000 - Capturing at 9.62 fps 
06/02/18 03:37:37 INF IPCAM: 25000 - Capturing at 9.90 fps 
06/02/18 03:35:56 INF IPCAM: 24000 - Capturing at 9.80 fps 
06/02/18 03:34:14 INF IPCAM: 23000 - Capturing at 9.80 fps 
06/02/18 03:33:26 INF Login successful for user "ackermannc" 
06/02/18 03:32:32 INF IPCAM: 22000 - Capturing at 9.90 fps 
06/02/18 03:30:51 INF IPCAM: 21000 - Capturing at 9.80 fps 
06/02/18 03:30:43 INF Loading monitors 
06/02/18 03:30:43 INF Reloading Monitors... 
06/02/18 03:30:43 INF Total event client connections: 0 
06/02/18 03:29:09 INF IPCAM: 20000 - Capturing at 9.90 fps 
06/02/18 03:29:00 INF Login successful for user "ackermannc" 
06/02/18 03:27:28 INF IPCAM: 19000 - Capturing at 9.90 fps 
06/02/18 03:26:24 INF Login successful for user "ackermannc" 
06/02/18 03:26:22 INF Login successful for user "ackermannc" 
06/02/18 03:25:47 INF IPCAM: 18000 - Capturing at 9.80 fps 
06/02/18 03:25:38 INF Web Socket Event Server listening on port 9000 
06/02/18 03:25:38 INF Secure WS(WSS) is enabled... 
06/02/18 03:25:38 INF About to start listening to socket 
06/02/18 03:25:38 INF Loading monitors 
06/02/18 03:25:38 INF Reloading Monitors... 
06/02/18 03:25:37 INF Total event client connections: 0 
06/02/18 03:25:37 INF Event Notification daemon v 1.0 starting 
06/02/18 03:25:37 INF Push enabled via FCM 
06/02/18 03:25:37 INF using config file: ./zmeventnotification.ini 
06/02/18 03:25:24 INF Login successful for user "ackermannc" 
06/02/18 03:24:05 INF IPCAM: 17000 - Capturing at 9.90 fps 
06/02/18 03:22:24 INF IPCAM: 16000 - Capturing at 9.80 fps 
06/02/18 03:20:42 INF IPCAM: 15000 - Capturing at 9.90 fps 
06/02/18 03:19:01 INF IPCAM: 14000 - Capturing at 9.90 fps 
06/02/18 03:17:20 INF IPCAM: 13000 - Capturing at 9.80 fps 
06/02/18 03:15:38 INF IPCAM: 12000 - Capturing at 9.90 fps 
06/02/18 03:13:57 INF IPCAM: 11000 - Capturing at 9.90 fps 
06/02/18 03:12:16 INF IPCAM: 10000 - Capturing at 9.90 fps 
06/02/18 03:10:35 INF IPCAM: 9000 - Capturing at 9.80 fps 
06/02/18 03:08:53 INF IPCAM: 8000 - Capturing at 9.90 fps 
06/02/18 03:07:12 INF IPCAM: 7000 - Capturing at 9.90 fps 
06/02/18 03:05:31 INF IPCAM: 6000 - Capturing at 9.80 fps 
06/02/18 03:03:49 INF IPCAM: 5000 - Capturing at 9.80 fps 
06/02/18 03:02:07 INF IPCAM: 4000 - Capturing at 9.90 fps 
06/02/18 03:00:26 INF IPCAM: 3000 - Capturing at 9.90 fps 
06/02/18 02:58:45 INF IPCAM: 2000 - Capturing at 9.62 fps 
06/02/18 02:57:01 INF IPCAM: 1000 - Capturing at 9.62 fps 
06/02/18 02:55:17 INF Priming capture from rtsp://admin:[email protected]:554/12 
06/02/18 02:55:17 INF Starting Capture version 1.30.4 
06/02/18 02:55:17 INF 'zmc -m 1' started at 18/06/02 13:55:17 
06/02/18 02:55:17 INF 'zmc -m 1' starting at 18/06/02 13:55:17, pid = 2873 06/02/18 02:55:17 INF Starting pending process, zmc -m 1 

06/02/18 02:55:17 ERR 'zmc -m 1' exited abnormally, exit status 255 06/02/18 02:55:17 FAT Unable to decode frame at frame 17785 

06/02/18 02:53:46 INF IPCAM: 17000 - Capturing at 9.90 fps 
06/02/18 02:52:05 INF IPCAM: 16000 - Capturing at 9.80 fps 
06/02/18 02:50:23 INF IPCAM: 15000 - Capturing at 9.90 fps 
06/02/18 02:48:42 INF IPCAM: 14000 - Capturing at 9.90 fps 
06/02/18 02:47:01 INF IPCAM: 13000 - Capturing at 9.80 fps 
06/02/18 02:45:19 INF IPCAM: 12000 - Capturing at 9.90 fps 
06/02/18 02:43:38 INF IPCAM: 11000 - Capturing at 9.90 fps 
06/02/18 02:41:57 INF IPCAM: 10000 - Capturing at 9.90 fps 
06/02/18 02:40:16 INF IPCAM: 9000 - Capturing at 9.90 fps 
06/02/18 02:38:35 INF IPCAM: 8000 - Capturing at 9.80 fps 
06/02/18 02:36:53 INF IPCAM: 7000 - Capturing at 9.90 fps 
06/02/18 02:35:12 INF IPCAM: 6000 - Capturing at 9.90 fps 06/02/18 02:33:31 INF IPCAM: 5000 - Capturing at 9.71 fps 

06/02/18 02:31:48 INF IPCAM: 4000 - Capturing at 9.90 fps 
06/02/18 02:30:07 INF IPCAM: 3000 - Capturing at 9.80 fps 
06/02/18 02:28:25 INF IPCAM: 2000 - Capturing at 9.80 fps 
06/02/18 02:26:43 INF IPCAM: 1000 - Capturing at 9.80 fps 
06/02/18 02:25:13 INF Successfully reopened stream. 
06/02/18 02:25:02 ERR Unable to open input rtsp://admin:[email protected]:554/12 due to: Network is unreachable 

06/02/18 02:25:01 INF Priming capture from rtsp://admin:[email protected]:554/12 06/02/18 02:25:01 INF Starting Capture version 1.30.4 

06/02/18 02:25:01 INF 'zmc -m 1' started at 18/06/02 13:25:01 
06/02/18 02:25:01 INF 'zmc -m 1' starting at 18/06/02 13:25:01, pid = 1746 
06/02/18 02:25:01 INF Starting pending process, zmc -m 1 
06/02/18 02:25:00 ERR 'zmc -m 1' exited abnormally, exit status 255 
06/02/18 02:24:59 INF 'zmtelemetry.pl' started at 18/06/02 13:24:59 
06/02/18 02:24:59 INF 'zmtelemetry.pl' starting at 18/06/02 13:24:59, pid = 1691 
06/02/18 02:24:59 INF Scanning for events 
06/02/18 02:24:59 INF Watchdog pausing for 30 seconds 
06/02/18 02:24:59 INF 'zmupdate.pl -c' started at 18/06/02 13:24:59 
06/02/18 02:24:59 INF 'zmupdate.pl -c' starting at 18/06/02 13:24:59, pid = 1684 
06/02/18 02:24:59 INF Watchdog starting 
06/02/18 02:24:58 INF 'zmwatch.pl' starting at 18/06/02 13:24:58, pid = 1677 
06/02/18 02:24:58 INF 'zmwatch.pl' started at 18/06/02 13:24:58 
06/02/18 02:24:58 INF 'zmaudit.pl -c' started at 18/06/02 13:24:58 
06/02/18 02:24:58 INF 'zmaudit.pl -c' starting at 18/06/02 13:24:58, pid = 1671 
06/02/18 02:24:57 INF 'zmfilter.pl' started at 18/06/02 13:24:57

and zmninja here

Logs for version:1.2.515 (ios) 
Jun 2, 2018 03:44 PM INFO Websocket closed 
Jun 2, 2018 03:44 PM INFO Will try to reconnect in 10 sec.. 
Jun 2, 2018 03:44 PM DEBUG -->Forcing socket close 
Jun 2, 2018 03:44 PM DEBUG Websocket Errorhandler called 
Jun 2, 2018 03:44 PM DEBUG Does login need to hear the wizard? false 
Jun 2, 2018 03:44 PM DEBUG Sending token state disabled 
Jun 2, 2018 03:44 PM DEBUG Sending Control message 'filter' with monlist=1 and interval=0 
Jun 2, 2018 03:44 PM DEBUG Setting up websocket error handler 
Jun 2, 2018 03:44 PM INFO Initializing Websocket with URL wss:// 
Jun 2, 2018 03:44 PM DEBUG Saving Event Server data Jun 2, 2018 03:44 PM INFO Websocket closed 
Jun 2, 2018 03:44 PM INFO Will try to reconnect in 10 sec.. 
Jun 2, 2018 03:44 PM DEBUG -->Forcing socket close 
Jun 2, 2018 03:44 PM DEBUG Websocket Errorhandler called 
Jun 2, 2018 03:44 PM DEBUG Sending token state disabled 
Jun 2, 2018 03:44 PM DEBUG Sending Control message 'filter' with monlist=1 and interval=0 
Jun 2, 2018 03:44 PM DEBUG Setting up websocket error handler 
Jun 2, 2018 03:44 PM INFO Initializing Websocket with URL wss:// 
Jun 2, 2018 03:44 PM DEBUG Saving Event Server data 
Jun 2, 2018 03:44 PM INFO Login data not changed, not saving 
Jun 2, 2018 03:44 PM INFO Returning pre-loaded list of 1 monitors 
Jun 2, 2018 03:44 PM DEBUG Saving settings before going to Event Server settings 
Jun 2, 2018 03:44 PM DEBUG Does login need to hear the wizard? false

I really appreciate any help.

Thank you.

@pliablepixels
Copy link
Member

As a test:

  1. Stop event server (don't run it as a daemon)

  2. Disable ssl enable=0 in [ssl]

  3. Start event server in manual mode (see install instructions)

  4. Monitor syslogs

  5. Start zmNinja

  6. configure event server (remember to us ws: not wss:)

see if you see a registration arrive

Also make sure you are not using some internal IP for the event server. Phones won't be able to reach it.

@viscab
Copy link
Author

viscab commented Jun 3, 2018

thank you for your reply,

I reinstalled ubuntu yesterday as i had been messing with it alot, and most likely caused some further problems.

after the reinstall today i cant seem to install the dependencies.

i do the following.

sudo perl -MCPAN -e shell

install Crypt::MySQL


cpan[1]> install Crypt::MySQL
Reading '/home/ackermannc/.cpan/Metadata'
  Database was generated on Sun, 03 Jun 2018 04:17:03 GMT
Running install for module 'Crypt::MySQL'
Checksum for /home/ackermannc/.cpan/sources/authors/id/I/IK/IKEBE/Crypt-MySQL-0.04.tar.gz ok
Scanning cache /home/ackermannc/.cpan/build for sizes
............................................................................DONE
'YAML' not installed, will not store persistent state
Configuring I/IK/IKEBE/Crypt-MySQL-0.04.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite Digest::SHA1 0 not found.
Generating a Unix-style Makefile
Writing Makefile for Crypt::MySQL
Writing MYMETA.yml and MYMETA.json
  IKEBE/Crypt-MySQL-0.04.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for I/IK/IKEBE/Crypt-MySQL-0.04.tar.gz
---- Unsatisfied dependencies detected during ----
----       IKEBE/Crypt-MySQL-0.04.tar.gz      ----
    Digest::SHA1 [requires]
Running install for module 'Digest::SHA1'
Checksum for /home/ackermannc/.cpan/sources/authors/id/G/GA/GAAS/Digest-SHA1-2.13.tar.gz ok
Configuring G/GA/GAAS/Digest-SHA1-2.13.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Digest::SHA1
Writing MYMETA.yml and MYMETA.json
  GAAS/Digest-SHA1-2.13.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for G/GA/GAAS/Digest-SHA1-2.13.tar.gz
Can't exec "make": No such file or directory at /usr/share/perl/5.26/CPAN/Distribution.pm line 2213.
  GAAS/Digest-SHA1-2.13.tar.gz
  make -- NOT OK
  No such file or directory
  IKEBE/Crypt-MySQL-0.04.tar.gz
  Has already been unwrapped into directory /home/ackermannc/.cpan/build/Crypt-MySQL-0.04-3
  IKEBE/Crypt-MySQL-0.04.tar.gz
  Has already been prepared
Running make for I/IK/IKEBE/Crypt-MySQL-0.04.tar.gz
Warning: Prerequisite 'Digest::SHA1 => 0' for 'IKEBE/Crypt-MySQL-0.04.tar.gz' failed when processing 'GAAS/Digest-SHA1-2.13.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Can't exec "make": No such file or directory at /usr/share/perl/5.26/CPAN/Distribution.pm line 2213.
  IKEBE/Crypt-MySQL-0.04.tar.gz
  make -- NOT OK
  No such file or directory
Failed during this command:
 GAAS/Digest-SHA1-2.13.tar.gz                 : make NO
 IKEBE/Crypt-MySQL-0.04.tar.gz                : make NO



install Net::WebSocket::Server

cpan[2]> install Net::WebSocket::Server
Reading '/home/ackermannc/.cpan/Metadata'
  Database was generated on Sun, 03 Jun 2018 04:17:03 GMT
Running install for module 'Net::WebSocket::Server'
Checksum for /home/ackermannc/.cpan/sources/authors/id/T/TO/TOPAZ/Net-WebSocket-Server-0.003004.tar.gz ok
Scanning cache /home/ackermannc/.cpan/build for sizes
............................................................................DONE
'YAML' not installed, will not store persistent state
Configuring T/TO/TOPAZ/Net-WebSocket-Server-0.003004.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite Protocol::WebSocket 0.12 not found.
Invalid LICENSE value 'Artistic_2_0' ignored
Generating a Unix-style Makefile
Writing Makefile for Net::WebSocket::Server
Invalid LICENSE value 'Artistic_2_0' ignored
Writing MYMETA.yml and MYMETA.json
  TOPAZ/Net-WebSocket-Server-0.003004.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for T/TO/TOPAZ/Net-WebSocket-Server-0.003004.tar.gz
----  Unsatisfied dependencies detected during  ----
---- TOPAZ/Net-WebSocket-Server-0.003004.tar.gz ----
    Protocol::WebSocket [requires]
Running install for module 'Protocol::WebSocket'
Checksum for /home/ackermannc/.cpan/sources/authors/id/V/VT/VTI/Protocol-WebSocket-0.24.tar.gz ok
  Warning: CPAN.pm discovered Module::Build as undeclared prerequisite.
  Adding it now as such.
---- Unsatisfied dependencies detected during ----
----    VTI/Protocol-WebSocket-0.24.tar.gz    ----
    Module::Build [build_requires]
    Module::Build::Tiny [build_requires]
Running install for module 'Module::Build'
Checksum for /home/ackermannc/.cpan/sources/authors/id/L/LE/LEONT/Module-Build-0.4224.tar.gz ok
Configuring L/LE/LEONT/Module-Build-0.4224.tar.gz with Makefile.PL
# running Build.PL --installdirs site

Checking optional features...
inc_bundling_support....disabled
  requires:
    ! inc::latest is not installed

ERRORS/WARNINGS FOUND IN PREREQUISITES.  You may wish to install the versions
of the modules indicated above before proceeding with this installation

Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Module-Build' version '0.4224'
  LEONT/Module-Build-0.4224.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for L/LE/LEONT/Module-Build-0.4224.tar.gz
Can't exec "make": No such file or directory at /usr/share/perl/5.26/CPAN/Distribution.pm line 2213.
  LEONT/Module-Build-0.4224.tar.gz
  make -- NOT OK
  No such file or directory
Running install for module 'Module::Build::Tiny'
Checksum for /home/ackermannc/.cpan/sources/authors/id/L/LE/LEONT/Module-Build-Tiny-0.039.tar.gz ok
  Warning: CPAN.pm discovered Module::Build as undeclared prerequisite.
  Adding it now as such.
---- Unsatisfied dependencies detected during ----
----   LEONT/Module-Build-Tiny-0.039.tar.gz   ----
    ExtUtils::Config [build_requires]
    ExtUtils::Helpers [build_requires]
    ExtUtils::InstallPaths [build_requires]
    Module::Build [build_requires]
Running install for module 'ExtUtils::Config'
Checksum for /home/ackermannc/.cpan/sources/authors/id/L/LE/LEONT/ExtUtils-Config-0.008.tar.gz ok
Configuring L/LE/LEONT/ExtUtils-Config-0.008.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for ExtUtils::Config
Writing MYMETA.yml and MYMETA.json
  LEONT/ExtUtils-Config-0.008.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for L/LE/LEONT/ExtUtils-Config-0.008.tar.gz
Can't exec "make": No such file or directory at /usr/share/perl/5.26/CPAN/Distribution.pm line 2213.
  LEONT/ExtUtils-Config-0.008.tar.gz
  make -- NOT OK
  No such file or directory
Running install for module 'ExtUtils::Helpers'
Checksum for /home/ackermannc/.cpan/sources/authors/id/L/LE/LEONT/ExtUtils-Helpers-0.026.tar.gz ok
Configuring L/LE/LEONT/ExtUtils-Helpers-0.026.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for ExtUtils::Helpers
Writing MYMETA.yml and MYMETA.json
  LEONT/ExtUtils-Helpers-0.026.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for L/LE/LEONT/ExtUtils-Helpers-0.026.tar.gz
Can't exec "make": No such file or directory at /usr/share/perl/5.26/CPAN/Distribution.pm line 2213.
  LEONT/ExtUtils-Helpers-0.026.tar.gz
  make -- NOT OK
  No such file or directory
Running install for module 'ExtUtils::InstallPaths'
Checksum for /home/ackermannc/.cpan/sources/authors/id/L/LE/LEONT/ExtUtils-InstallPaths-0.012.tar.gz ok
Configuring L/LE/LEONT/ExtUtils-InstallPaths-0.012.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite ExtUtils::Config 0.002 not found.
Generating a Unix-style Makefile
Writing Makefile for ExtUtils::InstallPaths
Writing MYMETA.yml and MYMETA.json
  LEONT/ExtUtils-InstallPaths-0.012.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for L/LE/LEONT/ExtUtils-InstallPaths-0.012.tar.gz
---- Unsatisfied dependencies detected during ----
---- LEONT/ExtUtils-InstallPaths-0.012.tar.gz ----
    ExtUtils::Config [requires]
Running install for module 'ExtUtils::Config'
  LEONT/ExtUtils-Config-0.008.tar.gz
  Has already been unwrapped into directory /home/ackermannc/.cpan/build/ExtUtils-Config-0.008-2
  LEONT/ExtUtils-Config-0.008.tar.gz
  Has already been prepared
  LEONT/ExtUtils-Config-0.008.tar.gz
  Could not make: Unknown error

  LEONT/ExtUtils-InstallPaths-0.012.tar.gz
  Has already been unwrapped into directory /home/ackermannc/.cpan/build/ExtUtils-InstallPaths-0.012-2
  LEONT/ExtUtils-InstallPaths-0.012.tar.gz
  Has already been prepared
Running make for L/LE/LEONT/ExtUtils-InstallPaths-0.012.tar.gz
Warning: Prerequisite 'ExtUtils::Config => 0.002' for 'LEONT/ExtUtils-InstallPaths-0.012.tar.gz' failed when processing 'LEONT/ExtUtils-Config-0.008.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Can't exec "make": No such file or directory at /usr/share/perl/5.26/CPAN/Distribution.pm line 2213.
  LEONT/ExtUtils-InstallPaths-0.012.tar.gz
  make -- NOT OK
  No such file or directory
Running install for module 'Module::Build'
  LEONT/Module-Build-0.4224.tar.gz
  Has already been unwrapped into directory /home/ackermannc/.cpan/build/Module-Build-0.4224-3
  LEONT/Module-Build-0.4224.tar.gz
  Has already been prepared
  LEONT/Module-Build-0.4224.tar.gz
  Could not make: Unknown error

  LEONT/Module-Build-Tiny-0.039.tar.gz
  Has already been unwrapped into directory /home/ackermannc/.cpan/build/Module-Build-Tiny-0.039-2
  Warning: CPAN.pm discovered Module::Build as undeclared prerequisite.
  Adding it now as such.
Warning: Prerequisite 'ExtUtils::Config => 0.003' for 'LEONT/Module-Build-Tiny-0.039.tar.gz' failed when processing 'LEONT/ExtUtils-Config-0.008.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Warning: Prerequisite 'ExtUtils::Helpers => 0.020' for 'LEONT/Module-Build-Tiny-0.039.tar.gz' failed when processing 'LEONT/ExtUtils-Helpers-0.026.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Warning: Prerequisite 'ExtUtils::InstallPaths => 0.002' for 'LEONT/Module-Build-Tiny-0.039.tar.gz' failed when processing 'LEONT/ExtUtils-InstallPaths-0.012.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Warning: Prerequisite 'Module::Build => 0' for 'LEONT/Module-Build-Tiny-0.039.tar.gz' failed when processing 'LEONT/Module-Build-0.4224.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Configuring L/LE/LEONT/Module-Build-Tiny-0.039.tar.gz with Build.PL
Can't locate ExtUtils/Config.pm in @INC (you may need to install the ExtUtils::Config module) (@INC contains: lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at lib/Module/Build/Tiny.pm line 9.
BEGIN failed--compilation aborted at lib/Module/Build/Tiny.pm line 9.
Compilation failed in require at Build.PL line 3.
BEGIN failed--compilation aborted at Build.PL line 3.
Warning: No success on command[/usr/bin/perl Build.PL --installdirs site]
  LEONT/Module-Build-Tiny-0.039.tar.gz
  /usr/bin/perl Build.PL --installdirs site -- NOT OK
  VTI/Protocol-WebSocket-0.24.tar.gz
  Has already been unwrapped into directory /home/ackermannc/.cpan/build/Protocol-WebSocket-0.24-2
  Warning: CPAN.pm discovered Module::Build as undeclared prerequisite.
  Adding it now as such.
Warning: Prerequisite 'Module::Build => 0' for 'VTI/Protocol-WebSocket-0.24.tar.gz' failed when processing 'LEONT/Module-Build-0.4224.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Warning: Prerequisite 'Module::Build::Tiny => 0.035' for 'VTI/Protocol-WebSocket-0.24.tar.gz' failed when processing 'LEONT/Module-Build-Tiny-0.039.tar.gz' with 'writemakefile => NO '/usr/bin/perl Build.PL --installdirs site' returned status 512'. Continuing, but chances to succeed are limited.
Configuring V/VT/VTI/Protocol-WebSocket-0.24.tar.gz with Build.PL
Can't locate Module/Build/Tiny.pm in @INC (you may need to install the Module::Build::Tiny module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at Build.PL line 9.
BEGIN failed--compilation aborted at Build.PL line 9.
Warning: No success on command[/usr/bin/perl Build.PL --installdirs site]
  VTI/Protocol-WebSocket-0.24.tar.gz
  /usr/bin/perl Build.PL --installdirs site -- NOT OK
  TOPAZ/Net-WebSocket-Server-0.003004.tar.gz
  Has already been unwrapped into directory /home/ackermannc/.cpan/build/Net-WebSocket-Server-0.003004-2
  TOPAZ/Net-WebSocket-Server-0.003004.tar.gz
  Has already been prepared
Running make for T/TO/TOPAZ/Net-WebSocket-Server-0.003004.tar.gz
Warning: Prerequisite 'Protocol::WebSocket => 0.12' for 'TOPAZ/Net-WebSocket-Server-0.003004.tar.gz' failed when processing 'VTI/Protocol-WebSocket-0.24.tar.gz' with 'writemakefile => NO '/usr/bin/perl Build.PL --installdirs site' returned status 512'. Continuing, but chances to succeed are limited.
Can't exec "make": No such file or directory at /usr/share/perl/5.26/CPAN/Distribution.pm line 2213.
  TOPAZ/Net-WebSocket-Server-0.003004.tar.gz
  make -- NOT OK
  No such file or directory
Failed during this command:
 LEONT/Module-Build-0.4224.tar.gz             : make NO
 LEONT/ExtUtils-Config-0.008.tar.gz           : make NO
 LEONT/ExtUtils-Helpers-0.026.tar.gz          : make NO
 LEONT/ExtUtils-InstallPaths-0.012.tar.gz     : make NO
 LEONT/Module-Build-Tiny-0.039.tar.gz         : writemakefile NO '/usr/bin/perl Build.PL --installdirs site' returned status 512
 TOPAZ/Net-WebSocket-Server-0.003004.tar.gz   : make NO
 VTI/Protocol-WebSocket-0.24.tar.gz           : writemakefile NO '/usr/bin/perl Build.PL --installdirs site' returned status 512

install Config::IniFiles


cpan[3]> install Config::IniFiles
Reading '/home/ackermannc/.cpan/Metadata'
  Database was generated on Sun, 03 Jun 2018 04:17:03 GMT
Running install for module 'Config::IniFiles'
Checksum for /home/ackermannc/.cpan/sources/authors/id/S/SH/SHLOMIF/Config-IniFiles-2.98.tar.gz ok
Scanning cache /home/ackermannc/.cpan/build for sizes
............................................................................DONE
'YAML' not installed, will not store persistent state
---- Unsatisfied dependencies detected during ----
----    SHLOMIF/Config-IniFiles-2.98.tar.gz   ----
    Module::Build [build_requires]
Running install for module 'Module::Build'
Checksum for /home/ackermannc/.cpan/sources/authors/id/L/LE/LEONT/Module-Build-0.4224.tar.gz ok
Configuring L/LE/LEONT/Module-Build-0.4224.tar.gz with Makefile.PL
# running Build.PL --installdirs site

Checking optional features...
inc_bundling_support....disabled
  requires:
    ! inc::latest is not installed

ERRORS/WARNINGS FOUND IN PREREQUISITES.  You may wish to install the versions
of the modules indicated above before proceeding with this installation

Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Module-Build' version '0.4224'
  LEONT/Module-Build-0.4224.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for L/LE/LEONT/Module-Build-0.4224.tar.gz
Can't exec "make": No such file or directory at /usr/share/perl/5.26/CPAN/Distribution.pm line 2213.
  LEONT/Module-Build-0.4224.tar.gz
  make -- NOT OK
  No such file or directory
  SHLOMIF/Config-IniFiles-2.98.tar.gz
  Has already been unwrapped into directory /home/ackermannc/.cpan/build/Config-IniFiles-2.98-1
Warning: Prerequisite 'Module::Build => 0.28' for 'SHLOMIF/Config-IniFiles-2.98.tar.gz' failed when processing 'LEONT/Module-Build-0.4224.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Configuring S/SH/SHLOMIF/Config-IniFiles-2.98.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite Module::Build 0.28 not found.
Generating a Unix-style Makefile
Writing Makefile for Config::IniFiles
Writing MYMETA.yml and MYMETA.json
  SHLOMIF/Config-IniFiles-2.98.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for S/SH/SHLOMIF/Config-IniFiles-2.98.tar.gz
Warning: Prerequisite 'Module::Build => 0.28' for 'SHLOMIF/Config-IniFiles-2.98.tar.gz' failed when processing 'LEONT/Module-Build-0.4224.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Can't exec "make": No such file or directory at /usr/share/perl/5.26/CPAN/Distribution.pm line 2213.
  SHLOMIF/Config-IniFiles-2.98.tar.gz
  make -- NOT OK
  No such file or directory
Failed during this command:
 LEONT/Module-Build-0.4224.tar.gz             : make NO
 SHLOMIF/Config-IniFiles-2.98.tar.gz          : make NO

any comments would be greatly appreciated.

UPDATE!
i think I have got them installed now, by using the following commands

sudo apt-get install libcrypt-mysql-perl
sudo apt-get install libyaml-perl
sudo apt-get install make
perl -MCPAN -e "install Net::WebSocket::Server"

any way to check?

following this when I start the server in manual Zoneminder log looks ok

``

2018-06-03 05:59:32.728930 | zmeventnotification |   | 29534 | INF | Web Socket Event Server listening on port 9000 | zmeventnotification.pl |  
2018-06-03 05:59:32.681510 | zmeventnotification |   | 29534 | INF | Secure WS(WSS) is enabled... | zmeventnotification.pl |  
2018-06-03 05:59:32.629390 | zmeventnotification |   | 29534 | INF | About to start listening to socket | zmeventnotification.pl |  
2018-06-03 05:59:32.578380 | zmeventnotification |   | 29534 | INF | Loading monitors | zmeventnotification.pl |  
2018-06-03 05:59:32.528280 | zmeventnotification |   | 29534 | INF | Reloading Monitors... | zmeventnotification.pl |  
2018-06-03 05:59:32.478510 | zmeventnotification |   | 29534 | INF | Total event client connections: 0 | zmeventnotification.pl |  
2018-06-03 05:59:32.428000 | zmeventnotification |   | 29534 | INF | Creating /etc/private/tokens.txt | zmeventnotification.pl |  
2018-06-03 05:59:32.377830 | zmeventnotification |   | 29534 | INF | Event Notification daemon v 1.0 starting | zmeventnotification.pl |  
2018-06-03 05:59:32.328580 | zmeventnotification |   | 29534 | INF | Creating /etc/private to store APNS tokens | zmeventnotification.pl |  
2018-06-03 05:59:32.285100 | zmeventnotification |   | 29534 | INF | Push enabled via FCM | zmeventnotification.pl |  
2018-06-03 05:59:32.172470 | zmeventnotification |   | 29534 | INF | using config file: ./zmeventnotification.ini | zmeventnotification.pl


when enabeling event server in ZM ninja, i get a connection error in zm ninja and the log file in zmninja looks like the original log.

I will now try your original sugestions

@viscab
Copy link
Author

viscab commented Jun 3, 2018

the token file/folder is also still not created, should this be done manually or should this be created automatically?

@pliablepixels
Copy link
Member

pliablepixels commented Jun 3, 2018 via email

@ZoneMinder ZoneMinder deleted a comment from BradleyHull Jul 3, 2018
@ZoneMinder ZoneMinder deleted a comment from BradleyHull Jul 3, 2018
@stale
Copy link

stale bot commented Aug 17, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 17, 2018
@stale stale bot closed this as completed Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants