Error streaming video on web

Forum for questions and support relating to the 1.29.x releases only.
NeKRoN
Posts: 4
Joined: Tue Feb 02, 2016 11:56 am

Error streaming video on web

Post by NeKRoN »

Hi. After update to v1.29.0 i cant see stream from camera on web. But i can see how they work and write captures.
And after update, in log have new error, when i try open montage:
"Attempt to fetch string value for ZM_OPT_USE_GOOG_RECAPTCHA, actual type is boolean. Try running 'zmupdate.pl -f' to reload config."

I try zmupdate.pl -f, but its not result. Help!
User avatar
iconnor
Posts: 3276
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Error streaming video on web

Post by iconnor »

Please post the output of zmupdate.pl. Also, it must be run as root, so make sure you are doing

sudo zmupdate.pl
NeKRoN
Posts: 4
Joined: Tue Feb 02, 2016 11:56 am

Re: Error streaming video on web

Post by NeKRoN »

iconnor wrote:Please post the output of zmupdate.pl. Also, it must be run as root, so make sure you are doing

sudo zmupdate.pl
"Database already at version 1.29.0, update aborted."


And zmupdate.pl -f


Freshening configuration in database
Loading config from DB
Saving config to DB
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Error streaming video on web

Post by bbunge »

There are a couple of "settings" that need to be changed depending upon your OS distro. We can't guess which version of Linux you are using...
NeKRoN
Posts: 4
Joined: Tue Feb 02, 2016 11:56 am

Re: Error streaming video on web

Post by NeKRoN »

bbunge wrote:There are a couple of "settings" that need to be changed depending upon your OS distro. We can't guess which version of Linux you are using...
3.16.0-30-generic #40~14.04.1-Ubuntu
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Error streaming video on web

Post by bbunge »

User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Error streaming video on web

Post by knight-of-ni »

This will happen if you try to run "sudo zmupdate.pl -f" and it can't get a lock on the database (i.e. zoneminder is still running and holding the dB open).

After running sudo zmupdate.pl -f, if you still see the same message in your logs, then the operation was not successful.
You need to figure out what is preventing zmupdate.pl from getting a lock on your database.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
NeKRoN
Posts: 4
Joined: Tue Feb 02, 2016 11:56 am

Re: Error streaming video on web

Post by NeKRoN »

I stopped zoneminder and apache, zmupdate.pl -f again and... nothing.

/In start i update base with zmupdate and its successful.
tester
Posts: 2
Joined: Sat Feb 06, 2016 11:16 am

Re: Error streaming video on web

Post by tester »

same problem after the recent update.
zmupdate run successful.
Looks like cameras are capturing but no stream in monitor preview. There are errors in log like this:
socket_sendto( /var/run/zm/zms-559798s.sock ) failed: No such file or directory
getStreamCmdResponse stream error: socket_bind( /var/run/zm/zms-559798w.sock ) failed: Address already in use - checkStreamForErrors()

This is Linux UBUNTU_14.04 3.13.0-78-generic #122-Ubuntu SMP Mon Feb 1 23:11:33 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

What should I do to fix? Thanks
tester
Posts: 2
Joined: Sat Feb 06, 2016 11:16 am

Re: Error streaming video on web

Post by tester »

again me))
read carefully all instructions at https://wiki.zoneminder.com/Common_Issu ... untu_14.04

especially in section: Ubuntu 14.04 - ZM 1.26.5 or later to 1.29.0 or the latest PPA version

and repeat it again, though I thought I already did it before.
seems all is fine now.
THANKS my friends!)
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Error streaming video on web

Post by knight-of-ni »

tester wrote:same problem after the recent update.
zmupdate run successful.
Looks like cameras are capturing but no stream in monitor preview. There are errors in log like this:
socket_sendto( /var/run/zm/zms-559798s.sock ) failed: No such file or directory
getStreamCmdResponse stream error: socket_bind( /var/run/zm/zms-559798w.sock ) failed: Address already in use - checkStreamForErrors()

This is Linux UBUNTU_14.04 3.13.0-78-generic #122-Ubuntu SMP Mon Feb 1 23:11:33 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

