error updating the db 1.37.59 from 1.37.57
Posted: Thu Apr 25, 2024 12:13 am
Went to upgrade Zoenminder tonight and I am unable to continue as it's throwing an error.
Setting up zoneminder (1.37.59~20240417.31-bookworm) ...
detected systemd
Detected db service is mariadb.service
Checking for db
Db exists.
Updating permissions for user zmuser@localhost
Initiating database upgrade to version 1.37.59 from version 1.37.57
Upgrading database to version 1.37.59
Upgrading DB to 1.37.58 from 1.37.57
Database successfully upgraded to version 1.37.58.
Upgrading DB to 1.37.59 from 1.37.57
ERROR 1050 (42S01) at line 17: Table 'Snapshots_Events' already exists
Output: Checking For Snapshot_Events Table which should be Snapshots_Events
Checking For Snapshot_Events Table which should be Snapshots_Events
Command 'mysql --defaults-file=/etc/mysql/debian.cnf -hlocalhost zm < /usr/share/zoneminder/db/zm_update-1.37.59.sql' exited with status: 1
Error updating db.
dpkg: error processing package zoneminder (--configure):
installed zoneminder package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1)
Debian 12.5
MariaDB 10.11.6-0+deb12u1
Zoneminder: 1.37.59~20240417.31-bookworm
Setting up zoneminder (1.37.59~20240417.31-bookworm) ...
detected systemd
Detected db service is mariadb.service
Checking for db
Db exists.
Updating permissions for user zmuser@localhost
Initiating database upgrade to version 1.37.59 from version 1.37.57
Upgrading database to version 1.37.59
Upgrading DB to 1.37.58 from 1.37.57
Database successfully upgraded to version 1.37.58.
Upgrading DB to 1.37.59 from 1.37.57
ERROR 1050 (42S01) at line 17: Table 'Snapshots_Events' already exists
Output: Checking For Snapshot_Events Table which should be Snapshots_Events
Checking For Snapshot_Events Table which should be Snapshots_Events
Command 'mysql --defaults-file=/etc/mysql/debian.cnf -hlocalhost zm < /usr/share/zoneminder/db/zm_update-1.37.59.sql' exited with status: 1
Error updating db.
dpkg: error processing package zoneminder (--configure):
installed zoneminder package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1)
Debian 12.5
MariaDB 10.11.6-0+deb12u1
Zoneminder: 1.37.59~20240417.31-bookworm