Stream error

Forum for questions and support relating to the 1.29.x releases only.
TiagoMM
Posts: 7
Joined: Fri Feb 26, 2016 3:24 pm

Stream error

Post by TiagoMM »

I installed Zoneminder in a clean system and get this error while streaming.

2016-02-26 12:15:19.936009 web_js 1895 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-679870s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-02-26 12:15:19.895325 web_php 1895 ERR socket_sendto( /var/run/zm/zms-679870s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2371

I appreciate your help
Vss
Posts: 4
Joined: Fri Feb 26, 2016 5:34 pm

Re: Stream error

Post by Vss »

Hello!
I have the same situation here.

I saw while opening the pop-up to see the streaming of a USB cam of mine the exact same mistake in the log.

In the folder /var/run/zm , a similar file like TiagoMM (zms-XXXXXs.sock) appears just for few seconds and disappear all in a loop while that pop-up is open (no stream available)

I'm running Mint.
All seems to be fine after installation ( CakePHP, API version etc...)
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: Stream error

Post by asker »

you need to post detailed logs - before and after the logs you posted.

Just so you get a better picture of how this works:

1. a process called 'zmc' is responsible for communicating with your camera and capturing streams (often called the 'backend' for streaming)

2. a process called 'zms' or 'nph-zms', in conjunction with your web server is responsible for eventually displaying a feed onto your browser (often called the 'front end' for streaming)

So, if you can't see streams:

a) Its possible your backend is crashing (zmc keeps crashing)
b) Its possible there is an apache or ZM misconfigration that is prohibiting those images to show up in your browser.

This is why we need detailed logs - so we know what is going on, and why only posting 3 lines never helps.
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Vss
Posts: 4
Joined: Fri Feb 26, 2016 5:34 pm

Re: Stream error

Post by Vss »

Well, here's mine :

2016-02-27 01:22:10.784415 web_js 7276 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-309966s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch

