Cannot view Stream or events (broken image link)

Forum for questions and support relating to the 1.29.x releases only.
Locked
goth2boss
Posts: 3
Joined: Mon Mar 14, 2016 8:20 pm

Cannot view Stream or events (broken image link)

Post by goth2boss »

Hello,

I have an issue where I cannot view the stream nor the events created by zoneminder. Logs show these errors.

zmupdate 2118 ERR Error check failed: '500 Can't connect to update.zoneminder.com:443 (Connection refused)' zmupdate.pl

web_js 11072 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-603241s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch

29777 ERR socket_sendto( /var/run/zm/zms-603241s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2371

I am on Ubuntu 14.04.4

Thanks
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Cannot view Stream or events (broken image link)

Post by bbunge »

Check the zms path and uncheck check with zoneminder for updates. See the instructions in the WIKI.
goth2boss
Posts: 3
Joined: Mon Mar 14, 2016 8:20 pm

Re: Cannot view Stream or events (broken image link)

Post by goth2boss »

bbunge wrote:Check the zms path and uncheck check with zoneminder for updates. See the instructions in the WIKI.
Thank You. This fixed my issue. I took a look and added this path

/zm/cgi-bin/nph-zms

Now I have another problem. I have a total of 12 camera's and only half of them work.

Mar 15 17:20:18 zoneminder unde0[2332]: ERR [Got signal 7 (Bus error), crashing]
Mar 15 17:20:18 zoneminder unde0[2332]: ERR [Signal address is 0xa68c1004, from 0xb22997c2]
Mar 15 17:20:18 zoneminder unde0[2332]: ERR [Backtrace 0: /usr/lib/zoneminder/cgi-bin/nph-zms(_Z14zm_die_handleriP9siginfo_tPv+0x7a) [0xb2306e9a]]
Mar 15 17:20:18 zoneminder unde0[2332]: ERR [Backtrace 1: [0xb2228410]]
Mar 15 17:20:19 zoneminder unde0[2332]: ERR [Backtrace 2: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZNK7Monitor6GetFPSEv+0x22) [0xb22997c2]]
Mar 15 17:20:19 zoneminder unde0[2332]: ERR [Backtrace 3: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZN13MonitorStream9runStreamEv+0x51) [0xb22a6651]]
Mar 15 17:20:19 zoneminder unde0[2332]: ERR [Backtrace 4: /usr/lib/zoneminder/cgi-bin/nph-zms(main+0xb12) [0xb2260d12]]
Mar 15 17:20:19 zoneminder unde0[2332]: ERR [Backtrace 5: /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0xb0bbda83]]
Mar 15 17:20:19 zoneminder unde0[2332]: ERR [Backtrace 6: /usr/lib/zoneminder/cgi-bin/nph-zms(+0x16d61) [0xb2261d61]]
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Cannot view Stream or events (broken image link)

Post by bbunge »

How much RAM do you have? Ubuntu grabs half of the RAM to use for tmpfs and depending upon the resolution you have your cameras set for you could be out of mapped memory.
Do a "df" and check /run/shm If the Available space is used up this is your problem. Take all your cameras down to the lowest resolution in Zoneminder (320x240?) and see if they will all run. If needed add RAM. You can also increase the size of /run/shm but you just might take too much from the OS and MySQL which will cause problems.
goth2boss
Posts: 3
Joined: Mon Mar 14, 2016 8:20 pm

Re: Cannot view Stream or events (broken image link)

Post by goth2boss »

bbunge wrote:How much RAM do you have? Ubuntu grabs half of the RAM to use for tmpfs and depending upon the resolution you have your cameras set for you could be out of mapped memory.
Do a "df" and check /run/shm If the Available space is used up this is your problem. Take all your cameras down to the lowest resolution in Zoneminder (320x240?) and see if they will all run. If needed add RAM. You can also increase the size of /run/shm but you just might take too much from the OS and MySQL which will cause problems.
Doubling the RAM on my zoneminder vm fixed the issue. Total of 4GB now.

@bbunge thank you very much! :D
fakeluke
Posts: 4
Joined: Thu Mar 17, 2016 10:17 pm

Re: Cannot view Stream or events (broken image link)

Post by fakeluke »

Hi guys,

I have a similar issue after a upgrade to 1.29 (centos 6). The update went smooth and everything is working fin but the viewing. I can still look at the still imgs but not at the video.

I upgrade the path to "/zm/cgi-bin/nph-zms" in the options menu and checked the zoneminder.conf for the SriptAlias "ScriptAlias /zm/cgi-bin/ "/usr/libexec/zoneminder/cgi-bin/". I think that is looking good.

