Socket does not exist error but can view live stream

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
rtochip
Posts: 8
Joined: Thu Nov 22, 2018 1:21 am

Socket does not exist error but can view live stream

Post by rtochip »

Just upgraded from 1.30.4 to 1.32.2 to take advantage of H264 passthrough for IP cameras.

When viewing live stream either by each camera or montage, it takes a few seconds to display live stream. In the log, we get the following(FIRST ERROR) 3-4 times per camera: "Socket /var/run/zm/zms-063049s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/lat ... window-etc for more information."

Then, SECOND error "No data to read from socket" a couple of times and THIRD Error "Timed out waiting for msg /var/run/zm/zms-063049s.sock"

Then a few seconds later (5sec?), live stream appears. Since live stream eventually appears, we presume CGI apache is setup properly.

Question: What can we do to eliminate these error messages?
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Socket does not exist error but can view live stream

Post by bbunge »

Linux distro and version?
The error you report is most times related to the browser you use. It is a non fatal error.
rtochip
Posts: 8
Joined: Thu Nov 22, 2018 1:21 am

Re: Socket does not exist error but can view live stream

Post by rtochip »

ZM Server: Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-139-generic x86_64)

I was also thinking browser related error but this morning I noticed error message "Unable to validate swap image path, disabling buffered playback." just before the socket error.

I changed ZM_PATH_SWAP from /tmp/zm to /dev/shm as suggested in the forum and restarted. So far, we have not seen the "Unable to validate..." error but the "socket does not exist" error still shows up.
User avatar
iconnor
Posts: 3274
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Socket does not exist error but can view live stream

Post by iconnor »

Perhaps zms is just slow to start up.

One thing you can try is to set StreamReplayBuffer in the monitor settings under misc to 0. This feature causes zms to write out jpegs to the fs so that you can stop and rewind the live stream. It is fairly io intensive though.
rtochip
Posts: 8
Joined: Thu Nov 22, 2018 1:21 am

Re: Socket does not exist error but can view live stream

Post by rtochip »

Thanks. I will give your suggestion a try.
rtochip
Posts: 8
Joined: Thu Nov 22, 2018 1:21 am

Re: Socket does not exist error but can view live stream

Post by rtochip »

After reviewing the steps to install, I realized zoneminder 1.32 was installed on top of a 1.30.4 without removing the 1.30.4.

After backing up the events from 1.30.4, I purged zoneminder from the system, removed all zm-related directories and drop zm from mysql and reinstalled 1.32.

Now, we do NOT get any of the error messages. Actually, not any ERR so far. Plus, the CPU load on the Pentium G4560 with 4GB DDR3 is low (around 0.2-0.3) just like when 1.30.4 was used. Previously, the error messages shows up alongside a high CPU load towards 2-3. Using firefox or any other causes it to hang.

Thanks.
halbatron21
Posts: 9
Joined: Thu Oct 27, 2016 3:13 am

Re: Socket does not exist error but can view live stream

Post by halbatron21 »

I do not know if this applies to you, however, if you look at the storage section in monitor settings, see if it is disabled, mine was. I set it to:
Save JPEGs: Frames only
Video Writer: X264

Saved and restarted, so far none of those errors on the offending monitor.

Note:
This is on 64 bit Bionic Beaver Server.

Addendum:
I also found a filter i had created that was ticked to run in background(now un-ticked,) that could be part of it as well.
hope some one finds it useful.
Post Reply