Error socket_sendto ( /var/run/zm/zms-347773s.sock) failed

Forum for questions and support relating to the 1.25.x releases only.
sacarino
Posts: 1
Joined: Thu Jul 04, 2013 3:10 pm

Re: Error socket_sendto ( /var/run/zm/zms-347773s.sock) fail

Post by sacarino »

All,

I was able to resolve this on my box - check your apache config file (or sites-available configs) for a trailing slash on your cgi-bin line.

Here's mine:

Code: Select all

ScriptAlias /cgi-bin "/usr/lib/cgi-bin"
If it reads ScriptAlias /cgi-bin/ "/usr/lib/cgi-bin" you need to remove the trailing slash.

Once you do that, save the config, then restart apache... see if that doesn't cure everything for you.

-sac
Mad Professor
Posts: 106
Joined: Wed Dec 15, 2010 11:20 am
Location: Isle Of Wight, UK

Re: Error socket_sendto ( /var/run/zm/zms-347773s.sock) fail

Post by Mad Professor »

I have been following this post, and just looked at my apache files.
There was no extra zoneminder related files.

So I had to add this for my ubuntu 12.04 64bit server.

/etc/apache2/sites-available/zm
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
User avatar
teraquad
Posts: 90
Joined: Fri Mar 09, 2012 2:03 pm
Location: New Bern, NC

Re: Error socket_sendto ( /var/run/zm/zms-347773s.sock) fail

Post by teraquad »

Hi,

I have followed this post and have made (to the best of my ability) the changes indicated at each step. I still have no results.

I am running fedora 19 and have everything working properly except the streaming video. ie: I can't click on a monitor and get video. All I see is the space where the video should be.

Is it possible for someone to recap the changes made or suggest further action to get this thing working. It has become quite confusing for me and i suspect there are others who would also appreciate clarification and or further guidance.

Thanks for the help!
Fedora 23, ZM 1.28
N4ZPO (ham Radio)
8)
michael smith
Posts: 49
Joined: Wed Mar 14, 2007 12:58 pm

Re: Error socket_sendto ( /var/run/zm/zms-347773s.sock) fail

Post by michael smith »

Post Re: Error socket_sendto ( /var/run/zm/zms-347773s.sock) fail
All,

I was able to resolve this on my box - check your apache config file (or sites-available configs) for a trailing slash on your cgi-bin line.

Here's mine:


Code:
ScriptAlias /cgi-bin "/usr/lib/cgi-bin"



If it reads ScriptAlias /cgi-bin/ "/usr/lib/cgi-bin" you need to remove the trailing slash.

Once you do that, save the config, then restart apache... see if that doesn't cure everything for you.

-sac
This fixed my Ubuntu 12.04 LTS internet only sock fault..on all my machines on the LAN, it always worked, just not from the Internet..
Thanks Sac
User avatar
teraquad
Posts: 90
Joined: Fri Mar 09, 2012 2:03 pm
Location: New Bern, NC

Re: Error socket_sendto ( /var/run/zm/zms-347773s.sock) fail

Post by teraquad »

Hi,

I have found 2 files, httpd.conf and zoneminder.conf. I think they are properly coded as i found them. No trailing "/". Yet i still have the error as indicated in the log file. I am completely in the dark as where to look next.

httpd.conf

Code: Select all

  # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin "/var/www/cgi-bin"

</IfModule>

#
zoneminder.conf

Code: Select all

    php_value short_open_tag 1
</Directory>

ScriptAlias /cgi-bin/zm "/usr/libexec/zoneminder/cgi-bin"
<Directory "/usr/libexec/zoneminder/cgi-bin">
    AllowOverride All
    Options ExecCGI
Log

Code: Select all

