Update of ZoneMinder clears database!

Forum for questions and support relating to the 1.24.x releases only.
Locked
joako
Posts: 30
Joined: Mon Nov 01, 2010 7:10 am

Update of ZoneMinder clears database!

Post by joako »

Why is this?

Code: Select all

store-server:/usr/src # zypper up ZoneMinder-MP
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW packages are going to be installed:
  php5-zip zip 

The following package is going to be upgraded:
  ZoneMinder-MP 

1 package to upgrade, 2 new.
Overall download size: 936.0 KiB. After the operation, additional 430.0 KiB will be used.
Continue? [y/n/?] (y): y
Retrieving package zip-2.32-83.1.x86_64 (1/3), 116.0 KiB (348.0 KiB unpacked)
Retrieving: zip-2.32-83.1.x86_64.rpm [done]
Installing: zip-2.32-83.1 [done]
Retrieving package php5-zip-5.3.3-0.17.1.x86_64 (2/3), 39.0 KiB (85.0 KiB unpacked)
Retrieving: php5-zip-5.3.3-0.17.1.x86_64.rpm [done]
Installing: php5-zip-5.3.3-0.17.1 [done]
Retrieving package ZoneMinder-MP-1.24.2-11.1.x86_64 (3/3), 781.0 KiB (5.1 MiB unpacked)
Retrieving: ZoneMinder-MP-1.24.2-11.1.x86_64.rpm [done (209.6 KiB/s)]
Installing: ZoneMinder-MP-1.24.2-11.1 [done]
Additional rpm output:
warning: /etc/zm.conf created as /etc/zm.conf.rpmnew
Starting SuSEconfig, the SuSE Configuration Tool...
Running module permissions only
Reading /etc/sysconfig and updating the system...
Executing /sbin/conf.d/SuSEconfig.permissions...
Checking permissions and ownerships - using the permissions files
        /etc/permissions
        /etc/permissions.easy
        /etc/permissions.d/ZoneMinder-MP
        /etc/permissions.d/ZoneMinder-MP.easy
        /etc/permissions.d/mail-server
        /etc/permissions.d/postfix
        /etc/permissions.local
setting /usr/bin/zmfix to root:www 4755. (wrong owner/group root:root permissions 0755)
Finished.
..failed
insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:'  entry: please add even if empty.
insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:'  entry: please add even if empty.
insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:'  entry: please add even if empty.
insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:'  entry: please add even if empty.
insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:'  entry: please add even if empty.
insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:'  entry: please add even if empty.
insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:'  entry: please add even if empty.
insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:'  entry: please add even if empty.
insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:'  entry: please add even if empty.
insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:'  entry: please add even if empty.


store-server:/usr/src # /etc/init.d/zm stop
run zm_database_init first to create/update zm database
Shutting down ZoneMinder Daemon                                                                                                                                                           done
store-server:/usr/src # /etc/init.d/zm start
run zm_database_init first to create/update zm database
Starting ZoneMinder Daemon                                                                                                                                                                failed
store-server:/usr/src # zm_database_init 
INFO: when db is correctly installed and you just reinstalled rpm, then answer all questions with 'n'
new install create db
run mysql command to create db as user root? [Y/n]: y
create user zm_admin for zoneminder? [Y/n]: n
removing lock file
done
store-server:/usr/src # /etc/init.d/zm start
Starting ZoneMinder Daemon                                                                                                                                                                done
store-server:/usr/src # 
Now everything including configs is gone :(
Flasheart
Posts: 342
Joined: Thu Jul 06, 2006 2:27 pm

Re: Update of ZoneMinder clears database!

Post by Flasheart »

Are you sure it's not just using another database name?

(I don't know what zoneminder-mp is, under debian I just use zoneminder)

There is a known issue with zm deleting symlinks during upgrade, but that only deletes events, not config.

http://www.zoneminder.com/wiki/index.ph ... Hard_Drive
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Re: Update of ZoneMinder clears database!

Post by cordel »

I'm not sure... it has to do with the way the package is made for your distro and not ZM specifically.
There is no code in ZM source to drop databases like that.
Locked