Closed animulavagula closed 1 year ago
You havn't installed all the dependencies, specifically : sudo perl -MCPAN -e "install Net::WebSocket::Server"
I swear I did:
charlie@nmb:~/zmeventnotification $ sudo perl -MCPAN -e "install Net::WebSocket::Server" Reading '/root/.cpan/Metadata' Database was generated on Thu, 30 Mar 2023 14:54:07 GMT Net::WebSocket::Server is up to date (0.004000).
Please, help!
The issue is the code on the line number it says 900 and something.
I think if you edit the file and remove the -T from the top it might work.
That or set the ES debug level. Maybe try 5?
thanks for your help. That line is gone now. But I still receive the websocket server error:
charlie@nmb:~/zmeventnotification $ sudo -u www-data ./zmeventnotification.pl --debug --config zmeventnotification.ini 30/03/23 20:20:54.578914 zmeventnotification[4177].FAT [main:326] [Net::WebSocket::Server missing] charlie@nmb:~/zmeventnotification $
Well that's very very odd. Maybe uninstall the Ubuntu package and then open CPAN and install from the CPAN shell?
From: animulavagula @.> Sent: Thursday, March 30, 2023 12:22:53 PM To: ZoneMinder/zmeventnotification @.> Cc: baudneo @.>; Comment @.> Subject: Re: [ZoneMinder/zmeventnotification] [Net::WebSocket::Server missing] although installed (Issue #427)
thanks for your help. That line is gone now. But I still receive the websocket server error: @.:~/zmeventnotification $ sudo -u www-data ./zmeventnotification.pl --debug --config zmeventnotification.ini 30/03/23 20:20:54.578914 zmeventnotification[4177].FAT [main:326] [Net::WebSocket::Server missing] @.:~/zmeventnotification $
— Reply to this email directly, view it on GitHubhttps://github.com/ZoneMinder/zmeventnotification/issues/427#issuecomment-1490735322, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUUAFE4HMA7CBQZFWUTP2C3W6XFP3ANCNFSM6AAAAAAWNR7HRI. You are receiving this because you commented.Message ID: @.***>
But i didn't use the ubuntu package to install websockets
How did you install it?
So I re-read your comments. When you suggest to edit the file and remove the -T.
The first line is commented:
#!/usr/bin/perl -T
If I uncomment and change the first line:
/usr/bin/perl
Then the script runs without any output. No errors or warnings but also no sign of activity.
Actually, I solved/overcame the issue by installing the bullseye ubuntu package libprotocol-websocket-perl:
sudo apt install libprotocol-websocket-perl
After this, the ES script run without problems.
I am receiving this error when launching the eventserver:
charlie@nmb:~/zmeventnotification $ sudo -u www-data ./zmeventnotification.pl --debug --config zmeventnotification.ini 30/03/23 18:42:50.037052 zmeventnotification[2004].FAT [main:326] [Net::WebSocket::Server missing] Use of uninitialized value $es_debug_level in numeric ge (>=) at ./zmeventnotification.pl line 995.
I checked the installation output and everything seems fine. All dependencies have been installed. I am using ES version 6.1.28 with zoneminder 1.37.28 on raspberrypi4.