What should I do to fix? Thanks
This error has nothing to do with the original post and should have gone in its own thread.
socket_bind( /var/run/zm/zms-559798w.sock ) failed: Address already in use
This means you've got something else running on your system that has already created the same socket. That usually means you've got leftovers from a previous session of zoneminder still running. You could go through your process list, find and kill them all, but a reboot might be simpler.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
juggalo818
Posts: 5
Joined: Mon May 30, 2016 12:33 am

Re: Error streaming video on web

Post by juggalo818 »

i have this same problem cameras are blinking info in console are green but there is no video here is my log .... i am useing ubuntu 15.10 and ZoneMinder v1.29.0 please help


Updated: Wed 6th Jul, 7:01pm State: alert Total: 1008 Available: 1008 Displaying: 200
Filter log - Component Server PID Level File Line Reset
Date/Time
Component Server PID Level Message File Line
2016-07-06 18:55:00.410287 web_php 2282 ERR socket_sendto( /var/run/zm/zms-440605s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2371
2016-07-06 18:54:49.845651 web_js 1361 WAR Adjusting to minimum width when getting popup size for tag 'watch' - getPopupSize()
2016-07-06 18:53:49.911121 zmc_m1 1734 INF Monitor-1: 12000 - Capturing at inf fps zm_monitor.cpp 3131
2016-07-06 18:53:49.785692 zmc_m1 1843 ERR Unable to open input 192.168.0.69/img/video.mjpeg due to: No such file or directory zm_ffmpeg_camera.cpp 271
2016-07-06 18:53:49.014695 zmc_m1 1734 INF Monitor-1: 11000 - Capturing at 1000.00 fps zm_monitor.cpp 3131
2016-07-06 18:53:48.113262 zmc_m1 1734 INF Monitor-1: 10000 - Capturing at 1000.00 fps zm_monitor.cpp 3131
2016-07-06 18:53:47.235403 zmc_m1 1734 INF Monitor-1: 9000 - Capturing at 1000.00 fps zm_monitor.cpp 3131
2016-07-06 18:53:46.399384 zmc_m1 1734 INF Monitor-1: 8000 - Capturing at 1000.00 fps zm_monitor.cpp 3131
2016-07-06 18:53:45.432770 zmc_m1 1734 INF Monitor-1: 7000 - Capturing at 1000.00 fps zm_monitor.cpp 3131
2016-07-06 18:53:44.577000 zmc_m1 1734 INF Monitor-1: 6000 - Capturing at 1000.00 fps zm_monitor.cpp 3131
2016-07-06 18:53:43.670104 zmc_m1 1734 INF Monitor-1: 5000 - Capturing at 1000.00 fps zm_monitor.cpp 3131
2016-07-06 18:53:42.420570 zmc_m1 1734 INF Monitor-1: 4000 - Capturing at 1000.00 fps zm_monitor.cpp 3131
2016-07-06 18:53:41.452619 zmc_m1 1734 INF Monitor-1: 3000 - Capturing at 1000.00 fps zm_monitor.cpp 3131
2016-07-06 18:53:40.785694 zmc_m1 1734 INF Monitor-1: 2000 - Capturing at inf fps zm_monitor.cpp 3131
2016-07-06 18:53:40.025148 zmc_m1 1734 INF Monitor-1: 1000 - Capturing at 500.00 fps zm_monitor.cpp 3131
2016-07-06 18:53:39.142715 zmc_m1 1734 ERR Unable to open input 192.168.0.69/img/video.mjpeg due to: No such file or directory zm_ffmpeg_camera.cpp 271
2016-07-06 18:53:38.541706 zmc_m1 1734 INF Priming capture from 192.168.0.69/img/video.mjpeg zm_ffmpeg_camera.cpp 104
2016-07-06 18:53:38.288390 zmc_m1 1734 INF Starting Capture version 1.29.0 zmc.cpp 250
2016-07-06 18:53:37.975642 undef 1734 INF No Server ID or Name specified in config. Not using Multi-Server Mode. zm_config.cpp 139
2016-07-06 18:53:37.716390 zmdc 1388 INF 'zmc -m 1' starting at 16/07/06 15:53:37, pid = 1734 zmdc.pl
2016-07-06 18:53:37.716390 zmdc 1734 INF 'zmc -m 1' started at 16/07/06 15:53:37 zmdc.pl
2016-07-06 18:53:37.645820 zmdc 1388 INF Starting pending process, zmc -m 1 zmdc.pl
2016-07-06 18:53:37.578720 zmdc 1388 ERR 'zmc -m 1' exited abnormally, exit status 255 zmdc.pl
2016-07-06 18:53:36.187137 undef 1574 INF No Server ID or Name specified in config. Not using Multi-Server Mode. zm_config.cpp 139
2016-07-06 18:53:30.002410 zmwatch 1596 INF Watchdog pausing for 30 seconds zmwatch.pl
2016-07-06 18:53:29.909580 zmdc 1388 INF 'zmupdate.pl -c' starting at 16/07/06 15:53:29, pid = 1603 zmdc.pl
2016-07-06 18:53:29.909580 zmdc 1603 INF 'zmupdate.pl -c' started at 16/07/06 15:53:29 zmdc.pl
2016-07-06 18:53:29.888310 zmwatch 1596 INF Watchdog starting zmwatch.pl
2016-07-06 18:53:29.561610 zmdc 1596 INF 'zmwatch.pl' started at 16/07/06 15:53:29 zmdc.pl
2016-07-06 18:53:29.559930 zmdc 1388 INF 'zmwatch.pl' starting at 16/07/06 15:53:29, pid = 1596 zmdc.pl
2016-07-06 18:53:29.402230 zmfilter 1578 INF Scanning for events zmfilter.pl
2016-07-06 18:53:29.090410 zmdc 1583 INF 'zmaudit.pl -c' started at 16/07/06 15:53:29 zmdc.pl
2016-07-06 18:53:29.083270 zmdc 1388 INF 'zmaudit.pl -c' starting at 16/07/06 15:53:29, pid = 1583 zmdc.pl
2016-07-06 18:53:28.613350 zmdc 1578 INF 'zmfilter.pl' started at 16/07/06 15:53:28 zmdc.pl
2016-07-06 18:53:28.613350 zmdc 1388 INF 'zmfilter.pl' starting at 16/07/06 15:53:28, pid = 1578 zmdc.pl
2016-07-06 18:53:28.251280 zmdc 1574 INF 'zmc -m 1' started at 16/07/06 15:53:28 zmdc.pl
2016-07-06 18:53:28.251270 zmdc 1388 INF 'zmc -m 1' starting at 16/07/06 15:53:28, pid = 1574 zmdc.pl
2016-07-06 18:53:27.922590 zmpkg 1367 INF Starting up services zmpkg.pl
2016-07-06 18:53:24.915750 zmdc 1388 INF Server starting at 16/07/06 15:53:24 zmdc.pl
2016-07-06 18:53:24.386190 zmpkg 1367 INF Command: start zmpkg.pl
2016-07-06 18:53:24.009790 zmpkg 1367 INF Sanity checking States table... zmpkg.pl
2016-07-06 18:52:12.989460 zmdc 1362 INF Server shutdown at 16/07/06 15:52:12 zmdc.pl
2016-07-06 18:52:02.731380 zmdc 1362 INF 'zmc -m 1' exited normally zmdc.pl
2016-07-06 18:52:01.475240 zmdc 1362 INF 'zmc -m 1' sending stop to pid 1933 at 16/07/06 15:52:01 zmdc.pl
2016-07-06 18:52:01.370080 zmdc 1362 INF 'zmfilter.pl' exited, signal 14 zmdc.pl
2016-07-06 18:52:01.299860 zmdc 1362 INF 'zmfilter.pl' sending stop to pid 1556 at 16/07/06 15:52:01 zmdc.pl
2016-07-06 18:52:01.226560 zmdc 1362 INF 'zmaudit.pl -c' exited, signal 14 zmdc.pl
2016-07-06 18:52:01.149600 zmdc 1362 INF 'zmaudit.pl -c' sending stop to pid 1566 at 16/07/06 15:52:01 zmdc.pl
2016-07-06 18:52:01.075660 zmdc 1362 INF 'zmupdate.pl -c' exited, signal 14 zmdc.pl
2016-07-06 18:52:00.998460 zmdc 1362 INF 'zmupdate.pl -c' sending stop to pid 1605 at 16/07/06 15:52:00 zmdc.pl
2016-07-06 18:52:00.942200 zmdc 1362 INF 'zmwatch.pl' exited, signal 14 zmdc.pl
2016-07-06 18:52:00.866090 zmdc 1362 INF 'zmwatch.pl' sending stop to pid 1592 at 16/07/06 15:52:00 zmdc.pl
2016-07-06 18:51:59.670670 zmpkg 2326 INF Command: stop zmpkg.pl
2016-07-06 18:51:59.318590 zmpkg 2326 INF Sanity checking States table... zmpkg.pl
2016-07-06 18:50:13.183688 zmc_m1 1933 INF Monitor-1: 15000 - Capturing at 1000.00 fps zm_monitor.cpp 3131
2016-07-06 18:50:12.541335 zmc_m1 1933 INF Monitor-1: 14000 - Capturing at inf fps zm_monitor.cpp 3131
2016-07-06 18:50:12.343891 zmc_m1 2068 ERR Unable to open input 192.168.0.69/img/video.mjpeg due to: No such file or directory zm_ffmpeg_camera.cpp 271
2016-07-06 18:50:12.163173 zmc_m1 1933 INF Monitor-1: 13000 - Capturing at 1000.00 fps zm_monitor.cpp 3131
2016-07-06 18:50:11.412138 zmc_m1 1933 INF Monitor-1: 12000 - Capturing at 1000.00 fps zm_monitor.cpp 3131
2016-07-06 18:50:10.693528 zmc_m1 1933 INF Monitor-1: 11000 - Capturing at inf fps zm_monitor.cpp 3131
2016-07-06 18:50:10.108558 zmc_m1 1933 INF Monitor-1: 10000 - Capturing at 1000.00 fps zm_monitor.cpp 3131
2016-07-06 18:50:09.474899 zmc_m1 1933 INF Monitor-1: 9000 - Capturing at 1000.00 fps zm_monitor.cpp 3131
2016-07-06 18:50:08.827823 zmc_m1 1933 INF Monitor-1: 8000 - Capturing at inf fps zm_monitor.cpp 3131
2016-07-06 18:50:08.395332 zmc_m1 1933 INF Monitor-1: 7000 - Capturing at 1000.00 fps zm_monitor.cpp 3131
2016-07-06 18:50:07.724717 zmc_m1 1933 INF Monitor-1: 6000 - Capturing at 1000.00 fps zm_monitor.cpp 3131
2016-07-06 18:50:06.931768 zmc_m1 1933 INF Monitor-1: 5000 - Capturing at 1000.00 fps zm_monitor.cpp 3131
2016-07-06 18:50:05.872724 zmc_m1 1933 INF Monitor-1: 4000 - Capturing at inf fps zm_monitor.cpp 3131
2016-07-06 18:50:05.085789 zmc_m1 1933 INF Monitor-1: 3000 - Capturing at 1000.00 fps zm_monitor.cpp 3131
2016-07-06 18:50:04.338775 zmc_m1 1933 INF Monitor-1: 2000 - Capturing at 1000.00 fps zm_monitor.cpp 3131
2016-07-06 18:50:03.603536 zmc_m1 1933 INF Monitor-1: 1000 - Capturing at 333.33 fps zm_monitor.cpp 3131
2016-07-06 18:50:02.732290 zmc_m1 1933 ERR Unable to open input 192.168.0.69/img/video.mjpeg due to: No such file or directory zm_ffmpeg_camera.cpp 271
2016-07-06 18:50:01.915992 zmc_m1 1933 INF Priming capture from 192.168.0.69/img/video.mjpeg zm_ffmpeg_camera.cpp 104
2016-07-06 18:50:00.900005 zmc_m1 1933 INF Starting Capture version 1.29.0 zmc.cpp 250
2016-07-06 18:49:59.889840 undef 1933 INF No Server ID or Name specified in config. Not using Multi-Server Mode. zm_config.cpp 139
2016-07-06 18:49:58.614780 zmdc 1933 INF 'zmc -m 1' started at 16/07/06 15:49:58 zmdc.pl
2016-07-06 18:49:58.614740 zmdc 1362 INF 'zmc -m 1' starting at 16/07/06 15:49:58, pid = 1933 zmdc.pl
2016-07-06 18:49:58.145290 zmdc 1362 INF Starting pending process, zmc -m 1 zmdc.pl
2016-07-06 18:49:57.651580 zmdc 1362 ERR 'zmc -m 1' exited abnormally, exit status 255 zmdc.pl
2016-07-06 18:49:54.326410 undef 1538 INF No Server ID or Name specified in config. Not using Multi-Server Mode. zm_config.cpp 139
2016-07-06 18:49:45.583630 zmwatch 1592 INF Watchdog pausing for 30 seconds zmwatch.pl
2016-07-06 18:49:45.477320 zmdc 1605 INF 'zmupdate.pl -c' started at 16/07/06 15:49:45 zmdc.pl
2016-07-06 18:49:45.477310 zmdc 1362 INF 'zmupdate.pl -c' starting at 16/07/06 15:49:45, pid = 1605 zmdc.pl
2016-07-06 18:49:45.455400 zmwatch 1592 INF Watchdog starting zmwatch.pl
2016-07-06 18:49:45.010070 zmdc 1592 INF 'zmwatch.pl' started at 16/07/06 15:49:45 zmdc.pl
2016-07-06 18:49:45.008170 zmdc 1362 INF 'zmwatch.pl' starting at 16/07/06 15:49:45, pid = 1592 zmdc.pl
2016-07-06 18:49:44.896830 zmfilter 1556 INF Scanning for events zmfilter.pl
2016-07-06 18:49:44.465790 zmdc 1566 INF 'zmaudit.pl -c' started at 16/07/06 15:49:44 zmdc.pl
2016-07-06 18:49:44.465720 zmdc 1362 INF 'zmaudit.pl -c' starting at 16/07/06 15:49:44, pid = 1566 zmdc.pl
2016-07-06 18:49:44.030320 zmdc 1362 INF 'zmfilter.pl' starting at 16/07/06 15:49:44, pid = 1556 zmdc.pl
2016-07-06 18:49:44.030320 zmdc 1556 INF 'zmfilter.pl' started at 16/07/06 15:49:44 zmdc.pl
2016-07-06 18:49:43.716500 zmdc 1538 INF 'zmc -m 1' started at 16/07/06 15:49:43 zmdc.pl
2016-07-06 18:49:43.716360 zmdc 1362 INF 'zmc -m 1' starting at 16/07/06 15:49:43, pid = 1538 zmdc.pl
2016-07-06 18:49:43.423130 zmpkg 1335 INF Starting up services zmpkg.pl
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: Error streaming video on web

Post by SteveGilvarry »

It doesn't like the url you are using for the camera.
Unable to open input 192.168.0.69/img/video.mjpeg due to: No such file or directory zm_ffmpeg_camera.cpp 271
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
juggalo818
Posts: 5
Joined: Mon May 30, 2016 12:33 am

Re: Error streaming video on web

Post by juggalo818 »

that is the the url the other system has the only differences in the system is this one is v1.29.1 and the working one is v1.28.1
juggalo818
Posts: 5
Joined: Mon May 30, 2016 12:33 am

Re: Error streaming video on web

Post by juggalo818 »

i typed in another camera and now i get this ....

2016-07-06 21:18:38.091208 web_js 2676 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-408800s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-07-06 21:18:37.982378 web_php 2676 ERR socket_sendto( /var/run/zm/zms-408800s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2375
2016-07-06 21:18:26.025460 web_js 2246 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-408800s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-07-06 21:18:25.807957 web_php 2246 ERR socket_sendto( /var/run/zm/zms-408800s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2375
2016-07-06 21:18:13.799492 web_js 2246 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-408800s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-07-06 21:18:13.657113 web_php 2246 ERR socket_sendto( /var/run/zm/zms-408800s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2375
2016-07-06 21:18:01.657382 web_js 1393 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-408800s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-07-06 21:18:01.488545 web_php 1393 ERR socket_sendto( /var/run/zm/zms-408800s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2375
2016-07-06 21:17:54.886390 web_js 2188 WAR Adjusting to minimum width when getting popup size for tag 'watch' - getPopupSize()
2016-07-06 21:17:49.568531 zma_m1 2666 INF In mode 3/1, warming up zma.cpp 142
2016-07-06 21:17:48.890542 zmc_m1 2662 WAR Option rtsp_transport not recognized by ffmpeg zm_ffmpeg_camera.cpp 281
2016-07-06 21:17:48.522507 zma_m1 2666 WAR Waiting for capture daemon zm_monitor.cpp 503
2016-07-06 21:17:48.414164 zmc_m1 2662 WAR Unable to parse ffmpeg option 0 '', expecting key=value zm_ffmpeg_camera.cpp
Locked