no stream

Forum for questions and support relating to the 1.30.x releases only.
Locked
speeskeek
Posts: 9
Joined: Thu Dec 18, 2014 11:16 am

no stream

Post by speeskeek »

Hi there,
just (few minutes ago) upgraded to 1.30 via git as described on the readthedocs:

Code: Select all

git clone https://github.com/ZoneMinder/ZoneMinder.git
cd ZoneMinder/
git submodule init
git submodule update
cmake .
make
sudo make install
Now I cant see my live-streams. My cameras are allways recording. The evens are made and the thumbnails are visible. But I cant view the event stream.
Running on debian 3.16.7

Log of zoneminder is telling me:

Code: Select all

2016-06-10 12:42:01.253316	undef		24889	ERR	Config mismatch, expected 225 items, read 214. Try running 'zmupdate.pl -f' to reload config.	zm_config.cpp	293
other error showing up (and I think this is the problem) is:

Code: Select all

2016-06-10 12:44:34.463100	web_php		17110	ERR	socket_sendto( /tmp/zm/zms-467283s.sock ) failed: No such file or directory	/usr/share/zoneminder/includes/functions.php	2371
I had this thing earlier, but never on this server/install. the directory /tmp/zm exists.
I'm happyly running zoneminder on ngnix since a long time.

I'd aso remark that my DB is 1.30 and the version on the webpage/system is 1.29

thank you
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: no stream

Post by rockedge »

Check the paths to the console php code! It was /usr/share/zoneminder. now it is /usr/local/share/zoneminder. Your just using the older web console code....I think.....also restart the mysql server I had date/time difference issues that made viewing events very buggy. So adjust your Apache conf to alias the correct path. I think this is your problem...I may be way off...let me know....Good Luck!
speeskeek
Posts: 9
Joined: Thu Dec 18, 2014 11:16 am

Re: no stream

Post by speeskeek »

ok the 1.29 - 1.30 problem is indeed solved by changing /usr/share to /usr/local/share

but the socket problem persists.
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: no stream

Post by rockedge »

have you run ?

Code: Select all

zmupdate.pl -f
speeskeek
Posts: 9
Joined: Thu Dec 18, 2014 11:16 am

Re: no stream

Post by speeskeek »

Code: Select all

root ~ # zmupdate.pl -f
Subroutine loadConfigFromDB redefined at /usr/share/perl5/ZoneMinder/ConfigAdmin.pm line 69.
Subroutine saveConfigToDB redefined at /usr/share/perl5/ZoneMinder/ConfigAdmin.pm line 118.
Subroutine main::saveConfigToDB redefined at /usr/local/bin/zmupdate.pl line 75
        main::BEGIN() called at /usr/local/bin/zmupdate.pl line 75
        eval {...} called at /usr/local/bin/zmupdate.pl line 75
Subroutine main::loadConfigFromDB redefined at /usr/local/bin/zmupdate.pl line 75
        main::BEGIN() called at /usr/local/bin/zmupdate.pl line 75
        eval {...} called at /usr/local/bin/zmupdate.pl line 75

Freshening configuration in database
Loading config from DB
Saving config to DB
root ~ #
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: no stream

Post by rockedge »

I will have all green log indicators and then a

Code: Select all

socket_sendto( /tmp/zm/zms-xxxxxx.sock ) failed: No such file or directory
will show up. So far if I shut the logging off, I would not notice an error in the performance or function of ZM.
speeskeek
Posts: 9
Joined: Thu Dec 18, 2014 11:16 am

Re: no stream

Post by speeskeek »

lucky you :)

here the sreams are not shown, I get a 'missing picture'
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: no stream

Post by rockedge »

check the path to cgi-bin. that has also changed from /usr/lib/zoneminder/cgi-bin
to /usr/local/libexec/zoneminder/cgi-bin.

Change the alias for the /cgi-bin in your Apache config. without the nph-zms and zms binaries you will see no streams.
speeskeek
Posts: 9
Joined: Thu Dec 18, 2014 11:16 am

Re: no stream

Post by speeskeek »

hi thanks for the help rockedge.

but as stated I'm using ngnix.
my conf is like this:

Code: Select all

ocation /images/ {
        alias /usr/local/share/zoneminder/images/;
    }

    location  /cgi-bin/ {
        alias /usr/local/libexec/zoneminder/cgi-bin;
        proxy_pass    http://127.0.0.1:4085;
    }

    location ~ \.php$ {
        root /usr/local/share/zoneminder;
        fastcgi_pass unix:/var/run/php5-fpm-zoneminder-webgui.sock;
        include        fastcgi_params;
        fastcgi_param  SCRIPT_FILENAME  /usr/local/share/zoneminder/$fastcgi_sc$
        fastcgi_param  DOCUMENT_ROOT /usr/local/share/zoneminder;
    }
speeskeek
Posts: 9
Joined: Thu Dec 18, 2014 11:16 am

Re: no stream

Post by speeskeek »

is there any way I can really delete ALL zoneminder files?
so I start from scratch?

the system running zoneminder is also my NAS doing other stuff (serving files, playing music in the house, backup system, virtual box, …) so I'd like to keep the nas be doing that and not wanting to reinstall and reconfiguere those things.
speeskeek
Posts: 9
Joined: Thu Dec 18, 2014 11:16 am

Re: no stream

Post by speeskeek »

ok … fixed it :)

dit a apt-get remove
and did the install again (read the docs debian install) - had an issue like this: https://github.com/ZoneMinder/ZoneMinder/issues/1413
streams seems to be working

thanks y'all !
Locked