Re: Upgrade from 1.28 to 1.29, cannot run zmupdate.pl
Posted: Tue May 24, 2016 1:52 pm
So I tried dumping the DB and then using the instructions found here: https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_waybbunge wrote:Your best bet would be to dump your current database and start with a fresh one. Yes, you could run each .sql which is what the zmupdate does but you could still have issues. You may be farther ahead to install Ubuntu 16.04 server with ZM 1.29.0
bb
- 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
Code: Select all
May 24 07:42:28 mythbox zmpkg[29342]: INF [Sanity checking States table...]
May 24 07:42:28 mythbox zmpkg[29342]: INF [Command: start]
May 24 07:42:28 mythbox zmpkg[29342]: FAT [Version mismatch, system is version 1.28.0, database is 1.29.0, please run zmupdate.pl to update.]
Code: Select all
> sudo zmupdate.pl
Initiating database upgrade to version 1.28.0 from version 1.29.0
Please ensure that ZoneMinder is stopped on your system prior to upgrading the database.
Press enter to continue or ctrl-C to stop :
Do you wish to take a backup of your database prior to upgrading?
This may result in a large file in /tmp/zm if you have a lot of events.
Press 'y' for a backup or 'n' to continue : n
Upgrading database to version 1.28.0
Loading config from DB
No option 'ZM_AUDIT_MIN_AGE' found, removing at /usr/local/share/perl/5.18.2/ZoneMinder/ConfigAdmin.pm line 89, <STDIN> line 2.
No option 'ZM_CSS_DEFAULT' found, removing at /usr/local/share/perl/5.18.2/ZoneMinder/ConfigAdmin.pm line 89, <STDIN> line 2.
No option 'ZM_FFMPEG_OPEN_TIMEOUT' found, removing at /usr/local/share/perl/5.18.2/ZoneMinder/ConfigAdmin.pm line 89, <STDIN> line 2.
No option 'ZM_OPT_GOOG_RECAPTCHA_SECRETKEY' found, removing at /usr/local/share/perl/5.18.2/ZoneMinder/ConfigAdmin.pm line 89, <STDIN> line 2.
No option 'ZM_OPT_GOOG_RECAPTCHA_SITEKEY' found, removing at /usr/local/share/perl/5.18.2/ZoneMinder/ConfigAdmin.pm line 89, <STDIN> line 2.
No option 'ZM_OPT_USE_API' found, removing at /usr/local/share/perl/5.18.2/ZoneMinder/ConfigAdmin.pm line 89, <STDIN> line 2.
No option 'ZM_OPT_USE_GOOG_RECAPTCHA' found, removing at /usr/local/share/perl/5.18.2/ZoneMinder/ConfigAdmin.pm line 89, <STDIN> line 2.
No option 'ZM_PATH_ARP' found, removing at /usr/local/share/perl/5.18.2/ZoneMinder/ConfigAdmin.pm line 89, <STDIN> line 2.
No option 'ZM_SKIN_DEFAULT' found, removing at /usr/local/share/perl/5.18.2/ZoneMinder/ConfigAdmin.pm line 89, <STDIN> line 2.
Saving config to DB
Database upgrade to version 1.28.0 successful.
>
Code: Select all
May 24 07:47:13 mythbox zmdc[29459]: WAR [Can't find process with command of 'zma -m 1']
May 24 07:47:13 mythbox zmdc[29459]: WAR [Can't find process with command of 'zmc -d /dev/video0']
May 24 07:47:13 mythbox zmdc[29459]: INF ['zmc -d /dev/video0' starting at 16/05/24 07:47:13, pid = 29599]
May 24 07:47:13 mythbox zmdc[29599]: INF ['zmc -d /dev/video0' started at 16/05/24 07:47:13]
May 24 07:47:13 mythbox undef[29599]: ERR [Config mismatch, expected 224 items, read 215. Try running 'zmupdate.pl -f' to reload config.]
May 24 07:47:13 mythbox zmdc[29459]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
May 24 07:47:13 mythbox zmdc[29459]: INF [Starting pending process, zmc -d /dev/video0]
May 24 07:47:13 mythbox zmdc[29459]: INF ['zmc -d /dev/video0' starting at 16/05/24 07:47:13, pid = 29607]
May 24 07:47:13 mythbox zmdc[29607]: INF ['zmc -d /dev/video0' started at 16/05/24 07:47:13]
May 24 07:47:13 mythbox zmdc[29459]: WAR [Can't find process with command of 'zma -m 1']
May 24 07:47:14 mythbox undef[29607]: ERR [Config mismatch, expected 224 items, read 215. Try running 'zmupdate.pl -f' to reload config.]
May 24 07:47:14 mythbox zmdc[29459]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
May 24 07:47:15 mythbox zmwatch[29495]: ERR [Memory map file '/dev/shm/zm.mmap.1' does not exist. zmc might not be running.]
May 24 07:47:15 mythbox zmwatch[29495]: INF [Restarting capture daemon for Backyard, shared data not valid]
May 24 07:47:15 mythbox zmdc[29459]: INF ['zmc -d /dev/video0' starting at 16/05/24 07:47:15, pid = 29626]
May 24 07:47:15 mythbox zmdc[29626]: INF ['zmc -d /dev/video0' started at 16/05/24 07:47:15]
May 24 07:47:16 mythbox undef[29626]: ERR [Config mismatch, expected 224 items, read 215. Try running 'zmupdate.pl -f' to reload config.]
May 24 07:47:16 mythbox zmdc[29459]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
May 24 07:47:26 mythbox zmdc[29459]: INF [Starting pending process, zmc -d /dev/video0]
May 24 07:47:26 mythbox zmdc[29459]: INF ['zmc -d /dev/video0' starting at 16/05/24 07:47:26, pid = 29632]
May 24 07:47:26 mythbox zmdc[29632]: INF ['zmc -d /dev/video0' started at 16/05/24 07:47:26]
May 24 07:47:26 mythbox zmwatch[29495]: ERR [Memory map file '/dev/shm/zm.mmap.1' does not exist. zmc might not be running.]
May 24 07:47:26 mythbox zmwatch[29495]: INF [Restarting capture daemon for Backyard, shared data not valid]
May 24 07:47:26 mythbox undef[29632]: ERR [Config mismatch, expected 224 items, read 215. Try running 'zmupdate.pl -f' to reload config.]
May 24 07:47:26 mythbox zmdc[29459]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
May 24 07:47:26 mythbox zmdc[29459]: INF ['zmc -d /dev/video0' starting at 16/05/24 07:47:26, pid = 29637]
May 24 07:47:26 mythbox zmdc[29637]: INF ['zmc -d /dev/video0' started at 16/05/24 07:47:26]
May 24 07:47:26 mythbox undef[29637]: ERR [Config mismatch, expected 224 items, read 215. Try running 'zmupdate.pl -f' to reload config.]
May 24 07:47:26 mythbox zmdc[29459]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Code: Select all
> md5sum /usr/bin/zmupdate.pl
931e8cb03ba095d871299e6bbd401232 /usr/bin/zmupdate.pl
>