ZM 1.24.1+ Problems and found Error

Forum for questions and support relating to the 1.24.x releases only.
Locked
sef1976
Posts: 46
Joined: Sun Aug 16, 2009 5:24 am

ZM 1.24.1+ Problems and found Error

Post by sef1976 »

Hi
i have fedora 11 (32bit + ext4) install/update it/ tuning and patched

all work fine and quick -- Load avarage 0.01 0 0
mysqld have -15 level (renice it )

but sam time i have message at time 01/01 03:00:00
this is strange (i read forum on this problem but not found solution)
maybe code programers insert in sourse dual check of date and time
and if found this situation recheck time?

and secon- sam time problem cameras view back wind if i manual disable it and enable
all work fine. (time to time all restore auto)/ cameras plugged on VPN
traffick a low on it.
ping delay 57..111 ms aver 60 ms

-- if cameras phisycly off preview wind not show nothing, but more best on this situation
view message - Cameras not plugged

Video server: MSI 780G + AMD X2 6000+
4G RAM
500G SATA HDD 7200rpm 16M
VPN work on Dlink DI-808VH

P.S. if need i shared my config for Tunning system for more powerfull and speed :)

PSS i add main page link for cgi script check IP camera state
and change default sort value to filtr Desc more actual than Asc sort
-----------
cat console.php |grep cgi
<h2 id="title"><a href="http://www.zoneminder.com" target="ZoneMinder">ZoneMinder</a> <?= $SLANG['Console'] ?> - <?= makePopupLink( '?view=state', 'zmState', 'state', $status, canEdit( 'System' ) ) ?> - <?= makePopupLink( '?view=version', 'zmVersion', 'version', "v".ZM_VERSION, canEdit( 'System' ) ) ?> - <a href="/cgi-bin/ip.cgi" target="ZM ">Camera status</a> </h2>
----------
cat ip.cgi
#!/bin/bash

PING='ping -c 2 -q -w 2 '
LIST=`cat /etc/cron.t/list`

function CameraState() {
for ip in ${LIST[@]}; do
echo -n "${ip} "
R=`$PING $ip`
#>& /dev/null
T="$?"
if [ "$T" != "0" ]; then
echo "<img src='/serveroff.gif' width='16' height='15' border='0'> Off-Line"
else
echo -n "<img src='/serveron.gif' width='16' height='15' border='0'> On-Line "
R=`echo ${R}|tail -n 1|cut --delimiter="=" -f 2|cut --delimiter="/" -f 2`
echo "[ delay $R ms ]"
fi
done
}


echo Content-type: text/html
echo ""

/bin/cat << EOM
<HTML>
<HEAD><TITLE>IP Statistics: `hostname` (pull 300 sec)</TITLE>
<META HTTP-EQUIV="Refresh" CONTENT="300">
<META HTTP-EQUIV="Cache-Control" content="no-cache">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
</HEAD>
<BODY bgcolor="#cccccc" text="#000000">
<P>
<SMALL>
<PRE>
EOM

CameraState

/bin/cat << EOM
</PRE>
</SMALL>
<P>
</BODY>
</HTML>
EOM
Last edited by sef1976 on Mon Aug 17, 2009 10:39 am, edited 1 time in total.
sef1976
Posts: 46
Joined: Sun Aug 16, 2009 5:24 am

Post by sef1976 »

found problem's
1)
if view cameras and click left mouse on view scales is OK
if select scales value on list see picture few second and his "fly away"
and not return if scales back
only reopen window

2) on create cameras (IP) state Enable and Monitor
but his not work
if i Disable - save
Enable -save
cameras work

3) if i create link for cameras for other's
if try reset this or reassign
previos not select but working - on Event have state Linked

4) if assign cameras for User
do not clear this assign (min 1 camers assgined forever)

5) Ip cameras offline but main screen view it not red
system not valid detect this state
sef1976
Posts: 46
Joined: Sun Aug 16, 2009 5:24 am

Post by sef1976 »

analise Apache trafic for ZM

if sesion HTTP 1.0 apache dramaticaly load system
if HTTP 1.1 all very good :)

hint force 1.1 on web browser :)
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

When reporting problems, please use SVN builds or at least the latest release. At this time the latest release is 1.24.2 and very well may have already corrected many of these. :)
sef1976
Posts: 46
Joined: Sun Aug 16, 2009 5:24 am

Post by sef1976 »

I upgrade to 1.24.2
and test for all :D
Last edited by sef1976 on Sun Aug 23, 2009 8:02 am, edited 1 time in total.
sef1976
Posts: 46
Joined: Sun Aug 16, 2009 5:24 am

Post by sef1976 »

found litle problem on montage view
on same time
view picture on cameras but state/fps not view
sef1976
Posts: 46
Joined: Sun Aug 16, 2009 5:24 am

Post by sef1976 »

http://deka0.office-on-the.net/zm/ru_ru.php.tgz 1.24.2 version lang

i translate ru_ru.php and encode it ot UTF8

same tine if Ip cam's have a big delay or temporary off line (litle time)
system show freez image or black

and not auto reconect for it
i disable/enable cameras and his work again


ps if need i traslate it to Ukraine lang to.
sef1976
Posts: 46
Joined: Sun Aug 16, 2009 5:24 am

Post by sef1976 »

Original code

Code: Select all

$nextId = getTableAutoInc( 'Monitors' );
    $monitor = array(

        'LabelFormat' => '%N - %y/%m/%d %H:%M:%S',

but on standart of Rus/Ukr

Code: Select all

'LabelFormat' => '%N - %d/%m/%Y %H:%M:%S',
Please change code to auto accept true value


found err:
as default Monitor name create SLANG but name must by only English a..z
if insert national symbols have error.


Ps. maybe set this value on LANG file?
sef1976
Posts: 46
Joined: Sun Aug 16, 2009 5:24 am

Post by sef1976 »

Found problem

PHP Warning: json_encode() [<a>function.json-encode</a>]: Invalid UTF-8 sequence in argument in /var/www/html/includes/functions.php on line 2159, referer: http://......../index.php?view=watch&mid=7
sef1976
Posts: 46
Joined: Sun Aug 16, 2009 5:24 am

Post by sef1976 »

if not show picture (on log say not socket file)
may insert Picture on show area?

on cambozola option

Code: Select all

failureimage
i add on code it but not see them :(
sef1976
Posts: 46
Joined: Sun Aug 16, 2009 5:24 am

Post by sef1976 »

time to time om error_log apache

Code: Select all

Timeout waiting for output from CGI script /var/www/cgi-bin/nph-zms, referer: http://...../index.php?view=watch&mid=16
and after that php sesion on apache/cherokee freez and not respond
but CGI sesion work and HTML static too
return php for life - server httpd reload
his back and work.

i change php module 4.4/5.2.10/5.3
problem not away
sef1976
Posts: 46
Joined: Sun Aug 16, 2009 5:24 am

Post by sef1976 »

Code: Select all

Kernel Parameters
Shared memory:  SHMMAX= 3294967296  SHMMNI= 4096  SHMALL= 2097152
Semaphore values:  SEMMSL, SEMMNS, SEMOPM, SEMMNI:  1250 32000 100 256
link for download - http://deka0.office-on-the.net/zm/kernel_tun.tgz
based Oracle startUp script :D
sef1976
Posts: 46
Joined: Sun Aug 16, 2009 5:24 am

ajax stream.php

Post by sef1976 »

i need if not cameras live image send to browser image (no_signal.gif)
i read php source, but socket operation redirect to server-socket (his send all time image no_signal) not run correctly.
Please help.

Server answer http://195.58.231.38:2020
Locked