2013-07-28 09:45:04.910320	zma_m8	18851	INF	Monitor-8: 137 - Gone back into alarm state	zm_monitor.cpp	1373
2013-07-28 09:45:04.460283	zma_m8	18851	INF	Monitor-8: 133 - Gone into alert state	zm_monitor.cpp	1382
2013-07-28 09:45:03.145137	web_php	19536	ERR	socket_sendto( /var/lib/zoneminder/sock/zms-312706s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2322
2013-07-28 09:45:02.323107	zma_m8	18851	INF	Monitor-8: 125 - Gone into alarm state	zm_monitor.cpp	1326
2013-0
Thanks for the help!
Fedora 23, ZM 1.28
N4ZPO (ham Radio)
8)
mazzofab
Posts: 1
Joined: Wed Aug 07, 2013 6:12 am

Re: Error socket_sendto ( /var/run/zm/zms-347773s.sock) fail

Post by mazzofab »

Hi. I had same problem so in /etc/httpd/conf/httpd.conf comment out the line ScriptAlias /cgi-bin "/var/www/cgi-bin"

restart and it should work. The problem is that it will only work in jpeg and not streaming on fedora.
sfrooster
Posts: 1
Joined: Sat Aug 10, 2013 10:17 pm

Re: Error socket_sendto ( /var/run/zm/zms-347773s.sock) fail

Post by sfrooster »

I tried all these, and none worked. Here's what did:

First, try hitting your server with an internal IP rather than through the internet, per this:
http://www.zoneminder.com/forums/viewto ... 29&t=21139

That may work (it did for me)

For Internet access, trying changing the value of AUTH_RELAY:
http://www.zoneminder.com/forums/viewto ... UTH#p74566

At first, only changing the values of AUTH_RELAY worked, and not the fix invloving php.ini and the date.timezone value. But after some reboots and cache flushing, it finally worked.

Good luck.
vigilant
Posts: 4
Joined: Wed Sep 18, 2013 9:11 pm

Re: Error socket_sendto ( /var/run/zm/zms-347773s.sock) fail

Post by vigilant »

plz kindly help me fix it on debian.. have no idea how to do this
have multiple socket_sendto( /tmp/zm/zms-593976s.sock ) failed: No such file or directory errors in Log

tryed to edit /etc/zm/apache.conf but no luck( (added ScriptAlias /cgi-bin /usr/share/zoneminder/cgi-bin)

default is
Alias /zm /usr/share/zoneminder
<Directory /usr/share/zoneminder>
php_flag register_globals off
Options Indexes FollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
</Directory>
have no idea how to make it work
vigilant
Posts: 4
Joined: Wed Sep 18, 2013 9:11 pm

Re: Error socket_sendto ( /var/run/zm/zms-347773s.sock) fail

Post by vigilant »

ok it was in /etc/apache2/sites-available/default
I deleted "/" after /cg-bin and error message gone
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Error socket_sendto ( /var/run/zm/zms-347773s.sock) fail

Post by Magic919 »

Try version 1.26.3 first. Some of the 'solutions' I've seen proved to be red herrings for me.
-
vigilant
Posts: 4
Joined: Wed Sep 18, 2013 9:11 pm

Re: Error socket_sendto ( /var/run/zm/zms-347773s.sock) fail

Post by vigilant »

Magic919 wrote:Try version 1.26.3 first. Some of the 'solutions' I've seen proved to be red herrings for me.
I\m not smart enough to install it :( can't figure out how to "make", get error... asked in 1.26.* forum already
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Error socket_sendto ( /var/run/zm/zms-347773s.sock) fail

Post by PacoLM »

Hi,

I just added recently a Webcam to my ZM server (5 cams!). All the previous 4 where capturing at 320x240 resolution, the new one is capturing at 1024x600. Everything run smooth until I realized that I got the infamous error Error socket_sendto...
I changed the resolution of the new cam to be 320x240 and restarted ZM. The error dissapeared. Back to the high resolution, restarted ZM, same error.
The problem dissapeared after changing the setting in WEB_L_STREAM_METHOD, WEB_M_STREAM_METHOD and WEB_H_STREAM_METHOD from MPEJ to JPEG.

Hope it helps!

PacoLM

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
Locked