zoneminder-containers / zoneminder-base

An always up-to-date automatically building ZoneMinder container
101 stars 32 forks source link

ZM crashes on start #64

Open VladislavSumin opened 5 months ago

VladislavSumin commented 5 months ago

When using a docker-compose.yml from the repository I get the following error:

Error log ``` 2024-04-20T22:34:27.423034177Z s6-rc: info: service s6rc-oneshot-runner: starting 2024-04-20T22:34:27.423947385Z s6-rc: info: service s6rc-oneshot-runner successfully started 2024-04-20T22:34:27.423983844Z s6-rc: info: service fix-attrs: starting 2024-04-20T22:34:27.425476052Z s6-rc: info: service fix-attrs successfully started 2024-04-20T22:34:27.425509344Z s6-rc: info: service legacy-cont-init: starting 2024-04-20T22:34:27.426774760Z cont-init: info: running /etc/cont-init.d/00-reconfigure-user.sh 2024-04-20T22:34:27.428307385Z 2024-04-20 17:34:27.428092677 [reconfigure-user] INFO Setting permissions for user www-data 2024-04-20T22:34:27.434110260Z 2024-04-20 17:34:27.433768760 [reconfigure-user] INFO Setting permissions for user nobody at /log 2024-04-20T22:34:27.451830510Z cont-init: info: /etc/cont-init.d/00-reconfigure-user.sh exited 0 2024-04-20T22:34:27.451853844Z cont-init: info: running /etc/cont-init.d/10-log-config.sh 2024-04-20T22:34:27.453764969Z 2024-04-20 17:34:27.453516969 [log-config] INFO Configuring log rotation with a maximum of 20 logs and a max log size of 1000000 bytes 2024-04-20T22:34:27.454047927Z cont-init: info: /etc/cont-init.d/10-log-config.sh exited 0 2024-04-20T22:34:27.454051510Z cont-init: info: running /etc/cont-init.d/20-system-config.sh 2024-04-20T22:34:27.455826010Z 2024-04-20 17:34:27.455547844 [system-config] INFO Setting system timezone to America/Chicago 2024-04-20T22:34:27.457277219Z 2024-04-20 17:34:27.456940677 [system-config] INFO Configuring PHP Time 2024-04-20T22:34:27.475462719Z 2024-04-20 17:34:27.475134844 [system-config] INFO Applying PHP Optimizations 2024-04-20T22:34:27.479695344Z 2024-04-20 17:34:27.479440344 [system-config] INFO Redirecting PHP Logs to stdout 2024-04-20T22:34:27.480358677Z cont-init: info: /etc/cont-init.d/20-system-config.sh exited 0 2024-04-20T22:34:27.480367844Z cont-init: info: running /etc/cont-init.d/30-zm-config.sh 2024-04-20T22:34:27.482390635Z 2024-04-20 17:34:27.482046844 [zm-config] INFO Configuring ZoneMinder db Settings 2024-04-20T22:34:27.483970677Z sed: preserving permissions for '/config/sedwUMKn7': Permission denied 2024-04-20T22:34:27.485904635Z sed: preserving permissions for '/config/sedG84BEc': Permission denied 2024-04-20T22:34:27.487764510Z sed: preserving permissions for '/config/sedsM2ATf': Permission denied 2024-04-20T22:34:27.489190969Z sed: preserving permissions for '/config/sedAg1PVj': Permission denied 2024-04-20T22:34:27.489767385Z cont-init: info: /etc/cont-init.d/30-zm-config.sh exited 0 2024-04-20T22:34:27.489771302Z cont-init: info: running /etc/cont-init.d/40-msmtp-config.sh 2024-04-20T22:34:27.491188719Z 2024-04-20 17:34:27.490979760 [msmtp-config] INFO Configuring msmtp settings... 2024-04-20T22:34:27.493883219Z cont-init: info: /etc/cont-init.d/40-msmtp-config.sh exited 0 2024-04-20T22:34:27.493904094Z cont-init: info: running /etc/cont-init.d/50-nginx-config.sh 2024-04-20T22:34:27.495406052Z 2024-04-20 17:34:27.495113677 [nginx-config] INFO Configuring nginx settings... 2024-04-20T22:34:27.496874844Z cont-init: info: /etc/cont-init.d/50-nginx-config.sh exited 0 2024-04-20T22:34:27.497109677Z s6-rc: info: service legacy-cont-init successfully started 2024-04-20T22:34:27.497201010Z s6-rc: info: service legacy-services: starting 2024-04-20T22:34:27.498745260Z services-up: info: copying legacy longrun fcgiwrap (no readiness notification) 2024-04-20T22:34:27.499030094Z services-up: info: copying legacy longrun mariadb (no readiness notification) 2024-04-20T22:34:27.499321385Z services-up: info: copying legacy longrun mariadb-configure (no readiness notification) 2024-04-20T22:34:27.499614719Z services-up: info: copying legacy longrun nginx (no readiness notification) 2024-04-20T22:34:27.499834969Z services-up: info: copying legacy longrun php-fpm (no readiness notification) 2024-04-20T22:34:27.500043135Z services-up: info: copying legacy longrun socklog (no readiness notification) 2024-04-20T22:34:27.500247885Z services-up: info: copying legacy longrun zoneminder (no readiness notification) 2024-04-20T22:34:27.501782677Z s6-rc: info: service legacy-services successfully started 2024-04-20T22:34:27.506056677Z [nginx] 2024-04-20 17:34:27.504149802 INFO Waiting for ZoneMinder to start 2024-04-20T22:34:27.506656302Z [mariadb] 2024-04-20 17:34:27.504453677 INFO Waiting for Mariadb to start 2024-04-20T22:34:27.506672177Z [fcgiwrap] 2024-04-20 17:34:27.503546802 INFO Starting fcgiwrap... 2024-04-20T22:34:27.506761135Z [mariadb-configure] 2024-04-20 17:34:27.504542969 INFO Waiting for MariaDB to start 2024-04-20T22:34:27.506821469Z [php-fpm] 2024-04-20 17:34:27.504360302 INFO Starting PHP-fpm... 2024-04-20T22:34:27.507113969Z [zoneminder-service] 2024-04-20 17:34:27.504080552 INFO Waiting for Socklog to start 2024-04-20T22:34:27.507118427Z [zoneminder-service] 2024-04-20 17:34:27.505897802 INFO Waiting for MariaDB to start 2024-04-20T22:34:31.593079804Z [zoneminder-service] 2024-04-20 17:34:31.590655846 INFO Waiting for mariadb-configure to complete... 2024-04-20T22:34:31.595534471Z [mariadb] 2024-04-20 17:34:31.593473762 INFO Mariadb is up! Proceeding to monitoring. 2024-04-20T22:34:31.615998012Z [mariadb-configure] 2024-04-20 17:34:31.615374221 INFO Configuring ZoneMinder Email From Address... 2024-04-20T22:34:31.617627387Z [mariadb-configure] 2024-04-20 17:34:31.617007387 INFO Disabling file log to prevent duplicate logs from syslog 2024-04-20T22:34:31.619879304Z [mariadb-configure] 2024-04-20 17:34:31.619077262 INFO Applying db changes... 2024-04-20T22:34:31.628350137Z [mariadb-configure] 2024-04-20 17:34:31.627808846 INFO Upgrading db if necessary 2024-04-20T22:34:31.683840346Z Please give a valid option 2024-04-20T22:34:31.694474137Z [mariadb-configure] 2024-04-20 17:34:31.694170262 INFO Usage: 2024-04-20T22:34:31.695065762Z [mariadb-configure] 2024-04-20 17:34:31.694737429 INFO zmupdate.pl -c,--check | -f,--freshen | -v,--version= 2024-04-20T22:34:31.695712804Z [mariadb-configure] 2024-04-20 17:34:31.695393846 INFO [-u -p ] 2024-04-20T22:34:31.696278346Z [mariadb-configure] 2024-04-20 17:34:31.695955512 INFO 2024-04-20T22:34:31.696820096Z [mariadb-configure] 2024-04-20 17:34:31.696513804 INFO Options: 2024-04-20T22:34:31.697398721Z [mariadb-configure] 2024-04-20 17:34:31.697050804 INFO -c, --check - Check for updated versions of ZoneMinder -f, --freshen - 2024-04-20T22:34:31.697955054Z [mariadb-configure] 2024-04-20 17:34:31.697614304 INFO Freshen the configuration in the database. Equivalent of old zmconfig.pl 2024-04-20T22:34:31.698566804Z [mariadb-configure] 2024-04-20 17:34:31.698225429 INFO -noi --migrate-events - Update database structures as per 2024-04-20T22:34:31.699074387Z [mariadb-configure] 2024-04-20 17:34:31.698819012 INFO USE_DEEP_STORAGE setting. -v , --version= - Force 2024-04-20T22:34:31.699625929Z [mariadb-configure] 2024-04-20 17:34:31.699319721 INFO upgrade to the current version from -u , 2024-04-20T22:34:31.700083929Z [mariadb-configure] 2024-04-20 17:34:31.699858346 INFO --user= - Alternate DB user with privileges to alter DB -p 2024-04-20T22:34:31.700636387Z [mariadb-configure] 2024-04-20 17:34:31.700345304 INFO , --pass= - Password of alternate DB user with 2024-04-20T22:34:31.701192637Z [mariadb-configure] 2024-04-20 17:34:31.700909221 INFO privileges to alter DB -s, --super - Use system maintenance account on 2024-04-20T22:34:31.701711679Z [mariadb-configure] 2024-04-20 17:34:31.701432762 INFO debian based systems instead of unprivileged account -d , 2024-04-20T22:34:31.702161304Z [mariadb-configure] 2024-04-20 17:34:31.701917346 INFO --dir= - Directory containing update files if not in default build 2024-04-20T22:34:31.702720304Z [mariadb-configure] 2024-04-20 17:34:31.702434971 INFO location -interactive - interact with the user -nointeractive - do not 2024-04-20T22:34:31.703196512Z [mariadb-configure] 2024-04-20 17:34:31.702951637 INFO interact with the user 2024-04-20T22:34:31.703689596Z [mariadb-configure] 2024-04-20 17:34:31.703428887 INFO 2024-04-20T22:34:31.704448429Z [mariadb-configure] 2024-04-20 17:34:31.704180304 INFO Refreshing db 2024-04-20T22:34:31.748087971Z DBD::mysql::st execute failed: Table 'zm.users' doesn't exist at /usr/bin/zmupdate.pl line 1045. 2024-04-20T22:34:31.748115471Z Can't execute: Table 'zm.users' doesn't exist at /usr/bin/zmupdate.pl line 1045. 2024-04-20T22:34:31.748562304Z [mariadb-configure] 2024-04-20 17:34:31.748148637 INFO 2024-04-20T22:34:31.749138179Z [mariadb-configure] 2024-04-20 17:34:31.748846304 INFO Freshening configuration in database 2024-04-20T22:34:31.749687179Z [mariadb-configure] 2024-04-20 17:34:31.749429221 INFO Migratings passwords, if any... 2024-04-20T22:34:31.751147679Z [zoneminder-service] 2024-04-20 17:34:31.750871846 INFO Starting ZoneMinder... 2024-04-20T22:34:31.784195929Z DBD::mysql::st execute failed: Table 'zm.states' doesn't exist at /usr/bin/zmpkg.pl line 325. 2024-04-20T22:34:31.786311137Z [zoneminder-service] 2024-04-20 17:34:31.785966096 INFO ZoneMinder is up! Proceeding to monitoring. 2024-04-20T22:34:31.787770554Z [nginx] 2024-04-20 17:34:31.787459679 INFO Starting Nginx... 2024-04-20T22:34:31.789531887Z [zoneminder-service] 2024-04-20 17:34:31.789195929 ERROR ZoneMinder has crashed! Exiting... 2024-04-20T22:34:31.791905596Z s6-rc: info: service legacy-services: stopping 2024-04-20T22:34:31.795889887Z [fcgiwrap] 2024-04-20 17:34:31.795583221 fcgiwrap INFO Stopping fcgiwrap 2024-04-20T22:34:31.828079387Z DBD::mysql::st execute failed: Table 'zm.states' doesn't exist at /usr/bin/zmpkg.pl line 325. 2024-04-20T22:34:34.797544958Z s6-svwait: fatal: timed out 2024-04-20T22:34:34.799483958Z s6-rc: info: service legacy-services successfully stopped 2024-04-20T22:34:34.799874208Z s6-rc: info: service legacy-cont-init: stopping 2024-04-20T22:34:34.807844250Z s6-rc: info: service legacy-cont-init successfully stopped 2024-04-20T22:34:34.807992416Z s6-rc: info: service fix-attrs: stopping 2024-04-20T22:34:34.809872083Z s6-rc: info: service fix-attrs successfully stopped 2024-04-20T22:34:34.810234000Z s6-rc: info: service s6rc-oneshot-runner: stopping 2024-04-20T22:34:34.813052916Z s6-rc: info: service s6rc-oneshot-runner successfully stopped ```

Looks like crashes here:

[mariadb-configure] 2024-04-20 17:34:31.704180304 INFO Refreshing db 2024-04-20T22:34:31.748087971Z DBD::mysql::st execute failed: Table 'zm.users' doesn't exist at /usr/bin/zmupdate.pl line 1045.

I also see this in the database logs: 2024-04-20 17:33:16 8 [ERROR] mariadbd: Incorrect information in file: './zm/logs.frm'