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

Net::WebSocket::Server missing #7

Closed
schott1984 opened this issue Apr 30, 2016 · 9 comments
Closed

Net::WebSocket::Server missing #7

schott1984 opened this issue Apr 30, 2016 · 9 comments

Comments

@schott1984
Copy link

schott1984 commented Apr 30, 2016

I'm sure this is my fault, as I am in a little over my head. I get there error when manually starting zmeventnotification.pl:

Apr 30 16:18:02 debian zma[1406]: INF [DCS5020L: 23000 - Analysing at 29.41 fps]
Apr 30 16:18:34 debian zmc[1403]: INF [DCS5020L: 24000 - Capturing at 30.30 fps]
Apr 30 16:18:36 debian zma[1406]: INF [DCS5020L: 24000 - Analysing at 29.41 fps]
Apr 30 16:18:48 debian web_php[1477]: INF [Login successful for user "admin"]
Apr 30 16:18:50 debian web_php[1482]: ERR [socket_sendto( /var/run/zm/zms-174204s.sock ) failed: No such file or directory]
Apr 30 16:19:08 debian zmc[1403]: INF [DCS5020L: 25000 - Capturing at 29.41 fps]
Apr 30 16:19:11 debian zma[1406]: INF [DCS5020L: 25000 - Analysing at 29.41 fps]
Apr 30 16:19:39 debian zmeventnotification[1771]: FAT [Net::WebSocket::Server missing]
Apr 30 16:19:42 debian zmc[1403]: INF [DCS5020L: 26000 - Capturing at 29.41 fps]
Apr 30 16:19:44 debian zma[1406]: INF [DCS5020L: 26000 - Analysing at 29.41 fps]

I followed your readme.md exactly, the .crt is on my phone and installed. For now I'm just using the local IP from within my house trying to get everything working.

@pliablepixels
Copy link
Member

Your error seems to indicate what the problem is:

Apr 30 16:19:39 debian zmeventnotification[1771]: FAT [Net::WebSocket::Server missing]

This means that package is missing. You'll need to install it

Did you miss this step in the instructions?

perl -MCPAN -e "install Net::WebSocket::Server"

@schott1984
Copy link
Author

I did that step and tried again to make sure.

Any other ideas? I'm running in a Debian 8.4 vm.
On Apr 30, 2016 7:36 PM, "Pliable Pixels" notifications@github.com wrote:

Your error seems to indicate what the problem is:

Apr 30 16:19:39 debian zmeventnotification[1771]: FAT [Net::WebSocket::Server missing]

This means that package is missing. You'll need to install it

Did you miss this step in the instructions?

perl -MCPAN -e "install Net::WebSocket::Server"


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#7 (comment)

@pliablepixels
Copy link
Member

What was the output of that step ? Did it install?

@schott1984
Copy link
Author

Thank you for getting me looking in the right place. Below is the output. Hanging at the end there. Is it a memory issue with the cache? I'm reading that it takes a lot of memory, but the VM has 4GB each RAM and storage. I can up it if I have to.

root@debian:~# perl -MCPAN -e "install Net::WebSocket::Server"
Reading '/root/.cpan/Metadata'
Reading '/root/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Reading '/root/.cpan/sources/modules/02packages.details.txt.gz'
Database was generated on Sat, 30 Apr 2016 18:41:02 GMT
..............
New CPAN.pm version (v2.10) available.
[Currently running version is v2.05]
You might want to try
install CPAN
reload cpan
to both upgrade CPAN.pm and run the new version without leaving
the current session.

..............................................................DONE
Reading '/root/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /root/.cpan/Metadata
Killed
root@debian:~#

@pliablepixels
Copy link
Member

pliablepixels commented May 1, 2016

Hmm not quire sure what is going on.
Try this 2 step process:

Step 1:

sudo perl -MCPAN -e shell

Step 2:
Once this puts you in the shell, type in this

install Net::WebSocket::Server

Does that make any difference?

@pliablepixels
Copy link
Member

pliablepixels commented May 1, 2016

BTW just found this https://www.organicdesign.co.nz/Extension:WebSocket#Installation_and_configuration

sudo apt-get install cpanminus

And then

sudo cpanm Net::WebSocket::Server 

@schott1984
Copy link
Author

Apparently I was out of memory. Does it seem weird to you that 4GB wasn't enough? installed fine with 8GB.

Now I have the same issue with "Crypt::MySQL missing" so I'm going back through your install steps again.

Thanks for the help!

@schott1984
Copy link
Author

Yep, just installed Crypt and I am now getting notifications!

Thank you so much.

The next step is gettting all this to work through my reverse proxy from outside the home network.

Still wondering why the VM needs so much memory...

@pliablepixels
Copy link
Member

I think it depends on what you are running in it:

  1. I had a VM of 4GB with ZM in it. After I got one camera running, I ran out of memory to do much else.
  2. It may be possible that the install process involving perl modules needs more memory but once installed it doesn't - I don't know

In general, I found a 4GB VM just only sufficient to run 1 HD camera in ZM before it ran out of memory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants