Page 2 of 2

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

Posted: Thu Jul 04, 2013 3:17 pm
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

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

Posted: Thu Jul 04, 2013 5:08 pm
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/

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

Posted: Sat Jul 27, 2013 3:47 pm
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!

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

Posted: Sun Jul 28, 2013 4:08 am
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

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

Posted: Sun Jul 28, 2013 9:55 am
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!

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

Posted: Wed Aug 07, 2013 6:15 am
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.

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

Posted: Sat Aug 10, 2013 10:29 pm
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.

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

Posted: Thu Sep 19, 2013 9:31 pm
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

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

Posted: Fri Sep 20, 2013 7:33 am
by vigilant
ok it was in /etc/apache2/sites-available/default
I deleted "/" after /cg-bin and error message gone

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

Posted: Fri Sep 20, 2013 7:38 am
by Magic919
Try version 1.26.3 first. Some of the 'solutions' I've seen proved to be red herrings for me.

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

Posted: Fri Sep 20, 2013 8:10 am
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

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

Posted: Wed Oct 09, 2013 5:21 pm
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