/var/run/zm/ errors when running ZM 1.30.4 on Ubuntu 16.04 using Nginx

Forum for questions and support relating to the 1.30.x releases only.
Locked
Ackis
Posts: 1
Joined: Tue Jun 13, 2017 6:23 pm

/var/run/zm/ errors when running ZM 1.30.4 on Ubuntu 16.04 using Nginx

Post by Ackis »

Hi everyone, thanks for taking the time to help me out. I'm having a bit of trouble running ZoneMinder with my IP cams on Ubuntu. Any help would be appreciated.

Code: Select all

Ubuntu: 16.04.2 (Xenial Xerus)
Kernal: 4.4.0-79-generic
Ngnix: 1.10.0
Zoneminder: v1.30.4
This is my nginx configuration for ZoneMinder:

Code: Select all

server {
	listen 80;
	server_name			zoneminder.local;
	return 301			https://$server_name$request_uri;
}


server {
	listen 443 ssl;
	server_name zoneminder.local;

	access_log			syslog:server=localhost,tag=nginx_access_zoneminder,severity=info;
	error_log			syslog:server=localhost,tag=nginx_error_zoneminder;

	ssl_certificate			/opt/sslkey/zoneminder.local.crt;
	ssl_certificate_key		/opt/sslkey/zoneminder.local.key;

	location / {
		root			/usr/share/zoneminder/www/;
		index			index.php;
	}

	location /cgi-bin {
		gzip off;
		#alias /usr/lib/zoneminder/cgi-bin;

		include fastcgi_params;
		fastcgi_param SCRIPT_FILENAME $request_filename;
#		fastcgi_pass  unix:/var/run/fcgiwrap.socket;
		fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
	}

	location ~ /.*\.php$ {
		root /usr/share/zoneminder/www/;
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                include			fastcgi_params;
		fastcgi_intercept_errors	on;
#                fastcgi_pass		unix:/var/run/php5-fpm.sock;
		fastcgi_pass		unix:/var/run/php/php7.0-fpm.sock;
#        location ~ \.php$ {
                fastcgi_index index.php;
                include /etc/nginx/conf.d/fastcgi.conf;

		access_log		syslog:server=localhost,tag=nginx_access_zoneminder,severity=info;
		error_log		syslog:server=localhost,tag=nginx_error_zoneminder,severity=error;
    }
}
This is my nginx error log for ZoneMinder:

Code: Select all

