socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) Only on internet

Forum for questions and support relating to the 1.25.x releases only.
Locked
michael smith
Posts: 49
Joined: Wed Mar 14, 2007 12:58 pm

socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) Only on internet

Post by michael smith »

OK I have moved from CentOS6 to Ubuntu 12.04 and have used Zoneminder for my home for many years. Anyway it always worked great but after a recent upgrade in Centos, it broke. Well I then decided to Use Ubuntu and its all worked well, cameras stream well and I patched the one of the perl files etc and it works just great. I also have a web server that faces the Net and internal samba shares. Everything works great except when I hit my ZM from the net it doesn't stream even to Firefox and I get sock errors in the log, Most of the other posts on this subject tend to be with the local ZM server spitting out these errors but I Only get them from the net. The main control panel comes up and I can look at logs and configure it over the net but no streaming. Any Ideas? A obscure permission problem?
Kind Regards
Michael Smith :)
michael smith
Posts: 49
Joined: Wed Mar 14, 2007 12:58 pm

Re: socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) Only on intern

Post by michael smith »

Ok Hitting it from Chrome over the net gives these errors!
Internally on the LAN all machines correctly display images and cause no errors.
Permissions seem OK Fresh install of Ubuntu 12.04 everything works. No other errors in logs.

Code: Select all

2012-09-30 14:32:18.357244	web_php	25457	ERR	socket_sendto( /tmp/zm/zms-741141s.sock ) failed: No such file or directory	/usr/share/zoneminder/includes/functions.php	2322
2012-09-30 14:32:03.033960	web_php	24249	ERR	socket_sendto( /tmp/zm/zms-741141s.sock ) failed: No such file or directory	/usr/share/zoneminder/includes/functions.php	2322
2012-09-30 14:31:57.599538	web_php	19389	ERR	socket_sendto( /tmp/zm/zms-774796s.sock ) failed: No such file or directory	/usr/share/zoneminder/includes/functions.php	2322
2012-09-30 14:31:49.627626	web_php	24249	ERR	socket_sendto( /tmp/zm/zms-741141s.sock ) failed: No such file or directory	/usr/share/zoneminder/includes/functions.php	2322
2012-09-30 14:31:36.413091	web_php	25455	ERR	socket_sendto( /tmp/zm/zms-398839s.sock ) failed: No such file or directory	/usr/share/zoneminder/includes/functions.php	2322
2012-09-30 14:31:22.463781	web_php	24248	ERR	socket_sendto( /tmp/zm/zms-398839s.sock ) failed: No such file or directory	/usr/share/zoneminder/includes/functions.php	2322
2012-09-30 14:31:08.122257	web_php	24241	ERR	socket_sendto( /tmp/zm/zms-398839s.sock ) failed: No such file or directory	/usr/share/zoneminder/includes/functions.php	2322
2012-09-30 14:30:54.100429	web_php	25457	ERR	socket_sendto( /tmp/zm/zms-398839s.sock ) failed: No such file or directory	/usr/share/zoneminder/includes/functions.php	2322
2012-09-30 14:30:40.864444	web_php	25454	ERR	socket_sendto( /tmp/zm/zms-398839s.sock ) failed: No such file or directory	/usr/share/zoneminder/includes/functions.php	2322
2012-09-30 14:30:26.653496	web_php	24132	ERR	socket_sendto( /tmp/zm/zms-398839s.sock ) failed: No such file or directory	/usr/share/zoneminder/includes/functions.php	2322
2012-09-30 14:30:04.567850	web_php	19389	ERR	socket_sendto( /tmp/zm/zms-871622s.sock ) failed: No such file or directory	/usr/share/zoneminder/includes/functions.php	2322
2012-09-30 14:29:50.738788	web_php	24249	ERR	socket_sendto( /tmp/zm/zms-871622s.sock ) failed: No such file or directory	/usr/share/zoneminder/includes/functions.php	2322
2012-09-30 14:29:37.343301	web_php	24247	ERR	socket_sendto( /tmp/zm/zms-871622s.sock ) failed: No such file or directory	/usr/share/zoneminder/includes/functions.php	2322
User avatar
hk_niko
Posts: 36
Joined: Mon Feb 20, 2012 4:29 pm

Re: socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) Only on intern

Post by hk_niko »

I have the same problem! Up!
erpo41
Posts: 18
Joined: Mon Jan 24, 2011 7:11 am

Re: socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) Only on intern

Post by erpo41 »

I have the same problem as well, except that it happens even when I am accessing zoneminder on the same LAN with Chrome. Seems to go away when I use Internet Explorer.
User avatar
hk_niko
Posts: 36
Joined: Mon Feb 20, 2012 4:29 pm

Re: socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) Only on intern

Post by hk_niko »

I remember that the answer is in the forum into any topic but i can not find it
User avatar
tgutwin
Posts: 24
Joined: Thu Jan 12, 2006 4:02 am
Location: North Vancouver, Canada

Re: socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) Only on intern

Post by tgutwin »

This error shows up on other newer distributions as well (F17 and 18alpha).
I tracked it down to php socket libraries. I think it due to some changes in the latest php version, but have not confirmed the version that worked and where it broke.
My system is still without live view.

I am just a longtime user, and also recently had to upgrade my zoneminder box.
------------------------------------------------------------
Don't Let Software Push You Around... Push Back
------------------------------------------------------------
murdoc24
Posts: 1
Joined: Wed Oct 24, 2012 3:11 am

Re: socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) Only on intern

Post by murdoc24 »

tgutwin wrote:This error shows up on other newer distributions as well (F17 and 18alpha).
I tracked it down to php socket libraries. I think it due to some changes in the latest php version, but have not confirmed the version that worked and where it broke.
My system is still without live view.

I am just a longtime user, and also recently had to upgrade my zoneminder box.
I am having this exact same problem on Ubuntu 12.04.1 LTS. I can't see live view in any browser. As soon as I attempt to it starts throwing these errors in the log. Not sure if the recording is actually working....this is a completely fresh install of the OS and ZM from apt-get.

What is sort of strange is that it was working, then I made a port change in apache to run off a different port rather then 80 and after that the live stream fails to work. I can't see how that should matter at all.
attilahooper
Posts: 20
Joined: Mon Feb 15, 2010 6:38 pm

Re: socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) Only on intern

Post by attilahooper »

I built 1.25 last night on Debian Squeeze and saw the same errors. php 5.3.3-7squeeze14, ffmpeg 5:0.7.13-dmo2. In my case, could not view stream with firefox browser on local net or on the server.

edit: I found the source of my issue with this error.

In my case; I noticed zms-xxxxxw.sock in /tmp/zm Note: the W in the socket file name

The cause was from /etc/apache2/sites-available/default not referring correct cgi-bin location.
Changing:
# ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
to
ScriptAlias /cgi-bin/ /var/www/zoneminder/cgi-bin/

et voila.
hansie
Posts: 15
Joined: Wed May 19, 2004 3:40 pm

Re: socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) Only on intern

Post by hansie »

Hi,

Still have the same problem.
I have installed Zm 1.25 on Centos 6.3, and when I stay on the local network, everything works fine. Trying to get an image from the internet gives the socket errors again, and cambozola gives me a classnotfound exception.
I tried looking for cgi-bin in the zm installation, but there is no cgi-bin directory in my 1.25 install.

Am I looking in the right place ?

Thanks,
Hans
Locked