2016-02-27 01:22:10.736806 web_php 7276 ERR socket_sendto( /var/run/zm/zms-309966s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2371
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: Stream error

Post by asker »

Again, 2 lines don't help if you read my post. Please post more logs
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Vss
Posts: 4
Joined: Fri Feb 26, 2016 5:34 pm

Re: Stream error

Post by Vss »

Sorry ,
Here's the all thing looping.
I think it's due to permission, but those didn't occur before i reboot...so i'm quiete lost here.
the Cakephp shows everything's fine ... Which configuration file should i check back please?



2016-02-27 02:51:49.522066 web_js 2884 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-060344s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch

2016-02-27 02:51:49.476294 web_php 2884 ERR socket_sendto( /var/run/zm/zms-060344s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2371

2016-02-27 02:51:42.401990 zmdc 1909 ERR 'zmc -d /dev/video1' exited abnormally, exit status 255 zmdc.pl
2016-02-27 02:51:42.364775 zmc_dvideo1 3246 FAT Failed to open video device /dev/video1: Permission denied zm_local_camera.cpp 684

2016-02-27 02:51:42.336931 zmc_dvideo1 3246 INF Starting Capture version 1.29.0 zmc.cpp 250

2016-02-27 02:51:42.273045 zmc_dvideo1 3246 INF No direct match for the selected palette ( zm_local_camera.cpp 412

2016-02-27 02:51:42.239664 zmc_dvideo1 3246 ERR Automatic format selection failed. Falling back to YUYV zm_local_camera.cpp 347

2016-02-27 02:51:42.207327 zmc_dvideo1 3246 ERR Automatic format selection failed to open video device /dev/video1: Permission denied zm_local_camera.cpp 1142

2016-02-27 02:51:42.163343 undef 3246 INF No Server ID or Name specified in config. Not using Multi-Server Mode. zm_config.cpp 139

2016-02-27 02:51:42.109010 zmdc 1909 INF 'zmc -d /dev/video1' starting at 16/02/27 02:51:42, pid = 3246 zmdc.pl

2016-02-27 02:51:42.108260 zmdc 3246 INF 'zmc -d /dev/video1' started at 16/02/27 02:51:42 zmdc.pl
2016-02-27 02:51:42.073630 zmdc 1909 INF Starting pending process, zmc -d /dev/video1 zmdc.pl
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: Stream error

Post by asker »

Code: Select all

2016-02-27 02:51:42.401990	zmdc	1909	ERR	'zmc -d /dev/video1' exited abnormally, exit status 255	zmdc.pl	
2016-02-27 02:51:42.364775	zmc_dvideo1	3246	FAT	Failed to open video device /dev/video1: Permission denied zm_local_camera.cpp	684
This is your problem (at least for now). You seem to be using a local camera and it can't be opened due to permissions problems.
I searched on google with "/dev/video1: Permission denied zoneminder" and it got me viewtopic.php?t=23361
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Vss
Posts: 4
Joined: Fri Feb 26, 2016 5:34 pm

Re: Stream error

Post by Vss »

Bingo!
It works for me, thanks asker!!
TiagoMM
Posts: 7
Joined: Fri Feb 26, 2016 3:24 pm

Re: Stream error

Post by TiagoMM »

Asker, sorry for my poor post. The server that i'm using is at my work. When i get back i will post more information.
Now from my home i can tell you that my problems appears when i click the "monitor" name and the new window pops up. Is there when the log starts to get red.
My cameras are D-link dcs 931L and i'm running zoneminder into ubuntu 14.04 server.
TiagoMM
Posts: 7
Joined: Fri Feb 26, 2016 3:24 pm

Re: Stream error

Post by TiagoMM »

Here is my log when I run zoneminder and the errors when open the monitor

2016-02-29 08:44:27.338172 zmc_m1 2021 INF camrecep: 2000 - Capturing at 26.32 fps zm_monitor.cpp 3131
2016-02-29 08:44:25.334677 web_php 1407 ERR socket_sendto( /var/run/zm/zms-882496s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2371
2016-02-29 08:44:18.332284 web_js 1407 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-882496s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-02-29 08:44:18.283778 web_php 1407 ERR socket_sendto( /var/run/zm/zms-882496s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2371
2016-02-29 08:44:11.286079 web_js 1407 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-882496s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-02-29 08:44:11.218314 web_php 1407 ERR socket_sendto( /var/run/zm/zms-882496s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2371
2016-02-29 08:43:49.172242 zmc_m1 2021 INF camrecep: 1000 - Capturing at 25.00 fps zm_monitor.cpp 3131
2016-02-29 08:43:10.166180 zmfilter 2001 INF Scanning for events zmfilter.pl
2016-02-29 08:43:09.977536 zmc_m1 2021 INF Starting Capture version 1.29.0 zmc.cpp 250
2016-02-29 08:43:09.788373 undef 2021 INF No Server ID or Name specified in config. Not using Multi-Server Mode. zm_config.cpp 139
2016-02-29 08:43:09.757570 zmwatch 2015 INF Watchdog pausing for 30 seconds zmwatch.pl
2016-02-29 08:43:09.659710 zmwatch 2015 INF Watchdog starting zmwatch.pl
2016-02-29 08:43:09.649480 zmdc 2021 INF 'zmc -m 1' started at 16/02/29 08:43:09 zmdc.pl
2016-02-29 08:43:09.641110 zmdc 1971 INF 'zmc -m 1' starting at 16/02/29 08:43:09, pid = 2021 zmdc.pl
2016-02-29 08:43:09.563310 zmdc 1971 INF Starting pending process, zmc -m 1 zmdc.pl
2016-02-29 08:43:09.474460 zmdc 1971 ERR 'zmc -m 1' exited abnormally, exit status 255 zmdc.pl
2016-02-29 08:43:09.209910 zmdc 2015 INF 'zmwatch.pl' started at 16/02/29 08:43:09 zmdc.pl
2016-02-29 08:43:09.208930 zmdc 1971 INF 'zmwatch.pl' starting at 16/02/29 08:43:09, pid = 2015 zmdc.pl
2016-02-29 08:43:09.024166 undef 1997 INF No Server ID or Name specified in config. Not using Multi-Server Mode. zm_config.cpp 139
2016-02-29 08:43:08.709760 zmdc 2007 INF 'zmaudit.pl -c' started at 16/02/29 08:43:08 zmdc.pl
2016-02-29 08:43:08.709750 zmdc 1971 INF 'zmaudit.pl -c' starting at 16/02/29 08:43:08, pid = 2007 zmdc.pl
2016-02-29 08:43:08.403630 zmdc 2001 INF 'zmfilter.pl' started at 16/02/29 08:43:08 zmdc.pl
2016-02-29 08:43:08.403600 zmdc 1971 INF 'zmfilter.pl' starting at 16/02/29 08:43:08, pid = 2001 zmdc.pl
2016-02-29 08:43:08.160390 zmdc 1997 INF 'zmc -m 1' started at 16/02/29 08:43:08 zmdc.pl
2016-02-29 08:43:08.160380 zmdc 1971 INF 'zmc -m 1' starting at 16/02/29 08:43:08, pid = 1997 zmdc.pl
2016-02-29 08:43:07.960460 zmpkg 1958 INF Starting up services zmpkg.pl
2016-02-29 08:43:04.962960 zmdc 1971 INF Server starting at 16/02/29 08:43:04 zmdc.pl
2016-02-29 08:43:04.583500 zmpkg 1958 INF Command: start zmpkg.pl
2016-02-29 08:43:04.547510 zmpkg 1958 INF Sanity checking States table... zmpkg.pl
2016-02-29 08:42:47.223370 web_php 1933 INF Login successful for user "admin" /usr/share/zoneminder/www/includes/functions.php 59

thanks for your help!
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Stream error

Post by bbunge »

TiagoMM wrote:Asker, sorry for my poor post. The server that i'm using is at my work. When i get back i will post more information.
Now from my home i can tell you that my problems appears when i click the "monitor" name and the new window pops up. Is there when the log starts to get red.
My cameras are D-link dcs 931L and i'm running zoneminder into ubuntu 14.04 server.
Did you set your cameras up using this?

https://wiki.zoneminder.com/D-Link#DCS- ... F_DCS-934L
TiagoMM
Posts: 7
Joined: Fri Feb 26, 2016 3:24 pm

Re: Stream error

Post by TiagoMM »

Yes I did. I think the cameras are working fine, I can download events in other computers from the server, but when open the monitor window the errors start to appear.
Anyway thanks for your answer!
TiagoMM
Posts: 7
Joined: Fri Feb 26, 2016 3:24 pm

Re: Stream error

Post by TiagoMM »

I've reinstalled all the server again, including Ubuntu to remove doubts about de installing procedure but still appears the same error.
This time I used this procedure:

https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way

the first time I used this procedure:

http://zoneminder.readthedocs.org/en/la ... buntu-14-x

if anyone knows what can be happening I will appreciate your help
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Stream error

Post by bbunge »

I have a ZM server that several users access to keep an eye on things in the building. I've noticed that some folks will log into ZM with Firefox then open the montage. Then they go back to the original Firefox window and move off of the ZM page. And the same socket send to errors start. They really do no harm, as far as I can tell, and I've given up trying to explain to people why they have to leave the original browser window open.

So, if you have followed my install instructions on a clean server build of Ubuntu and you have enough RAM and Your MySQL database is not having issues (install and run mysqltuner) I would ignore the error messages.

bb
TiagoMM
Posts: 7
Joined: Fri Feb 26, 2016 3:24 pm

Re: Stream error

Post by TiagoMM »

bbunge, maybe I expressed wrong. Sorry for my bad english, I'm from Argentina.
I'm not saying that your install instructions are wrong, i'm saying that I am making something wrong and I need help for resolving it.
The problem is that I can't have a live stream and my boss is going to hang me up haha.
Maybe my server is not the one for this job. It's an IBM x3200.
Locked