But when im restarting httpd i get an warning massage that there is an overlap on an earlier Alias.

When I'm looking at the error logs I see: "getStreamCmdResponse stream error: socket_sendto( /var/lib/zoneminder/sock/zms-958974s.sock ) failed: No such file or directory - checkStreamForErrors()"

So it looks like that somewhere there is another SriptAlias to /var/lib/... instead of /var/libexec/...
I'm an absolutely Apache noob and I have no plan after now searching for 2 hours where the false SriptAlias can be.

Thanks for suggestion in advance!

luke
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Cannot view Stream or events (broken image link)

Post by bbunge »

The path and for ubuntu is not the same as centos. Check the centos install/upgrade instructions from the repro.
fakeluke
Posts: 4
Joined: Thu Mar 17, 2016 10:17 pm

Re: Cannot view Stream or events (broken image link)

Post by fakeluke »

Thanks for the advice.

Ah sorry... it was late at night yesterday and the path do exists (/var/lib/zoneminder/sock/ and /usr/libexec/zoneminder/cgi-bin/) and are configured like in the instructions.

But still the problem exists. I can't watch videos and im getting these "getCmdResponse stream error: socket_sendto( /var/lib/zoneminder/sock/zms-478504s.sock ) failed: No such file or directory - checkStreamForErrors()" errors. Seams to me that it is not creating the xxxxxx.sock (/var/lib/zoneminder/sock/).
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Cannot view Stream or events (broken image link)

Post by knight-of-ni »

fakeluke wrote: I upgrade the path to "/zm/cgi-bin/nph-zms" in the options menu and checked the zoneminder.conf for the SriptAlias "ScriptAlias /zm/cgi-bin/ "/usr/libexec/zoneminder/cgi-bin/". I think that is looking good.
Why did you change the path in the Options menu? This change just broke your system.
fakeluke wrote: Ah sorry... it was late at night yesterday and the path do exists (/var/lib/zoneminder/sock/ and /usr/libexec/zoneminder/cgi-bin/) and are configured like in the instructions.
No, that isn't what bbunge was referring to. Now go back and read the README again. Notice, that, for CentOS 6, there is no mention in the README of changing PATH_ZMS under Options. That is because you should not change it. What you need to do is put everything back to the way it was before you started pushing buttons. You need to get this right. Otherwise, when the next ZoneMinder package rolls out, you will find yourself in a broken state again and will be right back here in the forums.
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/
fakeluke
Posts: 4
Joined: Thu Mar 17, 2016 10:17 pm

Re: Cannot view Stream or events (broken image link)

Post by fakeluke »

thanks for your responses and sorry for wasting your time.

I changed everything back and now everything is working on the website.

Only think i have problems with is with the iOS APP zoneview. But i have a look into this later.
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Cannot view Stream or events (broken image link)

Post by knight-of-ni »

fakeluke wrote:thanks for your responses and sorry for wasting your time.

I changed everything back and now everything is working on the website.

Only think i have problems with is with the iOS APP zoneview. But i have a look into this later.
I know it might have seemed like I was simply giving you a hard time. The strange reality is that we get a couple guys each week come into this forum and make posts exactly like the one you created. They are easy to spot, but the thing that gets me is why it is happening in the first place. So if it feels like I'm giving you the Spanish Inquisition, I'm really trying to figure out what you were thinking, which lead you to do what you did. If I can figure out a behaviour pattern, then maybe I can figure out how to keep it from happening. If there was some thing that lead you to go down the path of changing what you changed, then I really would like to hear about it.

I am not familiar with the zoneview app. You can try asking in our mobile forum to find out if anyone is familiar with it, but you may be better off contacting the author.
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/
fakeluke
Posts: 4
Joined: Thu Mar 17, 2016 10:17 pm

Re: Cannot view Stream or events (broken image link)

Post by fakeluke »

Oh don't worry I get why you are doing it and I always feel like a dumbass for asking thinks when the solution is so simple.
I'm learning a lot in the process of fiddling around.

I just got into this position because I was updating and everything was working but the viewing. So I started fooling around and was reading in some threats that people got it working by changing the paths without reading carefully that only a few Distros where in the need of changing it.

I don't personally know why it is working now and not after the update right away before I changed things.

The original reason I wanted to update was because of the zmNinja Mobile App. Got PHP54 working under Centos6 but it is also not working like the other App. But that problem I'm trying to tackle next week.

PS: Love ZoneMinder and I'm using it for a good 1,5 years now.
Locked