Jun 13 12:26:22 ubuntu nginx_error_zoneminder: 2017/06/13 12:26:22 [error] 2398#2398: *1348 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.0.10, server: zoneminder.local, request: "GET /cgi-bin/nph-zms?mode=jpeg&scale=100&maxfps=5&buffer=1000&monitor=3&connkey=468931&rand=1497378382 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "zoneminder.local", referrer: "https://zoneminder.local/index.php?view=watch&mid=3"
Jun 13 12:26:33 ubuntu nginx_error_zoneminder: 2017/06/13 12:26:33 [error] 2398#2398: *1355 open() "/usr/share/zoneminder/www/skins/classic/css/graphics/arrow-s-d.gif" failed (2: No such file or directory), client: 192.168.0.10, server: zoneminder.local, request: "GET /skins/classic/css/graphics/arrow-s-d.gif HTTP/1.1", host: "zoneminder.local", referrer: "https://zoneminder.local/skins/classic/css/classic/skin.css"
Jun 13 12:26:53 ubuntu nginx_error_zoneminder: 2017/06/13 12:26:53 [error] 2397#2397: *1326 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.0.10, server: zoneminder.local, request: "GET /cgi-bin/nph-zms?mode=jpeg&scale=100&maxfps=5&buffer=1000&monitor=3&connkey=77659&rand=1497378413 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "zoneminder.local", referrer: "https://zoneminder.local/index.php?view=watch&mid=3"
Jun 13 12:26:53 ubuntu nginx_error_zoneminder: 2017/06/13 12:26:53 [error] 2397#2397: *1326 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.0.10, server: zoneminder.local, request: "GET /cgi-bin/nph-zms?mode=jpeg&scale=100&maxfps=5&buffer=1000&monitor=3&connkey=77659&rand=1497378413 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "zoneminder.local", referrer: "https://zoneminder.local/index.php?view=watch&mid=3"
Jun 13 12:26:58 ubuntu nginx_error_zoneminder: 2017/06/13 12:26:58 [error] 2397#2397: *1326 FastCGI sent in stderr: "PHP message: ERR [Socket /var/run/zm/zms-077659s.sock does not exist.  This file is created by zms, and since it does not exist, either zms did not run, or zms exited early.  Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly.  Make sure that ZM is actually recording.  If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information.]" while reading response header from upstream, client: 192.168.0.10, server: zoneminder.local, request: "POST /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "zoneminder.local", referrer: "https://zoneminder.local/index.php?view=watch&mid=3"
Jun 13 12:26:58 ubuntu nginx_error_zoneminder: 2017/06/13 12:26:58 [error] 2398#2398: *1355 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.0.10, server: zoneminder.local, request: "GET /cgi-bin/nph-zms?mode=jpeg&scale=100&maxfps=5&buffer=1000&monitor=3&connkey=77659&rand=643854 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "zoneminder.local", referrer: "https://zoneminder.local/index.php?view=watch&mid=3"
Jun 13 12:27:10 ubuntu nginx_error_zoneminder: 2017/06/13 12:27:10 [error] 2397#2397: *1326 FastCGI sent in stderr: "PHP message: ERR [Socket /var/run/zm/zms-077659s.sock does not exist.  This file is created by zms, and since it does not exist, either zms did not run, or zms exited early.  Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly.  Make sure that ZM is actually recording.  If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information.]" while reading response header from upstream, client: 192.168.0.10, server: zoneminder.local, request: "POST /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "zoneminder.local", referrer: "https://zoneminder.local/index.php?view=watch&mid=3"
Jun 13 12:27:10 ubuntu nginx_error_zoneminder: 2017/06/13 12:27:10 [error] 2398#2398: *1355 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.0.10, server: zoneminder.local, request: "GET /cgi-bin/nph-zms?mode=jpeg&scale=100&maxfps=5&buffer=1000&monitor=3&connkey=77659&rand=757519 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "zoneminder.local", referrer: "https://zoneminder.local/index.php?view=watch&mid=3"
Jun 13 12:27:22 ubuntu nginx_error_zoneminder: 2017/06/13 12:27:22 [error] 2397#2397: *1326 FastCGI sent in stderr: "PHP message: ERR [Socket /var/run/zm/zms-077659s.sock does not exist.  This file is created by zms, and since it does not exist, either zms did not run, or zms exited early.  Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly.  Make sure that ZM is actually recording.  If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information.]" while reading response header from upstream, client: 192.168.0.10, server: zoneminder.local, request: "POST /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "zoneminder.local", referrer: "https://zoneminder.local/index.php?view=watch&mid=3"
Jun 13 12:27:22 ubuntu nginx_error_zoneminder: 2017/06/13 12:27:22 [error] 2398#2398: *1355 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.0.10, server: zoneminder.local, request: "GET /cgi-bin/nph-zms?mode=jpeg&scale=100&maxfps=5&buffer=1000&monitor=3&connkey=77659&rand=335773 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "zoneminder.local", referrer: "https://zoneminder.local/index.php?view=watch&mid=3"
Finally, here are my ZoneMinder log files from today:

Code: Select all

