Applying State Change Please Wait

Forum for questions and support relating to the 1.26.x releases only.
Post Reply
TenLeftFingers
Posts: 3
Joined: Sun Apr 10, 2016 4:56 pm

Applying State Change Please Wait

Post by TenLeftFingers » Sun Apr 10, 2016 5:05 pm

I've installed 1.26.5 on a Raspberry Pi running Raspbian. 1.26.5 is what's included in their repo.

I followed the wiki guide (which is for Ubuntu) and with the exception of adding the iconner repo, I followed the instructions to the letter.

But the state never changes to from Stopped in the control panel. There are no logs in /var/log/zm either.

If instead of cliccking "Stopped" I click "version", I get this: "Version mismatch, system is version 1.26.5, database is ZM_DYN_DB_VERSION.
Please run zmupdate.pl to update"

zmupdate.pl fails with errors:
Bareword "ZM_PATH_LOGS" not allowed while "strickt subs" in use at /usr/share/perl5/ZoneMinder/Logger.pm line 153
BEGIN not safe after errors--complation aborted... Logger.pm line 168
Compilation failde in require at /usr/bin/zmupdate.pl line 48
BEGIN failed--compilation aborted at /usr/bin/zmupdate.pl line 48

It's a mess.. is there an 'easy way' guide that works on the raspberry pi?

Edit: also tried this raspberry pi specific tutorial but no improvement: http://www.holylinux.net/content/raspbe ... zoneminder

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

Re: Applying State Change Please Wait

Post by bbunge » Mon Apr 11, 2016 1:06 am

Looks like your version of Linux is based on Debian Jesse. Here is the install for Debian 8:

https://wiki.zoneminder.com/Debian_8_64 ... e_Easy_Way

What you need to do is create the database in mysql.
Create Zoneminder database in MySQL (Note: this also creates the default Zoneminder user and permissions in MySQL)

mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql

mysql -uroot -p -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"

mysqladmin -uroot -p reload

Versions of Ubuntu prior to 15.10 created the database for ZM automatically. Debian installs had to create the database manually.

Hope this helps.

bb

TenLeftFingers
Posts: 3
Joined: Sun Apr 10, 2016 4:56 pm

Re: Applying State Change Please Wait

Post by TenLeftFingers » Mon Apr 11, 2016 12:06 pm

Thanks bbunge, I definitely recall running those commands and I see them in my .bash_history

When I run:

mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
- I get: ERROR 1050 (42S01) at line 265: Table 'Logs' already exists

mysql -uroot -p -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"
mysqladmin -uroot -p reload
- I get no output after entering the password

The situation is unchanged though. I tried restarting the server as well as rebooting.
It would be great if there was a raspberry pi image set up and ready to be copied to SD.

Edit: I haven't done this part from the wiki you linked to:
deb http://http.debian.net/debian jessie-backports main in sources.list
I'll try that now.
Edit 2: only pypy-upstream is available as an upgrade from there. So Zoneminder must be the same version.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests