Page 1 of 1

no stream

Posted: Fri Jun 10, 2016 10:43 am
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

Re: no stream

Posted: Fri Jun 10, 2016 11:11 am
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!

Re: no stream

Posted: Fri Jun 10, 2016 6:59 pm
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.

Re: no stream

Posted: Fri Jun 10, 2016 9:42 pm
by rockedge
have you run ?

Code: Select all

zmupdate.pl -f

Re: no stream

Posted: Sat Jun 11, 2016 11:30 am
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 ~ #

Re: no stream

Posted: Sat Jun 11, 2016 2:37 pm
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.

Re: no stream

Posted: Sat Jun 11, 2016 5:44 pm
by speeskeek
lucky you :)

here the sreams are not shown, I get a 'missing picture'

Re: no stream

Posted: Sat Jun 11, 2016 10:27 pm
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.

Re: no stream

Posted: Sun Jun 12, 2016 5:19 pm
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;
    }

Re: no stream

Posted: Sun Jun 12, 2016 5:59 pm
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.

Re: no stream

Posted: Sun Jun 12, 2016 6:10 pm
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 !