Цитата: sb от 11.06.2014 18:56:08spawn-fcgi либо этот сервис не запущен.Да был погашен, он видимо с systemd не дружит, я опять на VB вернулся с Sisyphus+sysvinit. Пост поправил.
spawn-fcgi либо этот сервис не запущен.
приехали
давайте смотреть - везде должен быть пользователь apache. ps aux, смотрите процессы zoneminder'а: zms, zmc, zma и php-fpm и fcgiwrap - все должны работать под одним пользователем.
apache 3694 0.1 0.7 26440 7320 pts/0 S 07:00 0:02 /usr/bin/perl -wT /usr/bin/zmdc.pl startupapache 3722 0.0 4.9 188988 51088 pts/0 S 07:00 0:00 /usr/bin/zmc -d /dev/video0apache 3733 0.0 1.4 32448 15136 pts/0 S 07:00 0:00 /usr/bin/perl -wT /usr/bin/zmfilter.plapache 3743 0.0 0.9 27208 9696 pts/0 S 07:00 0:00 /usr/bin/perl -wT /usr/bin/zmaudit.pl -capache 3757 0.0 0.9 26904 9592 pts/0 S 07:00 0:00 /usr/bin/perl -wT /usr/bin/zmwatch.plapache 3768 0.0 1.0 27828 10720 pts/0 S 07:00 0:00 /usr/bin/perl -w /usr/bin/zmupdate.pl -c
root 1905 0.0 0.5 63424 5180 ? Ss 06:48 0:00 php-fpm: master process (/etc/fpm/php5-fpm.conf)_php_fpm 1906 0.0 0.8 64544 8952 ? S 06:48 0:00 php-fpm: pool www _php_fpm 1907 0.0 0.8 64544 8920 ? S 06:48 0:00 php-fpm: pool www _php_fpm 1908 0.0 0.8 64544 8764 ? S 06:48 0:00 php-fpm: pool www _php_fpm 1909 0.0 0.8 64544 8908 ? S 06:48 0:00 php-fpm: pool www _php_fpm 1910 0.0 0.8 64544 8908 ? S 06:48 0:00 php-fpm: pool www _spawn_+ 1973 0.0 0.0 1964 436 ? Ss 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1974 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1975 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1976 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1977 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1978 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1979 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1980 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1981 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1982 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1983 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1984 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1985 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1986 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1987 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1988 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1989 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1990 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1991 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1992 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1993 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1994 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1995 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1996 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1997 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1998 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 1999 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 2000 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 2001 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 2002 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 2003 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 2004 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 2005 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 2006 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 2007 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 2008 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 2009 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 2010 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 2011 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 2012 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 2013 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 2014 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 2015 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 2016 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44_spawn_+ 2017 0.0 0.0 2096 292 ? S 06:48 0:00 /usr/sbin/fcgiwrap -c 44
# service nginx statusnginx is running# service spawn-fcgi statusfcgiwrap is running# service php5-fpm statusphp5-fpm is running# service mysqld statusmysqld is running# service zoneminder statusmysqld is runningZoneMinder is running Id Func State TrgState LastImgTim RdIdx WrIdx LastEvt FrmRate 26 2 0 0 0.00 -1 -1 0 0.00
НО - я использую IP камеры, чего и вам советую ;)
apache 19453 0.0 0.2 168092 11616 ? S Jun14 0:25 /usr/bin/perl -wT /usr/bin/zmdc.pl startupapache 19492 0.0 0.6 183412 24888 ? S Jun14 0:01 /usr/bin/perl -wT /usr/bin/zmfilter.plapache 19502 0.0 0.3 171584 15100 ? S Jun14 0:00 /usr/bin/perl -wT /usr/bin/zmaudit.pl -capache 19514 0.0 0.8 189152 34872 ? S Jun14 0:03 /usr/bin/perl -wT /usr/bin/zmwatch.plapache 19527 0.0 0.4 175316 19388 ? S Jun14 0:00 /usr/bin/perl -w /usr/bin/zmupdate.pl -capache 23473 0.0 0.1 185688 7584 ? S 11:44 0:00 php-fpm: pool www apache 23474 0.0 0.1 185688 7584 ? S 11:44 0:00 php-fpm: pool www apache 23475 0.0 0.1 185688 7584 ? S 11:44 0:00 php-fpm: pool www apache 23476 0.0 0.1 185688 7584 ? S 11:44 0:00 php-fpm: pool www apache 23477 0.0 0.1 185688 7584 ? S 11:44 0:00 php-fpm: pool www apache 23555 0.0 0.0 8364 416 ? Ss 11:44 0:00 /usr/sbin/fcgiwrap -c 3apache 23556 0.0 0.0 8496 320 ? S 11:44 0:00 /usr/sbin/fcgiwrap -c 3apache 23557 0.0 0.0 8496 320 ? S 11:44 0:00 /usr/sbin/fcgiwrap -c 3apache 23558 0.0 0.0 8496 320 ? S 11:44 0:00 /usr/sbin/fcgiwrap -c 3
Цитата: Rider от 14.06.2014 20:56:09НО - я использую IP камеры, чего и вам советую ;)IP камер нет, мне бы вообще аналоговые подключить на плату захвата, но для проверки работоспособности программы пока смотрю на USB камере. И пока не получается заставить работать камеру...
от камеры вообще очень много всего зависит. Камера, кстати, работает - в логах была запись о том, что оно делает capture. Не работает просмотр.
root 1913 0.0 0.5 63424 5172 ? Ss 07:41 0:00 php-fpm: master process (/etc/fpm/php5-fpm.conf)apache 1914 0.0 0.8 64544 8972 ? S 07:41 0:00 php-fpm: pool www apache 1915 0.0 0.8 64544 8928 ? S 07:41 0:00 php-fpm: pool www apache 1916 0.0 0.8 64544 8948 ? S 07:41 0:00 php-fpm: pool www apache 1917 0.0 0.8 64544 8784 ? S 07:41 0:00 php-fpm: pool www apache 1918 0.0 0.8 64544 8920 ? S 07:41 0:00 php-fpm: pool www apache 3290 0.0 0.0 1964 440 ? Ss 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3291 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3292 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3293 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3294 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3295 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3296 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3297 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3298 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3299 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3300 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3301 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3302 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3303 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3304 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3305 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3306 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3307 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3308 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3309 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3310 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3311 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3312 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3313 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3314 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3315 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3316 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3317 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3318 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3319 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3320 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3321 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3322 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3323 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3324 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3325 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3326 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3327 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3328 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3329 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3330 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3331 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3332 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3333 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44apache 3334 0.0 0.0 2096 296 ? S 07:43 0:00 /usr/sbin/fcgiwrap -c 44
2014/06/15 07:52:53 [error] 2502#0: *126 FastCGI sent in stderr: "PHP message: PHP Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /usr/share/zoneminder/www/includes/database.php on line 32" while reading response header from upstream, client: 127.0.0.1, server: , request: "POST /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm/php5-fpm.sock:", host: "localhost", referrer: "http://localhost/?view=watch&mid=27"2014/06/15 07:52:58 [error] 2502#0: *126 FastCGI sent in stderr: "PHP message: PHP Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /usr/share/zoneminder/www/includes/database.php on line 32" while reading response header from upstream, client: 127.0.0.1, server: , request: "POST /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm/php5-fpm.sock:", host: "localhost", referrer: "http://localhost/?view=watch&mid=27"
А что значит "нет изображения"
что в логах zoneminder ?
un 15 08:13:21 comp-core2-duo-d82748 web_php[1917]: WAR [Adjusting to minimum width when getting popup size for tag 'watch' - getPopupSize()]Jun 15 08:13:22 comp-core2-duo-d82748 zms[4232]: ERR [Terminating, last frame sent time 1402798402.268763 secs more than maximum of 10.000000]
2014/06/15 08:13:21 [error] 2502#0: *126 FastCGI sent in stderr: "PHP message: PHP Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /usr/share/zoneminder/www/includes/database.php on line 32" while reading response header from upstream, client: 127.0.0.1, server: , request: "POST /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm/php5-fpm.sock:", host: "localhost", referrer: "http://localhost/index.php"2014/06/15 08:13:21 [error] 2502#0: *126 FastCGI sent in stderr: "PHP message: PHP Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /usr/share/zoneminder/www/includes/database.php on line 32" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET /index.php?view=watch&mid=27 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm/php5-fpm.sock:", host: "localhost", referrer: "http://localhost/index.php"
ещё детект движения, запись надо настроить.
ждём инструкцию на Wiki.