When I start to play event (middle network usage), I see black window with text
Code: Select all
Time to next event = 1 seconds
Code: Select all
zm_debug.log.10604:10/26/11 22:52:53.876232 web_php[10604].ERR [socket_sendto( /tmp/zm/zms-712705s.sock ) failed: No such file or directory] at includes/functions.php line 2322
Code: Select all
ll /tmp/zm
razem 3756
drwxrwxrwx 2 www-data www-data 4096 2011-10-26 22:52 ./
drwxrwxrwt 62 root root 20480 2011-10-26 22:52 ../
-rw-r--r-- 1 www-data www-data 0 2011-10-26 22:50 zmaudit.log
-rw-r--r-- 1 www-data www-data 1032 2011-10-26 22:50 zmdc.log
srwxr-xr-x 1 www-data www-data 0 2011-10-26 22:50 zmdc.sock=
-rw-r--r-- 1 www-data www-data 67 2011-10-26 22:50 zmfilter.log
-rw-r--r-- 1 www-data www-data 59 2011-10-26 22:50 zmpkg.log
srwxr-xr-x 1 www-data www-data 0 2011-10-26 22:52 zms-712705w.sock= <---
Code: Select all
# ll -h /tmp/zm
razem 14M
drwxrwxrwx 2 www-data www-data 4,0K 2011-10-26 23:01 ./
drwxrwxrwt 62 root root 20K 2011-10-26 23:00 ../
-rw-r--r-- 1 www-data www-data 0 2011-10-26 22:50 zmaudit.log
-rw-r--r-- 1 www-data www-data 1,1K 2011-10-26 22:50 zmdc.log
srwxr-xr-x 1 www-data www-data 0 2011-10-26 22:50 zmdc.sock=
-rw-r--r-- 1 www-data www-data 67 2011-10-26 22:50 zmfilter.log
-rw-r--r-- 1 www-data www-data 59 2011-10-26 22:50 zmpkg.log
srwxr-xr-x 1 www-data www-data 0 2011-10-26 22:58 zms-027347s.sock=
srwxr-xr-x 1 www-data www-data 0 2011-10-26 23:01 zms-704233w.sock=
srwxr-xr-x 1 www-data www-data 0 2011-10-26 22:57 zms-878201s.sock=
OS: Ubuntu 11.04 x86_64
kernel: 2.6.38
ZM: 1.25.0-3500
Two cams: 1x bttv, 1x http
Recording and motion detection is working ok, streaming in high and middle is also ok, making video of event is ok.
So is there bug with names mismatch: w != s and last character "="?
-----
Edit 1
I read code a bit. Now I know that it spose to be two sock files w.sock and s.sock. Before s.sock file appears for a second and die, now it doesn't appear at all.
I renamed my 1.25 database and made default one. Now I'm unable to see stream either. I modified code to see more in debug log. Fist I modified ajax/stream.php - there is no much to see - it able to access w.sock file, gets some connkey and unable find s.sock file.
Then I modified src/zm_stream.cpp
Code: Select all
void StreamBase::openComms()
{
if ( connkey > 0 )
{
sd = socket( AF_UNIX, SOCK_DGRAM, 0 );
if ( sd < 0 )
{
Fatal( "Can't create socket: %s", strerror(errno) );
Debug(3, "openComms() Cant create sd ");
}
snprintf( loc_sock_path, sizeof(loc_sock_path), "%s/zms-%06ds.sock", config.path_socks, connkey );
Debug(3, "openComms() Unlinking loc_sock_path: %s ", loc_sock_path);
unlink( loc_sock_path );
strncpy( loc_addr.sun_path, loc_sock_path, sizeof(loc_addr.sun_path) );
loc_addr.sun_family = AF_UNIX;
if ( bind( sd, (struct sockaddr *)&loc_addr, strlen(loc_addr.sun_path)+sizeof(loc_addr.sun_family)) < 0 )
{
Fatal( "Can't bind socket: %s", strerror(errno) );
}
snprintf( rem_sock_path, sizeof(rem_sock_path), "%s/zms-%06dw.sock", config.path_socks, connkey );
strncpy( rem_addr.sun_path, rem_sock_path, sizeof(rem_addr.sun_path) );
rem_addr.sun_family = AF_UNIX;
}
}
void StreamBase::closeComms()
{
Debug(3, "closeComms() Attempting to close sockets");
if ( connkey > 0 )
{
if ( sd >= 0 )
{
Debug(3, "closeComms() Closing sd ");
close( sd );
sd = -1;
}
if ( loc_sock_path[0] )
{
Debug(3, "closeComms() Unlinking loc_sock_path: %s ", loc_sock_path);
unlink( loc_sock_path );
}
}
}
--------
Edit 2
I switched to 1.24.2-8 (Ubuntu package), now I able to see live jpeg stream but no mpeg stream in browser - mpeg plays well in Totem.
There is steel "socket_sendto( /tmp/zm/zms-399721s.sock ) failed: Connection refused, " issue, but this time s.sock files are created and newer destroyed:
Code: Select all
ll
razem 56
drwxr-xr-x 5 www-data www-data 4096 2011-11-01 10:24 ./
drwxrwxrwt 41 root root 20480 2011-11-01 11:05 ../
drwxr-xr-x 2 www-data www-data 4096 2011-11-01 09:27 log/
-rw-r--r-- 1 www-data www-data 0 2011-11-01 09:40 zmaudit.log
-rw-r--r-- 1 www-data www-data 1557 2011-11-01 09:40 zmdc.log
srwxr-xr-x 1 www-data www-data 0 2011-11-01 09:40 zmdc.sock=
-rw-r--r-- 1 www-data www-data 198 2011-11-01 09:40 zmfilter.log
-rw-r--r-- 1 www-data www-data 58 2011-11-01 09:40 zmpkg.log
srwxr-xr-x 1 www-data www-data 0 2011-11-01 10:21 zms-177825s.sock=
srwxr-xr-x 1 www-data www-data 0 2011-11-01 09:57 zms-235785s.sock=
srwxr-xr-x 1 www-data www-data 0 2011-11-01 10:16 zms-399721s.sock=
srwxr-xr-x 1 www-data www-data 0 2011-11-01 09:50 zms-413119s.sock=
srwxr-xr-x 1 www-data www-data 0 2011-11-01 10:14 zms-497295s.sock=
srwxr-xr-x 1 www-data www-data 0 2011-11-01 10:21 zms-624466s.sock=
srwxr-xr-x 1 www-data www-data 0 2011-11-01 10:04 zms-965676s.sock=
drwxr-xr-x 8 www-data www-data 4096 2011-11-01 10:23 zmswap-m1/
drwxr-xr-x 3 www-data www-data 4096 2011-11-01 10:22 zmswap-m3/
-rw-r--r-- 1 www-data www-data 420 2011-11-01 09:40 zmwatch.log