Need help on db upgrade
Posted: Fri Oct 25, 2024 2:14 am
Find error message in /var/log/zm/zmpkg.log
blk161@zoneminder:~$ sudo /usr/bin/zmupdate.pl
Initiating database upgrade to version 1.36.35 from version 1.36.33
Do you wish to take a backup of your database prior to upgrading?
This may result in a large file in /var/tmp/zm if you have a lot of events.
Press 'y' for a backup or 'n' to continue : n
Upgrading database to version 1.36.35
Upgrading DB to 1.36.34 from 1.36.33
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1292 (22007) at line 11: Incorrect datetime value: '0000-00-00 00:00:00' for column 'UpdatedOn' at row 1
Output:
Command 'mysql -u'zmuser' -p'zmpass' -hlocalhost zm < /usr/share/zoneminder/db/zm_update-1.36.34.sql' exited with status: 1
blk161@zoneminder:~$
2024-10-24 16:02:52.088252 zmpkg[1100].ERR [main:184] [Version mismatch, system is version 1.36.35, database is 1.36.33, please run zmupdate.pl to update.]
blk161@zoneminder:~$ sudo /usr/bin/zmupdate.pl
Initiating database upgrade to version 1.36.35 from version 1.36.33
Do you wish to take a backup of your database prior to upgrading?
This may result in a large file in /var/tmp/zm if you have a lot of events.
Press 'y' for a backup or 'n' to continue : n
Upgrading database to version 1.36.35
Upgrading DB to 1.36.34 from 1.36.33
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1292 (22007) at line 11: Incorrect datetime value: '0000-00-00 00:00:00' for column 'UpdatedOn' at row 1
Output:
Command 'mysql -u'zmuser' -p'zmpass' -hlocalhost zm < /usr/share/zoneminder/db/zm_update-1.36.34.sql' exited with status: 1
blk161@zoneminder:~$