06/13/17 12:26:17.284008 zmc_m3[31407].DB1-zm_logger.cpp/234 [LogOpts: level=DB1/DB1, screen=OFF, database=INF, logfile=DB1->/var/log/zm/zm_debug.log.31407, syslog=INF]
06/13/17 12:26:17.284088 zmc_m3[31407].DB1-zm_utils.cpp/266 [Detected a x86\x86-64 processor with SSSE3]
06/13/17 12:26:17.407072 zmc_m3[31407].DB1-zm_monitor.cpp/2735 [Got 1 for v4l_captures_per_frame]
06/13/17 12:26:18.063211 zmc_m3[31407].DB1-zm_monitor.cpp/390 [monitor purpose=1]
06/13/17 12:26:18.063248 zmc_m3[31407].DB1-zm_monitor.cpp/398 [mem.size=11521760]
06/13/17 12:26:20.705588 zmc_m3[31486].DB1-zm_logger.cpp/234 [LogOpts: level=DB1/DB1, screen=OFF, database=INF, logfile=DB1->/var/log/zm/zm_debug.log.31486, syslog=INF]
06/13/17 12:26:20.705659 zmc_m3[31486].DB1-zm_utils.cpp/266 [Detected a x86\x86-64 processor with SSSE3]
06/13/17 12:26:20.706504 zmc_m3[31486].DB1-zm_monitor.cpp/2735 [Got 1 for v4l_captures_per_frame]
06/13/17 12:26:20.706878 zmc_m3[31486].DB1-zm_monitor.cpp/390 [monitor purpose=1]
06/13/17 12:26:20.706895 zmc_m3[31486].DB1-zm_monitor.cpp/398 [mem.size=11521760]
06/13/17 12:26:20.706922 zmc_m3[31486].DB1-zm_monitor.cpp/543 [Unable to map file /dev/shm/zm.mmap.3 (11521760 bytes) to locked memory, trying unlocked]
06/13/17 12:26:20.706939 zmc_m3[31486].DB1-zm_monitor.cpp/546 [Mapped file /dev/shm/zm.mmap.3 (11521760 bytes) to locked memory, unlocked]
06/13/17 12:26:20.718885 zmc_m3[31486].DB1-zm_monitor.cpp/449 [Monitor Monoprice IP Cam has no zones, adding one.]
06/13/17 12:26:20.718955 zmc_m3[31486].DB1-zm_zone.cpp/51 [Initialised zone 0/All - 1 - 320x240 - Rgb:0000ff, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0, OF: 0, AF: 0]
06/13/17 12:26:20.720373 zmc_m3[31486].DB1-zm_monitor.cpp/459 [Monitor Monoprice IP Cam has function 2]
06/13/17 12:26:20.720409 zmc_m3[31486].DB1-zm_monitor.cpp/460 [Monitor Monoprice IP Cam LBF = '%N - %d/%m/%y %H:%M:%S', LBX = 0, LBY = 0, LBS = 1]
06/13/17 12:26:20.720423 zmc_m3[31486].DB1-zm_monitor.cpp/461 [Monitor Monoprice IP Cam IBC = 50, WUC = 25, pEC = 25, PEC = 25, EAF = 1, FRI = 1000, RBP = 6, ARBP = 6, FM = 0]
06/13/17 12:26:20.721081 zmc_m3[31486].DB1-zm_zone.cpp/957 [Got 1 zones for monitor Monoprice IP Cam]
06/13/17 12:26:20.721113 zmc_m3[31486].DB1-zm_zone.cpp/51 [Initialised zone 3/All - 1 - 320x240 - Rgb:0000ff, CM:3, MnAT:25, MxAT:0, MnAP:2304, MxAP:57600, FB:3x3, MnFP:2304, MxFP:57600, MnBS:1536, MxBS:0, MnB:1, MxB:0, OF: 0, AF: 0]
06/13/17 12:26:20.722534 zmc_m3[31486].DB1-zm_monitor.cpp/2998 [Loaded monitor 3(Monoprice IP Cam), 1 zones]
06/13/17 12:26:20.722552 zmc_m3[31486].INF-zmc.cpp/247 [Starting Capture version 1.30.4]
06/13/17 12:26:20.858384 zmc_m3[31486].INF-zm_ffmpeg_camera.cpp/104 [Priming capture from rtsp://ipcam1wifi.local/003028080.0001]
06/13/17 12:26:20.935001 zmc_m3[31486].DB1-zm_ffmpeg_camera.cpp/259 [Calling avformat_open_input]
06/13/17 12:26:28.951175 zmc_m3[31486].DB1-zm_ffmpeg_camera.cpp/279 [Opened input]
06/13/17 12:26:28.951211 zmc_m3[31486].DB1-zm_ffmpeg_camera.cpp/286 [Calling avformat_find_stream_info]
06/13/17 12:26:30.086073 zmc_m3[31486].DB1-zm_ffmpeg_camera.cpp/291 [Got stream info]
06/13/17 12:26:30.086093 zmc_m3[31486].DB1-zm_ffmpeg_camera.cpp/310 [Found video stream]
06/13/17 12:26:30.086111 zmc_m3[31486].DB1-zm_ffmpeg_camera.cpp/318 [Found decoder]
06/13/17 12:26:30.086118 zmc_m3[31486].DB1-zm_ffmpeg_camera.cpp/325 [Calling avcodec_open2]
06/13/17 12:26:30.086375 zmc_m3[31486].DB1-zm_ffmpeg_camera.cpp/330 [Opened codec]
06/13/17 12:26:30.086385 zmc_m3[31486].DB1-zm_ffmpeg_camera.cpp/349 [Allocated frames]
06/13/17 12:26:30.086393 zmc_m3[31486].DB1-zm_ffmpeg_camera.cpp/361 [Validated imagesize]
06/13/17 12:26:30.086398 zmc_m3[31486].DB1-zm_ffmpeg_camera.cpp/364 [Calling sws_isSupportedInput]
06/13/17 12:27:33.716914 zmc_m3[31486].INF-zm_monitor.cpp/3125 [Monoprice IP Cam: 1000 - Capturing at 13.70 fps]
06/13/17 12:27:39.165095 zmc_m3[31486].INF-zm_signal.cpp/40 [Got signal 15 (Terminated), exiting]
06/13/17 12:27:39.303686 zmc_m3[31486].DB1-zm_logger.cpp/239 [Terminating Logger]
06/13/17 12:26:33.287108 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:26:33.287259 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:26:37.184025 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:26:37.184167 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:26:46.122766 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:26:46.122904 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:26:53.452969 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:26:53.453138 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:26:53.453832 web_js[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=OFF, syslog=INF] at includes/logger.php line 168
06/13/17 12:26:53.453888 web_js[31494].WAR [Adjusting to minimum width when getting popup size for tag 'watch' - getPopupSize()] at  line 
06/13/17 12:26:56.704180 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:26:56.704299 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:27:01.812250 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:27:01.812398 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:27:07.929680 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:27:07.929835 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:27:17.035145 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:27:17.035289 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:27:22.493448 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:27:22.493584 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:27:22.494388 web_js[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=OFF, syslog=INF] at includes/logger.php line 168
06/13/17 12:27:22.494552 web_js[31494].ERR [getStreamCmdResponse stream error: Socket /var/run/zm/zms-077659s.sock does not exist.  This file is created by zms, and since it does not exist, either zms did not run, or zms exited early.  Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly.  Make sure that ZM is actually recording.  If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information. - checkStreamForErrors()] at ?view=watch line 
06/13/17 12:27:26.225139 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:27:26.225282 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:27:35.714448 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:27:35.714589 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:27:50.011541 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:27:50.011684 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:27:57.048951 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:27:57.049091 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:28:37.296570 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:28:37.296724 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:29:25.430009 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:29:25.430156 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:30:13.567774 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:30:13.567918 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:31:01.774796 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:31:01.774951 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:31:49.910535 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:31:49.910679 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:32:38.029187 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:32:38.029348 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:33:10.107375 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:33:10.107527 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:33:58.246659 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:33:58.246817 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:34:46.373853 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:34:46.373999 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:35:34.513593 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:35:34.513721 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:36:22.651492 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:36:22.651666 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:37:10.818216 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:37:10.818367 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:37:50.875934 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:37:50.876093 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:38:31.072122 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:38:31.072197 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:39:19.257639 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:39:19.257788 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:40:07.398251 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:40:07.398381 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:40:55.530270 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:40:55.530393 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:41:43.644592 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:41:43.644737 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:42:31.755361 web_php[31494].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31494, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:42:31.755517 web_php[31494].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:26:56.218022 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:26:56.218273 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:26:58.246554 web_php[31759].ERR [Socket /var/run/zm/zms-077659s.sock does not exist.  This file is created by zms, and since it does not exist, either zms did not run, or zms exited early.  Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly.  Make sure that ZM is actually recording.  If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information.] at includes/functions.php line 2033
06/13/17 12:27:00.740596 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:27:00.740747 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:27:03.872952 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:27:03.873068 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:27:10.441400 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:27:10.441513 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:27:10.442163 web_js[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=OFF, syslog=INF] at includes/logger.php line 168
06/13/17 12:27:10.442299 web_js[31759].ERR [getStreamCmdResponse stream error: Socket /var/run/zm/zms-077659s.sock does not exist.  This file is created by zms, and since it does not exist, either zms did not run, or zms exited early.  Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly.  Make sure that ZM is actually recording.  If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information. - checkStreamForErrors()] at ?view=watch line 
06/13/17 12:27:19.071429 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:27:19.071570 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:27:24.182389 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:27:24.182513 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:27:33.399477 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:27:33.399627 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:27:38.424761 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:27:38.424909 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:27:53.006527 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:27:53.006645 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:28:21.151436 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:28:21.151614 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:29:09.371934 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:29:09.372092 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:29:57.504688 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:29:57.504834 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:30:45.674850 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:30:45.674997 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:31:33.869814 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:31:33.869975 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:32:21.988271 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:32:21.988421 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:32:54.071416 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:32:54.071561 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:33:42.206558 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:33:42.206713 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:34:30.336749 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:34:30.336896 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:35:18.473314 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:35:18.473458 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:36:06.589862 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:36:06.590004 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:36:54.762332 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:36:54.762480 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:37:42.917203 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:37:42.917349 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:38:15.013779 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:38:15.013938 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:39:03.195190 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:39:03.195313 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:39:51.360370 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:39:51.360518 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:40:39.490827 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:40:39.490986 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:41:27.601900 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:41:27.602046 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:42:15.717340 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:42:15.717488 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
06/13/17 12:42:51.386029 web_php[31759].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zm/zm_debug.log.31759, weblog=INF, syslog=INF] at includes/logger.php line 168
06/13/17 12:42:51.386194 web_php[31759].DBG [Setting cookie parameters to lifetime(0) path(/) domain () secure() httpOnly(1)] at index.php line 117
Baylink
Posts: 338
Joined: Sun Jun 19, 2005 3:19 am

Re: /var/run/zm/ errors when running ZM 1.30.4 on Ubuntu 16.04 using Nginx

Post by Baylink »

The very first thing to try is always to change ZMS_PATH from

/cgi-bin/nph-zms

to

/zm/cgi-bin/nph-zms

in the config page of the UI. Try that and see what happens.

It, the config of your webserver, and the location of your actual nph-zms/zms files all need to concur.
Locked