Whats up with the socket_sendto errors? <SOLVED>

Forum for questions and support relating to the 1.24.x releases only.
Locked
orionstoy
Posts: 17
Joined: Wed Jun 22, 2011 8:26 pm

Whats up with the socket_sendto errors? <SOLVED>

Post by orionstoy »

This problem has been plaguing me for a long time and through several versions of ZoneMinder. I have searched the
forum and it seems that it's not a real popular problem but it follows me through total fresh installs including a new
database. I just removed all my config files and ZoneMinder and installed a fresh copy of 1.24.4.. new database... new
config files .. totally new install and I'm still having this issue.

This issue shows itself when trying to view a captured event. Most of the times I can view the events .. sometimes while
using gapless event they will pause but start playing again .. sometimes I get a black screen saying "Time to next
event = x seconds" x usually is one or two seconds. Whether it pauses or I get the black screen... when I check my error
log I see a bunch of errors like this:

Code: Select all

[Thu Jun 23 10:33:06 2011] [error] [client 192.168.xxx.xxx] socket_sendto( /tmp/zm/zms-284884s.sock ) failed: No such 
file or directory, referer: website/zm/index.php?view=watch&mid=2


[Thu Jun 23 10:33:06 2011] [error] [client 192.168.xxx.xxx] array (\n  0 => \n  array (\n    'file' => '/path/zm/ajax/stream.php',\n
    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /tmp/zm/zms-284884s.sock ) 
failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/path/zm/index.php',\n    'line' => 119,\n    'args' => 
\n    array (\n      0 => '/path/zm/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: website/zm/index.php?view=watch&mid=2


[Thu Jun 23 10:37:17 2011] [error] [client 192.168.xxx.xxx] socket_sendto( /tmp/zm/zms-244824s.sock ) failed: No such file or 
directory, referer: website/zm/index.php?view=event&eid=27&filter[terms][0][attr]=Id&&filter[terms][0][op]=%3D%5B%5D&&filter[terms[0[val]=27%2C28%2C29%2C31%2C32%2C33%2C34%2C35%2C36%2C37%2C38%2C39%2C40%2C4
2C42%2C43%2C44%2C45%2C46%2C47%2C48%2C49%2C50%2C51%2C52%2C53%2C54%2C55%2C56%2C57%2C58%2C59%
2C60%2C61%2C62%2C63%2C64%2C65%2C66%2C67%2C68%2C69%2C70%2C71%2C72%2C73%2C74%2C75%2C76%2C77%2
C78%2C79%2C80%2C81%2C82%2C83%2C84%2C85%2C86%2C87%2C88%2C89%2C90%2C91%2C92&sort_field=StartTime&
sort_asc=1&page=1&play=1


[Thu Jun 23 10:37:17 2011] [error] [client 192.168.xxx.xxx] array (\n  0 => \n  array (\n    'file' => '/path/zm/ajax/stream.php',\n
    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /tmp/zm/zms-244824s.sock ) fail
ed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/path/zm/index.php',\n    'line' => 119,\n    'args' => \n  
  array (\n      0 => '/path/zm/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: website/zm/index.php?view=event&eid=27&filter[terms]
[0][attr]=Id&&filter[terms][0][op]=%3D%5B%5D&&filter[terms][0][val]=27%2C
28%2C29%2C31%2C32%2C33%2C34%2C35%2C36%2C37%2C38%2C39%2C40%2C41%2C42%2C43%2C44%2C45%2C46%2C
47%2C48%2C49%2C50%2C51%2C52%2C53%2C54%2C55%2C56%2C57%2C58%2C59%2C60%2C61%2C62%2C63%2C64%2C
65%2C66%2C67%2C68%2C69%2C70%2C71%2C72%2C73%2C74%2C75%2C76%2C77%2C78%2C79%2C80%2C81%2C82%2C
83%2C84%2C85%2C86%2C87%2C88%2C89%2C90%2C91%2C92&sort_field=StartTime&sort_asc=1&page=1&play=1


[Thu Jun 23 10:44:06 2011] [error] [client 192.168.xxx.xxx] socket_sendto( /tmp/zm/zms-380199s.sock ) failed: No such file or
 directory, referer: website/zm/index.php?view=event&eid=27&filter[terms][0][attr]=Id&&filter[terms][0][op]=%3D%5B
%5D&&filter[terms][0][val]=
27%2C28%2C29%2C31%2C32%2C33%2C34%2C35%2C36%2C37%2C38%
2C39%2C40%2C41%2C42%2C43%2C44%2C45%2C46%2C47%2C48%2C49%2C50%2C51%2C52%2C53%2C54%2C55%2C56
%2C57%2C58%2C59%2C60%2C61%2C62%2C63%2C64%2C65%2C66%2C67%2C68%2C69%2C70%2C71%2C72%2C73%2C7
4%2C75%2C76%2C77%2C78%2C79%2C80%2C81%2C82%2C83%2C84%2C85%2C86%2C87%2C88%2C89%2C90%2C91%2C9
2&sort_field=StartTime&sort_asc=1&page=1&play=1


[Thu Jun 23 10:44:06 2011] [error] [client 192.168.xxx.xxx] array (\n  0 => \n  array (\n    'file' => '/path/zm/ajax/stream.php
',\n    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /tmp/zm/zms-380199s.so
ck ) failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/path/zm/index.php',\n    'line' => 119,\n    'arg
s' => \n    array (\n      0 => '/path/zm/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: website/zm
/index.php?view=event&eid=27&filter[terms][0][attr]=Id&&filter[terms][0][op]=%3D%5B%5D&&filter[terms]
[0][val]=27%2C28%2C29%2C31%2C32%2C33%2C34%2C35%2C36%2C37%2C38%2C39%2C40%2C41%2C42%2C43%2C44%
2C45%2C46%2C47%2C48%2C49%2C50%2C51%2C52%2C53%2C54%2C55%2C56%2C57%2C58%2C59%2C60%2C61%2C62%
2C63%2C64%2C65%2C66%2C67%2C68%2C69%2C70%2C71%2C72%2C73%2C74%2C75%2C76%2C77%2C78%2C79%2C80%
2C81%2C82%2C83%2C84%2C85%2C86%2C87%2C88%2C89%2C90%2C91%2C92&sort_field=StartTime&sort_asc=1&page=1&
play=1
What I don't understand is why I can view some events and some give this error... Anyone have any clues? .. if you need more
information just let me know.

Thanks in advance,
John Orion
Last edited by orionstoy on Fri Jun 24, 2011 4:19 pm, edited 1 time in total.
orionstoy
Posts: 17
Joined: Wed Jun 22, 2011 8:26 pm

Re: Whats up with the socket_sendto errors? <SOLVED>

Post by orionstoy »

I thought I had it solved .. but I didn't ... read below
Last edited by orionstoy on Fri Jun 24, 2011 5:54 pm, edited 1 time in total.
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: Whats up with the socket_sendto errors? <SOLVED>

Post by mastertheknife »

There is an issue when using absolute paths with deep storage enabled. The solution is to use relative path, e.g. ../../../../var/cache/zoneminder.

mastertheknife.
Kfir Itzhak.
orionstoy
Posts: 17
Joined: Wed Jun 22, 2011 8:26 pm

Re: Whats up with the socket_sendto errors? <SOLVED>

Post by orionstoy »

Turns out i didn't have it solved ... i finally solved it ...

I deleted 1.24.4, recompiled and reinstalled 1.24.3 .. thank god i had my DB backed up ...

Now it all works again ... guess its just 1.24.4 doesn't run on my Ubuntu server 10.10 system.

I didn't see any changes in 1.24.4 anyway .. maybe it has some bug fixes but for me ... the bug fixes hosed ZM
Maybe they just didn't understand the concept and added bugs instead of fixing them lol.

Either way ... 1.24.4 isn't worth installing if you have a working 1.24.3 system.

Ill just live with the occasional time outs and socket_sendto errors since 1.24.4 only makes the issues worse.

At least with 1.24.3 it will stream my events most of the time.
User avatar
zmielna
Posts: 1
Joined: Mon Jul 11, 2011 10:47 am

Re: Whats up with the socket_sendto errors? <SOLVED>

Post by zmielna »

I know, reanimating old post, but just wanted to add my two cents. I'm on debian squeeze, been trying to use 1.24.2 coming with distro, no luck. Then tried to compile both 1.24.3. and 1.24.4. I've been banging my head against the wall (ok, computer screen) for the last two days to make it working. Hope my findings will help someone else.

OK so basically one of the errors that i experienced was this socket_sendto stuff when trying to watch monitors. Blank screens and logs full of socket_sendto errors. Then after two days I checked Apache and realised that cgi module is not loaded. Do'oh! Guys you need to make sure that Apache is actually able to execute cgi scripts! Probably it is somewhere is the docs but but well who reads that? Definitely not me :-)

It would be nice to have something like this in the FAQ, for dumb people like me experiencing this error:

a2enmod
enter `cgi`
apache2ctl graceful

And oh Lord, I can now see my monitors! Hallelujah!

Well at least some of them. The problem that I didn't resolve yet is using Zoneminder with USB cams, I've got two of them, both working OK with cheese, cannot make them work with Zoneminder, even though aparently it has been fixed in 1.24.4. But I will write about this in another thread on this forum.

Cheers,
zmielna
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: Whats up with the socket_sendto errors? <SOLVED>

Post by mastertheknife »

zmielna wrote:The problem that I didn't resolve yet is using Zoneminder with USB cams, I've got two of them, both working OK with cheese, cannot make them work with Zoneminder, even though aparently it has been fixed in 1.24.4. But I will write about this in another thread on this forum.

Cheers,
zmielna
Most USB UVC cameras use the JPEG or MJPEG capture palette, which ZoneMinder does not support at this moment. I have a big patch that also adds support for the JPEG and MJPEG capture palettes. Its located in the "User contributions" forum in case you want to check it out.

mastertheknife.
Kfir Itzhak.
Locked