I’m new here, so please forgive any simple solutions I overread.
I am running ZM on CentOS 8 with apache.
After updating ZM from 1.36.17-1 to 1.36.21-1 during a dnf update of the whole system, the web interface shows a blank page with no content.
Doing a systemctl status zoneminder, the output is as follows:
Code: Select all
● zoneminder.service - ZoneMinder CCTV recording and security system
Loaded: loaded (/usr/lib/systemd/system/zoneminder.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/zoneminder.service.d
└─zm-httpd.conf
Active: active (running) since Fri 2022-08-12 08:15:51 CEST; 7min ago
Process: 116621 ExecStop=/usr/bin/zmpkg.pl stop (code=exited, status=0/SUCCESS)
Process: 116634 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=0/SUCCESS)
Main PID: 116642 (zmdc.pl)
Tasks: 7 (limit: 23648)
Memory: 124.9M
CGroup: /system.slice/zoneminder.service
├─116642 /usr/bin/perl -wT /usr/bin/zmdc.pl startup
├─116673 /usr/bin/perl -wT /usr/bin/zmfilter.pl --filter_id=1 --daemon
├─116677 /usr/bin/perl -wT /usr/bin/zmfilter.pl --filter_id=2 --daemon
├─116682 /usr/bin/perl -wT /usr/bin/zmwatch.pl
├─116685 /usr/bin/perl -wT /usr/bin/zmupdate.pl -c
├─116691 /usr/bin/perl -wT /usr/bin/zmtelemetry.pl
└─116695 /usr/bin/perl -wT /usr/bin/zmstats.pl
Aug 12 08:22:54 surveillance zmdc[117023]: INF ['zmc -m 1' started at 22/08/12 08:22:54]
Aug 12 08:22:54 surveillance zmc_m1[117023]: ERR [zmc_m1] [fopen() for ./zmc_m1.log, error = Permission denied]
Aug 12 08:22:54 surveillance zmc_m1[117023]: ERR [zmc_m1] [Config mismatch, expected 225 items, read 221. Try running 'zmupdate.pl -f' to reload config.]
Aug 12 08:22:54 surveillance zmdc[116642]: ERR ['zmc -m 1' exited abnormally, exit status 255]
Aug 12 08:22:55 surveillance zmdc[116642]: INF [Starting pending process, zmc -m 1]
Aug 12 08:22:55 surveillance zmdc[116642]: INF ['zmc -m 1' starting at 22/08/12 08:22:55, pid = 117025]
Aug 12 08:22:55 surveillance zmdc[117025]: INF ['zmc -m 1' started at 22/08/12 08:22:55]
Aug 12 08:22:55 surveillance zmc_m1[117025]: ERR [zmc_m1] [fopen() for ./zmc_m1.log, error = Permission denied]
Aug 12 08:22:55 surveillance zmc_m1[117025]: ERR [zmc_m1] [Config mismatch, expected 225 items, read 221. Try running 'zmupdate.pl -f' to reload config.]
Aug 12 08:22:55 surveillance zmdc[116642]: ERR ['zmc -m 1' exited abnormally, exit status 255]
Code: Select all
Freshening configuration in database
Migratings passwords, if any...
Loading config from DB 221 entries
Saving config to DB 225 entries
DBD::mysql::st execute failed: Unknown column 'Private' in 'field list' at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 244.
Can't execute when updating config entry ZM_SKIN_DEFAULT: Unknown column 'Private' in 'field list' at /usr/bin/zmupdate.pl line 333.
I rolled back to 1.36.17-1 and was able to log into ZM. The output of systemctl status zoneminder is:
Code: Select all
● zoneminder.service - ZoneMinder CCTV recording and security system
Loaded: loaded (/usr/lib/systemd/system/zoneminder.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/zoneminder.service.d
└─zm-httpd.conf
Active: active (running) since Sat 2022-08-06 12:15:41 CEST; 1min 12s ago
Process: 1676 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=0/SUCCESS)
Main PID: 2296 (zmdc.pl)
Tasks: 11 (limit: 23648)
Memory: 313.4M
CGroup: /system.slice/zoneminder.service
├─2296 /usr/bin/perl -wT /usr/bin/zmdc.pl startup
├─3648 /usr/bin/zmc -m 1
├─3734 /usr/bin/perl -wT /usr/bin/zmfilter.pl --filter_id=1 --daemon
├─3740 /usr/bin/perl -wT /usr/bin/zmfilter.pl --filter_id=2 --daemon
├─3767 /usr/bin/perl -wT /usr/bin/zmwatch.pl
├─3778 /usr/bin/perl -wT /usr/bin/zmupdate.pl -c
├─3846 /usr/bin/perl -wT /usr/bin/zmtelemetry.pl
└─3856 /usr/bin/perl -wT /usr/bin/zmstats.pl
Aug 06 12:15:49 surveillance zmc_m1[3648]: INF [zmc_m1] [Briefkasten: 60 - Capturing at 9.98 fps, capturing bandwidth 15327bytes/sec Analysing at 1.50 fps]
Aug 06 12:15:50 surveillance zmc_m1[3648]: INF [zmc_m1] [Briefkasten: 70 - Capturing at 9.65 fps, capturing bandwidth 63676bytes/sec Analysing at 4.83 fps]
Aug 06 12:15:51 surveillance zmc_m1[3648]: INF [zmc_m1] [Briefkasten: 80 - Capturing at 9.96 fps, capturing bandwidth 15807bytes/sec Analysing at 4.98 fps]
Aug 06 12:15:53 surveillance zmc_m1[3648]: INF [zmc_m1] [Briefkasten: 100 - Capturing at 10.01 fps, capturing bandwidth 39712bytes/sec Analysing at 5.01 fps]
Code: Select all
Freshening configuration in database
Migratings passwords, if any...
Loading config from DB 221 entries
Saving config to DB 221 entries
DBD::mysql::st execute failed: Unknown column 'System' in 'field list' at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 243.
Can't execute when updating config entry ZM_SKIN_DEFAULT: Unknown column 'System' in 'field list' at /usr/bin/zmupdate.pl line 333.
It seems to me the permissions issue for zmc_m1.log is just a symptom and the Config.pm got messed up somewhere in time before, but this is just an assumption.
Can you please point me to the right direction? What other information should I give?
Best,
_zot_